liveBook · Manning

Encoder-decoder architecture

As explained in Causal AI

A sequence-to-sequence model maps an input sequence to an output sequence, often for tasks such as translation, summarization, or conditional generation.

An encoder-decoder architecture maps an input sequence to a target sequence. In practice, paired phrases are tokenized, split into training and validation data, and used to fine-tune a pretrained sequence-to-sequence model. section 13.3.2

Causal vignette generation

A BART model generates a Prince vignette from a King vignette, while another generates the Kingdom’s fate from the combined King and Prince text. A reverse model infers a King vignette from a Prince vignette.

How Causal AI covers it

How deep it goes
Works through tokenization, dataset construction, fine-tuning, generation, and log probabilities, but does not detail encoder-decoder internals.
Examples
Generates Prince actions from King actions, Kingdom outcomes from paired actions, and King actions from Prince actions.
What it assumes
Assumes Python tensor and dataset workflows while providing tokenizer, dataset, training, decoding, and generation functions.
What you can do after
Apply it via Hugging Face Transformers and PyTorch to train, load, generate from, and score conditional text models.
How it connects
Connects sequence-to-sequence models with tokenization, Transformer models, PyTorch datasets, conditional generation, and causal models.

Also explained in

Compare how 10 books explain encoder-decoder architecture →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Causal AI. The section links point to the parts of the book it draws on.