Glossary · Term

MLP layer

← all terms

Definition

Plain language

The feed-forward block in each transformer layer that sits next to attention and stores much of the model's knowledge.

As stated in the literature

The multi-layer perceptron sub-block in a transformer layer, applying point-wise feedforward transformations and holding much of the model's factual content; also called the feedforward network or FFN.

Also called: MLP layers, MLP, FFN, FFNs, feedforward network, feedforward, feed-forward

Why it matters: It holds much of the model's factual knowledge, so studying and editing MLPs is central to interpretability and model surgery.

For example, the MLP layer in a middle transformer block is where a model often stores the association between 'Paris' and 'France'.

Heard on the show

“So they tried the whole ladder, from a tiny MLP up to a graph transformer.”
Episode 182 — How a Tiny Model Too Weak to Plan Cuts a Bigger Agent's Hallucinations by 80%

Mentioned in 12 episodes

  1. 182
    How a Tiny Model Too Weak to Plan Cuts a Bigger Agent's Hallucinations by 80%
  2. 145
    Building Forgetting Into a Language Model With One Extra Line of Code
  3. 114
    Agents That Rewrite Their Own Weights Instead of Just Taking Notes
  4. 090
    How MiniMax-M2 Bets That Sparsity Plus Verifiable Rewards Can Match Frontier Agents
  5. 077
    Reading a Model's Confidence Curve to Decide When Chain-of-Thought Is Worth It
  6. 053
    An AI Agent Swapped In Focal Loss And Beat A Human-Tuned Training Script
  7. 041
    When the Iteration Teaches the Model to Skip the Iteration
  8. 038
    How LLMs Get Persuaded: One Attention Head, A Tetrahedron, And A Single Dial
  9. 037
    Why Hallucination Detectors Miss Stale Facts: A Geometric Story About What Models Know But Don't Say
  10. 033
    Echo: The Paper Arguing You Never Needed a KV Cache for Retrieval
  11. 032
    A Sticky-Note for Every Layer: Letting Transformers Remember What They Were Just Thinking
  12. 023
    Why a Small Agent Confidently Overwrites Memories It Doesn't Understand

Related concepts

Related terms