Rare-decay searches at electron–positron "B-factories" depend on a classifier that separates a handful of signal events from a large background. BABAR's search for B → Kνν̄ is an example: a decay with two invisible neutrinos, analysed over 459 million B-meson pairs. Two pressures pull on that classifier. The first is deployment. These classifiers increasingly need to run inside fixed hardware, such as a trigger FPGA (a reprogrammable chip that must answer within a few hundred nanoseconds) or a high-throughput skim, so they must be small, quantized and pruned. The second is that the classifier is trained on simulation but applied to real detector data. Any mismatch between the two becomes a systematic uncertainty, and in the BABAR search that uncertainty already reaches 25% on some background predictions. Hardware-aware neural architecture search (an automated search over network designs that respects chip budgets) handles the first pressure but ignores the second. Its candidates are scored on simulated validation accuracy.
This note proposes an architecture search whose objective is the physics quantity analysts actually care about: expected discovery or exclusion sensitivity once the simulation-to-data mismatch is included. That mismatch is measured on real control samples for each candidate, and the hardware budget is imposed as a hard constraint rather than a penalty. BABAR's archived data is a useful laboratory because the analysis is finished and published, real-data control samples such as off-resonance continuum data exist, and the published classifier is a fixed reference point. The first deliverable is a measurement nobody has made: whether aggressive quantization and pruning amplify or dampen simulation-to-data disagreement. The search method is the second deliverable, and it is only justified if that measurement shows architectures differ in robustness in ways that accuracy does not predict.
Core Claim
For a hardware-constrained event classifier in a rare-decay search, compression and topology choices change two things: how well the classifier separates signal from background, and how differently it behaves on data versus simulation. The second effect is not visible in simulated accuracy. A search that scores each candidate by systematic-aware sensitivity therefore finds different, and better, architectures than one that scores accuracy and checks robustness afterward.
Concretely, each candidate architecture $\alpha$ is scored by
$$Z(\alpha) = \frac{s(\alpha)}{\sqrt{b(\alpha) + \big(\delta(\alpha)\, b(\alpha)\big)^2}} \quad \text{subject to} \quad H_k(\alpha) \le B_k \;\; \text{for each hardware resource } k.$$
The terms are defined as follows. $s$ and $b$ are the expected signal and background yields after a cut on the classifier output. $\delta(\alpha)$ is the relative background uncertainty, estimated from how far the candidate's output distribution on real control data departs from its simulated prediction. $H_k$ and $B_k$ are the predicted usage and budget of each FPGA resource and of latency. The formula is the standard Gaussian approximation to significance with a background systematic. It makes explicit that a classifier with a larger mismatch $\delta$ loses sensitivity quadratically in background, however good its simulated accuracy.
Relation to Prior Work
Three crossover papers supply the method and show where it stops.
Neural architecture codesign for fast physics applications runs a two-stage pipeline. A genetic search (NSGA-II) trades error against bit operations, followed by local tuning with quantization-aware training and pruning, then FPGA synthesis through hls4ml. It reached 70 ns on LHC jet tagging. We reuse its search space style and its Deep Sets backbone, which processes an unordered set of particles. We differ from it in two ways. Its tasks are single-object, and we target event-level selection. Its objective is simulated accuracy, and ours is data-calibrated sensitivity. The authors themselves note that bit operations correlate poorly with synthesized resources.
Ps and Qs showed that quantization-aware pruning of a fixed MLP matches Bayesian-optimization search with a 25x cut in bit operations, collapsing below 6 bits. It also observed that compressed networks with equal accuracy differ in internal information content. That observation motivates this proposal, since it hints that equal-accuracy models may generalize differently off the training distribution. It also constrains the proposal, because it makes fixed-architecture compression a serious baseline.
wa-hls4ml supplies surrogate models that predict FPGA resources and latency in seconds rather than hours. Its transformer surrogate reaches $R^2 = 0.95$ on latency. The paper also reports that error rises sharply on real scientific models, which constrains us. We will not trust the surrogate out of the box: it gets recalibrated on synthesized members of our own search space.
For enforcing the budget we take the mechanism from Constraint-guided Hardware-aware NAS through Gradient Modification (ConNAS). It steers architecture gradients toward the feasible region instead of adding a penalty, and it satisfied hard constraints in 100% of runs where penalty methods like FBNet failed. ConNAS has only been tested on image cells and a motor-vibration dataset with a size limit. Its per-edge shortest-path heuristic is untested on set-based physics networks, so we treat it as one search strategy among others, not a given.
On the physics side, Search for the rare decay B → K ν ν̄ defines the task and the reference classifier: 20 bagged decision trees on up to 38 variables. B-flavor tagging at Belle II provides direct evidence for the gap. A neural tagger trained on simulation lost performance on real data because of mismodelled particle-identification likelihoods and track parameters, ending at 28.8% effective efficiency against 30.0% for a boosted-tree tagger. A z-vertex trigger for Belle II supplies a realistic hardware budget: hand-designed MLPs on a Virtex-7 FPGA under 400 ns.
Research Program
The task is the continuum- and combinatorial-background selection stage of a B → K⁺νν̄ search on the BABAR Υ(4S) sample. The classifier takes the set of rest-of-event tracks and calorimeter clusters plus the tag-side summary, and outputs a signal score. This is the stage where the published analysis used its bagged-tree ensemble.
Real data enters only through control regions that are kinematically separated from the blinded signal region. These are off-resonance data, which is pure continuum background, and signal-region sidebands. From these we estimate $\delta(\alpha)$ by comparing candidate output histograms on data and on simulation, with simulation normalized by luminosity. Using a fixed, pre-registered metric (for example, a binned χ² converted into a background normalization uncertainty) keeps the measurement blind.
The project has three parts.
The first part is the measurement study. We train a grid of about one hundred architectures varying width, depth, set aggregation, bit width (4 to 16) and pruning level. For each, we measure simulated accuracy, $\delta$, and synthesized FPGA resources. The question is whether $\delta$ varies meaningfully at fixed accuracy, and whether it rises or falls with compression.
The second part builds the in-loop search. We recalibrate the wa-hls4ml surrogate on roughly a thousand synthesized networks drawn from our space. We then run constraint-guided search, and separately an evolutionary search, maximizing $Z$. Because $\delta$ requires evaluation on control data, it is not differentiable in the architecture parameters. We handle this by refreshing it every few search epochs on the current best candidates. To prevent the search from overfitting the control samples, we split them into a search half and a held-out half.
The third part synthesizes the final models with hls4ml under a budget mirroring the Belle II trigger (Virtex-7-class resources, at most 400 ns). We report synthesized rather than predicted numbers.
The main practical risk is access. Analysing BABAR data requires collaboration data-preservation access. If that is unavailable, the measurement study can be run as a proxy: train on one simulation configuration and test on deliberately perturbed simulation, for example with smeared particle-identification likelihoods. That fallback is weaker and would be labelled as such.
Baselines
The naive reference is the do-nothing option: an uncompressed floating-point Deep Sets classifier with a human-chosen architecture, ignoring the hardware budget. This sets the sensitivity ceiling without constraints. We will also report how far it misses the budget once synthesized.
The physics reference is the published bagged-decision-tree ensemble from Search for the rare decay B → K ν ν̄. That analysis reports an observed 90% upper limit of $\mathcal{B}(B^+ \to K^+\nu\bar\nu) < 1.3 \times 10^{-5}$. No reported expected limit or selection-level sensitivity was found on Lacuna for this classifier, so we will retrain it on identical inputs and splits and recompute $Z$ and $\delta$ ourselves. The published limit serves only as a sanity check that our reproduction of the selection is faithful. Boosted trees are the strongest competitor on robustness: the Belle II comparison found the tree tagger slightly ahead of the neural tagger on real data (30.0% versus 28.8% effective efficiency, B-flavor tagging at Belle II). We will also synthesize a depth-limited tree ensemble under the same FPGA budget.
The strongest existing search method is the codesign pipeline from Neural architecture codesign for fast physics applications, run on our search space with its native accuracy-versus-bit-operations objective. It gets the same simulated training data, the same number of trained candidates, and the same final quantization-aware fine-tuning. We then give it its most favorable version, which is also the key ablation isolating our ingredient. After its search, we pick from its Pareto front the candidate with the best measured $Z$ that fits the budget, using the same control-data evaluations. This "robustness-after-search" variant spends the same control-data budget. The only difference is that robustness does not steer the search.
The fixed-topology compression baseline is quantization-aware pruning of the human-designed classifier, following Ps and Qs, swept over bit widths and pruning fractions. We pick the best-$Z$ point that fits the budget.
A penalty-based variant replaces constraint steering with a tuned penalty on predicted resources, as in FBNet. It gets the same tuning budget for the penalty weight.
Beating these baselines means three things. First, a higher held-out $Z$ than robustness-after-search, with the gap larger than the spread across five search seeds. Second, every final model meets the synthesized budget. Third, a $Z$ at least matching the tree ensemble.
Why not just…?
Why not just keep the boosted decision trees? They are the field's default and were slightly more robust on real data at Belle II. This is a real threat for offline analysis, and we will report the tree ensemble's $Z$ and $\delta$ head-to-head. The argument for neural classifiers here is the hardware setting. Trees with many deep members map onto FPGAs as branching logic and lookup tables. Neural networks compiled through hls4ml have reached tens of nanoseconds for jet-tagging MLPs, and trees also need hand-built set features to ingest a variable-length rest-of-event. If a budget-matched tree ensemble achieves equal $Z$, we will say so. The proposal's contribution then narrows to the measurement study.
Why not just compress a fixed, well-validated network? Ps and Qs found that this matches architecture search on a simple jet MLP. Against that, the codesign work found human topologies carrying whole superfluous blocks that pruning never removes (a 39.2x bit-operation reduction from dropping attention blocks in the Bragg-peak model). On our task the quantization-aware pruning sweep is run with equal compute, and the comparison is decided by held-out $Z$ under the synthesized budget.
Why not just run ordinary accuracy-driven search and pick the most robust model afterward? This is the most serious alternative, and it may well be enough. If equal-accuracy architectures differ in $\delta$ but the most robust ones already sit on the accuracy Pareto front, in-loop robustness adds nothing. The robustness-after-search ablation tests exactly this at matched control-data cost. If it ties, the recommended practice becomes "search for accuracy, then select on control data." That is still a finding, and the in-loop method is dropped.
Why not just fix the mismatch with domain adaptation or input smearing on one architecture? Smearing simulated particle-identification inputs during training is cheap and attacks $\delta$ directly. It is complementary rather than competing, so we apply it identically to every arm. If it shrinks the spread of $\delta$ across architectures to noise, the measurement study will show that, and architecture choice stops mattering for robustness.
Proposed Experiments
The first decisive check is the measurement study. For the grid of about one hundred synthesized architectures, we regress the held-out $\delta$ on simulated accuracy, bit width and pruning fraction. The search is worth building only if $\delta$ varies by more than its control-sample statistical error among models within one percent of each other in simulated accuracy. Separately, the sign of the dependence on bit width answers Gap 3 directly: does 6-bit, heavily pruned inference magnify mismodelling?
The second check is surrogate calibration. We report latency $R^2$ and resource error of the wa-hls4ml surrogate on our space, before and after recalibration, against the paper's synthetic-set $R^2 = 0.95$. Every final model is verified by real synthesis.
The third check is the head-to-head. On the held-out control half and on the full simulated signal sample, we compare $Z$, constraint satisfaction rate (against ConNAS's reported 100% on NATS-Bench and HW-NAS-Bench), synthesized latency and resources, and seed variance across all baselines.
Finally, after the method is fixed and only then, we unblind a pseudo-analysis. We compute the expected 90% upper limit on $\mathcal{B}(B^+ \to K^+\nu\bar\nu)$ including the measured $\delta$, for the best searched model, the tree ensemble and the after-search ablation. This shows whether gains in $Z$ translate into a tighter limit than the configuration that produced the published $1.3 \times 10^{-5}$.
References
- Neural architecture codesign for fast physics applications
- Ps and Qs: Quantization-Aware Pruning for Efficient Low Latency Neural Network Inference
- wa-hls4ml: A Benchmark and Surrogate Models for hls4ml Resource and Latency Estimation
- Constraint-guided Hardware-aware NAS through Gradient Modification
- FBNet: Hardware-Aware Efficient ConvNet Design via Differentiable Neural Architecture Search.
- Search for the rare decay<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mi>B</mml:mi><mml:mo>→</mml:mo><mml:mi>K</mml:mi><mml:mi>ν</mml:mi><mml:mover accent="true"><mml:mi>ν</mml:mi><mml:mo>¯</mml:mo></mml:mover></mml:math>
- B-flavor tagging at Belle II
- A z-vertex trigger for Belle II
- hls4ml: A Flexible, Open-Source Platform for Deep Learning Acceleration on Reconfigurable Hardware