MockReal Logo
Home
BlogPricing
For Employers →
  1. Home
  2. Questions
  3. Encoder 编码器与 Decoder 掩码有什么区别?

Encoder 编码器与 Decoder 掩码有什么区别?

Technical大模型应用开发 ai agent大模型应用开发工程师AI代理开发工程师机器学习工程师

Encoder transforms input data into a compact representation, while Decoder reconstructs output from that representation. The encoder captures essential features, and the decoder ensures the output is coherent and relevant.

In models like Transformers, the encoder processes the entire input simultaneously, while the decoder uses masked attention to prevent future information leakage during generation.

More Questions

  • Attention 机制和传统 Seq2Seq 模型有什么区别?
  • BERT 非线性的来源在哪里?
  • Prefix LM 和 Causal LM 区别是什么?
  • SFT(有监督微调)的数据集格式是什么?
  • Transformer 中 multi-head attention 中每个 head 为什么要进行降维?
  • 为什么 BERT 选择 mask 掉 15% 这个比例的词,可以是其他比例吗?
  • 为什么要进行 LN(LayerNorm)?
  • 为何现在的大模型大部分是 Decoder-only 结构?
  • 讲讲对 Attention 的理解?
  • CoT 是啥?为啥效果好呢?有啥缺点?
MockReal Logo

Spoken interview practice for technical professionals

Product

  • Pricing
  • Questions
  • Positions
  • Resumes
  • For Employers →

Company

  • Careers
  • About Us
  • Contact
  • Blog

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie Policy

© 2025 MockReal. Spoken interview practice. All rights reserved.