Equixly’s BMVC 2026 paper replaces softmax attention with a centrality computation and makes a Vision Transformer 13× faster at high resolution. Here we take it from images to API security: inside Ettin-1B, a 1-billion-parameter language model already built for speed, it cuts the cost of long inputs further.
From a vision paper to API security #
Equixly trains its own models for its AI Hacker: more than 10 of them, each built for a single security decision [3]. Owning the models means owning the methods behind them, and having that work judged where the field judges it: in peer review.
Our paper Self-Attention And Beyond the Infinite [1] appears at BMVC 2026, the 37th British Machine Vision Conference (Lancaster, November 23–26), which accepted 406 of this year’s 1,448 submissions [2]. Equixly wrote it with Hazem Abdelkawy of Toyota Motor Europe, Nilli Lavie of University College London and MindVisionLabs, and Luke Palmer of GlimpseML. It introduces Infinite Self-Attention (InfSA), a new form of attention with a linear-time variant, and tests it where attention is most expensive, high-resolution vision, against seven established attention mechanisms and 20 published backbones on public benchmarks.
Nothing in the mechanism is specific to images. Security models meet the same cost in another form: the inputs they read, API specifications and the requests and responses that exercise them, are long, and attention is what makes long inputs expensive. This post summarizes the paper and reports what happened when we put InfSA into a language model that works on API security. The model is Ettin-1B, an open encoder already built for speed, and we tested the result the way we test every model we ship.
Paper: arXiv:2603.00175 · Project page: github.com/equixly/infinite-self-attention · Conference: bmvc2026.bmva.org
Attention as a graph #
A Transformer layer decides what each token should look at by comparing it with every other token, normalizing the scores with a softmax, and averaging. Two costs follow. The first is arithmetic: the comparison is quadratic in the number of tokens, and a 9216 × 9216 image cut into 16-pixel patches is 331,776 tokens. The second is structural: softmax attention is a one-hop operation. Token i looks at token j and stops there; whatever j depends on reaches i only implicitly, in a later layer.
Graph theory has a standard answer to the second problem. The importance of a node in a weighted graph is not how many neighbors it has but how many paths run through it. Katz centrality [6] sums the walks of every length with a geometric discount, and the sum has a closed form. The same idea, applied to features instead of tokens, is Infinite Feature Selection [4], [5], earlier work by Giorgio Roffo, the paper’s first author. InfSA applies it to the attention matrix A:
where Aᵗ collects the walks of length t and γ < 1 discounts each hop. A is built with a ReLU instead of a softmax and normalized by its Frobenius norm, which keeps its spectral radius at most 1, so the series converges for every γ < 1. When, in addition, every row of γA sums to less than 1, the kernel has an exact probabilistic reading: it is the fundamental matrix of an absorbing Markov chain, and a token’s score is the expected number of visits a random walk pays it before stopping. A token matters when many long, likely walks pass through it, not when many tokens happen to look at it directly. In the paper’s construction, depth supplies the powers: layer l contributes the walks of length l, and the stack is the series truncated at its depth.
Figure 1. One ImageNet image, three attention mechanisms. Softmax (top) spreads across the background; InfSA (middle) and Linear-InfSA (bottom) rank tokens by centrality and land on the object.
The full kernel still needs the N × N matrix. Linear-InfSA removes it. As walks grow longer, the kernel is dominated by its principal eigenvector, so Linear-InfSA estimates that vector in one closed-form, linear-time step: a single central query, scored against every key, gives each token a weight, and each head pools the values once under those weights. On trained models the estimate reaches a cosine similarity of 0.985 with the exact eigenvector [1]. Cost and memory grow linearly with the number of tokens. The working assumption is that a layer does not need the full quadratic operator: what it takes from it is a centrality, and a centrality costs O(N).
What the paper shows #
The main experiment is deliberately narrow, so that only the attention changes: one 4-layer Vision Transformer, one DeiT-style recipe on public data (ImageNet-1K at 224², 300 epochs, no external data, no distillation), and nine attention mechanisms in the same backbone, all timed on the same GPU. The softmax control and the InfSA models are trained under that one recipe. Accuracy is also compared with 20 published backbones on the same public benchmarks, including ImageNet-V2, a re-collected test set that is harder than the original [7].
Table 1. Matched 4-layer models (from the paper’s Table 1). IN-1K and IN-V2: top-1 (%) on ImageNet-1K and ImageNet-V2. img/s and J/img: throughput and energy per image at 1024² inference on one A100 40 GB, batch 1, FP16. Max res.: the highest resolution that completes. Linear-InfSA: mean of three seeds; the others: one run. The subquadratic baseline was timed, not trained.
Under the same recipe, Linear-InfSA reaches 84.7% top-1 against the softmax control’s 81.5%: a 3.2-point gain from the attention mechanism alone. The full variant reaches 85.1% with the standard 16 heads and exactly the control’s 57.7M parameters, so the gain is not a matter of head count or model size. On ImageNet-V2 every InfSA model is above every published backbone in the comparison (up to 79.8% against 76.8%), and the 4-layer models come within 0.3–0.4 points of their 24-layer versions on ImageNet-1K.
Figure 2. Top-1 accuracy against parameter count on ImageNet-1K (left) and ImageNet-V2 (right), for 20 published backbones and the four InfSA models (stars). The hollow square is the softmax control trained with the same recipe. The 4-layer InfSA models, at 53–58M parameters, sit level with backbones of 85–95M on ImageNet-1K and above all of them on ImageNet-V2.
At 1024², Linear-InfSA runs at 231 images per second and 0.87 joules per image: 13× the throughput of the softmax control at a thirteenth of the energy, and 1.2–2.7× faster than every subquadratic alternative. It is the only one of the nine mechanisms that completes inference at 9216², about 332,000 tokens. Its attention also lands on the object: removing the patches it ranks highest degrades the prediction far faster than for softmax (area over the MoRF curve [8], 76.0 against 42.6). The paper also states the price: at 224² the 64-head model costs 59 GFLOPs against 17.6 for ViT-B/16, and the linear term pays off as inputs grow. The gain is a gain on long inputs, and that is what the language experiment tests.
Figure 3. Inference throughput against energy per image for the nine mechanisms, 4-layer models at 1024². The subquadratic baselines form two tiers by their complexity, the two quadratic models (softmax ViT and full InfSA) sit at the bottom right, and Linear-InfSA is alone in the top-left corner.
From images to API security #
Ettin-1B [9] is an open 1-billion-parameter language model from the ModernBERT family [10]: an encoder with 28 layers that reads inputs of up to about 8,000 tokens. It is efficient by design. Eighteen of its layers look only at a sliding window of 128 tokens; only 10, one in three, attend to the whole input. Most of the quadratic cost has already been engineered away, which makes it a hard test: how much is left to gain when most of the model is local to begin with? InfSA targets exactly the 10 global layers.
Figure 4. Ettin-1B’s 28 layers. The 10 global layers (purple) are converted to Linear-InfSA; the 18 sliding-window layers are unchanged. The bars give the share of the whole forward pass spent in the 10 softmax steps that were replaced, from 3.4% at 1,024 tokens to 13.1% at 7,936. That share bounds the end-to-end gain.
The conversion replaces the attention of the 10 global layers with Linear-InfSA and leaves everything else in place. Each converted layer keeps its projections and rotary position encoding, masks padding, and adds one parameter, its path decay. We use a segmented variant with eight context vectors per head, so that a head can attend to different regions of a long document while the cost stays linear.
A pretrained model’s weights were learned around softmax, so the converted model is realigned by distillation [12] from the frozen original, with every weight trainable: 30% of each text’s tokens are masked, and the student learns to reproduce the teacher’s predictions, hidden states, and sentence vectors. The corpus holds 407,000 texts from 40 sources, among them vulnerability advisories, exploit write-ups, prompt-injection collections, and code, plus the training texts of our eight tasks; no held-out text is in it. The run takes 3.9 hours (25,500 steps, 49 million tokens). On held-out texts the converted model recovers 0.777 of the masked tokens against the original’s 0.786, on average over the 40 sources: higher on the task texts it trained on, up to 8 points lower on code and email. Two results shaped the design. Converting all 28 layers instead of 10 makes the model 1.8× faster at 8,000 tokens but drops that score to 0.26: the windowed layers carry local structure that global pooling cannot replace. And the 10 decays, all initialized at 0.95, settle at 0.99 in the first global layer and between 0.27 and 0.76 in the others: the model learns how far influence should travel at each depth.
On the original and on the converted model we then train the same classifiers: one LoRA adapter [11] per task (rank 32, α = 64, on the attention projections), in bf16, on inputs of at most 1,024 tokens, with the decays frozen. The eight tasks are private API security classification tasks: four binary, three multiclass with 9, 29, and 59 classes, and one pairwise ranking.
Results #
Speed
Both models are timed as they are served: the classifier with its adapter unmerged, bf16, PyTorch SDPA, one RTX 5090. A batch of N tokens holds one request of N tokens and the others between N/2 and N, with random token IDs: a serving-like benchmark, not customer traffic. Table 2 gives the mean and standard deviation over batch sizes 1, 25, 50, and 70; only 1 and 25 fit the card at 7,936 tokens.
Table 2. End-to-end speedup of the converted model over softmax Ettin-1B (ratio of batch times), the speedup of the attention step of the 10 converted layers alone, and the share of the softmax forward pass that step represented.
From 2,048 tokens up, the converted model is faster, and the gap grows with length: +3.8% at 2,048, +9.0% at 4,096, and +13.1% at 7,936, up to +18% for a batch of 25 requests (6,981 ms down to 5,904 ms). Inside the converted layers the change is far larger: the attention step is 1.8×, 3.9×, and 7.2× faster, and for that batch of 25, the 10 softmax steps took 1,220 ms where the 10 InfSA steps take 140 ms. Figure 5. Left: end-to-end speedup of the classifiers after conversion, by input length (mean and standard deviation over batch sizes). Right: the attention step of the 10 converted layers alone, as a multiple of the softmax step it replaced.
Why 7× in the attention step but 13% end to end? Because the 10 replaced steps are a small share of the work: 6.0% of the forward pass at 2,048 tokens and 13.1% on average at 7,936 (17.5% in the batch of 25). Removing a share s of the time can make a model at most 1/(1 − s) times as fast, +21% for that batch; we measured +18%. InfSA removed almost all the cost it could reach. The rest is the 18 windowed layers and the feed-forward blocks, which it does not touch, and the gain grows with input length because the share does. In the vision model every layer was global and attention dominated the cost, hence 13×. One measurement detail: PyTorch SDPA computes the windowed layers as full attention, so a dedicated window kernel would change the shares in both models.
Accuracy
Table 3. Scores on APIs held out of training, softmax Ettin-1B against the converted model, same adapter configuration, one seed per task, inputs of at most 1,024 tokens. Macro-F1, top-1 accuracy for the pairwise task; the mean is over the seven macro-F1 tasks. Speedup: end to end at 7,936 tokens, mean over batch sizes (Table 2); all eight classifiers run on the same converted encoder, so every task gets it.
The speed did not cost accuracy. Every task moves by less than 2.5 points; the mean macro-F1 moves from 0.820 to 0.827 and the pairwise task from 0.876 to 0.884. The largest move is on the hardest task (59 classes, 0.485 to 0.507). The converted model is as accurate as the original, and every task gains the same speedup, because all eight classifiers share the converted encoder.
Figure 6. Held-out scores of the softmax Ettin-1B classifiers and the converted model, all eight tasks and the mean of the seven macro-F1 tasks, with the difference under each pair.
The converted classifiers also went through the release checks of the models we ship: probabilities are calibrated per task, and every handwritten acceptance case of the platform passes.
How we measured #
- Vision. One recipe on public data for the softmax control and the InfSA models; all nine attention mechanisms timed in the same backbone on the same GPU; accuracy compared with 20 published backbones on the same public benchmarks, including the re-collected ImageNet-V2.
- Language. Every score is on APIs the models never saw in training. The held-out labels were audited row by row, and rows whose label was uncertain were removed rather than guessed. The distillation corpus holds training texts only. Both models share the splits and the adapter configuration.
- Speed. Timed as served, at every batch size that fits the card.
Next #
The speedup starts where long inputs live, so the next measurement is accuracy at those lengths, under the protocol above.
Meet us in Lancaster: Equixly is a Silver Sponsor of BMVC 2026 [2], where the paper is presented at Poster Session 6 on Wednesday, November 25, from 1:30 PM to 3:15 PM at Lancaster Town Hall.
Figure 7. The Silver Sponsors of BMVC 2026, from the conference website [2].
The BMVC paper’s coauthors #
Giorgio Roffo wrote the BMVC paper [1] with three coauthors from outside Equixly. The Ettin-1B work in this post is by the Equixly team listed as its authors.
Hazem Abdelkawy is a senior AI engineer at Toyota Motor Europe, working on driver monitoring, gaze, and affective computing, and an inventor on 18 Toyota patent families on driver attention, distraction, and emotion.
Nilli Lavie is a professor of psychology and brain sciences at University College London, where she leads the Attention and Cognitive Control group. She created the load theory of attention, is a Fellow of the British Academy, and is cofounder and CEO of MindVisionLabs.
Luke Palmer is the founder and director of GlimpseML, a London research lab in perception and multimodal AI. He holds a Ph.D. from UCL’s Institute of Cognitive Neuroscience and cofounded MindVisionLabs.
References #
[1] G. Roffo, H. Abdelkawy, N. Lavie, and L. Palmer, “Self-Attention And Beyond the Infinite: Towards Linear Transformers with Infinite Self-Attention,” in Proc. British Machine Vision Conference (BMVC), 2026, arXiv:2603.00175.
[2] The 37th British Machine Vision Conference (BMVC 2026), Lancaster, UK, November 23–26, 2026, https://bmvc2026.bmva.org/; accepted papers: https://bmvc2026.bmva.org/programme/accepted_papers/.
[3] Equixly, “Research,” https://equixly.com/research/. [4] G. Roffo, S. Melzi, and M. Cristani, “Infinite feature selection,” in Proc. IEEE Int. Conf. Computer Vision (ICCV), 2015, pp. 4202–4210.
[5] G. Roffo, S. Melzi, U. Castellani, A. Vinciarelli, and M. Cristani, “Infinite feature selection: A graph-based feature filtering approach,” IEEE Trans. Pattern Anal. Mach. Intell., vol. 43, no. 12, pp. 4396–4410, 2021.
[6] L. Katz, “A new status index derived from sociometric analysis,” Psychometrika, vol. 18, no. 1, pp. 39–43, 1953.
[7] B. Recht, R. Roelofs, L. Schmidt, and V. Shankar, “Do ImageNet classifiers generalize to ImageNet?,” in Proc. ICML, 2019, pp. 5389–5400.
[8] W. Samek, A. Binder, G. Montavon, S. Lapuschkin, and K.-R. Müller, “Evaluating the visualization of what a deep neural network has learned,” IEEE Trans. Neural Netw. Learn. Syst., vol. 28, no. 11, pp. 2660–2673, 2017.
[9] O. Weller, K. Ricci, M. Marone, A. Chaffin, D. Lawrie, and B. Van Durme, “Seq vs Seq: An open suite of paired encoders and decoders (Ettin),” in Proc. ICLR, 2026, arXiv:2507.11412.
[10] B. Warner et al., “Smarter, better, faster, longer: A modern bidirectional encoder for fast, memory efficient, and long context finetuning and inference (ModernBERT),” arXiv:2412.13663, 2024.
[11] E. J. Hu et al., “LoRA: Low-rank adaptation of large language models,” in *Proc. ICLR*, 2022, [arXiv:2106.09685](https://arxiv.org/abs/2106.09685).
[12] G. Hinton, O. Vinyals, and J. Dean, “Distilling the knowledge in a neural network,” [arXiv:1503.02531](https://arxiv.org/abs/1503.02531), 2015.