What it does
The sigmoid maps large negative inputs close to 0, large positive inputs close to 1, and 0 to exactly 0.5. As a final layer it turns one logit into a yes/no probability, for example whether a frame contains speech or a pixel belongs to a person. Inside recurrent cells it acts as a gate that decides how much of a signal to let through. Because it flattens out at both ends, a bias change of +2 near the middle moves the output a lot, while the same change far from zero barely moves it. Hard sigmoid replaces the curve with straight lines for speed.
Formula
σ(x) = 1 / (1 + e−x)σ(0) = 0.5, σ(x) + σ(−x) = 1HardSigmoid(x) = max(0, min(1, α·x + β))Shapes and parameters
- Shapes
- Any shape in, the same shape out.
- Parameters
- None. An activation is a fixed function applied to every element, so it adds no parameters.
- Used for
- Binary and multi-label outputs, saliency and matting masks, voice activity and shot-cut probabilities, LSTM and GRU gates, and the drive units of the Meadow animals.
In WeightSpace
No parameters of its own. Several catalog edits change the logit just before a sigmoid (speech presence, cut probability, foreground alpha), so a delta moves the output most when the logit sits near zero. In Meadow, each drive is a sigmoid of a weighted sum of senses, and those weights are editable.
Where it appears
- Find text regions on an imagePP-OCRv5 Mobile Detection351.2M params
- Track motion between two framesRAFT-Small24990K params
- Find beats and downbeatsBeat This! Small123.2M params
- Translate a Chinese sentenceHelsinki-NLP OPUS-MT12111M params
- Detect speech in a recordingSilero VAD8545K params
- Find what stands out in a photoU²-Net-p71.1M params
- Locate faces and facial landmarksYuNet653K params
- Read a facial expressionOpenCV Zoo MobileFaceNet61.2M params
- Remove background noiseGTCRN648K params
- Find rows and cells in a tablePaddleOCR SLANet+51.9M params
- Detect objects in a photoNanoDet-Plus3942K params
- Transcribe music into notesSpotify Basic Pitch336K params
- Cut out a portraitMODNet26.5M params
- Find video shot changesTransNetV227.6M params
- Meadow animal brainWeightSpace ecosystem brain242 params
- Track a subject between framesOpenCV VitTrack2174K params
- Track fingertips in a photoMediaPipe Hand Landmarker22.0M params
- Brighten a low-light photoSCI (CVPR 2022)1264 params
- Classify the tone of a film reviewTensorFlow IMDB CNN12.7M params
- Generate a frame between two photosPractical-RIFE 4.2515.7M params
- Read a phrase aloudKokoro 82M181M params
- Recognize sounds in a recordingYAMNet14.0M params
- Track body joints in a photoMediaPipe BlazePose14.3M params
- Track the pitch of a soundCREPE Tiny1487K params