NeurIPS 2026QuestionsPapersAreasAboutMarkdown

SOLA: A Structured Operator Library for Attention in Pretrained Vision Transformers

Enzo Tartaglione, Vito Paolo Pastore

NeurIPS page · OpenReview · Open on the map

Category: Interpretability & Model Adaptation › Transformer Attention Theory · Type: new method · Keywords: vision transformers, attention replacement, structured operators, computer vision, model analysis

Areas: Model Architectures & Sequence Modeling › Language Model Architectures › Attention Replacement and Stabilization

Summary

SOLA provides a structured operator library that replaces softmax attention in pretrained vision transformers with three closed-form operators while preserving predictions and residual streams.

Explained to a 5-year-old

The paper looks at how computer programs understand pictures. It finds that the way they pay attention can be replaced with simple rules. These rules are like small patterns that copy information or spread it out. Using these simpler rules still makes the program give correct answers. This helps make the programs easier to understand and maybe faster to run.

Explained to a 5-year-old, longer

The paper studies how computers see pictures using special models called vision transformers. Inside these models, each part looks at different parts of the picture using something called attention. The attention is usually a complicated calculation that is hard to understand. The researchers asked if they could replace this complicated calculation with simpler, predictable rules. They found three simple rules that can do the same job without changing the model's answers. One rule works like a small pattern that moves information around like a tiny brush. Another rule spreads the same information to every part of the picture at once. The third rule uses a special math trick that finds the most important parts of the attention. These rules are chosen automatically for each part of the model, so no extra training is needed. The researchers checked that using these rules still gives correct results on many picture tasks. They also showed that the same ideas work for other models that generate captions for pictures. This makes the models easier to study and could help developers build better picture-understanding software.

For a technical reader

The paper analyzes how the attention mechanism inside vision transformer models actually computes its outputs. It shows that for many heads, the attention can be approximated by simple, closed-form operations such as a 2D convolution, a broadcast row, or a low-rank SVD. These approximations are selected automatically using a per-head diagnostic that guarantees a bounded error, so no retraining is required. The approach extends to cross-attention heads in captioning models, where the attention is effectively rank-1.

Problem

Understanding what trained self-attention heads compute and finding a simple, closed-form replacement that preserves model behavior without additional training remains an open challenge.

Method

The approach analyzes each attention head, computes diagnostics to bound substitution error, and replaces the softmax with one of three structured operators: a fixed 2D convolution for shift heads, a per-image broadcast row for fixed-target heads, and a per-image rank-k SVD for near-global heads, optionally extending to all heads via a spectral threshold.

Contributions

The paper provides a systematic analysis of trained attention heads, proposes three closed-form operator substitutions that preserve model predictions, and introduces a rank-adaptive extension that covers all heads across multiple vision transformers, along with diagnostics for cross-attention heads.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction