ResearchBy

Hyperbolic attention improves nested-pattern accuracy in a preprint

26 arXiv preprint, Eduardo Quiñelen Rojas, Miguel Contreras Torrejon and colleagues tested attention that scores pairs of probability distributions by their distance. On Dyck-2, a benchmark for nested patterns, their hyperbolic variant reached 88.4% accuracy on sequences longer than those seen in training, compared with 85.8% for dot-product attention under matched parameters and a fixed training budget. The authors saw a similar gain within the training length, so the experiment did not isolate an advantage in extrapolation. A related variant held up better on longer sequences of code and English prose, but not Spanish clinical text. Those language models performed near the level of a character bigram model.

Why it matters

The benchmark shows that changing the attention score can improve how a model handles nested patterns. In the authors’ CPU tests, the hyperbolic attention module took 2.3 to 2.8 times as long as the dot-product module.

Sources

Written by AIToolMaps from the source above and checked against it sentence by sentence.

Comments

No comments yet