Various optical nonlinearities in semiconductors areinvestigated in reference to ultrafast all-optical gating. It isshown that a state-filling-type nonlinearity, such as theband-filling effect (BFE) in a semiconductor, is suitable formany ultrafast gating applications: that is, in conjunction witha recently developed differential phase-modulation (DPM)technique, ultrafast and clean gating with a considerably loweroptical excitation than in conventional techniques withferroelectric materials, for example, is possible. Two methods touse the BFE in the DPM regime were experimentally evaluated. Oneis to optically pump a semiconductor in order to generatephotocarriers, and the other is to use a semiconductor opticalamplifier (SOA) to enhance the former BFE by means of stimulatedemission. With optical pumping, a gating speed faster than afew hundred femtoseconds is possible, but a pulse energy of afew picojoules is required. This pulse energy can besignificantly reduced with the use of an SOA, but in this case the gating speed is also reduced. The gating characteristics,including gating speed, gating energy, wavelength, noise, andlinearity in signal intensity, were compared between the twomethods for various applications.