Attention-Only Transformers Match Standard Models with More Depth.

Henry Ndubuaku, Karen Mosoyan, Jakub Mroz, Noah Cylich, Satyajit Kumar, Parkirat Sandhu, Roman Shemet, Justin H Lee· July 22, 2026 View original

Summary

This controlled study shows that attention-only transformers (SANs) can match the performance of standard transformers by reallocating the computational budget into greater attention depth. The remaining performance gap is localized to parametric recall, where attention-only models are weaker on knowledge-dense tasks.

This research conducts a controlled study to investigate the necessity of feed-forward networks (FFNs) in transformer architectures, which typically account for two-thirds of non-embedding parameters. By comparing "Simple Attention Networks" (SANs), which are attention-only decoder transformers, against standard transformers matched for parameters, compute, and depth, the study reveals interesting trade-offs. Initially, removing FFNs and keeping depth constant leads to a performance deficit. However, by reallocating the freed computational budget into increased attention depth, SANs can largely close this gap. The study found that at matched parameters, the performance difference was negligible, shrinking further with larger training budgets. The remaining slight deficit in attention-only models was localized to parametric recall, meaning they performed worse on tasks requiring knowledge stored in weights rather than context-grounded answers. The research also highlights that QK-normalization, not FFNs or residual gating, is crucial for training deep attention-only stacks.

Why it matters

Understanding the fundamental contributions of different transformer components can lead to more efficient, specialized, and potentially smaller models, optimizing resource usage for various AI applications.

How to implement this in your domain

  1. 1Consider designing attention-only transformer architectures for applications where context-grounded answers are paramount and parametric knowledge recall is less critical.
  2. 2Experiment with increasing attention depth in existing transformer models to evaluate potential performance gains or efficiency improvements.
  3. 3Analyze the trade-offs between model size, computational budget, and performance when deciding on transformer architecture components.
  4. 4Focus on robust QK-normalization techniques when building very deep attention-based models.

Who benefits

AI/ML DevelopmentCloud ComputingEdge AINatural Language Processing

Key takeaways

  • Attention-only transformers can perform comparably to standard transformers by increasing attention depth.
  • The performance gap is primarily in parametric recall, where FFNs store knowledge.
  • QK-normalization is crucial for training deep attention-only models.
  • This research offers insights for designing more efficient and specialized transformer architectures.

Original post by Henry Ndubuaku, Karen Mosoyan, Jakub Mroz, Noah Cylich, Satyajit Kumar, Parkirat Sandhu, Roman Shemet, Justin H Lee

"arXiv:2607.18363v1 Announce Type: new Abstract: Feed-forward networks hold two thirds of a transformer's non-embedding parameters, yet the architecture has not received a necessity test that controls parameters, compute, and depth at once. We pretrain attention-only decoder trans…"

View on X

Originally posted by Henry Ndubuaku, Karen Mosoyan, Jakub Mroz, Noah Cylich, Satyajit Kumar, Parkirat Sandhu, Roman Shemet, Justin H Lee on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses

More in AI Research

AI Engineering & DevToolsAI Research

New Tool Generates Contamination-Resistant, Labeled Code Datasets for LLMs

Spaghetti Architect is a new open-source tool that generates controlled, multi-language code datasets, addressing issues of contamination and lack of semantic control in existing code corpora. It creates correct-by-construction programs with adjustable "messiness" and difficulty labels, making it ideal for training and evaluating code-generating LLMs.

Yuxiang JiJul 22, 2026
AI ResearchAI Engineering & DevTools

New Method Safely Gates Hazardous LLM Knowledge Without Deletion

Researchers introduce Token Inoculation, a method that allows large language models to retain sensitive "dual-use" knowledge while selectively refusing hazardous queries. This approach uses a special token to condition the model's behavior, improving safety without sacrificing benign domain performance.

Seunghyun Lee, Dongyoon Han, Sangdoo YunJul 22, 2026
AI ResearchAI Engineering & DevTools

GNNAS-TSP Selects Optimal Algorithms for Traveling Salesman Problem

Researchers introduce GNNAS-TSP, a Graph Neural Network (GNN)-based framework for automated algorithm selection (AS) for the Traveling Salesman Problem (TSP). GNNAS-TSP learns TSP instance representations directly from raw graph data, avoiding manual feature engineering, and formulates AS as a joint cost-prediction and ranking task to select the best solver from a portfolio under fixed computational budgets.

Zhaoxuan Li, Jiale Yang, Yifei Lu, Mustafa MisirJul 22, 2026