Skip to content
AI Learning Ground Start learning

Research ·

Attention at Absolute Zero

A Hugging Face paper introduces a 'cold' higher-order attention layer that reads witnesses at zero temperature and trains from answers alone, showing exact generalization at sizes far beyond training across retrieval, CLRS-30, and reasoning benchmarks.

Attention at Absolute Zero
Image: Hugging Face

A new paper on Hugging Face, 'Attention at Absolute Zero', presents a higher-order attention layer whose state lives on pairs of items. For a pair (a, b), each third item k acts as a witness judged through its legs (a, k) and (k, b). The layer reads witnesses at zero temperature, keeping the best one and the number tied with it, passes on only bits comparing such counts, rebuilds its pair state from the input and these bits every loop, and is trained from answers alone without hints.

The design targets three failure modes of soft attention at scale: dispersed weight, unresolved gaps between learned scores, and a drifting soft state. Results are strong on length generalization: in maximum retrieval it is right on at least 99.95% of sets at 16,384 items, 1,000 times the training size, on all ten seeds, while a version trained with a soft count falls to 42% at 4,096 items. On CLRS-30 without hints, a general form of the layer beats the best published model, which uses hints on some tasks, and a shared block averages 97.20% at 64 items.

It also solves 2-SAT and two-colouring exactly at 500 variables from yes-or-no answers, chains family relations beside a frozen 7B model at 1,000 statements after training on 16 (the model alone falls to 44%), and lifts an open 7B model on CLUTRR from 33% to 65% with a small read-in trained and no hand-written rules. For builders, the layer offers a way to get provable, size-robust reasoning out of small modules bolted onto frozen models; code, a browser demo, and models are public.

Theory predicts and finite checks confirm limits: every trained block that learned is proven correct at every size on acyclic contexts, but it does not solve parity equations, matching what the theory predicts.

References

Read the full story at Hugging Face ↗Like, save or discuss on Buzz

#research