betaFeedback

WorksPhysics and Astronomy

AlphaHits: Full-Event Tracking and Reconstruction Towards a Hit-Level Foundation Model

Abstract

We introduce AlphaHits, a Transformer-based approach towards hit-level foundation models for LHC physics, building on the TrackFormer and HiggsFormer architectures. AlphaHits operates directly on detector hits and demonstrates scalable full-event charged-particle reconstruction and multi-task event reconstruction and classification from low-level detector information. AlphaHits-TrackFormer reconstructs the full charged-particle content of complete TrackML events without imposing a transverse-momentum selection on the target tracks. It processes both pixel and strip hits in events containing up to 1.5×1051.5\times10^5 hits under HL-LHC-like pileup conditions and assigns hits to individual reconstructed trajectories across its kinematic range. This includes the challenging low-pTp_T population down to approximately 150 MeV150\,\mathrm{MeV} in TrackML samples. It achieves a TrackML score of 0.959 over all reconstructable tracks, representing, to our knowledge, the highest reported TrackML score for full-detector, inclusive charged-particle reconstruction. Building on the TrackFormer architecture, AlphaHits is pretrained on charged-particle tracking and fine-tuned for multi-task reconstruction and classification. From a shared hit-level representation, it predicts tracks, jets, jet flavour, and event-level observables. AlphaHits achieves an AUC of 0.944 for Higgs event classification, with performance comparable to a Particle Transformer (ParT) baseline using fully reconstructed inputs. It also achieves performance comparable to Delphes-based baselines for jet reconstruction, jet flavour classification, and missing transverse momentum regression. These results highlight the potential for scalable full-event tracking and multi-task learning directly from detector hits, representing a promising step towards transferable hit-level representations and general-purpose foundation models for LHC physics.

Introduction

Particle reconstruction at the Large Hadron Collider traditionally relies on a sequence of specialized algorithms that transform low-level detector measurements into tracks, vertices, jets, flavour-tagging information, and other reconstructed physics objects before event-level inference is performed. Modern machine-learning approaches have begun to replace individual components of this chain, but tracking studies commonly focus on a restricted subset of charged particles, often imposing transverse-momentum thresholds around pT∼1p_T \sim1 GeV. Such selections simplify the reconstruction problem, but exclude a large fraction of the charged-particle population: a cut at pT∼1p_T \sim1 GeV cuts more than 90 percent of the particles.

The question behind this work is whether a learned representation can instead be constructed from the full detector event, retaining information from the complete charged-particle population rather than restricting reconstruction to a high-pTp_T subset. AlphaHits-TrackFormer therefore processes the full pixel and strip hit cloud and attempts to reconstruct all reconstructable charged particles represented in the TrackML sample, without imposing a pTp_T threshold on the target tracks. This substantially increases the combinatorial difficulty of the tracking problem, particularly in the dense low-pTp_T regime, but also preserves information that would otherwise be discarded before higher-level event analysis.

We further ask whether such hit-level representations can support tasks beyond charged-particle tracking. AlphaHits extends this approach to multi-task event reconstruction and classification, exploring whether a common representation of low-level detector information can be reused across reconstruction and inference tasks. The combination of inclusive detector-level representation learning and transfer across physics objectives constitutes an important step towards a hit-level foundation model for collider physics. This direction aligns with the broader vision of Large Physics Models, which aims to develop general-purpose representations transferable across diverse tasks in high-energy physics [1].

Our earlier TrackFormer and HiggsFormer studies explored this idea from complementary directions: TrackFormer investigated Transformer-based assignment of inner-tracker hits to charged-particle trajectories [2], and “TrackFormers Part 2” introduced a sparse attention so that larger hit collections fit in memory [3]. HiggsFormer showed that a related architecture could be retrained to classify Higgs events directly from raw inner-tracker hits, bypassing explicit track and object reconstruction [4]. Trained on the raw inner-tracker hits of simulated ttˉH(H→bbˉ)t\bar{t}H (H \to b\bar{b}) and ttˉt\bar{t} events, it reached AUC of 0.855, comparable to what a Particle Transformer [5] on Delphes tracker objects reaches at the 40% bb-tagging working point (0.852).

This result suggested that models trained on low-level inputs can learn detector-hit representations which retain substantial information relevant not only to particle reconstruction but also to downstream physics inference.

In this work, we substantially extend both approaches within the AlphaHits framework, combining scalable full-event tracking with multi-task learning from shared hit-level representations.

  • AlphaHits-TrackFormer (our version 3 of the TrackFormer idea) reconstructs tracks in complete TrackML events [6] of up to 1.5×1051.5 \times10^5 hits. A learned Router sparsifies the attention, a global Tracker model predicts binned and continuous track parameters for every hit, a charge-aware preconditioner and a learned Gate select the ambiguous regions, and a local Refiner resolves them. Trained on 7 830 events, it reaches TrackML scores of 0.959 over all tracks (pT>0.15p_T > 0.15 GeV).

  • AlphaHits extends the earlier HiggsFormer approach, building on the AlphaHits-TrackFormer architecture. Its backbone is first trained on tracking alone. Nine heads are then trained jointly on the same hits and reconstruct tracks, jets with flavour tags, HTH_T, missing transverse momentum, leptons and the event class in one forward pass. On the ttˉH(H→bbˉ)t\bar{t}H (H \to b\bar{b}) vs ttˉt\bar{t} hard scatter task AlphaHits reaches an AUC of 0.932 from silicon hits alone and 0.944 with calorimeter towers as an additional input. On the same events, a Particle Transformer on Delphes objects reaches 0.877 with the tracker alone and 0.924 with tracker and calorimeter.

Taken together, these results point towards a common paradigm in which scalable sparse neural networks learn physically informative representations directly from detector measurements, while task-specific objectives, heads, or local refinement stages extract reconstruction- and analysis-level information. Track reconstruction, event reconstruction and Higgs classification provide complementary demonstrations of this approach and motivate the development of more general hit-level Foundation Models for collider physics.

Related Work

Foundation models in high-energy physics have predominantly relied on reconstructed, high-level physics objects, such as jets and leptons, or particle-level jet constituents, demonstrating promising transferability across downstream analysis tasks [7, 8, 9, 10, 11, 12, 13]. Recent advances have extended this paradigm towards lower-level detector representations, including calorimeter cells, clusters, and reconstructed tracks, highlighting the potential of unified foundation models for detector simulation and particle reconstruction [14]. Recent work on machine-learned particle-flow reconstruction has further demonstrated the potential of learning reusable representations from detector-level information, with applications to jet tagging, energy regression, and missing transverse momentum reconstruction [15].

Recent work has explored unified reconstruction directly from detector measurements in simulated electron–positron collisions at FCC-ee [16], with typical event sizes of a few thousand detector hits. In contrast, the HL-LHC presents substantially higher detector occupancies and pileup, requiring models capable of processing complete events with more than 10510^{5} hits. Scaling transferable hit-level representations to such conditions remains an important challenge.

Machine-learning approaches to charged-particle tracking have increasingly focused on graph-based and end-to-end formulations. The TrackML challenge provided a common benchmark for large-scale tracking algorithms [6], while subsequent work demonstrated strong performance with graph neural networks and related geometric deep-learning approaches [17, 18, 19]. Object-condensation methods provide an alternative formulation in which reconstruction is treated as learned object formation rather than explicit edge classification [20, 21]. EggNet uses graph attention with an evolving graph structure to reconstruct tracks directly from detector hits [22], with a subsequent study evaluating its physics and computing performance on the full TrackML dataset [23]. More recently, Transformer-based approaches have also been explored for charged-particle tracking, including TrackFormer-based models [2, 3], TrackSorter [24], and other Transformer formulations [25]. In contrast to approaches based on explicit hit graphs or sequential track construction, the method presented here combines sparse full-event parameter inference with a second learned local refinement stage to resolve residual ambiguities in track assignment.

HEPTv2 [26] reports a double-majority tracking efficiency of 98.6% with a 0.8% fake rate, but considers a substantially restricted reconstruction problem. It uses only pixel-detector hits and targets particles with pT>0.9p_{T} > 0.9 GeV, excluding approximately 90% of charged particles from the reconstruction targets. Hits from excluded particles remain in the input but are treated as background rather than reconstructed into separate tracks. In contrast, AlphaHits-TrackFormer processes the complete pixel and strip detector, reconstructing tracks down to pT>0.15p_{T} > 0.15 GeV in events containing up to 1.5×1051.5 \times10^{5} hits.

Scaling attention to detector events containing O(105)\mathcal{O}(10^{5}) hits requires avoiding dense all-to-all self-attention. Memory-efficient attention implementations such as FlashAttention-2 [27] reduce the overhead of attention computation, while FlexAttention [28] and structured sparse-attention methods make it possible to restrict communication to physically or algorithmically selected subsets of the event. Related work has also explored efficient point Transformers based on locality-sensitive hashing for high-energy-physics applications [29]. Our approach builds on the sparse-attention strategy introduced in TrackFormers Part 2 [3], while extending it to learned routing and to both reconstruction and event-classification tasks. The local track refiner is additionally related in spirit to permutation-invariant object representations and slot-based prediction [30, 31], although here the slots represent local charged-particle hypotheses rather than image objects.

At the event level, Transformer architectures have achieved strong performance for jet and particle-based classification [5, 32]. HiggsFormer extended this direction to classification directly from raw inner-tracker hits [4], demonstrating that substantial event-level physics information can be extracted without first reconstructing the conventional hierarchy of tracks, jets, and flavour-tagged objects. The present work further scales this detector-level approach and augments it with multiple auxiliary reconstruction objectives, allowing the same broad architecture to be studied across both low-level tracking and high-level Higgs classification.

Detector-Level Transformer Architectures

AlphaHits-TrackFormer and AlphaHits share a common architectural foundation, as illustrated in Figure 1. Both operate directly on collections of inner-tracker hits and use Transformer encoders to learn representations from detector-level information. A central development of the present work is the extension to substantially larger input multiplicities than in the original studies. In particular, AlphaHits-TrackFormer processes all pixel and strip detector hits in complete events containing up to 1.5×1051.5 \times10^{5} hits, while AlphaHits extends the learned hit-level representations to multi-task event reconstruction and classification.

Shared structure of AlphaHits-TrackFormer and AlphaHits

Figure 1. Shared structure of AlphaHits-TrackFormer and AlphaHits. Both models take the detector hits as a set of short feature vectors and pass all hits of an event through a sparse Transformer built on FlexAttention: 18 layers with a learned Router in AlphaHits-TrackFormer, 12 layers with dense attention and an optional (η,ϕ)(\eta,\phi) locality window or Router in AlphaHits. AlphaHits-TrackFormer (top) predicts for every hit a (pT,η,ϕ)(p_{\mathrm{T}},\eta,\phi) track token, a signal probability, the charge sign and continuous track parameters, and refines the candidate tracks with a charge-aware preconditioner, a learned Gate and a local Refiner with 32 track slots (middle). AlphaHits (bottom) keeps the tracking token and adds physics heads for jets with flavour, the event class, HTH_{\mathrm{T}}, ETmissE_{\mathrm{T}}^{\mathrm{miss}} and leptons. Its tracking output can optionally pass through the same local stage. AlphaHits-TrackFormer additionally uses detector identifiers and cluster-shape features per hit. AlphaHits can, depending on the setup, use calorimeter towers as additional inputs.

Common hit-level representation

Hits, used as an input, are represented as short vectors of their position and local geometry (Table 2 and Table 4). They are embedded by one linear layer into d=256d=256 vectors, and passed through a stack of Transformer encoder layers. The output of the encoder is one state per hit, and every head of both models reads these per-hit states. The resulting per-hit states form contextualized detector-level representations from which task-specific predictions are obtained. AlphaHits-TrackFormer adds learned embeddings of the detector volume, layer and module and eight cluster-shape features for every input hit. AlphaHits adds eight learnable register tokens that are prepended to the hit sequence and stripped before any head.

GroupFeatureDefinition
position (9)xx, yy, zzglobal cluster position / 1000
rrx2+y2\sqrt{x^2+y^2}
sin⁡φ\sin\varphi, cos⁡φ\cos\varphiφ=atan2⁡(y,x)\varphi= \operatorname{atan2}(y,x)
η\eta−ln⁡tan⁡(θ/2)-\ln\tan(\theta/2), θ=atan2⁡(r,z)\theta= \operatorname{atan2}(r,z)
uu, vv (conformal)1000x/r21000x/r^2, 1000y/r21000y/r^2
detector (3)volume, layer, modulelearned embeddings (32×832 \times8, 32×832 \times8, 4096×164096 \times16)
cluster (8)ncellsn_{\mathrm{cells}}, ∑q\sum qlog⁡(1+ncells)\log(1+n_{\mathrm{cells}}), log⁡(1+∑q)\log(1+\sum q)
max⁡q/∑q\max q/\sum qcharge fraction of the largest cell
w0w_0, w1w_1cluster extent along the two local directions
σ0\sigma_0, σ1\sigma_1, cov⁡01\operatorname{cov}_{01}spread and correlation along the two local directions

Table 2. Per-hit input features of AlphaHits-TrackFormer. The conformal coordinates make curved trajectories in the transverse plane approximately straight. Cluster features are computed from the digitised cells of the TrackML cells file.

FeatureDefinitionUnit / range
xx, yy, zzglobal cluster position / 1000m; ∣x∣,∣y∣≤1.03\lvert x\rvert,\lvert y\rvert\le1.03, $\lvert z\rvert \le 2.96
rrx2+y2\sqrt{x^2+y^2}m; 0.03≤r≤1.030.03 \le r \le1.03
cos⁡φ\cos\varphi, sin⁡φ\sin\varphiφ=atan2⁡(y,x)\varphi= \operatorname{atan2}(y,x)[−1,1][-1,1]
η\eta−ln⁡tan⁡(θ/2)-\ln\tan(\theta/2), θ=atan2⁡(r,z)\theta= \operatorname{atan2}(r,z)∣η∣≤4.6\lvert\eta\rvert\le4.6

Table 4. Per-hit input features of AlphaHits. Positions are the digitised cluster centroids in global coordinates, stored in mm and scaled to metres.

Physics-informed multi-task learning

A second common feature of the updated models is the use of auxiliary physics objectives. Rather than optimizing only the final task label, the hit representation is simultaneously trained to encode additional reconstruction-level or physics-level quantities.

AlphaHits-TrackFormer predicts, for every hit, a signal probability (i.e., whether the hit was produced by a particle with at least 3 hits in the event), the charge sign and eight continuous track parameters next to the discrete track token.

AlphaHits predicts, for every hit, its particle’s kinematics, production-vertex displacement and charge, and its member jet’s axis, pT and secondary-vertex flight distance, next to the track token. These auxiliary terms enter the loss with fixed weights outside the main objective (§ 5.4; Appendix § 11.§ 4 and Table 12 give every term).

QuantityLossWeight / roleResponsible forStage
event classBCEmainsignal vs. background2
HTH_{\mathrm{T}}, ETmissE_{\mathrm{T}}^{\mathrm{miss}}Hubermainhadronic and invisible energy scales2
nℓn_{\ell}, leading pTℓp_{\mathrm{T}}^{\ell}Huber + Hubermainleptonic decay content2
jet existenceweighted BCE, w∅=0.85w_{\varnothing} = 0.85main (jets), ×1\times1jet multiplicity, operating point2
jet (pTp_{\mathrm{T}}, η\eta, ϕ\phi)L1L_1 on matched pairsmain (jets), ×5\times5jet finding and energy2
jet flavour4-way CE on matched pairsmain (jets), ×1\times1bb-tagging2
track tokens (pTp_{\mathrm{T}}, η\eta, ϕ\phi)3× masked CE, averagedmain (tracking)per-hit track-parameter field1, 2
trackable bitBCE over real hitsmain (tracking), +1+1which hits belong to a track1, 2
particle (pTp_{\mathrm{T}}, η\eta, ϕ\phi, ρ\rho, vzv_z)masked Huberaux, +0.4+0.4continuous track parameters, displacement1, 2
particle charge3-way masked CEaux (inside hitpart)bending direction1, 2
member jet (Δη\Delta\eta, Δϕ\Delta\phi, pTp_{\mathrm{T}}, mm, LxyL_{xy})masked Huberaux, +0.3+0.3hit-to-jet association, SV reach2
hit multiplicityHuberaux, +0.2+0.2occupancy scaffold2

Table 12. Loss terms of AlphaHits, their weight or role in the combination of Eqs. (4)–(5), and the training stage in which they are active. “Main” terms enter the geometric mean without a weight; “aux” terms are added with the quoted weight. Within the jet loss the three parts are combined with weights (1, 5, 1) and a no-object weight w∅=0.85w_{\varnothing} = 0.85 on unmatched queries (events without truth jets use the unweighted existence BCE). All Huber terms use δ=1\delta= 1 on standardised targets; all cross-entropies are means over the valid entries of their mask.

Sparse full-event attention

Both models use Transformer attention over detector hits, with different attention strategies adapted to their event sizes. AlphaHits-TrackFormer processes 10510^5 hits per event and combines learned sparse attention with FlexAttention to make the computation tractable. In the AlphaHits-TrackFormer pipeline, a learned Router assigns each hit to two of 4×4×324 \times4 \times32 groups made in hit-radius, track-pseudorapidity and track-azimuth, with capacity of 768 hits per group. Attention then is only calculated for hit pairs from the same or neighboring groups, avoiding the dense attention costs.

In this work, AlphaHits operates on hard scatter only events without pile-up, which contain 2 454 hits on average and 6 245 hits at most. A geometric locality mask, similar to the one used in AlphaHits-TrackFormer, was tested and gave neither computational nor performance differences compared to dense attention due to the small number of hits per event.

From tracker to event model

As shown in Figure 1, AlphaHits-TrackFormer is a tracker, which predicts the track parameters over all hits, and a local stage chain which resolves ambiguities (§ 4). AlphaHits is the same tracker model with additional heads. Its backbone is first trained on tracking alone, and the nine heads are then trained jointly from the tracking pretrained backbone (§ 5). The comparative summary of the models is presented in Table 1.

AlphaHits-TrackFormerAlphaHits
EventsTrackML ttˉt\bar{t}, ⟨μ⟩=200\langle\mu\rangle= 200<br>1.1×1051.1 \times10^5 hits per event, up to 1.5×1051.5 \times10^5ttˉHt\bar{t}H / ttˉt\bar{t}, no pile-up<br>2 454 hits per event, up to 6 245
Hit features9 position, 3 detector, 8 cluster shape7 position
Encoder18 layers, d=256d = 256, 8 heads, FF 1 536<br>dropout 0.1, pre-norm, no registers12 layers, d=256d = 256, 8 heads, FF 1 024<br>dropout 0.2, post-norm, 8 registers
AttentionFlexAttention, learned routing<br>(4×4×324 \times4 \times32 groups, top-2, capacity 768)FlexAttention, dense with padding mask<br>optional (η,ϕ)(\eta, \phi) window or learned routing
Track token20×129×6420 \times129 \times64 bins32×128×6432 \times128 \times64 bins
Other per-hit outputssignal, charge, 8 track parameterssignal, particle, member jet
Event outputs–class, HTH_{\mathrm{T}}, ETmissE_{\mathrm{T}}^{\mathrm{miss}}, leptons, ≤12\le12 jets
Second stagepreconditioner, Gate, local Refiner (32 slots)nine heads, joint fine-tuning
ParametersTracker 19.4M; Refiner 3.2M; Gate 5 k12.45 M (9.74 M pre-trained)

Table 1. Comparative summary of AlphaHits-TrackFormer and AlphaHits. Inputs, heads and training are described in § 4 and § 5 and in the Appendix.

AlphaHits-TrackFormer

The AlphaHits-TrackFormer reconstruction pipeline is hierarchical. A learned Router first assigns detector hits to overlapping logical groups that determine the sparse attention structure. A full-event Tracker then predicts track parameters for every hit and maps the hits into a discrete track-parameter space. These predictions are converted into improved preliminary candidates by a lightweight charge-aware preconditioning step. Finally, a learned Gate identifies regions that require additional processing, and a compact local Refiner resolves the remaining track-identity ambiguities. The architecture of the model is shown in Figure 2. In this section we describe the training procedure and every step of the AlphaHits-TrackFormer reconstruction pipeline.

Figure 2. The AlphaHits-TrackFormer pipeline. Stage A, global: a per-hit MLP Router assigns every hit to two of 4×4×324 \times4 \times32 groups in (r,η,ϕ)(r, \eta, \phi), which define the block-sparse FlexAttention of the 18-layer Tracker (d=256d = 256, 8 heads, feed-forward 1536). For every hit the Tracker predicts a signal probability, the charge sign, eight track parameters and a (pT,η,ϕ)(p_{\mathrm{T}}, \eta, \phi) token of a 20×129×6420 \times129 \times64 codebook. Hits with the same token form a candidate track. Stage B, local: a deterministic charge-aware preconditioner splits and merges candidates, a learned Gate selects the candidate centres that need refinement, and the Refiner reassigns the hits of a 3×3×53 \times3 \times5-bin neighbourhood (3×3×73 \times3 \times7 in the central η\eta region) to 32 track slots. Proposals are ranked, overlaps removed, and every hit receives at most one track. Centres not selected by the Gate keep their preconditioned assignment.

Dataset and input

AlphaHits-TrackFormer is trained and evaluated on the TrackML dataset [33, 6]: ttˉt\bar{t} events at ⟨μ⟩=200\langle\mu\rangle= 200 in a silicon tracker of pixel, short-strip and long-strip layers. An event holds 1.1×1051.1 \times10^{5} hits per event on average and up to 1.5×1051.5 \times10^{5}. The dataset offers 8 700 events, of which 7 830 are used for training, 50 for validation and 820 for testing. The input to the Trackformer consists of 20 features per hit. Twelve of them relate to hit position and geometry. Eight cluster shape features are derived from the digitised cells of the hit and contain: number of cells, total charge, charge fraction of the largest cell, width in cells along each of the two local axes, charge-weighted standard deviation along each axis, and their covariance. Input features are described in Table 2.

Router: learned group assignment

The Router is a small MLP that processes hits independently. It receives the continuous hit features together with learned embeddings describing the detector volume, layer, and module, and predicts membership in a 4×4×324 \times4 \times32 grid in radial position, coarse pseudorapidity, and periodic azimuth. This corresponds to 512 logical routing groups. Each hit is assigned to its two most probable routes.

Routed hit copies are packed into groups of capacity 768, giving a maximum packed sequence length of 393 216 routed entries. This number describes the capacity of the routed representation rather than the number of physical detector hits, since each physical hit can appear in two routing groups. Primary routes are packed first, so that secondary copies are preferentially removed if a group overflows.

The subsequent attention calculation in the next pipeline stage is restricted to hits within the same routing group and selected neighboring groups. The Router therefore serves two purposes: it makes full-event attention computationally tractable and introduces a learned locality structure determining which detector regions can communicate directly.

Tracker: full-event track-parameter prediction

An 18-layer Transformer encoder is run over the routed event and predicts for every hit a discrete track token: independent pTp_{\mathrm{T}}, η\eta, and φ\varphi bins of a 20×129×6420 \times129 \times64 codebook (165 120 tokens in total). This binning strategy allows 100.000 of tokens and we found a clear outperformance compared to VQ-VAE based approaches, see also Appendix § 10.§ 2. Additionally, it outputs a signal probability (hit belonging to a particle with ≥3\ge3 hits), the charge sign and 8 continuous parameters: (log⁡pT\log p_{\mathrm{T}}, η\eta, sin⁡φ\sin\varphi, cos⁡φ\cos\varphi, z0z_0, d0d_0, zPOCAz_{\mathrm{POCA}}, q/pTq/p_{\mathrm{T}}). Hits with the same (pTp_{\mathrm{T}}, η\eta, φ\varphi) token form a candidate track. The token separates global localisation from exact identity. Hits originating from the same charged particle are expected to populate the same or nearby regions of the track-parameter codebook. Small per-hit classification differences can nevertheless fragment one physical trajectory across neighboring candidate tokens, while multiple physical tracks can occasionally be assigned to the same token. These residual ambiguities motivate the subsequent local reconstruction stages.

Charge-aware candidate preconditioning

A deterministic step splits candidate groups whose hits carry confident predictions of both charge signs, and merges nearly empty candidates into a sign-compatible, better-populated neighbour. This operation is computationally inexpensive and improves the preliminary reconstruction before the learned Refiner is applied. Importantly, it is used as a preprocessing step rather than as a hard statement about track identity: the subsequent learned model retains access to the relevant Tracker and preconditioning information and can modify these assignments when necessary.

Learned gating of local refinement

Although local refinement substantially improves reconstruction quality, running the Refiner around every populated candidate is computationally unnecessary. We therefore introduce a lightweight learned Gate that predicts whether a candidate region requires local refinement.

The Gate is an MLP that uses inexpensive information already available from the Tracker and preconditioning stages, including candidate occupancies, neighboring-group structure, signal and charge information, and properties of the predicted track-parameter distributions. It is trained using the full Refiner as a teacher: candidate centres are labeled according to whether their Refiner proposals contribute to the final reconstructed hit assignment.

At inference time, only candidate regions passing the Gate are sent to the local Transformer. The gate threshold therefore provides a direct trade-off between reconstruction accuracy and computational cost. In the operating region studied here, a substantial fraction of local Refiner evaluations can be removed with only a very small reduction in the final TrackML score.

Refiner: local track-identity reconstruction

The remaining combinatorial ambiguities are resolved by a compact local Transformer. For each selected candidate centre, the Refiner collects hits from a neighborhood in predicted (pTp_{\mathrm{T}}, η\eta, ϕ\phi) space. The standard neighborhood spans 3×3×53 \times3 \times5 bins in pTp_{\mathrm{T}}, η\eta, and ϕ\phi. In the central pseudorapidity region, where the global reconstruction is more challenging, the azimuthal context is widened to give a 3×3×73 \times3 \times7 neighborhood.

Rather than assigning hits directly to globally labelled candidate classes, the Refiner assigns the hits from one neighborhood to a fixed number of local track slots. The slots are not predefined, and the model decides which of them to use for the tracks present in each neighborhood, so some slots can represent tracks while others remain unused. The Refiner can therefore perform two complementary operations: merge neighboring Tracker fragments when they originate from the same physical trajectory, or split a coarse Tracker candidate when several physical trajectories have been assigned to the same global token.

The Refiner is trained using the global Tracker output together with information from the preconditioning stage. During training, Hungarian matching is used to associate the track slots with truth particles in a minimum-cost one-to-one mapping. The objective of the Refiner includes hit-to-slot assignment, slot-existence and track-parameter terms, together with track-weight-aware supervision and a soft track-level purity and coverage objective. In this way, the local model is trained specifically to correct the residual failures of the global reconstruction.

In the final output of the Refiner, neighborhoods can overlap and one hit can appear in proposals of several candidate tracks. Therefore, in one last post-processing step, proposals are ranked and pruned by non-maximum suppression, and every hit is assigned to at most one track.

Results

Table 3 shows the performance of the same 18-layer Tracker, and each stage of the AlphaHits-TrackFormer pipeline on the 820 test events. The Tracker alone reaches 0.844 over all particles and 0.912 for pT>0.9p_{\mathrm{T}} > 0.9 GeV. The full pipeline reaches 0.959 and 0.981. The gain is local: the Tracker’s token is exactly right for 82–87% of the hits per axis but within one bin for 93–98% (Table 3, lower block), so the Refiner mostly has to merge neighbours.

StageallpT>0.9p_{\mathrm{T}} > 0.9∣η∣<1|\eta| < 11≤∣η∣<21 \leq|\eta| < 22≤∣η∣<32 \leq|\eta| < 3∣η∣≥3|\eta| \geq3centres refinedtime [s]
Tracker0.8440.912––––0%0.45
+ preconditioner0.8800.9340.9230.9270.9550.9350%0.47
+ Refiner, no Gate0.9590.9810.9730.9750.9920.989100%4.60
+ Refiner, Gate 0.300.9590.9800.9720.9740.9910.98956%2.98
Tracker alone, per hitpTp_{\mathrm{T}}η\etaϕ\phi
token bin exact82.6%84.3%87.3%
token bin within ±1\pm197.7%94.2%93.3%
charge sign97.1%
signal (trackable) hit95.2%

Table 3. AlphaHits-TrackFormer with the 18-layer Tracker, stage by stage. Upper block: TrackML score on the 820 test events, over all particles, for pT>0.9p_{\mathrm{T}} > 0.9 GeV and in slices of ∣η∣|\eta| (for pT>0.9p_{\mathrm{T}} > 0.9 GeV). The fraction of candidate centres sent to the Refiner and the mean time per event (Router and Tracker plus the local stage) are measured on 50 of the events on an NVIDIA H100, with an inference batch of 256 neighbourhoods. The scan over Gate thresholds is in Table 8. Lower block: per-hit accuracies of the Tracker alone on the same 820 events.

Figure 3. TrackML score of AlphaHits-TrackFormer (18-layer Tracker, preconditioner and Refiner, no Gate) on the 820 test events, per bin of true particle pTp_{\mathrm{T}} (left) and η\eta (right), for all particles and for particles with pT>0.9p_{\mathrm{T}} > 0.9 GeV. The last pTp_{\mathrm{T}} bin collects all particles above 50 GeV, and the outer η\eta bins all particles with ∣η∣>2.5|\eta| > 2.5.

A breakdown of the results of the best AlphaHits-TrackFormer model (18L Tracker + Refiner) for different η\eta and pTp_{\mathrm{T}} bins is shown in Figure 11 and Figure 10. These results highlight strong performance at lower pTp_{\mathrm{T}} values and across almost the full η\eta range. Above 10 GeV the score falls to about 0.93. Such particles are rare, about 6 of the 9,200 particles in an event, so the training sample holds few of them.

Figure 10. AlphaHits-TrackFormer TrackML score as a function of particle η\eta for Tracker (left) and Tracker+Refiner (right).

Figure 11. AlphaHits-TrackFormer TrackML score as a function of particle pTp_T for Tracker (left) and Tracker+Refiner (right).

The charge sign, which is not part of the token, is right for 97.1% of the hits, so the global representation carries the curvature sign. The signal probability separates hits of trackable particles from the rest with 95.2% accuracy.

AlphaHits

AlphaHits is a permutation-equivariant Transformer architecture operating directly on detector hits, building on the TrackFormer and HiggsFormer models. The first HiggsFormer was an event classifier over raw hit coordinates (x,y,z)(x,y,z) with a single ttˉHt\bar{t}H (H→bbˉH \to b\bar{b}) vs ttˉt\bar{t} head (plus an auxiliary HTH_T regression head for the ‘big’ model), trained on a 40k-event sample [4]. AlphaHits builds on the tracking backbone of § 4. It is pretrained on tracking tasks only (Stage 1), and fine-tuned with nine heads to predict tracks, jets with flavour, HTH_T, ETmissE^{\mathrm{miss}}_T, leptons and the event class in one forward pass (Stage 2). The architecture is visualised in Figure 4.

Figure 4. The AlphaHits model. Each hit enters with seven position features, is embedded by one linear layer into d=256d = 256, and passes with eight register tokens through a 12-layer encoder (post-norm, 8 heads, feed-forward 1024, dropout 0.2; dense attention with a padding mask, optionally sparse). Three readouts feed nine heads: max-pooled hit states for the event class, mean-pooled states for HTH_T, ETmissE^{\mathrm{miss}}_T, leptons and the hit count, a 12-query decoder for the jets with flavour, and per-hit MLPs for the tracking token, the hit’s particle and its member jet. Solid boxes are main tasks of the geometric-mean loss and dashed boxes auxiliary terms with fixed weights. The badges (numbers 1 and 2) give the training stage (1: tracking pre-training, 2: joint fine-tuning).

Simulation and dataset

We simulate 200 000 pppp events at s=14\sqrt{s} = 14 TeV, no pileup, half ttˉHt\bar{t}H with H→bbˉH \to b\bar{b} and half ttˉt\bar{t}. Events are generated with Pythia 8.311 inside ACTS 41.1 with a parton-level cut p^T>100\hat{p}_T > 100 GeV on the hard process, inclusive top and WW decays and no pile-up, and simulated with the ACTS Fatras fast simulation of the silicon-only GenericDetector (the TrackML layout in a 2 T field). Hits are digitised cluster centroids. The same generator record passes through Delphes 3.5.1 with an ATLAS-like card, which supplies the targets (GenJets $1,,E^{\mathrm{miss}}_T, secondary vertices, reconstructed leptons) and the two references: the full chain (calorimeters and tracks) and a tracker-only chain. For the calorimeter variant, the Delphes calorimeter towers of the same events are stored as a second input. Each ECal or HCal tower carries the seven position features of its cell centre on the calorimeter surface, its log energy, an ECal/HCal flag and its cell size in \etaandand\phi$ (11 features) of the same events are stored as a second input. Events are split per process with a fixed seed into 160 000 / 20 000 / 20 000 for training, validation and test. All the metrics are reported on the 20 000 test events, and every Delphes reference is evaluated on the exact same events. Table 9 summarises the sample.

ProcessesttˉHt\bar{t}H (H→bbˉH \to b\bar{b}) signal and ttˉt\bar{t} background, 100 000 events each; no pileup
GeneratorPythia 8.311 in ACTS 41.1, s=14\sqrt{s} = 14 TeV, inclusive top and WW decays
Parton-level cutp^T>100\hat{p}_{T} > 100 GeV on the hard process
DetectorACTS Fatras, silicon-only GenericDetector (TrackML layout), 2 T
Hitsdigitised cluster centroids; 2 615 (ttˉHt\bar{t}H), 2 290 (ttˉt\bar{t}) per event; at most 6 245
GenJets (pT>20p_{T} > 20 GeV)6.8 per event
Trackable particles (≥3\ge3 hits)193 per event, carrying 90 % of the hits
Towers (calorimeter variant)261 per event on average, at most 614
References and targetsDelphes 3.5.1, ATLAS-like card; full chain and tracker-only chain
Split per process80 000 / 10 000 / 10 000 training / validation / test

Table 9. The AlphaHits Dataset Samples.

Inputs

Each hit is the seven-dimensional vector: position in metres, transverse radius, azimuth as (cos⁡φ\cos\varphi, sin⁡φ\sin\varphi) and pseudorapidity. The model sees positions only: no detector identifiers, cluster shape, charge or timing. Events are zero-padded within a batch and the padding is masked. Full description of the inputs is presented in the Table 4.

Delphes calorimeter towers of the same events (261 per event on average, 11 features each) are used as an additional input for the AlphaHits model setup trained on hits and calorimeter towers.

Task heads

The nine heads of the AlphaHits model are listed in Table 5. Three encoder readouts feed the heads: max-pooled hit states for the class logit, mean-pooled states for the scalar heads (HTH_{\mathrm{T}}, ETmissE_{\mathrm{T}}^{\mathrm{miss}}, lepton count and leading-lepton pTp_{\mathrm{T}}, hit count), and the per-hit states for the tracking, hit-particle and hit-jet heads and for the 12-query jet decoder. The tracking head assigns every hit to a 32×128×6432 \times128 \times64 (pTp_{\mathrm{T}}, η\eta, ϕ\phi) codebook and predicts a signal bit. Hits with the same token form one track.

HeadReadoutOutputParamsStage
Event classevent, max-pool1 logit, ttˉHt\bar{t}H vs ttˉt\bar{t}2572
HTH_{\mathrm{T}}event, mean-pool∑jetspT\sum_{\mathrm{jets}} p_{\mathrm{T}}33 k2
ETmissE_{\mathrm{T}}^{\mathrm{miss}}event, mean-poolgenerator-level ETmissE_{\mathrm{T}}^{\mathrm{miss}}33 k2
Leptonsevent, mean-poolcount, leading-lepton pTp_{\mathrm{T}}33 k2
Hit count (aux)event, mean-poolnumber of hits33 k2
Jetsset, 12 queries, 3 layersexistence, (pTp_{\mathrm{T}}, η\eta, sin⁡ϕ\sin\phi, cos⁡ϕ\cos\phi), 4-class flavour2.51 M2
Trackingper hittoken bins 32+128+6432+128+64, signal bit124 k1, 2
Hit particle (aux)per hit(pTp_{\mathrm{T}}, η\eta, sin⁡ϕ\sin\phi, cos⁡ϕ\cos\phi, ρ\rho, vzv_z), 3-class charge134 k1, 2
Hit jet (aux)per hit(Δη\Delta\eta, Δϕ\Delta\phi) to the jet axis, jet pTp_{\mathrm{T}}, mass, SV LxyL_{xy}67 k2

Table 5. AlphaHits heads. Readout: max- or mean-pool over the hit states (event), learnable queries with cross-attention (set), or a token-wise MLP (per hit). Stage: 1 = tracker pre-training, 2 = joint fine-tuning. Auxiliary (aux) heads enter the loss with a fixed weight outside the main combiner. Regressions act on standardised targets; ϕ\phi is predicted as (sin⁡ϕ\sin\phi, cos⁡ϕ\cos\phi); the jet flavour classes are bb, cc, light and unmatched.

Two-stage training and loss

Each hit enters as seven features, (x,y,z,r,cos⁡ϕ,sin⁡ϕ,ηx,y,z,r,\cos\phi,\sin\phi,\eta), embedded by one linear layer into d=256d=256. Eight learnable register tokens are prepended, and the sequence passes through L=12L=12 Transformer encoder layers (8 heads of dimension 32, GELU feed-forward of width 1024, dropout 0.2). When run on both hits and calorimeter towers configuration, AlphaHits adds the Delphes calorimeter towers of the event: 261 per event on average, 11 features each through zero-initialised, gated cross-attention adapters after encoder layers 6 and 12, so that at step 0 the model is exactly the hits-only model.

Three readouts feed the heads of Table 5: max-pooled hit states for the class logit, mean-pooled states for the scalar heads, and per-hit states for the dense heads and the 12-query jet decoder. The tracking head assigns every hit to a factorised (pT,η,ϕ)(p_T, \eta, \phi) codebook of 32×128×64=262 14432 \times128 \times64 = 262\,144 tokens and predicts a trackable bit.

Stage 1 trains the backbone as a Tracker from scratch. At this stage only the tracking and hit-particle heads exist. Stage 2 adds the other seven heads with fresh weights and trains them jointly, warm-started from the Stage 1 checkpoint (Table 11). The Stage 2 loss is a geometric mean over the six main tasks plus fixed-weight auxiliary terms,

Stage 1: tracker pre-trainingStage 2: joint fine-tuning
Heads trainedtracking, hit particleall nine
LossLtrk+0.4LhitpartL_{\mathrm{trk}} + 0.4L_{\mathrm{hitpart}}geometric mean of six tasks + auxiliary terms
Initialisationrandomstage-1 checkpoint, fresh optimiser
Trainable parameters9.74 M12.45 M
Initial learning rate3×10−53 \times10^{-5}1.25×10−51.25 \times10^{-5}
Plateau reductions2 (epochs 375, 456)5 (epochs 156 to 462)
Final learning rate7.5×10−67.5 \times10^{-6}3.9×10−73.9 \times10^{-7}
Early-stopping monitorvalidation lossmedian of the last 5 validation losses
Epochs run500 of 500500 of 500
Selected checkpointepoch 500epoch 489
Wall time, 4× H10041 h (4.9 min per epoch)58 h (6.9 min per epoch)

Table 11. The two training stages of AlphaHits. Both use the 160 000-event training split, AdamW (weight decay 10−410^{-4}), batch 64 as 4 GPUs ×\times 16 events under distributed data parallelism, float16 mixed precision, seed 42, a reduce-on-plateau schedule (×0.5\times0.5, patience 20) and early stopping (patience 60, minimum improvement 10−410^{-4}) on the validation loss; the checkpoint is selected on validation. Stage 2 copies 407 of 496 tensors (9.74 M parameters) from the stage-1 checkpoint; the 89 head tensors (2.71 M) start fresh. The towers variant is stage 2 only, with the same recipe and stage-1 checkpoint plus the gated cross-attention adapters; its early stopping fired at epoch 466.

L(1)=Ltrk+0.4Lhitpart,(1)\mathcal{L}^{(1)} = L_{\mathrm{trk}} + 0.4L_{\mathrm{hitpart}}, \tag*{(1)}
L(2)=(LclsLHTLMETLlepLjetsLtrk)1/6+0.2Lnhits+0.4Lhitpart+0.3Lhitjet.(2)\mathcal{L}^{(2)} = \left(L_{\mathrm{cls}} L_{\mathrm{HT}} L_{\mathrm{MET}} L_{\mathrm{lep}} L_{\mathrm{jets}} L_{\mathrm{trk}}\right)^{1/6} + 0.2L_{\mathrm{nhits}} + 0.4L_{\mathrm{hitpart}} + 0.3L_{\mathrm{hitjet}}. \tag*{(2)}

The geometric mean is scale-free, so the main tasks need no weights and a task with a small loss receives the larger relative gradient. The auxiliary terms stay outside the product so that a near-zero scaffold loss cannot collapse it. Regressions are Huber losses on standardised targets, per-hit terms are masked means, jets are a set loss with Hungarian matching. Appendix § 11.§ 4 explains every term.

Results

Figure 5 and Table 6 give the reconstruction performance of AlphaHits with hits and hits+calorimeter towers as inputs, against the two Delphes chains and evaluated on the same events.

Figure 5. AlphaHits reconstruction on the 20k test events, hits only and hits + calorimeter towers, against the Delphes full chain (calorimeter + tracks) and tracker-only chain on the same events. (a) Jet-finding efficiency against truth-jet pTp_T (GenJets, anti-ktk_t R=0.6R = 0.6, pT>20p_T > 20 GeV; match ΔR<0.4\Delta R < 0.4); (b) relative pTp_T response of matched jets; (c) efficiency against fake rate while sweeping the existence threshold, with the operating point 0.85 marked and the Delphes chains as single points; (d, e) residuals of the HTH_T and ETmissE_T^{\mathrm{miss}} regressions with median absolute residual and inter-quartile range; (f) double-majority tracking efficiency against particle pTp_T: two one-shot multitask AlphaHits models with the equal-token decode (blue and purple), and AlphaHits Stage 1 backbone (trained on tracking alone) with the local Refiner.

AlphaHitsDelphes
hitshits + towerscalo + trackstracks
Jet-finding efficiency0.8300.8640.8670.617
Jet fake rate0.0200.0150.0230.009
Jet pTp_{\mathrm{T}} response, median / IQR+0.003 / 0.33+0.008 / 0.19−0.017 / 0.13−0.43 / 0.26
HTH_{\mathrm{T}} residual [GeV], median / IQR49.4 / 99.933.9 / 65.548.1 / 70.2332.5 / 192.5
ETmissE_{\mathrm{T}}^{\mathrm{miss}} residual [GeV], median / IQR19.9 / 41.713.8 / 26.915.3 / 29.136.2 / 66.3
Tracking score, equal-token decode0.8060.819––
εDM\varepsilon_{\mathrm{DM}} (pT>1p_{\mathrm{T}} > 1 GeV)0.8930.897––

Table 6. Reconstruction on the 20k test events: the numbers behind Figure 5. Models at existence threshold 0.85; jet response = (pTreco−pTtrue)/pTtrue(p_{\mathrm{T}}^{\mathrm{reco}} - p_{\mathrm{T}}^{\mathrm{true}})/p_{\mathrm{T}}^{\mathrm{true}} for matched jets; residuals are quoted as median absolute residual / inter-quartile range. Tracking: TrackML score with the equal-token decode (codebook ceiling 0.959) and per-particle double-majority efficiency for pT>1p_{\mathrm{T}} > 1 GeV.

From tracker hits alone, AlphaHits uses comparable detector information to the Delphes tracker-only reconstruction chain. AlphaHits finds 83.0 % of the GenJets at a 2.0 % fake rate (existence threshold 0.85), against 61.7 % at 0.9 % for the track jets of the tracker-only Delphes chain. The AlphaHits jet pTp_{\mathrm{T}} is unbiased (median response +0.003), whereas the track jets contain only charged particles and are 43 % too low. The event-level quantities follow the same pattern. The HTH_{\mathrm{T}} and ETmissE_{\mathrm{T}}^{\mathrm{miss}} that AlphaHits predicts from the hits differ from the true values by 49 and 20 GeV in the median. The tracker-only chain misses the neutral energy: its HTH_{\mathrm{T}} is 332 GeV too low in the median, and its ETmissE_{\mathrm{T}}^{\mathrm{miss}} is off by 36 GeV (Figure 5, Table 6).

With the calorimeter towers as an additional input, AlphaHits uses comparable detector information to the Delphes full chain of calorimeter and tracks. AlphaHits finds 86.4 % of the GenJets at a 1.5 % fake rate, against 86.7 % at 2.3 % for the full Delphes chain. Its jet pTp_{\mathrm{T}} is unbiased (median response +0.008, against Delphes’ −0.017) but less precise, with an inter-quartile range of 0.19 against 0.13. AlphaHits’ HTH_{\mathrm{T}} and ETmissE_{\mathrm{T}}^{\mathrm{miss}} differ from the true values by 34 and 14 GeV in the median, against 48 and 15 GeV for the full chain. The towers also improve the flavour rejection for AlphaHits (Figure 6) and slightly improve the tracking score.

Figure 6. bb-tagging with the jet decoder’s P(b)P(b) on the 20k test events: (left) light-jet rejection and (right) cc-jet rejection against bb-jet efficiency, for hits only and hits + calorimeter towers, with the Delphes calorimeter-jet and track-jet taggers at measured bb-efficiencies of 40–85 %. Delphes tags are truth-seeded, while the model infers flavour from the hits.

The one-shot model keeps the tracking head, but tracking is now one of nine tasks sharing the encoder. On the test events it reaches a TrackML score of 0.806 with the equal-token decode and a double-majority efficiency of 0.893 for pT>1p_{\mathrm{T}} > 1 GeV. The towers improve the tracking (0.819, 0.897). However, the fair measure of the backbone as a tracker is the Stage 1 model, the same network before the heads are added: trained on tracking alone it reaches 0.891 (efficiency 0.929), 0.927 with the validation-tuned decode and 0.959 (100% of the ceiling) with a local Refiner of the AlphaHits-TrackFormer type trained on its output (Table 13). Note that the AlphaHits backbone is smaller than the AlphaHits-TrackFormer Tracker (12 instead of 18 layers, 9.7 M instead of 19.4 M parameters) and is trained on a different sample with a different codebook, so the two tracking scores are not directly comparable. The depth dependence of Figure 9 suggests that a deeper backbone would also lead to a better tracking performance.

Figure 9. TrackML score of the full AlphaHits-TrackFormer pipeline scaling with model size of the Tracker. Results are shown both for the Tracker alone and after the preconditioning, gating and refinements are applied. The largest and best-performing model, the 18-layer AlphaHits-TrackFormer has just over 19 million parameters.

BackboneEqual-token decodeTuned decode+ local Refiner
Stage 1 alone (tracker pre-training)0.891 (93 %)0.927 (97 %)0.959 (100 %)
Stage 2 (joint fine-tuning; the quoted model)0.806 (84 %)0.894 (93 %)–
Joint training from scratch, no stage 10.446 (47 %)0.719 (75 %)–

Table 13. Tracking performance of AlphaHits on the 20 000 test events: TrackML score (weights wpTw_{p_T} worderw_{\mathrm{order}}, unit sum per event) for the stage-1 backbone alone, after the joint stage-2 fine-tuning, and for a model trained jointly from scratch without stage 1; with the plain decode (hits with equal tokens form a track) and a decode that merges neighbouring tokens and re-assigns hits with ambiguous token logits to a neighbouring track, its thresholds tuned on the validation split. The codebook ceiling, every hit given its truth token, is 0.9588; percentages are relative to it. The last column adds a local Refiner of the AlphaHits-TrackFormer type trained on the stage-1 output; it is an optional post-hoc stage, not part of the one-shot model.

Jet flavour classification

Figure 6 shows the bb-tagging performance of the jet decoder’s P(b)P(b) on the 20k test events: light-jet and cc-jet rejection against bb-jet efficiency, for hits only and for hits + calorimeter towers. The reference points are the Delphes calorimeter-jet and track-jet taggers at measured bb-efficiencies of 40, 60, 70, 77, 80 and 85 %. Delphes tags are truth-seeded: each jet is tagged with the card’s pTp_{\mathrm{T}}-dependent probability for its true flavour (Appendix § 11.§ 2), so the points are an idealised reference. Every jet is graded against the same truth: a reconstructed jet takes the flavour of the nearest GenJet within ΔR<0.4\Delta R < 0.4, and the light background is light quarks and gluons.

From hits alone, the model matches the Delphes track-jet reference from 77 % bb-efficiency on (light-jet rejection ratio 1.0, 1.0 and 1.3 at 77, 80 and 85 %; cc-jet 1.0, 1.1 and 1.3) and falls below it at tighter working points (0.68 and 0.88 at 70 %; 0.41 and 0.67 at 60 %). Against the calorimeter-jet reference it reaches 0.77–0.85 of the light-jet rejection and 0.94–1.14 of the cc-jet rejection from 77 % on. The towers raise every rejection by 10 to 35 %. From 77 % on, the towers model rejects more light and cc jets than the track-jet reference (1.2–1.5) and as many as the calorimeter-jet reference (0.9–1.0 light, 1.0–1.2 cc). In absolute terms, at 77 % bb-efficiency the hits-only model keeps one light jet in 38 and one cc jet in 5, from hit positions alone, with no intermediate separate track reconstruction or vertexing.

Higgs event classification

Figure 7 extends the learning-curve study of Ref. [4]. Using tracker hits alone, AlphaHits achieves an AUC of 0.932, outperforming the original HiggsFormer at the same training-set size. In comparison, ParT using Delphes track jets and track ETmissE^{miss}_{T} with an 80 % bb-tagging working point achieves an AUC of 0.877, while ParT using Delphes calorimeter jets, missing transverse momentum, and electrons reaches 0.924 with 160 000 training events. Including calorimeter towers as additional inputs increases the AlphaHits AUC to 0.944 on the same test events.

Figure 7. Test AUC against training-set size on the same 20k test events except the 2025 HiggsFormer. AlphaHits retrained with both stages on hits at 10k, 20k, 40k and 160k events, and with calorimeter towers at 160k. ParT on Delphes objects at measured bb-tagging efficiencies of 80, 60 and 40 %. Delphes tracks: track jets (anti-ktk_t, R=0.6R = 0.6, pT>20 GeVp_T > 20\,\mathrm{GeV}) with pTp_T, η\eta, ϕ\phi, EE and a binary bb-tag, and the track ETmissE_T^{miss}. Delphes tracks + calo (160k, 80 %): calorimeter jets with the same features and bb-tag, the calorimeter ETmissE_T^{miss}, and electrons, muons removed.

Discussion

The AlphaHits-TrackFormer results demonstrate that Transformer-based charged-particle tracking can scale to complete high-occupancy HL-LHC events, processing both pixel and strip detector hits without restricting reconstruction to high-pTp_T particles. The architecture combines two complementary stages: global sparse attention provides event-wide context and maps hits into a physically meaningful track-parameter representation, while local learned refinement resolves the combinatorial ambiguities required for track assembly. The strong dependence on network depth (see also Figure 9) observed in high-statistics training further highlights the importance of model capacity and sufficient training data, in contrast to earlier low-statistics studies where deeper models provided limited benefits.

AlphaHits extends this approach beyond tracking through tracking-based pretraining followed by joint multi-task reconstruction and classification. The results demonstrate that a shared hit-level representation can support track and jet reconstruction, jet flavour classification, event-level observable prediction, and Higgs event classification. In particular, AlphaHits achieves an AUC of 0.932 using tracker hits alone, to be compared with the 0.924 obtained with a conventional tracker-plus-calorimeter reconstruction chain using Particle Transformer. Adding calorimeter towers to the AlphaHits inputs increases the AUC to 0.944, re-demonstrating performance comparable to the full reconstruction baseline.

These developments represent steps towards a broader vision of hit-level foundation models for LHC physics. Rather than relying on independent algorithms for each stage of reconstruction, such models could learn reusable representations directly from detector measurements, supporting multiple reconstruction and analysis tasks within a common framework. Beyond the tasks studied here, these representations could potentially be adapted to vertex reconstruction, particle identification, anomaly detection, and searches for new physics. More broadly, the objective is to optimize the analysis chain end-to-end for specific physics goals, potentially surpassing the performance of conventional reconstruction pipelines and enabling sensitivity to signals that are currently difficult or impossible to reconstruct. Several limitations and opportunities remain. While AlphaHits-TrackFormer demonstrates full-event tracking at HL-LHC-like occupancies, the multi-task AlphaHits model is currently evaluated on hard-scatter events without pileup. Extending joint reconstruction and classification to complete high-pileup events remains an important next step. Furthermore, tracking-based pretraining provides an initial mechanism for learning reusable representations, but systematic studies of transfer learning, self-supervised pretraining, and generalization across physics processes and detector configurations are needed to establish broader foundation-model capabilities. Detailed ablations of the auxiliary objectives, together with systematic evaluations of computational efficiency and reconstruction performance across detector regions and particle kinematics, will further clarify the strengths and limitations of the approach. Moreover, the learning curves show that the present models remain strongly limited by training-data statistics, indicating substantial potential for further improvements through larger-scale training. Lastly, the focus of this work was the development of hit-level tracking and foundation models and their physics performance, so the optimisation of inference time latency is left for future efforts.

Conclusion

We have introduced AlphaHits, a Transformer-based approach towards hit-level foundation models for LHC physics, building on the TrackFormer and HiggsFormer architectures. AlphaHits-TrackFormer demonstrates scalable full-event charged-particle tracking, processing both pixel and strip detector hits in events containing up to 1.5×1051.5 \times10^{5} hits.

A central result of this work is that the reconstruction is performed inclusively over the full reconstructable charged-particle population represented in the TrackML sample, without imposing a transverse-momentum threshold on the target tracks. This includes the dense and challenging low-pTp_{T} regime, which constitutes the largest fraction of the charged-particle content of the event and substantially increases the combinatorial complexity of the reconstruction problem. More than 90% of the considered detector hits originate from particles with pT<1p_{T} < 1 GeV. Moreover, the TrackML simulation propagates charged particles only above pT=150p_{T} = 150 MeV; the physical charged-particle population extends to substantially lower momenta, although such particles may not necessarily produce sufficiently extended trajectories for conventional track reconstruction. Combining sparse full-event attention with learned local refinement, AlphaHits-TrackFormer achieves an inclusive TrackML score of 0.959 across this full population.

Building on the tracking architecture, AlphaHits extends hit-level learning to multi-task event reconstruction and classification through tracking-based pretraining and joint fine-tuning. From shared detector-level representations, it predicts tracks, jets, jet flavour, and event-level observables. For Higgs event classification, AlphaHits achieves an AUC of 0.932 using tracker hits alone and 0.944 when including calorimeter towers, showing promising performance compared to a conventional tracker-plus-calorimeter reconstruction chain (AUC of 0.924).

Together, these results establish scalable full-event tracking and multi-task learning as complementary steps towards general-purpose hit-level foundation models and Large Physics Models. With larger-scale training and further developments, such approaches could ultimately enable end-to-end optimization of physics analyses directly from detector measurements, potentially improving sensitivity beyond conventional reconstruction pipelines.

LLM assistance disclosure

This study builds on our previous implementations of TrackFormer and HiggsFormer. The new implementations were developed with the assistance of large language models, including GPT-5, GPT-6, and Claude Opus, primarily for code generation, debugging, and implementation support. The LLM-assisted code and intermediate results were reviewed and checked by the authors. Some figures included in this publication were generated with assistance from Claude. The scientific interpretation and conclusions of the manuscript were written and reviewed by the authors, with parts of the text subsequently improved using LLM-based editing. Parts of the Appendix were initially distilled from the implementation code using LLMs and were subsequently reviewed, corrected, and edited by the authors.

Acknowledgements

The author(s) gratefully acknowledge the computer resources at Artemisa, funded by the European Union ERDF and Comunitat Valenciana as well as the technical support provided by the Instituto de Física Corpuscular, IFIC (CSIC-UV). The work of R. RdA was supported by PID2023-148162NB-C22 from the Spanish Ministerio de Ciencia e Innovación and by the PROMETEO/2022/69 from the Spanish GVA. The work of J. Sohrabi was supported by the Generalitat Valenciana under the Santiago Grisolía programme (CIGRIS/2023/083). The author also acknowledges José David Martín Guerrero.

AlphaHits-TrackFormer

AlphaHits-TrackFormer Hyperparameters

All training of the AlphaHits-TrackFormer models was conducted on an NVIDIA H200 card, and the training for the best model took roughly 1 week.

Global stage

The Router is first pretrained for one epoch using only the supervised routing objective. The Router and Tracker are subsequently trained jointly for 50 epochs using the AdamW optimizer with an initial learning rate of 3×10−43 \times10^{-4}, weight decay of 1×10−41 \times10^{-4}, and cosine learning-rate annealing. The batch size is one complete event, including all detector hits.

Training follows a staged routing curriculum that gradually transitions from target-guided to fully learned routing. During the first three epochs of joint training, the target routing assignment is enforced as the primary route. During the following three epochs, target-guided routing is used with a probability of 0.5. For all subsequent epochs, the routing assignments are determined entirely by the learned Router. Each valid detector hit is represented in two routing groups throughout training.

The global stage is trained with a multi-task objective combining discrete track-parameter prediction, hit classification, continuous track-parameter regression, charge prediction, and routing supervision:

Ltotal=1.0Ltoken+0.5Lsignal+1.0Lreg+0.2Lcharge+0.5Lrouter+0.01Lbalance.L_{\mathrm{total}} = 1.0L_{\mathrm{token}} + 0.5L_{\mathrm{signal}} + 1.0L_{\mathrm{reg}} + 0.2L_{\mathrm{charge}} + 0.5L_{\mathrm{router}} + 0.01L_{\mathrm{balance}}.

The token loss,

Ltoken=13(LpT+Lη+Lϕ),L_{\mathrm{token}} = \frac{1}{3}\left(L_{p_T} + L_{\eta} + L_{\phi}\right),

supervises the three discrete track-parameter predictions. Instead of standard hard-label cross-entropy, we use neighbor-smoothed ordinal cross-entropy, in which a small fraction of the target probability is assigned to the immediately adjacent bins. The smoothing coefficients are 0.04, 0.06, and 0.08 for pTp_T, η\eta, and ϕ\phi, respectively. For ϕ\phi, the first and last bins are treated as neighbors because the azimuthal coordinate is periodic and the directions at −π-\pi and +π+\pi are identical. The pTp_T loss additionally uses class weighting to reduce the dominance of the highly populated low-pTp_T bins in the strongly non-uniform track-momentum spectrum.

The signal term LsignalL_{\mathrm{signal}} is a cross-entropy loss for the binary classification of hits as belonging to a reconstructable particle or to background. Similarly, LchargeL_{\mathrm{charge}} is a cross-entropy loss for predicting the sign of the particle charge for signal hits.

The continuous regression loss supervises the eight predicted quantities

(log⁡pT,η,sin⁡ϕ,cos⁡ϕ,vz,d0,zPOCA,q/pT).(\log p_T, \eta, \sin\phi, \cos\phi, v_z, d_0, z_{\mathrm{POCA}}, q/p_T).

Huber losses are used throughout. The first four quantities form the principal regression objective, while the remaining four quantities provide auxiliary track-parameter supervision:

Lreg=LHuber(log⁡pT,η,sin⁡ϕ,cos⁡ϕ)+0.20Lvz+0.15Ld0+0.20LzPOCA+0.15Lq/pT.L_{\mathrm{reg}} = L_{\mathrm{Huber}}(\log p_T, \eta, \sin\phi, \cos\phi) + 0.20L_{v_z} + 0.15L_{d_0} + 0.20L_{z_{\mathrm{POCA}}} + 0.15L_{q/p_T}.

The auxiliary quantities improve the physical information contained in the per-hit representation but do not enter the discrete candidate-track identifier.

The Router is supervised through LrouterL_{\mathrm{router}}, a soft-target cross-entropy loss over the 512 routing groups. For hits associated with reconstructable truth particles, the routing targets are constructed from (rhit,ηtrack,ϕtrack)(r_{\mathrm{hit}}, \eta_{\mathrm{track}}, \phi_{\mathrm{track}}), whereas non-signal hits use their hit-level (rhit,ηhit,ϕhit)(r_{\mathrm{hit}}, \eta_{\mathrm{hit}}, \phi_{\mathrm{hit}}) coordinates. The additional term LbalanceL_{\mathrm{balance}} regularises the mean routing probabilities and discourages the Router from concentrating an excessive fraction of hits in a small number of routing groups. Following the importance-balancing regularisation introduced for sparsely gated mixture-of-experts models [34], this term is added:

Lbalance=G∑g=1G(pˉg−1G)2,L_{\mathrm{balance}} = G \sum_{g=1}^{G} \left(\bar{p}_g - \frac{1}{G}\right)^2,

where G=512G = 512 is the number of routing groups and pˉg\bar{p}_g denotes the routing probability for group gg, averaged over all valid hits in the batch. The loss is minimised when the average routing probability is uniformly distributed across the routing groups.

The Tracker consists of 18 Transformer encoder blocks with eight attention heads each, an embedding dimension of 256, a feedforward dimension of 1536, and a dropout rate of 0.1.

Local stage

The local stage consists of deterministic charge-aware preconditioning, a learned Gate, and the local slot-based Refiner.

The charge-aware preconditioning is deterministic and operates on the candidate groups produced by the global Tracker. A candidate is split by predicted charge when at least 50% of its retained hits have a charge confidence above 0.8 and at least two confident hits are present for each charge sign. Small fragments containing at most two hits may subsequently be merged into a charge-compatible directly neighboring candidate in (pT,η,ϕ)(p_T, \eta, \phi) space. A merge is accepted only if the target contains at least four hits, is at least twice as large as the source fragment, and is sufficiently preferred over the second-best neighboring candidate. These conservative requirements improve the initial candidate assignment while limiting erroneous deterministic merges.

The Gate is trained to predict whether evaluating the Refiner around a candidate centre will contribute to the final reconstruction. Training labels are obtained by running the full Refiner: a centre is labelled as productive if a proposal originating from that centre survives proposal selection and changes the final hit assignment. The Gate uses a weighted binary cross-entropy-with-logits loss to account for the imbalance between productive and non-productive centres. It is trained for 12 epochs using AdamW with a learning rate of 1×10−31 \times10^{-3}, weight decay of 1×10−41 \times10^{-4}, and a batch size of 8192 candidate centres.

The Refiner is trained for 12 epochs using AdamW with an initial learning rate of 1.5×10−41.5 \times10^{-4}, weight decay of 1×10−41 \times10^{-4}, and cosine learning-rate annealing. Each training batch contains eight local neighborhoods.

Since the Refiner slots have no predefined identity, predicted slots must first be associated with truth particles. For each neighborhood, Hungarian matching is used to find a one-to-one assignment between truth tracks and predicted slots. The matching cost combines the hit-assignment likelihood and the predicted track parameters in order to associate each truth track with the most compatible Refiner slot. Because the Refiner slots are permutation-invariant and have no predefined identity, this correspondence is determined using Hungarian bipartite matching [35, 36].

For a predicted slot kk and a truth track tt, we define the matching cost as

Ckt=Cktassign+0.2Cktparam.C_{kt} = C_{kt}^{\mathrm{assign}} + 0.2 C_{kt}^{\mathrm{param}}.

The assignment component CktassignC_{kt}^{\mathrm{assign}} is the TrackML-weighted cross-entropy evaluated over the hits belonging to truth track tt, measuring how strongly these hits are assigned to predicted slot kk.

The parameter term CktparamC_{kt}^{\mathrm{param}} is the mean Smooth-L1 (Huber) loss between the predicted and true track parameters. The Hungarian algorithm then selects the minimum-cost one-to-one assignment between truth tracks and Refiner slots.

After the slot-to-truth correspondence has been established, the Refiner is optimized with

LRefiner=Lassign+0.25Lexist+0.20Lparam+0.30Ltrack.L_{\mathrm{Refiner}} = L_{\mathrm{assign}} + 0.25L_{\mathrm{exist}} + 0.20L_{\mathrm{param}} + 0.30L_{\mathrm{track}}.

Here, LassignL_{\mathrm{assign}} is a TrackML-weighted cross-entropy loss for assigning each hit either to its matched track slot or to the background class. LexistL_{\mathrm{exist}} is a binary cross-entropy loss indicating which of the 32 slots correspond to a truth track, and LparamL_{\mathrm{param}} is a Smooth-L1 loss on the continuous parameters of matched slots. The final term, (LtrackL_{\mathrm{track}}), is a soft track-level purity-and-coverage objective based on a differentiable Dice/F1 overlap [37]. It encourages matched slots to recover the hits of a truth track while limiting contamination from other particles. Its individual contribution to the reconstruction performance has not been studied by us.

Binning strategies

The Tracker gives every hit a discrete token, and hits with the same token form one candidate track. We build this token by binning pTp_T, η\eta and ϕ\phi separately and combining the three bin indices. Three heads with about 200 outputs per hit then address about 1.6×1051.6 \times10^5 tokens, because the cost grows with the sum of the bin counts and the number of tokens with their product [38, 39], and neighbouring bins describe neighbouring trajectories. The obvious alternative is a token space learned by a vector-quantised variational autoencoder (VQ-VAE) [40], which needs one output per code and numbers its codes arbitrarily.

We trained a 14-layer Tracker twice on events with 200–500 particles (7 871 training and 874 validation events): once with the binning, and once with a VQ-VAE codebook of K=12 000K = 12\,000 codes fitted to the charge-free kinematics of the training particles. At the Tracker stage the two are close (Table 7). The VQ-VAE scores 0.933 against 0.926 for pT>0.9p_T > 0.9 GeV, using 3 M more parameters in its output head. The two separate after the Tracker. When the factorised Tracker gets a bin wrong, it is almost always off by one (96–99% of hits are within one bin on each axis), so the hits of a split particle land in neighbouring bins. The Refiner takes the hits in a block of 3×3×53 \times3 \times5 bins around each candidate and reassigns them to tracks, which raises the score to 0.989 (Figure 8). VQ-VAE codes have no neighbours in this sense, so the learned codebook stays at 0.933.

BinningVQ-VAE
Number of tokens≈1.6×105\approx1.6 \times10^512 000
Outputs per hit≈200\approx20012 000
Tracker parameters15.2 M18.2 M
TrackML, Tracker0.9260.933
TrackML, Tracker + Refiner0.989–
Charge accuracy98.8%98.6%
Vertex zz mean abs. error22.0 mm26.1 mm

Table 7. Factorised binning and a VQ-VAE codebook in the same 14-layer Tracker, on 874 validation events with 200–500 particles each. TrackML scores for pT>0.9p_T > 0.9 GeV.

TrackML scores for factorised binning and VQ-VAE before and after refinement

Figure 8. TrackML score for pT>0.9p_T > 0.9 GeV before and after local refinement, on 874 validation events with 200–500 particles each. The Refiner needs ordered bins and applies to the binning only.

The test events are also sparse, with about 350 particles each against O(104)O(10^4) in a full TrackML event, and particles with the same token merge into one candidate. If NN particles are spread uniformly over KK tokens, a fraction of about 1−e−N/K1 - e^{-N/K} [41] share their token with another particle: 3% for the VQ-VAE and 0.2% for the binning in the test events, but 57% and 6% in a full event, where the binning value is a lower bound because real bins are filled unevenly. Matching the binning would take about 1.6×1051.6 \times10^5 codes and an output head of 41 M parameters, 2.7 times the rest of the Tracker, and codebooks of this size tend to leave many codes unused [42, 43]. These are estimates, since we have not compared the two tokenizers on full events, but they agree with the measurements above, and AlphaHits-TrackFormer therefore uses factorised binning.

AlphaHits-TrackFormer scaling with model depth

AlphaHits-TrackFormer differential performance

AlphaHits-Trackformer reconstruction ladder performance

StageallpT>0.9p_T > 0.9∣η∣<1|\eta| < 11≤∣η∣<21 \le|\eta| < 22≤∣η∣<32 \le|\eta| < 3∣η∣≥3|\eta| \ge3centres refinedtime [s]
Tracker0.8440.912––––0 %0.45
+ preconditioner0.8800.9340.9230.9270.9550.9350 %0.47
full pipeline, no Gate0.9590.9810.9730.9750.9920.989100 %4.60
Gate 0.100.9590.9810.9730.9750.9920.98969 %3.48
Gate 0.200.9590.9810.9730.9750.9910.98961 %3.17
Gate 0.300.9590.9800.9720.9740.9910.98956 %2.98
Gate 0.500.9570.9770.9690.9710.9890.98751 %2.75

Table 8. AlphaHits-TrackFormer reconstruction ladder for the 18-layer Tracker, with the full scan of the Gate threshold. Upper block: TrackML score on the 820 test events, over all particles, for pT>0.9p_T > 0.9 GeV and in slices of ∣η∣|\eta| (for pT>0.9p_T > 0.9 GeV). The fraction of candidate centres sent to the Refiner and the mean time per event (Router and Tracker plus the local stage) are measured on 50 of the events on an NVIDIA H100, with an inference batch of 256 neighbourhoods.

AlphaHits-Trackformer latency

The inference time of the AlphaHits-TrackFormer was evaluated on an NVIDIA H100 GPU card. The latency broken down per stage is reported in Figure 12, when using the Gate model with threshold of 0.30. In total, the pipeline takes 3s to process a single event. The target of this effort was accomplishing a pipeline that can process the full TrackML high-luminosity events and solve the tracking challenge well. Therefore, fast inference was not yet among the primary goals when designing the AlphaHits-TrackFormer.

Figure 12. The average latency at inference time of the 18-layer AlphaHits-TrackFormer pipeline, broken down per stage. The Gate model is used with threshold of 0.30.

AlphaHits

AlphaHits Data Generation

Delphes bb-tagging reference

Delphes tags each jet with a probability that depends only on its true flavour and pTp_{T} (GeV): εb=Atanh⁡(0.003 pT) 30/(1+0.086 pT)\varepsilon_b = A\tanh(0.003\,p_{T})\,30/(1 + 0.086\,p_{T}), εc=Ctanh⁡(0.02 pT)/(1+0.0034 pT)\varepsilon_c = C\tanh(0.02\,p_{T})/(1 + 0.0034\,p_{T}) and εlight=L0+L1pT\varepsilon_{\mathrm{light}} = L_0 + L_1 p_{T}, the ATLAS-card parametrisation of Delphes 3.5.1 [44]. The card’s five presets, named 85, 77, 70, 60 and 40, tag fewer bb jets than their names say (the 70 % preset, A=0.80A = 0.80, tags 66 % of the ttˉt\bar{t} bb jets). For Figure 6 the amplitude AA was retuned to measured efficiencies of 40, 60, 70, 77, 80 and 85 % and the events were re-simulated; CC, L0L_0 and L1L_1 follow the card’s own dependence on AA between the presets (Table 10), an extrapolation above the last preset. Each tag is an independent draw per jet and working point. No track quality or vertexing enters: the reference measures the card’s parametrisation, not a tagger.

working pointAACCL0L_0L1L_1 [GeV−1^{-1}]εb\varepsilon_b caloεb\varepsilon_b tracks
40 %0.4850.0223.8×10−43.8 \times10^{-4}1.3×10−61.3 \times10^{-6}0.4180.407
60 %0.7270.0701.4×10−31.4 \times10^{-3}4.6×10−64.6 \times10^{-6}0.6270.606
70 %0.8490.1777.7×10−37.7 \times10^{-3}1.8×10−51.8 \times10^{-5}0.7290.709
77 %0.9340.3312.4×10−22.4 \times10^{-2}4.0×10−54.0 \times10^{-5}0.8060.779
80 %0.9700.4303.8×10−23.8 \times10^{-2}5.6×10−55.6 \times10^{-5}0.8370.814
85 %1.0310.6728.5×10−28.5 \times10^{-2}1.0×10−41.0 \times10^{-4}0.8890.857

Table 10. Delphes bb-tagging settings of Figure 6. Measured bb-efficiency on the 20k test events, graded against the truth flavour, for calorimeter jets / track jets.

Summary of training stages of AlphaHits model

Targets and loss

AlphaHits is supervised on nine targets (Table 5), derived from the generator record or the Delphes full chain of the same event. Regression targets are standardised with training-split moments,

z=log⁡(1+x)−μσ(positive, right-skewed x),z=x−μσ(η-like x),ϕ↦(sin⁡ϕ,cos⁡ϕ),(3)z = \frac{\log(1+x)-\mu}{\sigma} \quad\text{(positive, right-skewed }x\text{)}, \qquad z = \frac{x-\mu}{\sigma} \quad\text{($\eta$-like }x\text{)}, \qquad \phi\mapsto(\sin\phi,\cos\phi), \tag*{(3)}

so that one loss scale serves every regression; per-hit targets carry a validity mask m∈{0,1}m \in\{0,1\} and their moments are fitted on valid entries only.

Per-task losses LtL_t are combined as a geometric mean over the main tasks plus fixed-weight auxiliary terms,

L(1)=Ltrk+0.4Lhitpart,(4)\mathcal{L}^{(1)} = L_{\mathrm{trk}} + 0.4L_{\mathrm{hitpart}}, \tag*{(4)}
L(2)=(LclsLHTLMETLlepLjetsLtrk)1/6+0.2Lnhits+0.4Lhitpart+0.3Lhitjet,(5)\mathcal{L}^{(2)} = \left(L_{\mathrm{cls}} L_{\mathrm{HT}} L_{\mathrm{MET}} L_{\mathrm{lep}} L_{\mathrm{jets}} L_{\mathrm{trk}}\right)^{1/6} + 0.2L_{\mathrm{nhits}} + 0.4L_{\mathrm{hitpart}} + 0.3L_{\mathrm{hitjet}}, \tag*{(5)}

for stage 1 (Tracker backbone) and stage 2 (one-shot reconstruction). Both instantiate L=(∏t∈MLt)1/∣M∣+∑a∈AwaLa\mathcal{L} = \left(\prod_{t\in\mathcal{M}} L_t\right)^{1/|\mathcal{M}|} + \sum_{a\in\mathcal{A}} w_a L_a, evaluated as exp⁡[1∣M∣∑tlog⁡max⁡(Lt,10−6)]\exp\left[\frac{1}{|\mathcal{M}|}\sum_t \log\max(L_t,10^{-6})\right]. With the single main task of stage 1 the mean reduces to LtrkL_{\mathrm{trk}} itself. The geometric mean is scale-free, ∂L/∂Lt=L/(∣M∣Lt)\partial\mathcal{L}/\partial L_t = \mathcal{L}/(\lvert\mathcal{M}\rvert L_t): main tasks need no weights, and a task whose loss is already small receives the larger relative gradient. Auxiliary terms stay outside the product, so a scaffold loss near zero cannot collapse it. Table 12 summarises all terms.

Table 12: Loss terms of AlphaHits, their weight or role in the combination of Eqs. (4)–(5), and the training stage in which they are active. “Main” terms enter the geometric mean without a weight; “aux” terms are added with the quoted weight. Within the jet loss the three parts are combined with weights (1, 5, 1) and a no-object weight w∅=0.85w_{\varnothing} = 0.85 on unmatched queries (events without truth jets use the unweighted existence BCE). All Huber terms use δ=1\delta= 1 on standardised targets; all cross-entropies are means over the valid entries of their mask.

Classification uses the binary cross-entropy of the event logit ss, BCE⁡(s,y)=−ylog⁡σ(s)−(1−y)log⁡(1−σ(s))\operatorname{BCE}(s,y) = -y\log\sigma(s) - (1-y)\log(1-\sigma(s)). Every regression uses the Huber loss of the standardised residual r=z^−zr = \hat{z} - z,

ℓδ(r)={12r2,∣r∣≤δ,δ(∣r∣−12δ),∣r∣>δ,δ=1,(6)\ell_{\delta}(r) = \begin{cases} \frac{1}{2}r^2, & \lvert r\rvert\le\delta, \\ \delta\left(\lvert r\rvert- \frac{1}{2}\delta\right), & \lvert r\rvert> \delta, \end{cases} \qquad\delta= 1, \tag*{(6)}

quadratic within about one standard deviation of the target and with the gradient capped at ±δ\pm\delta beyond it, so extreme events cannot dominate an update. Hence LHTL_{\mathrm{HT}}, LMETL_{\mathrm{MET}} and LnhitsL_{\mathrm{nhits}} are batch means of ℓδ\ell_{\delta}, and LlepL_{\mathrm{lep}} the sum of two (nℓn_{\ell} and pTℓp_{\mathrm{T}}^{\ell}). Per-hit terms use the masked mean over hits ii and target components dd,

⟨ℓ⟩m=∑i,dmi,d ℓi,d∑i,dmi,d,(7)\langle\ell\rangle_m = \frac{\sum_{i,d}m_{i,d}\,\ell_{i,d}}{\sum_{i,d}m_{i,d}}, \tag*{(7)}

in which the mask enters numerator and denominator, so a padded, particle-less, jet-less or non-trackable hit contributes exactly zero:

Lhitpart=⟨ℓδ⟩mpart+⟨CEq⟩mpart,(8)L_{\mathrm{hitpart}} = \langle\ell_{\delta}\rangle_{m^{\mathrm{part}}} + \langle\mathrm{CE}_{q}\rangle_{m^{\mathrm{part}}}, \tag*{(8)}
Lhitjet=⟨ℓδ⟩mjet,(9)L_{\mathrm{hitjet}} = \langle\ell_{\delta}\rangle_{m^{\mathrm{jet}}}, \tag*{(9)}
Ltrk=13(⟨CEpT⟩mtrk+⟨CEη⟩mtrk+⟨CEϕ⟩mtrk)+⟨BCEtrackable⟩mhit,(10)L_{\mathrm{trk}} = \frac{1}{3}\left(\langle\mathrm{CE}_{p_{\mathrm{T}}}\rangle_{m^{\mathrm{trk}}} + \langle\mathrm{CE}_{\eta}\rangle_{m^{\mathrm{trk}}} + \langle\mathrm{CE}_{\phi}\rangle_{m^{\mathrm{trk}}}\right) + \langle\mathrm{BCE}_{\mathrm{trackable}}\rangle_{m^{\mathrm{hit}}}, \tag*{(10)}

where mpartm^{\mathrm{part}} marks hits with a particle record (one mask for all six components), mjetm^{\mathrm{jet}} is component-wise (LxyL_{xy} additionally requires a secondary vertex), mtrkm^{\mathrm{trk}} marks trackable hits, mhitm^{\mathrm{hit}} all real (non-padded) hits, CEq\mathrm{CE}_{q} is the three-way charge cross-entropy and CEpT,η,ϕ\mathrm{CE}_{p_{\mathrm{T}},\eta,\phi} the cross-entropies over the 32, 128 and 64 codebook bins.

Jets are a set prediction over K=12K = 12 queries, each emitting an existence logit sks_k, kinematics k^k=(p^T,η^,sin⁡ϕ^,cos⁡ϕ^)\hat{\mathbf{k}}_k = (\hat{p}_{\mathrm{T}}, \hat{\eta}, \sin\hat{\phi}, \cos\hat{\phi}) and flavour probabilities pk(c)p_k(c). Truth jets (ki,ci)(\mathbf{k}_i,c_i) are assigned to queries by a Hungarian matching of the cost

Cki=5∥k^k−ki∥1−log⁡pk(ci)−log⁡σ(sk),(11)C_{ki} = 5\lVert\hat{\mathbf{k}}_k - \mathbf{k}_i\rVert_1 - \log p_k(c_i) - \log\sigma(s_k), \tag*{(11)}

so kinematic distance, flavour likelihood and existence confidence all enter the (non-differentiated) assignment. With yk=1y_k = 1 for matched queries, wk=1w_k = 1 (matched) or 0.850.85 (unmatched) and M\mathcal{M} the matched pairs,

Ljets=1K∑k=1KwkBCE⁡(sk,yk)+514∣M∣∑(k,i)∈M∥k^k−ki∥1+1∣M∣∑(k,i)∈M−log⁡pk(ci),(12)L_{\mathrm{jets}} = \frac{1}{K}\sum_{k=1}^{K} w_k \operatorname{BCE}(s_k,y_k) + 5\frac{1}{4|\mathcal{M}|}\sum_{(k,i)\in\mathcal{M}} \left\lVert\hat{\mathbf{k}}_k-\mathbf{k}_i\right\rVert_1 + \frac{1}{|\mathcal{M}|}\sum_{(k,i)\in\mathcal{M}}-\log p_k(c_i), \tag*{(12)}

averaged over events: the existence term decides how many jets exist (its no-object weight sets the efficiency/fake operating point), the L1L_1 term places and scales the matched ones, and the flavour term is the bb-tagger, P(b)=pk(b)P(b)=p_k(b) being a jet’s bb-score at evaluation.

Stage-1 tracking performance

Table 13 scores the tracking head with the TrackML metric on our events against the codebook ceiling of 0.9588. The stage-1 backbone alone reaches 0.891 with the plain equal-token decode and 0.927 with a validation-tuned decode, and a local Refiner of the AlphaHits-TrackFormer type trained on its output reaches the ceiling (0.959). After joint fine-tuning the same head gives 0.806 and 0.894, inside the forward pass that also returns the jets and the event class. Trained jointly from scratch, without stage 1, the recipe stays at 0.446 and its classifier at an AUC of 0.895: the pre-training is the recipe.

Particle Transformer baseline training

The reference classifier is the Particle Transformer (ParT) [5] with the standard backbone (8 layers, embedding dimension 128), trained from scratch for ttˉHt\bar{t}H versus ttˉt\bar{t} on Delphes objects of the same generated events. Following our previous work [32], the model is used in its vanilla self-attention form with no pairwise features, and training uses the Ranger optimiser with learning rate 10−310^{-3} and batch size 512; the checkpoint with the best validation loss is kept. Each event is a set of tokens with per-object features (log⁡E\log E, log⁡pT\log p_T, η\eta, ϕ\phi) (with ϕ\phi kept as the raw angle), a one-hot object identity, and an auxiliary (log⁡ETmiss\log E_T^{\mathrm{miss}}, ϕmiss\phi_{\mathrm{miss}}) input. Two different object sets are used. Delphes tracks: anti-ktk_t jets with pT>20 GeVp_T > 20\,\mathrm{GeV}, R=0.6R=0.6 built from charged-particle tracks, each with pTp_T, η\eta, ϕ\phi, EE and a binary bb-tag, and the track-based ETmissE_T^{\mathrm{miss}} (magnitude and direction), no leptons. Delphes tracks + calorimeter: anti-ktk_t jets with pT>20 GeVp_T > 20\,\mathrm{GeV}, R=0.6R=0.6 on calorimeter towers with the same features and bb-tag, the calorimeter ETmissE_T^{\mathrm{miss}}, and electrons with pTp_T, η\eta, ϕ\phi, EE and charge; muons are removed. The bb-tag is the Delphes parametrisation with its amplitude retuned to measured bb-jet efficiencies of 80, 60 and 40% in ttˉt\bar{t}. The 10k, 20k and 40k points use 8 000, 18 000 and 38 000 training events and 1 000 validation events from the original 40 000-event sample used for the Higgsformer [4] training and evaluation, generated with identical settings to the new 200 000-event dataset. The 160k point uses the 160 000 training and 20 000 validation events of the main sample. Every ParT model is evaluated on the same 20 000 test events as AlphaHits, which none of the training sets contain. Each reported point is the mean of the three trainings.

AlphaHits Performance Illustration

Figure 13. One ttˉHt\bar{t}H (H→bbˉH \to b\bar{b}) test event in η\eta–ϕ\phi as the truth record, as Delphes (calorimeter + tracks, bb-tag WP70) and as AlphaHits from the hits (top), the hits with the AlphaHits reconstructed tracks and jets in the transverse plane (bottom left), and the event-level quantities: truth, Delphes and AlphaHits reconstruction (bottom right). Jets are anti-ktk_t R=0.6R = 0.6 with pT>20p_T > 20 GeV, numbers are jet pTp_T in GeV, “H” marks the bb-jets from the Higgs boson. AlphaHits finds all six GenJets with the right flavour. Delphes finds five and tags three.

References

  1. [1]K.G. Barman, S. Caron, E. Sullivan, H.W. de Regt, R. Ruiz de Austri, M. Boon et al., Large Physics Models: Towards a collaborative approach with Large Language Models and Foundation Models, Eur. Phys. J. C 85 (2025) 1066 [2501.05382].
  2. [2]S. Caron, N. Dobreva, A. Ferrer Sánchez, J.D. Martín-Guerrero, U. Odyurt, R. Ruiz de Austri Bazan et al., Trackformers: in search of transformers-based particle tracking for the high-luminosity LHC era, European Physical Journal C 85 (2025) 460 [2407.07179].DOI
  3. [3]S. Caron, N. Dobreva, M. Kimpel, U. Odyurt, S. Pshenov, R. Ruiz de Austri Bazan et al., TrackFormers Part 2: Enhanced Transformer-Based Models for High-Energy Physics Track Reconstruction, 2509.26411.arxiv.org/abs/2509.26411
  4. [4]S. Caron, P. Moskvitina, R. Ruiz de Austri and E. Shalugin, Hits to Higgs: hit-level Higgs classification from raw LHC detector data using Higgsformer, Eur. Phys. J. C 86 (2026) 848 [2508.19190].
  5. [5]H. Qu, C. Li and S. Qian, Particle Transformer for Jet Tagging, in Proceedings of the 39th International Conference on Machine Learning, vol. 162 of Proceedings of Machine Learning Research, pp. 18281–18292, PMLR, 2022 [2202.03772].arxiv.org/abs/2202.03772
  6. [6]M. Kiehn, S. Amrouche, P. Califura, V. Estrade, S. Farrell et al., The TrackML high-energy physics tracking challenge on Kaggle, EPJ Web of Conferences 214 (2019) 06037.
  7. [7]T. Golling, L. Heinrich, M. Kagan, S. Klein, M. Leigh, M. Osadchy et al., Masked particle modeling on sets: towards self-supervised high energy physics foundation models, Machine Learning: Science and Technology 5 (2024) 035074 [2401.13537].DOI
  8. [8]M. Vigl, N. Hartman and L. Heinrich, Finetuning foundation models for joint analysis optimization in High Energy Physics, Machine Learning: Science and Technology 5 (2024) 025075 [2401.13536].DOI
  9. [9]T.-H. Hsu, B.-H. Zhou, Q. Liu, Y. Xu, S. Li, G.W.-S. Hou et al., Foundation model for particle collision data analysis, Nature Machine Intelligence (2026) [2601.17126].DOI
  10. [10]J. Birk, A. Hallin and G. Kasieczka, OmniJet-α: The First Cross-Task Foundation Model for Particle Physics, Machine Learning: Science and Technology 5 (2024) 035031 [2403.05618].DOI
  11. [11]V. Mikuni and B. Nachman, OmniLearn: A Method to Simultaneously Facilitate All Jet Physics Tasks, Physical Review D 111 (2025) 054015 [2404.16091].DOI
  12. [12]W. Bhimji, C. Harris, V. Mikuni and B. Nachman, Foundation Model Framework for All Tasks Involving Jet Physics, Physical Review D 113 (2026) 032020 [2510.24066].DOI
  13. [13]O. Amram, L. Anzalone, J. Birk, D.A. Faroughy, A. Hallin, G. Kasieczka et al., Aspen Open Jets: Unlocking LHC Data for Foundation Models in Particle Physics, Machine Learning: Science and Technology (2025) [2412.10504].
  14. [14]N. Kakati, D. Murnane, B. Hashemi, S. Klein, J. Krupa, E. Gross et al., Prompting Particle Physics: Tokenized Multi-modal Foundation Models for Combinatorially Many Tasks, 2026. 10.48550/arXiv.2609.31862.arxiv.org/abs/2609.31862
  15. [15]F. Mokhtar, J. Pata, M. Kagan and J. Duarte, Machine-Learned Particle Flow as a Foundation Model for Collider Physics, PRX Intelligence 1 (2026) 023012 [2606.14373].
  16. [16]M. Hart, K.Y. Wong, S. Van Stroud, P. Duckett, T. Scanlon and G. Facini, Reconstruct Everything Everywhere All at Once: An End-to-End Model for Future Colliders, 2610.41889.arxiv.org/abs/2610.41889
  17. [17]X. Ju, D. Murnane, P. Califura, N. Choma, S. Conlon, S. Farrell et al., Performance of a geometric deep learning pipeline for HL-LHC particle tracking, European Physical Journal C 81 (2021) 876 [2103.06995].DOI
  18. [18]C. Biscarat, S. Caillou, C. Rougier, J. Stark and J. Zahreddine, Towards a realistic track reconstruction algorithm based on graph neural networks for the HL-LHC, EPJ Web of Conferences 251 (2021) 03047 [2103.00916].
  19. [19]S. Caillou, P. Califura, X. Ju, D. Murnane, T. Pham, C. Rougier et al., Physics Performance of the ATLAS GNN4Itk Track Reconstruction Chain, EPJ Web of Conferences 295 (2024) 03030.DOI
  20. [20]J. Kieseler, Object condensation: one-stage grid-free multi-object reconstruction in physics detectors, graph, and image data, European Physical Journal C 80 (2020) 886 [2002.03605].DOI
  21. [21]K. Lieret, G. DeZoort, D. Chatterjee, J. Park, S. Miao and P. Li, High Pileup Particle Tracking with Object Condensation, 2312.03823.arxiv.org/abs/2312.03823
  22. [22]P. Califura, J. Chan, L. Delabrouille and B. Wang, EggNet: An Evolving Graph-based Graph Attention Network for Particle Track Reconstruction, 2024.arxiv.org/abs/2407.13925
  23. [23]J. Chan, B. Wang and P. Calafiura, Physics and Computing Performance of the EggNet Tracking Pipeline, 2025.
  24. [24]Y. Melkani and X. Ju, TrackSorter: A Transformer-based sorting algorithm for track finding in High Energy Physics, 2407.21290.arxiv.org/abs/2407.21290
  25. [25]S. Van Stroud, P. Duckett, M. Hart, N. Pond, S. Rettie, G. Facini et al., Transformers for Charged Particle Track Reconstruction in High Energy Physics, Physical Review X 15 (2025) 041046 [2411.07149].DOI
  26. [26]S. Miao, S. Govil, J.P. Rodgers, M. Liu, J. Duarte, S.-C. Hsu et al., HEPTv2: End-to-End Efficient Point Transformer for Charged Particle Reconstruction, 2606.20437.arxiv.org/abs/2606.20437
  27. [27]T. Dao, FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning, 2023.arxiv.org/abs/2307.08691
  28. [28]J. Dong, B. Feng, D. Guessous, Y. Liang and H. He, Flex Attention: A Programming Model for Generating Optimized Attention Kernels, 2024.arxiv.org/abs/2412.05496
  29. [29]S. Miao, Z. Lu, M. Liu, J. Duarte and P. Li, Locality-Sensitive Hashing-Based Efficient Point Transformer with Applications in High-Energy Physics, 2402.12535.
  30. [30]F. Locatello, D. Weissenborn, T. Unterthiner, A. Mahendran, G. Heigold, J. Uszkoreit et al., Object-Centric Learning with Slot Attention, in Advances in Neural Information Processing Systems, vol. 33, 2020 [2006.15055].
  31. [31]B. Cheng, I. Misra, A.G. Schwing, A. Kirillov and R. Girdhar, Masked-attention Mask Transformer for Universal Image Segmentation, in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2022 [2112.01527].arxiv.org/abs/2112.01527
  32. [32]L. Builtjes, S. Caron, P. Moskvitina, C. Nellist, R. Ruiz de Austri, R. Verheyen et al., Attention to the strengths of physical interactions: Transformer and graph-based event classification for particle physics experiments, SciPost Physics 19 (2025) 028 [2211.05143].DOI
  33. [33]S. Amrouche et al., The Tracking Machine Learning Challenge: Accuracy Phase, in The NeurIPS ’18 Competition, The Springer Series on Challenges in Machine Learning, pp. 231–264, Springer (2020), DOI [1904.06778].DOI
  34. [34]N. Shazeer, A. Mirhoseini, K. Maziarz, A. Davis, Q.V. Le, G.E. Hinton et al., Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer, arXiv preprint arXiv:1701.06538 (2017).arxiv.org/abs/1701.06538
  35. [35]H.W. Kuhn, The Hungarian Method for the Assignment Problem, Naval Research Logistics Quarterly 2 (1955) 83.
  36. [36]N. Carion, F. Massa, G. Synnaeve, N. Usunier, A. Kirillov and S. Zagoruyko, End-to-End Object Detection with Transformers, in European Conference on Computer Vision, pp. 213–229, 2020.arxiv.org/abs/2005.12872
  37. [37]C.H. Sudre, W. Li, T. Vercauteren, S. Ourselin and M.J. Cardoso, Generalised Dice Overlap as a Deep Learning Loss Function for Highly Unbalanced Segmentations, in Deep Learning in Medical Image Analysis and Multimodal Learning for Clinical Decision Support, pp. 240–248, Springer, 2017.DOI
  38. [38]H. Jégou, M. Douze and C. Schmid, Product Quantization for Nearest Neighbor Search, IEEE Transactions on Pattern Analysis and Machine Intelligence 33 (2011) 117.DOI
  39. [39]F. Mentzer, D. Minnen, E. Agustsson and M. Tschannen, Finite Scalar Quantization: VQ-VAE Made Simple, in International Conference on Learning Representations, 2024 [2309.15505].arxiv.org/abs/2309.15505
  40. [40]A. van den Oord, O. Vinyals and K. Kavukcuoglu, Neural Discrete Representation Learning, in Advances in Neural Information Processing Systems, vol. 30, 2017 [1711.00937].arxiv.org/abs/1711.00937
  41. [41]M. Mitzenmacher and E. Upfal, Probability and Computing: Randomization and Probabilistic Techniques in Algorithms and Data Analysis, Cambridge University Press, 2nd ed. (2017).
  42. [42]A. Lańcucki, J. Chorowski, G. Sanchez, R. Marxer, N. Chen, H.J.G.A. Dol fing et al., Robust Training of Vector Quantized Bottleneck Models, in International Joint Conference on Neural Networks (IJCNN), 2020, DOI [2005.08520].
  43. [43]L. Zhu, F. Wei, Y. Lu and D. Chen, Scaling the Codebook Size of VQGAN to 100,000 with a Utilization Rate of 99%, in Advances in Neural Information Processing Systems, vol. 37, 2024 [2406.11837].arxiv.org/abs/2406.11837
  44. [44]DELPHES 3 collaboration, DELPHES 3, A modular framework for fast simulation of a generic collider experiment, Journal of High Energy Physics 2014 (2014) 57 [1307.6346].

Paper details

vlnc:W_wsxc5j3k
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 11

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

GPT-5, GPT-6, Claude Opus (multiple versions)

View statement
Looking for related papers…
Contents