SAS: Simulated Attention Score

Chuanyang Zheng, Jiankai Sun, Yihang Gao, Yuehao Wang, Peihao Wang +10 more
7/10/2025
cs.CL

No confident code implementation found for this paper.

Abstract

The attention mechanism is a core component of the Transformer architecture. Various methods have been developed to compute attention scores, including multi-head attention (MHA), multi-query attention, group-query attention and so on. We further analyze the MHA and observe that its performance improves as the number of attention heads increases, provided the hidden size per head remains sufficiently large. Therefore, increasing both the head count and hidden size per head with minimal parameter overhead can lead to significant performance gains at a low cost. Motivated by this insight, we introduce Simulated Attention Score (SAS), which maintains a compact model size while simulating a larger number of attention heads and hidden feature dimension per head. This is achieved by projecting a low-dimensional head representation into a higher-dimensional space, effectively increasing attention capacity without increasing parameter count. Beyond the head representations, we further extend the simulation approach to feature dimension of the key and query embeddings, enhancing expressiveness by mimicking the behavior of a larger model while preserving the original model size. To control the parameter cost, we also propose Parameter-Efficient Attention Aggregation (PEAA). Comprehensive experiments on a variety of datasets and tasks demonstrate the effectiveness of the proposed SAS method, achieving significant improvements over different attention variants.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zheng2025sas,
  title  = {SAS: Simulated Attention Score},
  author = {Chuanyang Zheng and Jiankai Sun and Yihang Gao and Yuehao Wang and Peihao Wang and Jing Xiong and Liliang Ren and Hao Cheng and Janardhan Kulkarni and Yelong Shen and Atlas Wang and Mac Schwager and Anderson Schneider and Xiaodong Liu and Jianfeng Gao},
  year   = {2025},
  eprint = {2507.07694},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.07694v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.07694.svg)](https://codeofpaper.com/paper/2507.07694)

Discussion