A Controlled Study of Attention-Only Transformers

How do attention-only transformers compare to standard ones? This controlled study tests up to 105B tokens and 87M parameters.

jueves, 23 de julio de 2026 • 4 min read • Q2BSTUDIO Team

Comparativa de transformers solo atención vs estándar

A recent study on transformer architectures has raised a key question: are feed-forward layers really necessary in language models? Researchers trained pure attention models —called Simple Attention Networks (SANs)— and compared them to standard transformers, matching parameters, compute cost, and depth. Results show that by reallocating the budget from feed-forward layers to greater attention depth, the performance gap shrinks to just 0.006 nats, a practically negligible difference. However, this advantage comes with an important nuance: attention-only models excel at context-dependent tasks but struggle when they need to retrieve knowledge stored in the network weights. This has direct implications for developing artificial intelligence systems in enterprise environments, where combining contextual reasoning with parametric memory is often required.

The research, published on arXiv, analyzed models from 2 to 48 layers and training budgets up to 105 billion tokens. They found that routing matrices (Q/K) crystallize early, while content matrices accumulate rank slowly. Removing feed-forward layers relocates that accumulation to the attention output projection. Moreover, QK normalization keeps attention-only stacks trainable even with 48 layers, while feed-forward layers or residual gating are not decisive. The performance deficit concentrates on low-context predictions, and at the largest budget it disappears entirely in those cases. A pre-registered test on FineWeb-edu confirmed a 0.04 nat gap on knowledge-dense text, validating the hypothesis.

What does this mean for companies looking to implement efficient and scalable artificial intelligence solutions? That pure attention architecture can be a viable option when context is rich and computational cost is critical. In chatbot, virtual assistant, or context-based recommendation scenarios, an attention-only model could deliver comparable performance with much lower energy and hardware costs. On the other hand, for applications requiring stored factual knowledge —like enterprise search or regulatory compliance— it still remains advisable to keep feed-forward layers or hybridize with external retrieval mechanisms.

At Q2BSTUDIO, as a software and technology development company, we understand that there is no one-size-fits-all for AI. That is why we offer custom application development and consulting services, adapting model architecture to each business's specific needs. For instance, if a company needs a real-time data analysis system with Power BI, we can integrate AI agents that process natural language and generate contextual reports without relying on large generic models. For regulated environments, our cybersecurity branch ensures that attention-only models, having a smaller parametric attack surface, can be deployed securely on cloud (AWS or Azure) with access controls and auditing.

Flexibility is key: while standard transformers require significant investment in GPUs and storage, pure attention models can run on more modest hardware, reducing total cost of ownership. This is especially relevant for SMEs wanting to adopt AI without compromising their budget. Additionally, removing feed-forward layers simplifies model interpretability, a factor increasingly demanded in sectors like finance or healthcare.

In process automation, attention-based AI agents can handle complex workflows with contextual dependencies —for example, in IT incident management or data pipeline orchestration. Combined with cloud services like AWS Lambda or Azure Functions, these agents scale elastically and consume resources only when triggered. Our team at Q2BSTUDIO has implemented hybrid solutions that use pure attention for real-time reasoning and feed-forward layers for static knowledge, achieving an optimal balance between accuracy and efficiency.

Finally, the research also opens the door to new training paradigms. If routing matrices crystallize early, one could freeze part of the model early and concentrate computational effort on content layers. This could accelerate fine-tuning of pre-trained models for enterprise use cases, reducing development time from weeks to days. Imagine a BI system that learns your company's patterns with just a few examples, or a cybersecurity assistant that detects anomalies based on network context without needing a massive attack dataset.

In conclusion, the controlled study of attention-only transformers shows that pure attention architecture is much more powerful than previously thought, especially when depth is optimized and the parameter budget reallocated. For businesses, this translates into an opportunity to build lighter, faster, and cheaper AI systems without sacrificing performance in contextual tasks. At Q2BSTUDIO we are ready to guide that transformation, offering everything from custom model design to secure cloud deployment, along with BI tool integration and process automation. The research reminds us that sometimes less is more: with the right architecture, attention can do the rest.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.