English

SSA: Improving Performance With a Better Scoring Function

Computation and Language 2026-05-12 v4

Abstract

While transformer models exhibit strong in-context learning (ICL) abilities, they often fail to generalize under simple distribution shifts. We analyze these failures and identify Softmax, the scoring function in the attention mechanism, as a contributing factor. We propose \textbf{Scaled Signed Averaging (SSA)}, a novel attention scoring function that mitigates these failures. SSA significantly improves performance on our ICL tasks and outperforms transformer models with Softmax on several NLP benchmarks and linguistic probing tasks, in both decoder-only and encoder-only architectures.

Keywords

Cite

@article{arxiv.2508.14685,
  title  = {SSA: Improving Performance With a Better Scoring Function},
  author = {Omar Naim and Swarnadeep Bhar and Jérôme Bolte and Nicholas Asher},
  journal= {arXiv preprint arXiv:2508.14685},
  year   = {2026}
}

Comments

ACL 2026 Main Conference

R2 v1 2026-07-01T04:58:26.744Z