liveBook · Manning

Embedding layer

As explained in Time Series Forecasting Using Foundation Models

An embedding layer is a neural-network layer that maps input items or tokens to learned numerical vector representations.

An embedding layer converts raw time-series inputs into learned multidimensional numerical vectors that encode features in a form the transformer can process and reuse. section 1.2 section 1.2.1

A time-series embedding pipeline typically:

  • Separates the raw series into tokens, such as unique values or windows of values. section 1.2.1
  • Learns an abstract vector representation for each token and passes it onward. section 1.2.1
  • Adds positional encoding before the encoder so identical values at different time steps remain distinguishable. section 1.2.1
Figure 1.3 Visualizing the result of feeding a time series through an embedding layer. First, the input is tokenized, and an embedding is learned. The result is the abstract representation of the input made by the model.
A diagram of a person

The diagram traces tokenization and learned embedding formation from a time series to its abstract model representation. section 1.2.1

How Time Series Forecasting Using Foundation Models covers it

How deep it goes
Explains tokenization, learned vectors, and positional encoding, but does not provide implementation code or training details.
Examples
Uses time-series values or windows as tokens and illustrates the resulting representation with transformer architecture diagrams.
What it assumes
Assumes raw time-series inputs and teaches tokenization and learned vector representations before positional encoding.
What you can do after
Apply embeddings within a transformer forecasting pipeline before adding positional information and encoding the sequence.
How it connects
Connects embedding layers with tokenization, positional encoding, transformers, encoders, decoders, and self-attention.

Also explained in

Compare how 4 books explain embedding layer →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Time Series Forecasting Using Foundation Models. The section links point to the parts of the book it draws on.