Particle colliders throw most of their data away. At the Large Hadron Collider, collisions occur 40 million times per second, and the trigger, a real-time filter that decides within microseconds which collisions to save, keeps full records for only about 0.0025% of them (Machine-Learning Compression for Particle Physics Discoveries). This matters most for rare signals. Discovery significance grows like the number of recorded signal events divided by the square root of recorded background, which is the standard counting-statistics limit. Every discarded collision is therefore lost sensitivity, and it is lost permanently. This note proposes a third recording mode, alongside saving whole events and saving trimmed ones ("scouting"). The idea is to keep a small, fixed-size summary of every collision's coarse features. Each collision updates that summary by writing to a handful of memory addresses chosen in advance, and the summary is analysed offline for localized excesses.
The summary is a linear sketch: a compact array of counters that each incoming item updates by adding signed values at a few hashed addresses. Because the addresses depend only on the item, never on what is already stored, the sketch is non-adaptive. That is exactly the access pattern a fixed-latency chip on the trigger board can sustain, since every memory write can be issued in parallel within one clock round. Theory says this access pattern has a price. Non-adaptive turnstile sketches face a logarithmic lower bound on update cost (Time lower bounds for nonadaptive turnstile streaming algorithms). The proposal makes that price concrete in physics units: how much discovery significance a sketch of a given memory and update cost preserves, and how many memory writes per collision are needed so that the sketch's own noise never fakes a 5-standard-deviation discovery.
Core Claim
A signed linear sketch of a fine-grained, high-dimensional histogram of all collisions behaves, for any localized-excess test, like an extra background that is spread uniformly over feature space. The key step is to subtract a background-model sketch built with the same hash functions. Linearity makes this subtraction exact. After it, each stored cell holds a residual whose variance comes from hash collisions with the Poisson fluctuations of all other cells.
To see the size of that collision noise, let $r_j$ be the residual count in fine cell $j$, $b_j$ its expected background, $N=\sum_j b_j$ the total number of collisions, $w$ the number of counters per sketch row, and $S$ the number of signal events in the cell being tested. Each $r_j$ has variance about $b_j$, and a cell's sketch estimate absorbs, on average, $1/w$ of every other cell's squared residual. The variance of that estimate is therefore about $N/w$, and the significance of an excess becomes
$$Z_{\text{sketch}} \approx \frac{S}{\sqrt{b_{\text{loc}} + N/w}}, \qquad Z_{\text{marg}} \approx \frac{S}{\sqrt{b_{\text{proj}}}},$$
where $b_{\text{loc}}$ is the background in the signal's fine cell in the full joint feature space, and $b_{\text{proj}}$ is the background in the corresponding bin of an exact low-dimensional histogram with the same memory. Such a histogram is the obvious alternative.
The first new claim follows directly. A sketch beats an exact low-dimensional histogram exactly when the signal sits on dense background in every projection one can afford to store, yet occupies a background-sparse region of the joint space. In that case $b_{\text{proj}} \gg b_{\text{loc}} + N/w$. The sketch should lose in the opposite case, and the proposal is designed to show both regimes.
The second claim concerns tails. A median over $d$ independently hashed rows controls the rare large hash collisions that would otherwise produce ghost excesses. Keeping the sketch-induced false-alarm rate below the 5σ global rate $p_5 \approx 2.9\times 10^{-7}$ across $K$ scanned cells should require roughly
$$d \gtrsim c \,\ln(K/p_5)$$
rows, which means $d$ memory writes per collision. The form comes from the exponential concentration of the median estimator combined with a union bound over the scanned cells. The 5σ convention thus sets the constant in the logarithmic, non-adaptive update cost.
Relation to Prior Work
The direct motivation comes from the physics side. Machine-Learning Compression for Particle Physics Discoveries shows that scouting, which keeps only the leading objects, is costly. Classifying with only the two highest-energy muons gives an AUC of 0.71. The paper compresses whole point clouds with a tunable autoencoder, but its storage still grows with every saved event, and it leaves trigger-hardware deployment open. Ultrafast jet classification at the HL-LHC shows that permutation-invariant networks run in about 100 ns on an FPGA (a field-programmable gate array, the reconfigurable chip used in triggers). Those networks classify one pre-built jet at a time and do not accumulate statistics across collisions. The LHC Olympics 2020 a community challenge for anomaly detection in high energy physics supplies the blinded test bed. It also supplies a constraint: most methods missed the multi-mode Black Box 3 signal. Our sketch commits to no signal model, but it is not immune to this failure, because it only detects excesses that are localized in the chosen feature space.
The method comes from streaming theory. The signed sketch and its residual-subtraction trick reuse standard linear sketching. Non-Adaptive Adaptive Sampling on Turnstile Streams shows that linear sketches preserve geometric structure in one pass but gives matrix-approximation guarantees, not significance guarantees. Sketch-Based Streaming Anomaly Detection in Dynamic Graphs is the closest existing combination: Count-Min-style sketches detecting bursts in network streams. It works on discrete node identifiers with heuristic scores, and it never asks what statistical significance survives the sketch.
The constraints come from cell-probe theory, the study of how many memory cells an operation must touch. Time lower bounds for nonadaptive turnstile streaming algorithms and Adapt or Die: Polynomial Lower Bounds for Non-Adaptive Dynamic Data Structures bound what fixed-address updates can achieve. We do not claim their bounds transfer verbatim to hypothesis testing. Instead, we measure the update cost empirically and compare it with the logarithmic prediction. Faster Update Time for Turnstile Streaming Algorithms beats the bound by buffering updates, at the price of a query penalty of order $\log^{1.582} n$. That penalty is what blocks the technique in latency-critical search, but here every query happens offline after the run, so the objection disappears. We note this as a design option rather than a core contribution, because the paper's fast word-level matrix multiplication has no clear FPGA analogue.
Research Program
The work has three parts.
The first part is analysis. We derive significance under sketching for single-cell and template (sum-over-region) queries, for signed and unsigned (Count-Min) sketches, and for median and mean estimators. We also derive the false-alarm tail of the median as a function of $d$, which yields the predicted $d^*(K, p)$.
The second part is a software emulator of the full recording pipeline. Each collision is quantized into a key over several physics features, such as dijet mass, the two jet masses, and jet substructure ratios in the LHC Olympics setting. The key is hashed into $d$ rows of width $w$. A background-model sketch is subtracted, and a calibrated scan for excesses is run on the result. The look-elsewhere correction (adjusting for having scanned many cells) is estimated from background-only pseudo-experiments.
The benchmark files hold about a million collisions, far below a real run. To reach the realistic regime where $N/w$ is large, we draw additional background from a density model fitted to the benchmark and verify that the noise scaling matches the analysis. The third part is a hardware cost model counting writes per collision, memory blocks, and hash logic at 40 MHz. It is reported alongside the 100 ns latency reference from the FPGA jet-classification study. A post-synthesis estimate is acknowledged as weaker than a routed design.
Baselines
The naive reference point is triggering alone. A random fraction $f$ of collisions is recorded in full, with the byte budget matched to the sketch's memory, and analysed with an exact fine-binned scan. Its significance scales as $\sqrt{f}$ times the full-data value, which makes it the "do nothing new" line. Beating it means reaching the same global significance with a smaller injected signal at equal bytes.
The strongest competitor on this specific question is the exact low-dimensional histogram, meaning histogram-based scouting. It spends the same memory on the best two- or three-dimensional projection, chosen on the R&D dataset before unblinding. It is the strongest because it is exact, has no collision noise, and is what experiments already do. It is run on identical events, with the same scan procedure and the same pseudo-experiment calibration. The projection choice gets a tuning budget equal to the sketch's choice of $w$ and $d$.
The strongest existing anomaly-detection methods from the LHC Olympics are Tag N' Train, density estimation and deep ensembles, which detected Black Box 1. They are applied to the fraction-$f$ recorded events, with training and tuning budgets as in that challenge. The file gives no numerical AUC or significance for them; no reported result found on Lacuna for numerical LHCO significances. We therefore rerun them ourselves.
The compression baseline is the tunable autoencoder of the ML-compression paper, storing latents for as many events as the byte budget allows. The paper reports a muon-only AUC of 0.71, and its compressed AUC plateaus for $\beta<10^{-2}$. We compare on its signal pair, the light scalar and the dark-shower Hidden Valley signal.
Three ablations isolate the key ingredients. Removing the background-sketch subtraction should make the noise scale with the full count norm rather than $N$, and should collapse performance. Replacing random hashing with a coarse regular grid of equal size isolates whether randomness matters. Varying $d$ at fixed total memory isolates the tail-control role of the per-collision write count.
Why not just…?
Why not just store a coarse exact histogram instead? This is the real threat, and the analysis already says it wins whenever the signal is not buried in dense background in every affordable projection. The experiment settles it directly. On LHC Olympics Black Box 1, a resonance whose dijet mass sits on falling QCD background but whose joint mass pattern is sparse, we predict the sketch wins. On injected broad bumps in a single feature, we predict the histogram wins. If the sketch loses in both cases, the proposal reduces to a negative result about sketching for discovery, which we would report as such, along with the regime map.
Why not just raise the trigger rate with a fast neural trigger? A trigger trained for a known signal selects for that signal. The LHC Olympics shows that fixed models miss unanticipated topologies, and the Black Box 3 failure is the example. Recorded volume is also capped by storage regardless of the selector. The sketch is complementary, because it can ingest collisions the trigger rejects. The fraction-$f$ baseline, run with the best available selector, measures how much the sketch adds on top.
Why not just count exact occurrences of each observed feature key in a hash table? In a fine joint space most keys occur once, so the table grows with $N$ rather than staying fixed. Lookup-dependent probing such as cuckoo hashing also needs sequential memory round trips, which Optimal Non-Adaptive Cell Probe Dictionaries and Hashing identifies as the bottleneck that non-adaptive designs avoid. The memory-versus-$N$ curves in the emulator show the crossover point.
Why not just store compressed latents for more events? Latent storage is still per-event, so its bytes grow with the run length, while the sketch's do not. Neural compression may still preserve shape information that a quantized key discards. The matched-byte comparison on the PYTHIA signals decides this. A plausible outcome is a hybrid in which the sketch keys are built from compressed latents.
Decisive Checks
Four results decide whether the proposal is right.
The first is calibration. On background-only data (Black Box 2 and pseudo-experiments), the sketch must report no significant excess. Its false-alarm rate must also match the predicted dependence on $d$, measured directly at 3σ, with the tail shape extrapolated and checked against the median-concentration prediction.
The second is the regime map. The minimum injected signal needed for a 3σ global excess is measured as a function of memory for the sketch, the exact projection histogram and the recorded fraction. The map must show the predicted crossover, set by whether $b_{\text{proj}}$ exceeds $b_{\text{loc}} + N/w$.
The third is the measured noise variance, which must scale as $N/w$ in the large-$N$ emulation. If it scales with the squared count norm instead, the background subtraction is failing and the core claim is wrong.
The fourth is the cost model. The required $d^*$ at a 5σ-equivalent target must fit within plausible memory-block write bandwidth at 40 MHz. If it needs far more writes per collision than a trigger board can issue, the non-adaptive price is too high and the method is not deployable as proposed.
References
- Machine-Learning Compression for Particle Physics Discoveries
- Time Lower Bounds for Nonadaptive Turnstile Streaming Algorithms
- Ultrafast jet classification at the HL-LHC
- The LHC Olympics 2020 a community challenge for anomaly detection in high energy physics
- Non-adaptive adaptive sampling on turnstile streams
- Sketch-Based Streaming Anomaly Detection in Dynamic Graphs
- Adapt or Die: Polynomial Lower Bounds for Non-Adaptive Dynamic Data Structures
- Faster Update Time for Turnstile Streaming Algorithms
- Optimal Non-Adaptive Cell Probe Dictionaries and Hashing