Conic Certification of Transformer Attention
Not on the map. Why?
Abstract (arXiv)
Attention is the computational core of large language models, yet the verifiers that bound how far an attention head's output can move under input perturbations give no guarantee on how loose their bounds are. A weak certificate therefore cannot be told apart from a fragile model. We develop a conic programming theory of attention certification that supplies this guarantee. We prove that the difficulty lies not in the softmax but in the bilinear interaction of a varying query with the keys. This interaction makes certification NP-hard over boxes and inapproximable once the attention logits can move by a constant amount. A fixed query or listed token substitutions, by contrast, make the exact worst case efficiently computable. An exponential cone moment relaxation then certifies a head with an error bounded quadratically in the perturbation radius by computable quantities, an order that cannot be improved. We also show that relaxations that treat a network one operation at a time, linear bound propagation among them, pay on second-order terms a sum of per-operation maxima instead of one coupled maximum. Computational results on GPT-2 indicate that the theory carries over to a trained model. Against exact worst cases with the query fixed, the certificate attains the predicted second-order accuracy. It is tighter than linear bound propagation on every head, and the looseness of bound propagation tracks the predicted per-operation excess.
Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 5 of its 57 references that are in the map. Submitted 31 Oct 2026.
Builds on
5 of 57 references.
References · 5
- 2016Layer Normalizationcited by 6,002
- 2016Gaussian Error Linear Units (GELUs)cited by 3,745
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,374
- 2024Clarabel: An interior-point solver for conic programs with quadratic objectivescited by 57
- 2026Vertex-Softmax: Tight Transformer Verification via Exact Softmax Optimizationcited by 3
Built on by
Not cited yet.