IAFormer: Interaction-Aware Transformer network for collider data analysis
W. Esmail, A. Hammad, M. Nojiri
TL;DR
IAFormer tackles the challenge of efficiently leveraging pairwise particle interactions in collider data analysis. It introduces an interaction-aware Transformer with a dynamic sparse attention mechanism (differential attention) that replaces $Q$/$K$ with a trainable interaction matrix and selectively attends to the most informative constituents. The architecture achieves state-of-the-art or competitive performance on top tagging and quark–gluon tagging while using an order of magnitude fewer parameters and reduced FLOPs, with robust behavior across seeds. Interpretability analyses using attention maps and CKA demonstrate that IAFormer captures physically meaningful, layer-dependent representations, and the approach scales to larger JetClass benchmarks.
Abstract
In this paper, we introduce \texttt{IAFormer}, a novel Transformer-based architecture that efficiently integrates pairwise particle interactions through a dynamic sparse attention mechanism. \texttt{IAFormer} has two new mechanisms within the model. First, the attention matrix depends on predefined boost invariant pairwise quantities, reducing the network parameters significantly from the original particle transformer models. Second, \texttt{IAFormer} incorporates the sparse attention mechanism by utilizing the "differential attention", so that it can dynamically prioritize relevant particle tokens while reducing computational overhead associated with less informative ones. This approach significantly lowers the model complexity without compromising performance. Despite being computationally efficient by more than an order of magnitude than the Particle Transformer network, \texttt{IAFormer} achieves state-of-the-art performance in classification tasks on the top and quark-gluon datasets. Furthermore, we employ AI interpretability techniques, verifying that the model effectively captures physically meaningful information layer by layer through its sparse attention mechanism, building an efficient network output that is resistant to statistical fluctuations. \texttt{IAFormer} highlights the need for sparse attention in Transformer analysis to reduce the network size while improving its performance.
