Trackformers: in search of transformer-based particle tracking for the high-luminosity LHC era

S. Caron, Nadezhda Dobreva, Antonio Ferrer-Sánchez, José D. Martín‐Guerrero, Uraz Odyurt, Roberto Ruiz de Austri, Z. Wolffs, Yue Zhao

Abstract

High-Energy Physics experiments are facing a multi-fold data increase with every new iteration. This is certainly the case for the upcoming High-Luminosity LHC upgrade. Such increased data processing requirements forces revisions to almost every step of the data processing pipeline. One such step in need of an overhaul is the task of particle track reconstruction, a.k.a., tracking. A Machine Learning-assisted solution is expected to provide significant improvements, since the most time-consuming step in tracking is the assignment of hits to particles or track candidates. This is the topic of this paper. We take inspiration from large language models. As such, we consider two approaches: the prediction of the next word in a sentence (next hit point in a track), as well as the one-shot prediction of all hits within an event. In an extensive design effort, we have experimented with three models based on the Transformer architecture and one model based on the U-Net architecture, performing track association predictions for collision event hit points. In our evaluation, we consider a spectrum of simple to complex representations of the problem, eliminating designs with lower metrics early on. We report extensive results, covering both prediction accuracy (score) and computational performance. We have made use of the REDVID simulation framework, as well as reductions applied to the TrackML data set, to compose five data sets from simple to complex, for our experiments. The results highlight distinct advantages among different designs in terms of prediction accuracy and computational performance, demonstrating the efficiency of our methodology. Most importantly, the results show the viability of a one-shot encoder-classifier based Transformer solution as a practical approach for the task of tracking.

The Challenge of Particle Tracking at the HL-LHC

When protons collide at the Large Hadron Collider (LHC), they generate a dense spray of subatomic particles. These particles traverse multiple layers of specialized sensors, leaving behind "hits"—discrete data points representing spatial coordinates. The objective of "tracking" is to correctly associate these hits to reconstruct the trajectory of each individual particle.

With the upcoming High-Luminosity LHC (HL-LHC) upgrade, the number of simultaneous collisions (pile-up) will increase dramatically. Traditional tracking algorithms, such as the Kalman Filter, often exhibit quadratic ($O(n^2)$) computational scaling as hit density grows. This impending "computing crisis" necessitates the development of new, highly parallelizable algorithms that can scale efficiently with massive data rates.

Schematic representation of the detector layers and coordinate system used in the tracking experiments.

Methodology: From Sequential to One-Shot Architectures

This research explores the application of Transformer architectures—the foundation of modern Large Language Models (LLMs)—to the tracking problem. The authors evaluated four distinct deep-learning approaches:

  1. Encoder-Decoder (EncDec): An autoregressive model that treats tracking as a sequence prediction task, analogous to "predicting the next word in a sentence."
  2. Encoder-Classifier (EncCla): A "one-shot" approach where the model processes all hits in an event simultaneously and classifies each into a "track bin" representing discretized track parameters.
  3. Encoder-Regressor (EncReg): A one-shot model that predicts continuous numerical values for track parameters for every hit. Hits are subsequently grouped using the HDBSCAN clustering algorithm.
  4. U-Net: A computer vision architecture adapted to treat the 3D detector volume as a sparse image for track segmentation.

To manage the memory-intensive nature of processing thousands of hits, the Transformer models integrated FlashAttention and Fixed-Query Attention mechanisms.

Experimental Setup and Datasets

The models were benchmarked across five datasets of increasing complexity to rigorously test their limits:

  • REDVID: A custom simulation framework developed by the authors to generate controlled linear and helical tracks.
  • TrackML: The industry-standard benchmark for particle tracking. The researchers utilized reduced versions of TrackML, scaling from 10–50 tracks to 200–500 tracks per event.

Key Insights

  • The Superiority of One-Shot Models: While autoregressive models (EncDec) are conceptually intuitive, their sequential nature is too slow for real-time applications. One-shot models (EncCla and EncReg) provide the throughput necessary for high-luminosity environments.
  • Implicit Positional Information: Unlike Natural Language Processing, where positional encodings are required to provide context for word order, particle hits are defined by their 3D coordinates $(x, y, z)$. The authors found that these coordinates serve as inherent features, making traditional positional encodings redundant.
  • Probabilistic Confidence: The EncCla model provides a full posterior probability distribution for hit assignments. This allows physicists to quantify the model's confidence, aiding in the rejection of "fake" tracks or ambiguous data points.

Results and Performance

  • Accuracy: The EncCla and EncReg models emerged as the top performers, achieving 93–97% FitAccuracy on simpler datasets and maintaining robust performance on complex TrackML data.
  • Computational Efficiency: One-shot models demonstrated sub-quadratic scaling. For events containing 10,000 hits, inference times were clocked at 3–6 milliseconds, a significant improvement over traditional pipelines that can take seconds per event.
  • U-Net Performance: While effective for standard image tasks, the U-Net struggled with the high-dimensional, sparse nature of the tracking data as complexity increased, eventually underperforming relative to the Transformer-based models.

Conclusion and Future Work

The "Trackformers" study demonstrates that one-shot Transformer-based solutions, particularly the Encoder-Classifier, are viable and efficient for hit assignment in particle tracking. Future research will focus on developing hybrid models that combine regression and classification strengths, integrating these models into "online" trigger systems for microsecond-level decision-making, and incorporating physics-informed loss functions to ensure reconstructed trajectories adhere to the laws of electromagnetism.

Summary updated

BibTeX
@article{caron2025trackformers,
  author = {S. Caron and Nadezhda Dobreva and Antonio Ferrer-Sánchez and José D. Martín‐Guerrero and Uraz Odyurt and Roberto Ruiz de Austri and Z. Wolffs and Yue Zhao},
  title = {{Trackformers: in search of transformer-based particle tracking for the high-luminosity LHC era}},
  journal = {The European Physical Journal C},
  year = {2025},
  doi = {10.1140/epjc/s10052-025-14156-3},
}
Figure