Lune

ACL2026Top-tier venue

SSA: Improving Performance With a Better Scoring Function

Omar Naim, Swarnadeep Bhar, Jérôme Bolte, Nicholas Asher

2026Year

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 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.

Ask about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext 0b95331a-2042-4df1-a0f7-43142917080e

Builds on10

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines