Experiments hunting for extremely rare nuclear decays, such as neutrinoless double-beta decay in germanium detectors, must throw away almost every event they record. The main tool is pulse-shape discrimination: reading the shape of each detector waveform to tell a genuine point-like energy deposit from a background gamma ray that scattered at several places in the crystal. Learned discriminators now match the classical hand-built cut. A small convolutional autoencoder, a network that compresses each waveform into a few numbers, followed by a 141-parameter classifier reaches the same working point as that cut. So far these models have only run offline on desktop computers. Meanwhile, chips with eight low-voltage RISC-V cores (GAP8/GAP9, Mr. Wolf) run small neural networks on EEG at tens of microjoules to a fraction of a millijoule per inference. Nobody has put the two together, and the obvious port would miss the main point.
We propose to run the cheap classical cut on the chip's single always-on controller core for every pulse. The eight-core cluster wakes only for the small band of pulses where that cut is uncertain, and there it runs a quantized version of the learned discriminator. This does two things. It targets the learned model at exactly the events where the germanium literature says it adds information. It also brings back the "finish fast, then sleep" energy advantage of multi-core chips in the high-rate calibration regime, where continuous streaming would otherwise remove it. The claim is that such a cascade matches the background rejection of always running the learned model, at a fraction of its energy per event. The ambiguous fraction is the quantity to measure and the one that sets the savings.
Core Claim
The germanium pulse-shape discrimination (PSD) literature points to an uneven split of difficulty. Deep learning based pulse shape discrimination for germanium detectors trains an autoencoder on 256-sample current waveforms, compresses each to a 7-dimensional code, and classifies that code with a 141-parameter network. On ²²⁸Th calibration data it reports 90% rejection of multi-site full-energy-peak events at 90% acceptance of single-site double-escape-peak events. That is parity with the classical A/E cut (peak current divided by energy). Its main qualitative finding is that the learned model catches a specific subpopulation that A/E gets wrong: multi-site events with a tall first current peak. Parity overall, combined with gains on a subpopulation, implies that most events are classified the same way by both methods. What the network adds is concentrated near the A/E decision boundary.
On the hardware side, parallel ultra-low-power chips save energy through two mechanisms. The first is voltage scaling: running many cores slowly at low voltage cuts power roughly quadratically. The second is race-to-sleep: finishing each burst quickly and powering down leaky peripherals. The research file notes that under continuous high-rate streaming the second mechanism disappears. We state the energy per event of a cascade as
$$E_{\text{event}} = E_{\text{gate}} + p_{\text{amb}}\,(E_{\text{wake}} + E_{\text{cluster}}),$$
where $E_{\text{gate}}$ is the energy to compute A/E on the controller core, $p_{\text{amb}}$ is the fraction of pulses falling in the uncertain A/E band, $E_{\text{wake}}$ is the cost of powering the cluster on and off, and $E_{\text{cluster}}$ is the cost of the quantized encoder plus classifier on eight cores. The quantity $p_{\text{amb}}$ is not a free parameter. Its value at equal rejection is an empirical fact about germanium waveforms that no paper in the file reports. Measuring it is the first contribution. Showing that the cascade actually delivers the predicted saving on silicon is the second.
Research Program
The first stage is purely offline. We reproduce the encoder and classifier of the germanium deep-learning paper at inference; the decoder is discarded because only the encoder is needed. We compute A/E on the same ²²⁸Th calibration waveforms and map how the two methods agree and disagree as a function of A/E. From this we choose a two-sided A/E band. Pulses outside the band are decided by A/E alone and pulses inside go to the network. We trace the curve of background rejection at fixed 90% signal acceptance against $p_{\text{amb}}$. If the curve reaches the full network's rejection at small $p_{\text{amb}}$, the cascade is worth building. If it needs most pulses, we learn that A/E's errors are not boundary-local, and the proposal reduces to a straightforward port.
The second stage is quantization aimed at the hard events. The multi-core literature shows 8-bit networks losing little accuracy on EEG: Q-EEGNet loses 0.4 points with quantization-aware training on the 8-core Mr. Wolf chip. The rare-event community's concern is different, namely that integer arithmetic erases small morphological features. The cascade sharpens that concern, because the network only ever sees the hardest pulses. We therefore evaluate 8-bit and 16-bit versions on the ambiguous subset specifically, not on the whole dataset, and compare full score distributions against the 32-bit float model rather than a single accuracy number.
The third stage is deployment on a GAP9 board. A/E runs on the controller core; it needs a discrete derivative, a maximum and one division. The encoder runs on the 8-core cluster with SIMD 1D convolution kernels in the style of Q-EEGNet and EpiDeNet, and double-buffered DMA of waveform blocks into L1. The cluster is woken through the hardware event unit. We measure $E_{\text{gate}}$, $E_{\text{wake}}$, $E_{\text{cluster}}$ and latency with an external power monitor. We then check the energy equation against measured energy per event while replaying calibration waveforms at a range of injected rates. At low rates both designs sleep between pulses. At the highest sustainable rate the always-on design never sleeps, while the cascade's cluster still does. The crossover between these regimes is part of what we report.
Baselines
The naive reference point is the A/E cut alone, computed on the controller core. It sets the energy floor and the rejection that any added complexity must beat. By the germanium paper's report, it achieves the same 90%/90% working point as the learned model. Its tuning is the standard single-threshold choice at 90% signal acceptance on the same calibration split.
The strongest existing discriminator is the autoencoder plus 141-parameter classifier of Deep learning based pulse shape discrimination for germanium detectors, with its reported 90% FEP rejection at 90% DEP acceptance. It is the strongest competitor because it is the only learned germanium PSD in the file with a reported working point, and because it is what the cascade calls internally. We run it in two ways: in float offline, and always-on in 8-bit on the full GAP9 cluster for every pulse. Both use the same training data, the same quantization-aware training budget and the same kernels as the cascade. The cascade beats it if it matches rejection within statistical error at 90% acceptance while using less energy per event at every tested rate. No embedded energy figure exists for this model: no reported result was found on Lacuna for PSD energy per inference on any embedded processor. The closest reference points are EpiDeNet's 0.051 mJ per inference on GAP9 for an EEG network and the 4.03 µJ per inference of the tree ensemble below.
A non-neural competitor comes from Energy-Efficient Tree-Based EEG Artifact Detection. That paper uses Haar wavelet and FFT features with a pruned Extra Trees ensemble, parallelized on Mr. Wolf at 4.03 µJ per inference. We port it to germanium waveforms, prune it to fit L2, and give it the same hyperparameter search budget as the network. DNN Is Not All You Need gives 6.56–7.64× 8-core speedups for such models, so this baseline may be cheaper than the network. It is also tested as the cascade's second stage, in place of the encoder.
Two ablations isolate the key ingredient, which is the informative gate. The first sends a random fraction $p_{\text{amb}}$ of pulses to the network. If the gate is doing real work, this should recover almost none of the network's extra rejection. The second runs the always-on network with no gate on a single core versus eight cores. This separates the multi-core saving from the cascade saving, and both are compared against a Cortex-M class single-core figure where the literature supplies one (for example Q-EEGNet's 0.082 GMAC/s/W on Cortex-M7).
Why not just…?
Why not just use A/E and skip learned models entirely? This is the most serious threat. The germanium paper reports parity at 90%/90%, so at that working point the network does not beat A/E in aggregate. Its evidence for added value is the qualitative finding that it catches tall-first-peak multi-site events A/E misses. Stage one tests this directly. If rejection in the A/E-ambiguous band does not improve with the network, or improves only at operating points experiments do not use, we will say so, and the recommendation becomes A/E on the controller core. We will also sweep acceptance levels, because a gain hidden at 90% may appear at the tighter points used in double-beta searches.
Why not just port the full autoencoder to GAP9 and run it on every pulse? It is simpler and needs no gate threshold. It is also a first-class baseline here. The argument against it is energetic, not about accuracy. Under streaming at high rate it keeps the cluster permanently awake, which forfeits race-to-sleep. The cascade has to show a measured saving at matched rejection, and if $p_{\text{amb}}$ turns out large the saving vanishes, which the experiments will show.
Why not just use a pruned tree ensemble on wavelet features? Trees won against CNNs on EEG artifacts at microjoule cost, so this could match the network. The LEGEND data-cleaning work, Machine learning-powered data cleaning for LEGEND, did get a 0.024% physics sacrifice with wavelets and an SVM. But that work addressed noise rejection, not single- versus multi-site discrimination, and its training was capped near 10,000 events by memory. We treat trees as an interchangeable second stage. If they match the network in the ambiguous band at lower energy, the cascade keeps its structure and changes its expensive stage, which is a result rather than a failure.
Why not just use an FPGA, as front-ends already do? The sPHENIX system in Intelligent experiments through real-time AI meets roughly 9 µs latency on an Alveo U280, a server-class card. Our target is a milliwatt-scale module near the detector where such power is unacceptable. We do not claim to beat FPGAs on latency, and we do not benchmark one.
Proposed Experiments
The primary dataset is ²²⁸Th germanium calibration waveforms with double-escape-peak (signal-like) and full-energy-peak (background-like) labels, as used by the germanium deep-learning paper. Access to comparable data from a LEGEND-style test stand is a dependency. The CLYC high-rate simulated set of Model-Based Deep Learning Algorithm for Pulse Shape Discrimination in High Event Rates serves as a secondary stress test of gate behaviour under pileup. On it the classical methods drop below 90% accuracy while the paper's hybrid network reaches about 98.7% at 10 Mcps, which suggests the ambiguous fraction may be far larger there.
The metrics are background rejection at 90% (and tighter) signal acceptance, with binomial errors; $p_{\text{amb}}$; measured energy per event and latency on GAP9; and maximum sustainable event rate. There are three decisive checks. First, whether the network improves rejection inside the A/E-ambiguous band beyond random routing. Second, whether 8-bit scores on that band match float scores closely enough that rejection is unchanged within errors. We examine the high-score tail explicitly, and acknowledge that calibration statistics cannot probe the 10⁻⁷ leakage levels of liquid-argon experiments such as DEAP-3600. Third, whether measured energy per event follows the linear dependence on $p_{\text{amb}}$ predicted by the equation above across injected rates. A cascade that passes all three would be the first measured-energy demonstration of learned germanium PSD on embedded hardware.
References
- Deep learning based pulse shape discrimination for germanium detectors
- Q-EEGNet: an Energy-Efficient 8-bit Quantized Parallel EEGNet Implementation for Edge Motor-Imagery Brain-Machine Interfaces
- EpiDeNet: An Energy-Efficient Approach to Seizure Detection for Embedded Systems
- Energy-Efficient Tree-Based EEG Artifact Detection
- DNN Is Not All You Need: Parallelizing Non-neural ML Algorithms on Ultra-low-power IoT Processors
- Machine learning-powered data cleaning for LEGEND: a semi-supervised approach using affinity propagation and support vector machines
- Intelligent experiments through real-time AI: Fast Data Processing and Autonomous Detector Control for sPHENIX and future EIC detectors
- Model-Based Deep Learning Algorithm for Pulse Shape Discrimination in High Event Rates
- First Results from the DEAP-3600 Dark Matter Search with Argon at SNOLAB