Tiếp theoHướng dẫn tiếp theo
Bộ mã hóa chéo và bộ mã hóa kép
Ngôn ngữ AI
HƯỚNG DẪN AI về ngôn ngữ
Encoder-decoder architectures map an input sequence to an output sequence that may differ in length.
Nghe hướng dẫn nàyAI thuật lại · ~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.
Bản tin miễn phí
Ba câu chuyện AI đã được xác minh vào mỗi buổi sáng các ngày trong tuần, được viết bằng tiếng Anh đơn giản. Miễn phí mãi mãi, không có quảng cáo.
Một email mỗi ngày trong tuần. Hủy đăng ký trong một cú nhấp chuột. Chúng tôi không bao giờ bán hoặc chia sẻ địa chỉ của bạn.
Tự kiểm tra
Phản hồi tức thì về mọi câu trả lời và chứng chỉ có thể chia sẻ với ID có thể xác minh sau khi bạn vượt qua khóa học.
Hỗ trợ giáo dục AI miễn phí. AI Understanding là tổ chức phi lợi nhuận 501(c)(3) — không bao giờ có quảng cáo, không có tường phí. Hãy quyên góp
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.
Bộ mã hóa sử dụng toàn bộ chuỗi đầu vào và tạo ra các vectơ ngữ cảnh nắm bắt ý nghĩa của nó, sau đó bộ giải mã sẽ sử dụng.
Việc che dấu đảm bảo mỗi vị trí đầu ra chỉ tham gia vào các vị trí trước đó, duy trì thứ tự tạo tự hồi quy từ trái sang phải.
Sự chú ý chéo cho phép mỗi lớp bộ giải mã truy vấn các trạng thái ẩn của bộ mã hóa, liên kết việc hiểu đầu vào với việc tạo đầu ra.
T5 (và BART) là các mô hình mã hóa-giải mã cổ điển đóng khung các tác vụ dưới dạng chuyển văn bản thành văn bản. BERT chỉ dành cho bộ mã hóa và GPT-3 chỉ dành cho bộ giải mã.
Bản dịch ánh xạ một chuỗi sang một chuỗi khác, do đó việc đọc toàn bộ nguồn (bộ mã hóa) và tạo ra mục tiêu mới (bộ giải mã) hoàn toàn phù hợp.
Tiếp tục học hỏi
Đã chọn thêm hướng dẫn cho chủ đề này
Tiếp theoHướng dẫn tiếp theo
Bộ mã hóa chéo và bộ mã hóa kép
Ngôn ngữ AI