Low-Bit Cached Amplitudes for Streaming Dalitz Fits

A Dalitz plot analysis fits a quantum-mechanical model to three-body particle decays. The model says the decay rate at each point of a two-dimensional kinematic plane is the squared magnitude of a sum of complex amplitudes, one per intermediate resonance. These fits are run weeks or months after data taking on large clusters, because every step of the optimizer has to reevaluate the model on every recorded event. We observe that the fit has an unusual shape. The model is linear in the unknown complex coefficients, so the event-dependent part can be computed once and cached as a matrix with one row per event and one column per resonance channel. Each later "training" step is then only a matrix-vector product with that fixed matrix, plus one with its conjugate transpose. This is the access pattern that inference accelerators with low-precision weights already handle well. The difference is that no deep backward pass, stored activations, or floating-point gradient engine is needed.

We propose storing that cached amplitude matrix at 8 or 4 bits and running the whole unbinned fit, forward and gradient, without per-element dequantization. The trick is to choose the quantization scale per channel, so it folds into the fitted coefficients. We then remove the leading bias that quantization noise introduces into the fitted rate. The scientific question is the precision floor. Phase information in Dalitz fits comes mostly from regions of destructive interference, where the total amplitude is small. Those are exactly the regions where quantization noise is largest relative to the signal. If 4-bit caching preserves fitted phases and fit fractions to a small fraction of their statistical error, the fit fits in a quarter of the memory of a 16-bit cache. That makes rolling-window refits on shared trigger or edge hardware plausible. If it does not, we will have mapped where and why amplitude fits need precision.

Core Claim

Under the isobar model, described by Aubert et al., the amplitude for event $e$ is

$$M_e(c) = \sum_{j=1}^{K} c_j F_{je},$$

where $c_j$ is the complex coefficient of channel $j$ and $F_{je}$ is that channel's fixed complex shape (resonance propagator, barrier and angular factors) evaluated at the event's kinematics. Quasi-model-independent partial-wave bins, like the 26-bin $K\pi$ S-wave in the CLEO-c analysis of Dalitz plot analysis of the D^+ \to K^- \pi^+ \pi^+ decay, keep this linear form. Under linear interpolation each bin value simply becomes another column.

The normalization integral reduces to a $K\times K$ Hermitian matrix. It is computed once from simulated events at full precision, so its cost is negligible. The cost that scales with data is the $N\times K$ event matrix $F$.

We quantize column $j$ as $F_{je}\approx s_j q_{je}$, with integer $q_{je}$ and a power-of-two real scale $s_j$. The scale then multiplies $c_j$ instead of each event, so $M_e=\sum_j (c_j s_j) q_{je}$. The gradient $\sum_e s_j q_{je}^{*} M_e/|M_e|^2$ likewise applies $s_j$ once per channel. Per element, only unpacking and sign extension remain.

We use stochastic rounding with known noise variance $\sigma_j^2$ per complex element. The expected quantized intensity is then $|M_e|^2+\sum_j |c_j s_j|^2\sigma_j^2$. The unbiased intensity used in the likelihood is

$$\hat I_e(c) = \Big|\sum_j c_j s_j q_{je}\Big|^2 - \sum_j |c_j s_j|^2 \sigma_j^2 .$$

The residual bias in $\log \hat I_e$ is second order and scales like $\sigma^2/|M_e|^2$. Because $\sigma\propto 2^{-b}$ for $b$ bits, each extra bit should cut this bias by about a factor of four. The $1/|M_e|^2$ factor predicts where it concentrates: the destructive-interference regions.

The new element is this combination, applied to amplitude fitting:

  • channel scales absorbed into the parameters;
  • analytic removal of the variance term;
  • a measured bits-versus-phase-bias curve.

The file supports a clear gap here. Its analysis states that no study has asked whether sub-byte quantization distorts phases or creates interference artifacts in decay amplitudes.

Relation to Prior Work

Two lines of work motivate the proposal from the physics side. The LHCb Run 3 GPU trigger, Allen, runs track reconstruction and Kalman fitting at 30 MHz on about 500 GPUs. Its parameterizations are trained offline, and it does no amplitude analysis. The monotonic Lipschitz networks of Applications of Lipschitz neural networks to the Run 3 LHCb trigger system select multi-body candidates robustly, but they are offline-trained binary classifiers. Both show that heavy-flavor computation already lives on throughput hardware. Neither performs the fit we target. The CLEO-c and BABAR analyses (D+ Dalitz, CKM γ constraints; Constraints on the CKM angleγinB0→D¯0K*0andB0→D0K*0from a Dalitz analysis ofD0andD¯0decays toKSπ+π−) supply the models, the phase ambiguities and the event scales used below.

On the systems side, several papers constrain the design. To Compress, or Not to Compress found that software dequantization can make quantized inference up to 1.41× slower and take 30–50% of runtime. A low-bit cache therefore helps only if unpacking is nearly free. LiquidGEMM states the budget as fewer than five instructions per element and meets it with an IMAD+XOR unpack. We adopt that budget as a hard requirement on our kernel. Fast and Efficient 2-bit LLM Inference on GPU hides unpacking behind memory loads and protects sensitive weight groups with higher precision. We borrow the idea of mixed precision for sensitive columns, since narrow resonances play the role of outliers.

DQT supplies the power-of-two scale idea that makes rescaling a shift. It still needs floating-point gradients, and our setting sidesteps that entirely: the gradient is a transposed product with the same integer matrix. On-chip learning platforms such as DARKSIDE and the quantized-latent-replay system of A TinyML Platform for On-Device Continual Learning close the "train offline, deploy frozen" gap differently. DARKSIDE adds a separate FP16 engine. The replay system freezes most layers and dequantizes stored replays before training. We claim no general answer to on-chip deep-network training. We claim only that this physics fit is one of the few "training" problems whose structure removes the backward-pass obstacles those papers work around.

Research Program

We will build three pieces:

  • A cache builder. It evaluates $F$ for data and simulation, chooses per-column power-of-two scales, and packs the columns at 16, 8, 4 or mixed precision. Narrow-resonance columns can be held at higher precision.
  • A fused GPU kernel. One pass over the packed matrix computes both $M=Fc'$ and the gradient $F^{\dagger}w$, where $w_e = M_e/\hat I_e$ is the per-event weight. It stays within the five-instruction unpack budget, and we will count instructions in the compiled code.
  • An analysis harness. It fits ensembles of simulated datasets and reports bias and pulls for every physics parameter.

A secondary study tests the streaming use case, a rolling-window refit on a high-yield calibration channel. We inject a slow, known efficiency drift into simulation. The question is whether refits on packed caches track the drift in fitted fit fractions as fast as, and as accurately as, full-precision refits. Latency and memory are measured on a GPU of the class Allen reports (an RTX 2080 Ti, 11 GB).

Baselines

The naive reference point is the standard fit: an unbinned maximum-likelihood fit that recomputes or caches amplitudes in double precision. This is the procedure behind the CLEO-c result, which reported a fit probability rising "from near zero in standard models to 31.5%" once the $I=2$ $\pi\pi$ S-wave was added (D+ Dalitz). Every quantized variant is judged against it on the same simulated datasets, with the same model, starting points, optimizer and convergence tolerance.

The strongest competitor is the same cached fit in FP16 or FP32 on the same GPU. It has no bias from rounding and no unpacking cost, and memory bandwidth on modern GPUs is large. No reported result found on Lacuna for cached-amplitude Dalitz fit throughput or accuracy at FP16/FP32, so we measure it ourselves, with equal engineering effort on its kernel. Beating it means one of two things. Either a 4-bit or mixed cache fits at least 4× more events per device at equal or lower time per iteration. Or it enables a fit that exceeds device memory under FP16. In both cases every fitted fit fraction and phase must stay within 0.1 statistical standard deviations of the double-precision fit, and pull widths must stay consistent with one.

The second strong competitor is a fine-binned likelihood fit. The Dalitz plane is divided into bins and the data reduced to counts, with per-bin channel integrals taken from simulation. This compresses across events rather than within each event, and it can be tiny in memory. It is compared at matched memory footprint. We sweep bin counts until its footprint equals the 4-bit cache. Beating it means lower bias at equal memory, specifically near narrow resonances and in interference regions.

Two ablations isolate the key ingredients. The first uses deterministic rounding without the variance subtraction. It tests whether the debiasing, and not bit width alone, is what preserves phases. The second applies the per-element float rescale that channel-scale folding avoids. It tests whether folding is what keeps the kernel under the instruction budget and avoids the 1.41× slowdown pattern.

Why not just…?

Why not just cache amplitudes in FP16 and stop there? This is the real threat. With $N=10^8$ events and roughly 40 complex columns, an FP16 cache is about 16 GB. That exceeds a shared trigger-class GPU but not a large server GPU. Where memory is ample, 4 bits buys little except headroom. The experiment settles this directly. If FP16 meets every accuracy criterion and the extra capacity of 4 bits never changes what can be fit in the target setting, we will report that the useful precision is 16 bits. The contribution then shrinks to a documented precision floor with its interference-region bias profile. That result is still missing from the literature the file covers.

Why not just bin the Dalitz plot? Binning reduces data to counts, so neither event caches nor quantization are needed. Its error, however, grows where the amplitude changes quickly within a bin: across narrow poles like the $K^*(892)$, and along the interference zones that carry phase information. Unbinned fitting is used in the analyses cited above to avoid exactly this. Whether that holds at matched memory is an empirical question, and the matched-footprint comparison answers it. If fine binning matches the 4-bit cache everywhere, we recommend binning.

Why not just keep refitting offline on the grid? For final physics results, offline refits remain the right tool, and we do not propose replacing them. The case for a fast fit rests on monitoring. Events rejected by a trigger that has drifted are never recovered, because the Run 3 stream must be cut by a factor of 400 in real time (Lipschitz trigger). A fast amplitude-level check on calibration channels could flag drift in time to act. The drift-injection study measures whether the packed fit detects a given shift sooner than an offline cycle would. If detection delay is dominated by collecting enough events rather than by fit time, this motivation collapses and we will say so.

Proposed Experiments

All data are simulated from published amplitude models, since the file lists no public event-level Dalitz datasets.

The first model is $D^+\to K^-\pi^+\pi^+$ with its partial-wave S-wave and $I=2$ component, generated at the CLEO-c size of 140,793 candidates with 1.1% background. We scale it to $10^7$ and $10^8$ events. The second is $D^0\to K_S\pi^+\pi^-$ in the $B^0\to D K^{*0}$ configuration used for the CKM angle γ. BABAR reported the twofold solution $\gamma=(162\pm56)^\circ$ or $(342\pm56)^\circ$ for it (CKM γ constraints; Constraints on the CKM angleγinB0→D¯0K*0andB0→D0K*0from a Dalitz analysis ofD0andD¯0decays toKSπ+π−).

For each of the following settings we fit 500 datasets and record the bias and pull of every fit fraction, magnitude and phase:

  • bit widths from 16 down to 3;
  • with and without debiasing;
  • uniform versus mixed precision for narrow-resonance columns;
  • the binned baseline at matched memory.

The decisive checks come in three steps.

The first maps phase bias against bit width. If the variance term drives the residual, bias should fall by about 4× per added bit. The largest per-event log-likelihood errors should also sit in low-intensity regions.

The second tests whether 4-bit debiased caches keep the γ fit's two solutions and their relative likelihood unchanged. A discrete ambiguity that flips under quantization would disqualify the method outright.

The third measures time per iteration and peak memory on an 11 GB GPU, together with instruction counts per unpacked element against the LiquidGEMM budget.

The drift study then reports how long after an injected efficiency change each method's rolling fit reaches a 3σ shift in the affected fit fraction.

References

  1. Measurement of<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mi>cos</mml:mi><mml:mo></mml:mo><mml:mn>2</mml:mn><mml:mi>β</mml:mi></mml:math>in<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:msup><mml:mi>B</mml:mi><mml:mn>0</mml:mn></mml:msup><mml:mo>→</mml:mo><mml:msup><mml:mi>D</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mo>*</mml:mo><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:msup><mml:msup><mml:mi>h</mml:mi><mml:mn>0</mml:mn></mml:msup></mml:math>Decays with a Time-Dependent Dalitz Plot Analysis of<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mi>D</mml:mi><mml:mo>→</mml:mo><mml:msubsup><mml:mi>K</mml:mi><mml:mi>s</mml:mi><mml:mn>0</mml:mn></mml:msubsup><mml:msup><mml:mi>π</mml:mi><mml:mo>+</mml:mo></mml:msup><mml:msup><mml:mi>π</mml:mi><mml:mo>−</mml:mo></mml:msup></mml:math>
  2. Dalitz plot analysis of the<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:msup><mml:mi>D</mml:mi><mml:mo>+</mml:mo></mml:msup><mml:mo>→</mml:mo><mml:msup><mml:mi>K</mml:mi><mml:mo>−</mml:mo></mml:msup><mml:msup><mml:mi>π</mml:mi><mml:mo>+</mml:mo></mml:msup><mml:msup><mml:mi>π</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:math>decay
  3. Allen: A High-Level Trigger on GPUs for LHCb
  4. Applications of Lipschitz neural networks to the Run 3 LHCb trigger system
  5. Constraints on the CKM angleγinB0→D¯0K*0andB0→D0K*0from a Dalitz analysis ofD0andD¯0decays toKSπ+π−
  6. To Compress, or Not to Compress: Characterizing Deep Learning Model Compression for Embedded Inference
  7. LiquidGEMM: Hardware-Efficient W4A8 GEMM Kernel for High-Performance LLM Serving
  8. Fast and Efficient 2-bit LLM Inference on GPU: 2/4/16-bit in a Weight Matrix with Asynchronous Dequantization
  9. DQT: Dynamic Quantization Training via Dequantization-Free Nested Integer Arithmetic
  10. DARKSIDE: A Heterogeneous RISC-V Compute Cluster for Extreme-Edge On-Chip DNN Inference and Training
  11. A TinyML Platform for On-Device Continual Learning With Quantized Latent Replays