NastępnyNastępny poradnik
Kodery krzyżowe a kodery Bi-Encoders
Językowa sztuczna inteligencja
PRZEWODNIK Językowy AI
Encoder-decoder architectures map an input sequence to an output sequence that may differ in length.
Posłuchaj tego przewodnikaOpowiadane przez sztuczną inteligencję · ~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.
Darmowy newsletter
Trzy zweryfikowane historie AI każdego poranka w dni robocze, napisane prostym angielskim. Bezpłatne na zawsze, bez reklam.
Jedno e‑mail każdego dnia roboczego. Wypisz się jednym kliknięciem. Nigdy nie sprzedajemy ani nie udostępniamy Twojego adresu.
Sprawdź się
Natychmiastowa informacja zwrotna na każde pytanie oraz udostępnialny certyfikat z weryfikowalnym ID po zaliczeniu kursu.
Wspieraj darmową edukację AI. AI Understanding jest organizacją non-profit 501(c)(3) — bez reklam, bez płatnej ściany, zawsze. Przekaż darowiznę
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.
Koder wykorzystuje całą sekwencję wejściową i tworzy wektory kontekstowe przechwytujące jej znaczenie, które następnie wykorzystuje dekoder.
Maskowanie zapewnia, że każda pozycja wyjściowa dotyczy tylko wcześniejszych pozycji, zachowując kolejność generowania autoregresyjnego od lewej do prawej.
Wzajemna uwaga pozwala każdej warstwie dekodera sprawdzać ukryte stany kodera, łącząc zrozumienie danych wejściowych z generowaniem danych wyjściowych.
T5 (i BART) to klasyczne modele koderów-dekoderów, które tworzą zadania w formie zamiany tekstu na tekst. BERT to tylko koder, a GPT-3 to tylko dekoder.
Tłumaczenie odwzorowuje jedną sekwencję na inną, więc odczytanie całego źródła (koder) i wygenerowanie nowego celu (dekoder) pasuje idealnie.
Ucz się dalej
Wybrano więcej przewodników na ten temat
NastępnyNastępny poradnik
Kodery krzyżowe a kodery Bi-Encoders
Językowa sztuczna inteligencja