# What Transformer FFNs Never See: Theory, Diagnosis, and Lightweight Remediation

*Tinghe Zhang, Yucheng Xiao, Alex Lamb*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/153020) · [OpenReview](https://openreview.net/forum?id=Oa1iYsgkvE) · [Open on the map](../papers.html#p153020)

Category: [Efficient LLM Inference & Training](../pcat/14.md) › [Linear Attention Memory Mechanisms](../pgroup/24.md) · Type: new method · Keywords: Transformer attention, routing non-identifiability, feed-forward network, compact statistics, multi-hop reasoning, language modeling

Areas: [LLM Reasoning](../areas/reasoning.md) › Efficient Reasoning › Attention Mechanisms

## Summary
The paper reveals that Transformer attention can cause distinct source tokens to map to identical representations, losing crucial information before the feed-forward stage, and introduces the Route-Aware FFN (RA-FFN) to recover this information with minimal overhead, achieving large gains on reasoning, language modeling, and translation tasks.

## Explained to a 5-year-old
Imagine you have two different toys that look the same when you look at them together. The computer model sometimes mixes up which toy it really saw, so later steps think it saw the same toy every time. This makes it hard for the model to do tricky thinking like solving multi-step puzzles. We added a tiny hint that remembers which toy was seen, helping the model tell them apart.

## Explained to a 5-year-old, longer
Think of a story where you have a magic box that picks out the most important words from a sentence. Sometimes two different sentences give the same important words, so the box cannot tell which sentence was the real one. Later, the model uses those words to answer questions, but because it lost the original sentence, it gives the same answer for both. This makes the model bad at hard problems like counting or reasoning step by step. The researchers noticed this problem and called it routing non-identifiability. They kept a small note of which words were chosen, called routing statistics, and added this note to the next part of the model. This extra note is very small, like a quick reminder, and helps the model remember the original words. By doing this, the model can now tell apart the different sentences and solve harder problems much better. The improvement works for many kinds of tasks, from simple language modeling to complex math and reasoning challenges, and it works even when the model is very large.

## For a technical reader
The paper shows that Transformer attention can collapse distinct source tokens into identical representations, causing a loss of routing information before the feed-forward network. This loss limits tasks requiring source sensitivity. To address it, the authors retain compact routing statistics and feed them into each feed-forward block via a lightweight module (RA-FFN). This adds less than 1.1% parameters and recovers most of the lost information, yielding significant gains on multi-hop reasoning, language modeling, translation, mathematics, and general reasoning benchmarks across both 110M and 7B scale models.

## Problem
In Transformers, different source tokens can produce the same aggregated representation, so the downstream processing receives identical inputs regardless of which tokens were actually attended, limiting tasks that need to distinguish them.

## Method
The approach retains compact routing statistics from the attention step and appends them to each feed-forward block, providing the missing source signal with under 1.1% additional parameters.

## Results
Standard Transformers achieve only 31.4% source-identification accuracy versus an oracle of 94.6%; the proposed module recovers over 75% of the oracle gain, yielding up to 6× larger multi-hop improvements and gains on mathematics and reasoning benchmarks.

## Contributions
Identification of routing non-identifiability as a fundamental bottleneck, a lightweight method to retain routing statistics, and extensive empirical validation across multiple scales and tasks.

## Limitations and assumptions
The analysis focuses on BERT-Base and Llama-2-7-B/Mistral-7-B models; the proposed module assumes the routing statistics are available in the forward pass.

## Practical relevance
The lightweight RA-FFN can be dropped into existing Transformers to improve reasoning and language tasks without major computational overhead.

## Research questions this paper is counted under

- [How can we quantify and control information routing uncertainty in transformer attention?](../q/514.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/153020)
