Papers
Topics
Authors
Recent
Search
2000 character limit reached

PHAT-JeT: Hierarchical Attention Transformer

Updated 5 July 2026
  • The paper introduces PHAT-JeT, a novel transformer model that achieves high jet tagging accuracy under constrained compute budgets through a hierarchical attention design.
  • It integrates a physics-inspired geometric message passing module with patch-based self-attention, reducing FLOPs while preserving local and global context.
  • PHAT-JeT demonstrates superior performance on benchmarks like HLS4ML and JetClass, balancing fine-grained interactions with resource-efficient inference.

Searching arXiv for the cited PHAT-JeT and related HSA papers to ground the article in current records. Patch Hierarchical Attention Transformer (PHAT-JeT) is a transformer-based architecture for efficient particle jet tagging under the latency and resource constraints of real-time trigger systems at the Large Hadron Collider. It is designed for the setting in which transformer models can offer the highest jet-tagging accuracy when compute is unconstrained, but standard quadratic self-attention is restrictive on trigger budget. PHAT-JeT addresses this by combining a physics-inspired geometric message-passing module on the detector plane with a hierarchical patch-based attention scheme that computes exact attention within small particle groups while preserving global context through patch-token communication. On four benchmarks—\textsc{hls4ml}, JetClass, Top Tagging, and Quark--Gluon—it is reported to achieve the highest accuracy and background rejection among resource-constrained jet-tagging models within a strict 1.5\le 1.5 M-FLOP budget and 10\lesssim 10 K-parameter regime suitable for FPGA triggers (Wang et al., 20 May 2026).

1. Problem formulation and design objective

PHAT-JeT is motivated by a specific systems problem: real-time jet tagging must identify short-lived particle decays in high-throughput detectors, while the trigger system deciding which collision events to store imposes strict latency and accuracy constraints (Wang et al., 20 May 2026). In this regime, the principal architectural tension is between classification performance and inference cost.

The PHAT-JeT paper states that transformer architectures achieve the highest jet-tagging accuracy when compute is unconstrained, but that their quadratic self-attention cost makes inference restrictive on trigger budget. It further states that existing efficient variants reduce the computational cost, but hinder the classification performance. PHAT-JeT is therefore positioned as a resource-constrained alternative that retains transformer-style contextual modeling while reducing the dominant attention cost.

A central feature of this objective is that efficiency is not treated as an auxiliary consideration. The reported comparisons are explicitly made under a restricted budget, and the model is evaluated against deployable baselines such as JEDI-Linear, SAL-T, Linformer, HEPT, PointTransformer V3, and PointNet, while also being compared with unconstrained references such as ParT and LorentzNet. This framing is important for interpreting the reported results: PHAT-JeT is not presented as an overall absolute best-performing jet tagger in an unconstrained sense, but as the strongest model within a specified deployment envelope.

2. Architectural composition

PHAT-JeT consists of three main computational modules: Physics-Inspired Geometric Message Passing (GMP), local patch self-attention, and hierarchical global attention (Wang et al., 20 May 2026). The full block also includes residual connections, LayerNorm, a position-wise feed-forward network, global mean pooling, and an MLP classifier head.

The GMP module operates on particle embeddings XRN×cX \in \mathbb{R}^{N \times c} together with per-particle coordinates (ηi,ϕi)(\eta_i,\phi_i). Each particle is quantized onto a coarse $2$D grid of spacing δ\delta,

ui=ηiηminδ,vi=ϕiϕminδ,u_i = \left\lfloor \frac{\eta_i-\eta_{\min}}{\delta} \right\rfloor,\qquad v_i = \left\lfloor \frac{\phi_i-\phi_{\min}}{\delta} \right\rfloor,

where ηmin=minkηk\eta_{\min} = \min_k \eta_k and ϕmin=minkϕk\phi_{\min} = \min_k \phi_k. A grid feature map GRH×W×cG \in \mathbb{R}^{H \times W \times c} is formed by summing particle features per cell,

10\lesssim 100

A depth-wise 10\lesssim 101D convolution is then applied,

10\lesssim 102

and the convolved grid is sampled back at the particle locations,

10\lesssim 103

The output is mixed pointwise and added residually,

10\lesssim 104

with 10\lesssim 105. The paper characterizes this as a learned spatial filter on the 10\lesssim 106 plane that propagates local angular context to each particle embedding with negligible extra FLOPs.

The second component is hierarchical patch-based attention. The particle sequence is partitioned into patches of fixed size 10\lesssim 107, with padding or truncation so that 10\lesssim 108 patches are formed, each of shape 10\lesssim 109. Within each patch, standard multi-head self-attention is computed exactly:

XRN×cX \in \mathbb{R}^{N \times c}0

XRN×cX \in \mathbb{R}^{N \times c}1

XRN×cX \in \mathbb{R}^{N \times c}2

This exact intra-patch attention is the local part of the hierarchy.

Patch-token extraction provides the interface between local and global levels. Each patch is mean-pooled to a single token,

XRN×cX \in \mathbb{R}^{N \times c}3

and these patch tokens are collected into XRN×cX \in \mathbb{R}^{N \times c}4. Global inter-patch self-attention is then applied:

XRN×cX \in \mathbb{R}^{N \times c}5

XRN×cX \in \mathbb{R}^{N \times c}6

The resulting patch-level messages are broadcast back to particles in the corresponding patch,

XRN×cX \in \mathbb{R}^{N \times c}7

This decomposition yields a two-scale communication pattern: exact token-token interactions are retained inside each patch, while global context is compressed into patch tokens. A plausible implication is that the model preserves fine-grained relational structure where the budget allows it, and uses a lower-resolution communication channel for long-range interactions.

3. Forward pass and computational structure

The single-block PHAT-JeT forward pass is specified explicitly. Given input particle embeddings XRN×cX \in \mathbb{R}^{N \times c}8, the model applies, for each block XRN×cX \in \mathbb{R}^{N \times c}9:

  1. Geometric Message Passing:

(ηi,ϕi)(\eta_i,\phi_i)0

  1. Local Patch Self-Attention: (ηi,ϕi)(\eta_i,\phi_i)1 is partitioned into patches (ηi,ϕi)(\eta_i,\phi_i)2 of size (ηi,ϕi)(\eta_i,\phi_i)3, and (ηi,ϕi)(\eta_i,\phi_i)4 is applied in parallel to each patch. The outputs are reassembled into a particle-level tensor (ηi,ϕi)(\eta_i,\phi_i)5.
  2. Hierarchical Global Attention: patch tokens are extracted by mean pooling, (ηi,ϕi)(\eta_i,\phi_i)6 is computed, and each patch token is projected and added back to all particles in the patch to obtain (ηi,ϕi)(\eta_i,\phi_i)7.
  3. Position-wise feed-forward network:

(ηi,ϕi)(\eta_i,\phi_i)8

After the final block, the jet-level classifier head applies

(ηi,ϕi)(\eta_i,\phi_i)9

The trigger-oriented configuration uses a single PHAT block, with $2$0 in the reported training settings. This is not merely an implementation detail: it indicates that the architecture is tuned for low-depth inference under strict budget constraints rather than for deep scaling.

The computational structure separates three distinct operations with different inductive biases. GMP injects detector-plane locality through quantization and depth-wise convolution. Local patch attention computes exact self-attention inside bounded particle groups. Global patch attention communicates only through pooled patch tokens. This organization is the defining sense in which PHAT-JeT is “hierarchical”: interaction granularity changes across stages instead of remaining uniformly tokenwise.

4. Complexity, resource profile, and deployment regime

The complexity analysis in the PHAT-JeT paper contrasts standard full self-attention with the model’s local-global decomposition (Wang et al., 20 May 2026). Standard full self-attention costs $2$1 per layer. For $2$2 and $2$3, the paper gives

$2$4

multiplies.

For PHAT-JeT, local attention costs

$2$5

and with $2$6, $2$7, $2$8, this becomes

$2$9

multiplies.

Global patch attention costs

δ\delta0

which, for δ\delta1 and δ\delta2, gives

δ\delta3

multiplies.

The total per block is therefore reported as approximately δ\delta4 versus δ\delta5 for full attention, corresponding to a δ\delta6 reduction in FLOPs. The paper further states that removing the quadratic term reduces on-chip memory needs and routing complexity, improving achievable clock frequency and end-to-end latency on FPGA.

The reported deployment regime is stringent: all four benchmark comparisons are framed under a strict δ\delta7 M-FLOP budget and δ\delta8 K-parameter regime suitable for FPGA triggers. This context is essential when interpreting both the performance gains over other deployable models and the remaining gap to large unconstrained models such as full ParT. A common misconception is to read efficient-attention results as claiming dominance over unconstrained transformers; the reported numbers do not support that reading. Instead, they support a narrower claim about performance under explicit hardware-oriented constraints.

5. Hyperparameters, training protocol, and benchmark performance

The key hyperparameters are fixed and compact. The number of PHAT blocks is δ\delta9. The hidden dimension is ui=ηiηminδ,vi=ϕiϕminδ,u_i = \left\lfloor \frac{\eta_i-\eta_{\min}}{\delta} \right\rfloor,\qquad v_i = \left\lfloor \frac{\phi_i-\phi_{\min}}{\delta} \right\rfloor,0 for \textsc{hls4ml} and Top/QG, and ui=ηiηminδ,vi=ϕiϕminδ,u_i = \left\lfloor \frac{\eta_i-\eta_{\min}}{\delta} \right\rfloor,\qquad v_i = \left\lfloor \frac{\phi_i-\phi_{\min}}{\delta} \right\rfloor,1 for JetClass. The number of attention heads is ui=ηiηminδ,vi=ϕiϕminδ,u_i = \left\lfloor \frac{\eta_i-\eta_{\min}}{\delta} \right\rfloor,\qquad v_i = \left\lfloor \frac{\phi_i-\phi_{\min}}{\delta} \right\rfloor,2. The patch size is ui=ηiηminδ,vi=ϕiϕminδ,u_i = \left\lfloor \frac{\eta_i-\eta_{\min}}{\delta} \right\rfloor,\qquad v_i = \left\lfloor \frac{\phi_i-\phi_{\min}}{\delta} \right\rfloor,3. The GMP grid spacing is ui=ηiηminδ,vi=ϕiϕminδ,u_i = \left\lfloor \frac{\eta_i-\eta_{\min}}{\delta} \right\rfloor,\qquad v_i = \left\lfloor \frac{\phi_i-\phi_{\min}}{\delta} \right\rfloor,4. Optimization uses Adam with ui=ηiηminδ,vi=ϕiϕminδ,u_i = \left\lfloor \frac{\eta_i-\eta_{\min}}{\delta} \right\rfloor,\qquad v_i = \left\lfloor \frac{\phi_i-\phi_{\min}}{\delta} \right\rfloor,5. The learning-rate schedule is a constant learning rate with batch-size ramp from ui=ηiηminδ,vi=ϕiϕminδ,u_i = \left\lfloor \frac{\eta_i-\eta_{\min}}{\delta} \right\rfloor,\qquad v_i = \left\lfloor \frac{\phi_i-\phi_{\min}}{\delta} \right\rfloor,6, early stopping on validation loss with patience ui=ηiηminδ,vi=ϕiϕminδ,u_i = \left\lfloor \frac{\eta_i-\eta_{\min}}{\delta} \right\rfloor,\qquad v_i = \left\lfloor \frac{\phi_i-\phi_{\min}}{\delta} \right\rfloor,7, and a maximum of ui=ηiηminδ,vi=ϕiϕminδ,u_i = \left\lfloor \frac{\eta_i-\eta_{\min}}{\delta} \right\rfloor,\qquad v_i = \left\lfloor \frac{\phi_i-\phi_{\min}}{\delta} \right\rfloor,8 epochs. Each configuration is run with ui=ηiηminδ,vi=ϕiϕminδ,u_i = \left\lfloor \frac{\eta_i-\eta_{\min}}{\delta} \right\rfloor,\qquad v_i = \left\lfloor \frac{\phi_i-\phi_{\min}}{\delta} \right\rfloor,9 random-seed replicates. Code is reported at https://github.com/aaronw5/PHAT-JeT (Wang et al., 20 May 2026).

On the \textsc{hls4ml} benchmark with five classes ηmin=minkηk\eta_{\min} = \min_k \eta_k0, PHAT-JeT reports ηmin=minkηk\eta_{\min} = \min_k \eta_k1, ηmin=minkηk\eta_{\min} = \min_k \eta_k2, ηmin=minkηk\eta_{\min} = \min_k \eta_k3, ηmin=minkηk\eta_{\min} = \min_k \eta_k4, and ηmin=minkηk\eta_{\min} = \min_k \eta_k5. The corresponding results listed for JEDI-Linear are ηmin=minkηk\eta_{\min} = \min_k \eta_k6, ηmin=minkηk\eta_{\min} = \min_k \eta_k7, ηmin=minkηk\eta_{\min} = \min_k \eta_k8, ηmin=minkηk\eta_{\min} = \min_k \eta_k9, and ϕmin=minkϕk\phi_{\min} = \min_k \phi_k0; for the one-layer Transformer, ϕmin=minkϕk\phi_{\min} = \min_k \phi_k1, ϕmin=minkϕk\phi_{\min} = \min_k \phi_k2, ϕmin=minkϕk\phi_{\min} = \min_k \phi_k3, ϕmin=minkϕk\phi_{\min} = \min_k \phi_k4, and ϕmin=minkϕk\phi_{\min} = \min_k \phi_k5; for SAL-T, ϕmin=minkϕk\phi_{\min} = \min_k \phi_k6, ϕmin=minkϕk\phi_{\min} = \min_k \phi_k7, ϕmin=minkϕk\phi_{\min} = \min_k \phi_k8, ϕmin=minkϕk\phi_{\min} = \min_k \phi_k9, and GRH×W×cG \in \mathbb{R}^{H \times W \times c}0; for Linformer, GRH×W×cG \in \mathbb{R}^{H \times W \times c}1, GRH×W×cG \in \mathbb{R}^{H \times W \times c}2, GRH×W×cG \in \mathbb{R}^{H \times W \times c}3, GRH×W×cG \in \mathbb{R}^{H \times W \times c}4, and GRH×W×cG \in \mathbb{R}^{H \times W \times c}5. The unconstrained reference ParT reports GRH×W×cG \in \mathbb{R}^{H \times W \times c}6, GRH×W×cG \in \mathbb{R}^{H \times W \times c}7, GRH×W×cG \in \mathbb{R}^{H \times W \times c}8, GRH×W×cG \in \mathbb{R}^{H \times W \times c}9 parameters, and 10\lesssim 1000 FLOPs.

On JetClass with ten classes, PHAT-JeT reports 10\lesssim 1001, 10\lesssim 1002, 10\lesssim 1003, 10\lesssim 1004 parameters, and 10\lesssim 1005 FLOPs. The listed baselines are Linformer at 10\lesssim 1006, 10\lesssim 1007, 10\lesssim 1008, 10\lesssim 1009, and 10\lesssim 1010; SAL-T at 10\lesssim 1011, 10\lesssim 1012, 10\lesssim 1013, 10\lesssim 1014, and 10\lesssim 1015; JEDI-Linear at 10\lesssim 1016, 10\lesssim 1017, 10\lesssim 1018, 10\lesssim 1019, and 10\lesssim 1020; Small ParT at 10\lesssim 1021, 10\lesssim 1022, 10\lesssim 1023, 10\lesssim 1024, and 10\lesssim 1025; and the full ParT reference at 10\lesssim 1026, 10\lesssim 1027, 10\lesssim 1028, 10\lesssim 1029, and 10\lesssim 1030.

On Top Tagging for binary 10\lesssim 1031 versus QCD classification, PHAT-JeT reports 10\lesssim 1032, 10\lesssim 1033, background rejection 10\lesssim 1034, 10\lesssim 1035 parameters, and 10\lesssim 1036 FLOPs. SAL-T is listed at 10\lesssim 1037, 10\lesssim 1038, 10\lesssim 1039; Linformer at 10\lesssim 1040, 10\lesssim 1041, 10\lesssim 1042; JEDI-Linear at 10\lesssim 1043, 10\lesssim 1044, 10\lesssim 1045; while ParT and LorentzNet report 10\lesssim 1046, 10\lesssim 1047, 10\lesssim 1048 and 10\lesssim 1049, 10\lesssim 1050, 10\lesssim 1051, respectively.

On Quark--Gluon, PHAT-JeT reports 10\lesssim 1052, 10\lesssim 1053, and 10\lesssim 1054. SAL-T and Linformer both report 10\lesssim 1055-level accuracy with 10\lesssim 1056 and 10\lesssim 1057 AUC, and background rejection 10\lesssim 1058; JEDI-Linear reports 10\lesssim 1059, 10\lesssim 1060, and 10\lesssim 1061; ParT and LorentzNet report 10\lesssim 1062, 10\lesssim 1063, 10\lesssim 1064 and 10\lesssim 1065, 10\lesssim 1066, 10\lesssim 1067.

These results support a precise interpretation. Within the stated low-FLOP, low-parameter trigger regime, PHAT-JeT is reported to achieve the highest accuracy and background rejection among deployable models. At the same time, unconstrained models remain stronger in absolute terms on several benchmarks. This distinction is central to the reported contribution.

6. Relation to hierarchical attention and conceptual context

A broader theoretical context is provided by “Hierarchical Self-Attention: Generalizing Neural Attention Mechanics to Multi-Scale Problems” (Amizadeh et al., 18 Sep 2025). That work formalizes multi-scale data as nested signals, defines a tree-structured signal hierarchy, and derives a hierarchical attention mechanism from the first principle of entropy minimization. In its formulation, the conditional entropy upper bound is optimized using a Boltzmann distribution, and the resulting update recovers standard Softmax attention in the flat case. For nested signals, the interaction energy between unrelated subtree roots 10\lesssim 1068 and 10\lesssim 1069 is defined by

10\lesssim 1070

with a recursive subtree energy 10\lesssim 1071 and a resulting block-structured attention matrix that is stated to be exactly the KL-projection of the flattened Softmax matrix onto the space of hierarchical stochastic matrices. The HSA paper also provides a dynamic-programming algorithm with overall time 10\lesssim 1072 and space 10\lesssim 1073.

PHAT-JeT is not presented as an implementation of that dynamic-programming HSA mechanism. Its local and global attention modules are specified directly through standard attention equations over patches and patch tokens, not through the HSA recursion. Nevertheless, the comparison is conceptually informative. HSA argues that attention can be generalized to user-supplied multi-scale hierarchy without flattening; PHAT-JeT instantiates a concrete hierarchical decomposition for jet constituents by restricting exact attention to patches and routing global communication through patch tokens. This suggests a shared methodological direction: replacing a single uniform quadratic interaction pattern with structured multi-scale communication.

The HSA summary also includes recommendations for hierarchy configuration under the label “PHAT-JeT” in the context of vision-style patch hierarchies: a bottom level of non-overlapping 10\lesssim 1074 patches, higher levels formed by grouping adjacent windows, typical depth 10\lesssim 1075–10\lesssim 1076, and decreasing branching factors such as 10\lesssim 1077, with the guidance to choose 10\lesssim 1078 so that 10\lesssim 1079 (Amizadeh et al., 18 Sep 2025). A plausible implication is that the PHAT-JeT jet-tagging architecture belongs to a larger design family in which efficiency is obtained by matching the attention pattern to a known hierarchy.

The limitations stated for HSA are also useful as interpretive context. HSA requires a fixed, known tree hierarchy a priori, does not learn it, and reports that early layers are sensitive in zero-shot replacement settings. PHAT-JeT likewise fixes its patch size 10\lesssim 1080 and detector-plane quantization spacing 10\lesssim 1081 rather than learning a hierarchy. This does not establish an identical limitation, but it indicates that hierarchy specification remains an important design choice rather than an automatically inferred structure.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Patch Hierarchical Attention Transformer (PHAT-JeT).