Encoder

The part of a model that transforms input into a useful internal representation.

What does a speech encoder pass onward?

Imagine a visitor saying “west entrance” into a museum guide. The recording contains a changing waveform, background noise and a pause. The encoder transforms the input into representations the next component can use.

  1. Input

    The system divides the audio into short intervals or derives acoustic features from them. The representation still reflects timing and local sound patterns.

  2. Encoding

    A learned network combines evidence across intervals. Its output may be a sequence of vectors, with each vector depending on nearby or more distant context.

  3. Use

    A recognizer can use those vectors to predict a transcript. Another system might pool them to retrieve similar clips. The intended task shapes what information is valuable.

Does encoding always mean compression?

Some encoders shorten sequences or produce compact summaries. Others preserve many positions and increase the number of values at each position. The defining operation is mapping input into a representation, and the architecture determines its shape.

A microphone faces a sequence of translucent wave-shaped plates.
An encoder can preserve changing acoustic information across multiple positions.

What would you inspect?

Compare outputs for the same words across speakers and for similar-sounding different words. Then evaluate the downstream recognizer. The size of the vector alone cannot tell you whether the representation preserves the distinction that matters.

Follow the idea

Embedding · Understand how a learned representation can be used for comparison.

Decoder · Follow the step from representation to output.

Source · Radford and colleagues on an encoder–decoder speech recognition system

Return to Encoder in the A–Z glossary