AI GLOSSARY · AI CONCEPTS

Sequence-to-sequence model (seq2seq)

Markdown version · Wikidata Q41589189

Definition

A sequence-to-sequence (seq2seq) model is a neural network that turns an input sequence, such as a sentence, into an output sequence of possibly different length, such as its translation. Early versions used two recurrent networks.

Also called: seq2seq model, Seq2Seq, sequence to sequence, sequence to sequence model.

In plain language

Some tasks take one sequence and produce another, possibly of a different length: a French sentence in and an English sentence out, for example. Seq2seq names this task shape and the family of models used for it, not one mandatory architecture. In the recurrent designs described by the two cited 2014 papers, an encoder compressed the source sequence into a fixed-size vector and a recurrent decoder generated the target sequence from it. Later or different seq2seq systems need not use that exact fixed-vector design.

Technical definition

Sutskever, Vinyals and Le describe a multilayer LSTM that maps an input sequence to a fixed-dimensional vector and another deep LSTM that decodes a target sequence from it; they test the method on English-to-French translation. Cho and colleagues describe a jointly trained RNN Encoder-Decoder in which one recurrent network encodes a symbol sequence into a fixed-length vector and another decodes that representation into a target sequence. These are two documented 2014 recurrent approaches, not a claim that all seq2seq models use fixed vectors or that these papers alone establish the term's origin.

Worked examples in this catalogue

Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.

  1. Skill by Skill Almanac · Illustrative, not executed

    translation-and-localization 56/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    A skill that translates and QA-checks UI strings and docs, with protected placeholders, a glossary and length checks.
    Why it exercises the concept
    Translation is the task seq2seq models were first applied to. The skill is about checking translated output, and its description does not say what kind of model produces the translation.
  2. Guide · Illustrative, not executed

    What Is an LLM? The Facts Agent Users Need

    What you see
    A guide saying a large language model reads a sequence of tokens and predicts the next one, repeating until it produces a complete reply, with notes on context windows, cost and errors.
    Why it exercises the concept
    It describes how the models agents use today produce output one token at a time, which is the modern comparison point for the encoder and decoder design on this page.
  3. Skill by Skill Almanac · Illustrative, not executed

    llm-eval-test-sets 57/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    A builder and checker for an eval dataset for any LLM feature, flagging duplicates, missing graders, imbalance and leakage.
    Why it exercises the concept
    A translation or summarisation feature maps an input sequence to an output sequence, the seq2seq shape. This skill tests such a feature with a dataset and does not train a seq2seq model.

How it shows up when you use agents

Sequence-to-sequence modeling appears in machine translation, speech recognition and summarization research. Listen, Attend and Spell maps speech features to character sequences; Get To The Point uses an attentional sequence-to-sequence model for summarization. Transformer encoder-decoder architectures can also map input sequences to output sequences, so seq2seq does not require the fixed-vector recurrent design of the early papers. When asking an agent to implement such a system, specify the input sequence, output sequence and evaluation task; the encoder-decoder page explains the architectural pattern.

What breaks when the term is misunderstood. People assume seq2seq means a specific product or one fixed architecture. It names a task shape, an input sequence mapped to an output sequence, and an early way of solving it with recurrent networks. People also assume an output has the same length as the input, which is not required.

Next action: if you evaluate a feature that rewrites, translates or summarises text, treat it as an input-to-output mapping and build a test set for it with llm-eval-test-sets. If you want the history, read the two 2014 papers cited above, whose abstracts state the method plainly. For translation as a task, see machine translation.

Common confusions

  • Seq2seq versus encoder-decoder. Seq2seq names the task of mapping one sequence to another. Encoder-decoder names a two-part network design often used for it. Early seq2seq models used recurrent networks for both parts.
  • Seq2seq versus a transformer. Seq2seq names a task and approach, and the 2014 papers built it from recurrent networks. A transformer is a different architecture.
  • Seq2seq versus a chatbot. A chatbot is an application, while seq2seq describes sequence-input-to-sequence-output tasks and models. The supplied papers establish machine-translation uses, not a general claim about chatbot architectures.
  • Myth: the input and output must match in length. The abstracts describe encoding an input into a vector and decoding a target sequence from it, so the two sequences can differ.

Terms that mention Sequence-to-sequence model (seq2seq)

5 terms mention this one

More in AI concepts

Next steps

  1. What Is an LLM? The Facts Agent Users Need The long-form guide.
  2. translation-and-localization A skill that exercises it.
  3. Encoder-decoder Related term.
  4. Transformer Related term.
  5. All glossary terms A to Z and by family.

Sources

Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-25. Wikipedia is never the only source.

Review record

Last verified

Drafted by claude-sonnet-5-5; sources and example targets checked by Independent automated source review (OpenAI Codex); not human peer review on 2026-11-25. Last verified .

Change log (4)
  • : Independent automated factual/example and synonym review completed; cached US query estimate aligned to receipt. Final technical gate separate; publication disabled.
  • : First version.
  • : OpenAI5.6/Codex revision: Treats seq2seq as a task/model family, confines fixed-vector claims to the cited recurrent designs and removes Wikipedia-dependent history. Independent re-review pending.
  • : Automated review completed; approved for the staged public release. Search indexing is controlled by the release configuration.