DalšíDalší průvodce
Cross-Encodery vs Bi-Encodery
Jazyk AI
Jazyk AI GUIDE
Encoder-decoder architectures map an input sequence to an output sequence that may differ in length.
Poslechněte si tento návodAI-vyprávěný · ~1 min
The encoder builds source representations, and the decoder generates target elements conditioned on those representations.
Early seq2seq models used recurrent encoders and decoders. Bahdanau attention addressed the fixed-vector bottleneck by computing a source context for each decoder step. The Transformer replaces recurrence with self-attention and cross-attention. BART pretrains a denoising encoder-decoder, while T5 casts many language tasks as text-to-text. These papers evaluate specific models and tasks; the architecture alone does not guarantee quality.
A neural translation encoder represents a source sentence while a decoder generates a translated sentence.
Bahdanau attention lets each decoder step focus on different encoder states.
The Transformer uses encoder-decoder attention and masked decoder self-attention.
BART and T5 use encoder-decoder architectures for denoising or text-to-text tasks.
Choose an encoder-decoder when a task naturally maps one sequence to another, and compare it with alternatives on the target data and latency. Track input-length behavior and output quality. The cited work does not establish that this architecture is best for every language task.
Newsletter zdarma
Tři ověřené příběhy ze světa AI každý všední den ráno, psané srozumitelnou angličtinou. Navždy zdarma, bez reklam.
Jeden e-mail každý všední den. Odhlásit se můžete jedním kliknutím. Vaši adresu nikdy neprodáváme ani nesdílíme.
Otestujte se
Okamžitá zpětná vazba ke každé odpovědi a sdílitelný certifikát s ověřitelným ID po absolvování kurzu.
Podpořte bezplatnou AI vzdělávání. AI Understanding je nezisková organizace 501(c)(3) — žádné reklamy, žádná platba za přístup, nikdy. Darujte
Encoder-decoder architectures map an input sequence to an output sequence that may differ in length. The encoder builds source representations, and the decoder generates target elements conditioned on those representations.
Kodér spotřebuje celou vstupní sekvenci a vytvoří kontextové vektory zachycující její význam, které pak dekodér použije.
Maskování zajišťuje, že každá výstupní pozice se věnuje pouze dřívějším pozicím, přičemž zachovává pořadí autoregresního generování zleva doprava.
Křížová pozornost umožňuje každé vrstvě dekodéru dotazovat se na skryté stavy kodéru, čímž spojuje porozumění vstupu s generováním výstupu.
T5 (a BART) jsou klasické modely kodér-dekodér, které rámují úlohy jako text-to-text. BERT je pouze kodér a GPT-3 je pouze dekodér.
Překlad mapuje jednu sekvenci na jinou, takže čtení celého zdroje (kodér) a generování nového cíle (dekodér) dokonale sedí.
Učte se dál
Pro toto téma bylo vybráno více průvodců
DalšíDalší průvodce
Cross-Encodery vs Bi-Encodery
Jazyk AI