Loading...
Loading...
Loading Curriculum...
Loading Subject...
Loading Topic...
Loading Lesson...
Loading Lab...
Seq2Seq transforms one sequence into another — the backbone of translation, summarization, question answering, and code generation. An LLM amplifies this by bringing massive pre-trained knowledge to the task.
An input sequence of arbitrary length is compressed into a fixed representation, which a decoder unfolds into an output sequence of a different (or same) length.
Pre-trained LLMs encode world knowledge. Fine-tuning Seq2Seq on top avoids training from scratch — you inherit billions of parameters of linguistic understanding.
The canonical task: English → French. Google Translate's core uses transformer Seq2Seq. BLEU score is the standard evaluation metric.
Long document → concise summary. BART and T5 are fine-tuned for this. ROUGE-L measures overlap with reference summaries.
ChatGPT-style models apply Seq2Seq logic — conversation history is the encoder input, response is the decoder output.
Docstring / spec → executable code. GitHub Copilot is built on this paradigm — encoder reads the spec, decoder writes code.
Zero/few-shot: craft a system prompt that frames the task. No training required. Relies on the LLM's in-context learning.
Adapt a pre-trained encoder-decoder (T5, BART) on domain-specific source→target pairs with supervised learning.
Use an LLM API (Anthropic, OpenAI) as the Seq2Seq backbone; build pre/post-processing pipelines around it.