Abstract
Transformer models typically benefit from increased attention heads and larger feature dimensions, but such scaling often leads to a prohibitive explosion in parameter count. We present Simulated Attention Score (SAS), a novel architectural technique that employs lightweight non-linear projections to "simulate" a high-capacity attention mechanism. By hallucinating additional heads and wider feature spaces, SAS enhances model expressiveness and data efficiency while maintaining a compact parameter footprint. Our results demonstrate that SAS consistently outperforms standard Multi-Head Attention (MHA) and its efficient variants across diverse language modeling tasks.
Introduction: The Scaling Paradox of Attention
The multi-head attention (MHA) mechanism is fundamental to the success of Transformer architectures. Empirical evidence suggests that increasing the number of attention heads allows a model to capture a richer set of relationships within data. However, this scaling comes at a cost: adding physical heads and expanding hidden dimensions directly inflates the model's parameter count and memory requirements.
While recent innovations like Multi-Query Attention (MQA) and Grouped-Query Attention (GQA) have addressed memory bottlenecks by sharing heads, they often sacrifice expressiveness. SAS takes the opposite approach, asking: how can we achieve the high expressiveness of a massive, many-headed Transformer while retaining the efficiency of a smaller model?
Methodology: Simulating Capacity
SAS introduces a "hallucination" layer that expands the effective capacity of the attention mechanism without physically instantiating massive weight matrices.
Head and Feature Simulation
SAS utilizes lightweight non-linear mappings—specifically 1D convolutions or 2-layer MLPs with ReLU activations—to project standard Query (Q), Key (K), and Value (V) tensors into a higher-dimensional space.
- Head Simulation: The model reshapes tensors to isolate the head dimension and applies a non-linear projection to expand the original $H$ heads into $\hat{H}$ simulated heads.
- Feature Simulation: A similar expansion is applied to the feature dimensions of Q and K. Notably, the Value (V) tensor's feature dimension remains unchanged to prevent the subsequent Feed-Forward Network (FFN) from ballooning in size.
Parameter-Efficient Attention Aggregation (PEAA)
To manage the output of the numerous simulated heads, SAS employs Parameter-Efficient Attention Aggregation (PEAA). Instead of the standard concatenation and large linear projection, PEAA averages attention features over groups of heads before the final projection, keeping the parameter cost strictly controlled.
Experimental Results
We evaluated SAS across several large-scale datasets, including Arxiv, Books3, and FineWeb-Edu, comparing it against MHA, MQA, GQA, and other recent methods like Multi-Head Latent Attention (MLA).
Superior Perplexity and Data Efficiency
SAS consistently achieved lower validation perplexity than all baselines across various model sizes (125M to 10.6B parameters). A standout result was observed on the Books3 dataset, where SAS reached the same perplexity at 30,000 steps that standard MHA required 50,000 steps to achieve—representing a roughly 40% improvement in training data efficiency.
Downstream Performance
In zero-shot and two-shot evaluations on benchmarks like ARC, HellaSwag, and PIQA, a 1.5B parameter SAS model trained on 10B tokens achieved an average accuracy of 55.69%, significantly outperforming the MHA baseline (52.86%) and the TPA method (53.86%).
Discussion and Limitations
The primary advantage of SAS is its extreme parameter efficiency. By using non-linear "cheat codes," the model dynamically generates a richer representation space for negligible parameter cost. However, this efficiency does not currently translate to raw compute speed. The additional non-linear mappings and higher-dimensional attention computations increase FLOPs and slow down wall-clock training time. Future work will focus on optimizing CUDA kernels to bridge this gap between parameter efficiency and computational throughput.
Summary updated