跳到主要内容Skip to main content

前馈网络Feed-Forward Network

Feed-Forward Network

  • 核心概念Core concepts
  • 第四站 · 看懂Station 4 · Under the Hood
解决什么问题What problem it solves

Transformer 每层里的消化环节:注意力看完之后,由它加工。The digestion step inside every Transformer layer: attention looks around, then this part processes.

这是什么What it is

一种基本的神经网络结构:信息一层一层往前传,每层做一次变换。

在 Transformer 里,每层先做注意力,再接一个前馈网络。

这个前馈网络逐位置处理,两者交替进行。

A basic neural-network structure: information passes layer by layer, each layer applying one transformation.

In a Transformer, each layer runs attention first, then a feed-forward network.

This feed-forward network works position by position, alternating with attention.

为什么需要知道Why it matters

注意力负责「谁和谁相关」,前馈网络负责「把相关的东西加工成判断」。缺了它,模型只会连线,不会思考。Attention decides which words relate to each other; the feed-forward network turns those relations into judgments. Without it, a model can only draw lines, not think.

出处Sources
  • Attention Is All You Need(论文 §3.3)Attention Is All You Need §3.3 (paper) ↗