Preprocessing as a Hidden Nuisance Model in Low-Count Spectra

Spectroscopists routinely "clean" raw spectra before analysis. They take derivatives to remove baseline offsets, rescale each spectrum to unit spread to cancel scattering, and divide by a smooth envelope to isolate absorption bands. Physicists who count rare events do the opposite: they fit raw bin counts with a Poisson likelihood, the statistics of independent random counts, because the count level itself sets how certain any result can be. This note argues that the two practices are one decision stated in different terms. Every common preprocessing step is an implicit claim about which nuisance distortions the analyst does not trust the physical model to predict. A derivative says "I don't trust the absolute baseline." Standard Normal Variate scaling, which subtracts each spectrum's mean and divides by its standard deviation, says "I don't trust the overall offset or gain." Written as explicit nuisance terms inside a Poisson likelihood, those same claims keep the count information that preprocessing throws away. They also make the model dependence of the final result auditable.

The proposal builds and tests this translation. It then uses it to address an open problem in model-dependent inference: how flexible should the nuisance model be? Too rigid, and a slightly wrong template produces confidently wrong exclusion limits. Too flexible, and weak signals disappear. We propose choosing the smallest nuisance family whose confidence intervals keep their stated coverage across an ensemble of plausible alternative templates. We then measure the resulting trade-off between sensitivity and robustness as a function of event count, in both physics-style counting spectra and chemometric spectra deliberately degraded to low photon counts.

Core Claim

In the high-count, near-Gaussian regime, a linear preprocessing step that exactly removes a family of nuisance shapes gives the same parameter estimate as fitting the raw data while profiling (fitting and then optimizing away) free coefficients on those shapes. This is the standard linear-model fact that projecting out regressors is equivalent to including them. Preprocessing therefore buys nothing that explicit profiling cannot. In the low-count regime the equivalence breaks. Smoothing and differencing mix neighboring Poisson bins into correlated, non-Poisson quantities. Data-dependent rescalings such as Standard Normal Variate and Multiplicative Scatter Correction divide by noisy statistics of the spectrum itself and erase the absolute count $N$, whose $1/\sqrt{N}$ scaling governs every confidence interval.

Our claim has three parts. First, explicit nuisance profiling in a Poisson likelihood should strictly dominate "preprocess, then fit" once per-bin counts fall to roughly tens of events. Second, the nuisance family itself should be chosen by coverage across a template ensemble, not by hand. Third, the choice produced this way gives tighter expected limits than a generically flexible background at equal coverage. The first part is close to textbook and serves as a sanity check. The second and third are where the research risk and the value lie.

Concretely, for bin $i$ at energy or wavelength $x_i$, the expected count is modeled as

$$\lambda_i(\theta,\eta,\gamma) = m_i(\theta)\,\exp\Big(\sum_{k=1}^{K}\eta_k\,\phi_k(x_i)\Big) + \sum_{j=1}^{J}\gamma_j\,\psi_j(x_i).$$

Here $m_i(\theta)$ is the physics template with parameters of interest $\theta$. The smooth basis functions $\phi_k$, with coefficients $\eta_k$, carry multiplicative distortions, which is the job continuum removal and scatter correction do implicitly. The basis functions $\psi_j$, with coefficients $\gamma_j$, carry additive baselines, which is the job derivatives do implicitly. The analysis profiles $\eta$ and $\gamma$ in the exact Poisson likelihood. The choice rule is

$$(K^\ast,J^\ast)=\arg\min_{K,J}\ \mathbb{E}\big[\text{upper limit on }\theta\big]\quad\text{subject to}\quad \min_{t\in\mathcal{T}}\ \mathrm{Cov}_t(K,J)\ \ge\ 1-\alpha.$$

In this rule, $\mathcal{T}$ is an ensemble of alternative templates, $\mathrm{Cov}_t$ is the empirical coverage of the interval when data are generated from template $t$ but fitted with the nominal one, and $1-\alpha$ is the nominal confidence level.

Research Program

The first component is an equivalence map. For each transform in the chemometrics toolbox, we derive the nuisance subspace it annihilates, exactly or to first order. The transforms are first and second derivatives (as used by Yao et al. on soil organic carbon and by Lovergne et al.'s FTIR neurodegeneration biomarker), Savitzky–Golay polynomial smoothing (Hu et al. on grape ripeness), Standard Normal Variate scaling (Zhang et al. on olive oil adulteration), Multiplicative Scatter Correction (Zhao et al. on rice origin), $L_1$ normalization (Rees on skin imaging), and continuum removal (Dong et al. on GF-5 minerals). These papers motivate the proposal. They show that preprocessing is where much of the empirical accuracy comes from: MSC raises raw hyperspectral accuracy from about 60% to about 88%, and continuum removal is what makes orbital sericite subclass mapping possible at all. None of them says what nuisance model it is assuming. Yao et al. also report CNN overfitting relative to FD-CARS-PLSR, which constrains our design toward low-parameter explicit models. For smoothing, which has no annihilated subspace, the map instead gives the induced bin-to-bin covariance. We then quantify how much a naive independent-bin fit misstates significance, which is the file's Gap 1.

The second component is a pair of controlled counting testbeds, because the relevant experimental data are not in our hands. The first testbed is a beta-decay endpoint spectrum modeled on the setup in First Constraints on General Neutrino Interactions Based on KATRIN Data. That paper fits broad spectral-shape distortions from general neutrino interactions jointly with the neutrino mass. It finds the limits statistics-dominated, with boundaries that shift sharply depending on which operators float. That shifting is exactly the model dependence our coverage criterion is meant to audit. The second testbed is a narrow peak over a structured background, of the kind in the complete EXO-200 search. We do not reproduce either experiment. We borrow their shapes and scale total counts from about $10^2$ to about $10^7$.

The template ensemble $\mathcal{T}$ is built from perturbations the physics literature identifies as realistic. On the endpoint side, these are different operator subsets and small shape distortions of the detector response. On the peak side, they are background component mixtures and energy-scale drift. The neutrino-scattering theory review and the generator-dependence concerns summarized in the file motivate treating the template as uncertain rather than fixed.

The third component brings the chemometric regime into the counting world. We Poisson-thin the measured reflectance spectra: each spectrum is rescaled to an assumed photon budget and counts are resampled, so the same datasets can be walked from their native high signal-to-noise ratio down to tens of counts per band. We would use the Yunzhou soil set (300 samples) and the olive oil fluorescence set (180 samples) if the authors release them. Otherwise we fall back to whichever of the file's datasets is obtainable. Here $\theta$ is the analyte concentration, and the template ensemble comes from scattering and baseline variation across samples. This is the setting where preprocessing's loss of absolute flux (the file's Gap 2) should become measurable.

Baselines

The naive reference point is the raw fixed-template Poisson fit with no nuisance terms. It has the highest nominal sensitivity and should fail coverage whenever the data-generating template differs from the nominal one. Reporting its coverage collapse quantifies the model dependence we are trying to control.

The strongest chemometric competitor is preprocess-then-regress. In the thinned chemometric data this is First Derivative plus CARS band selection plus partial least squares, the best pipeline in Yao et al., which reports validation $R^2 = 0.83$ on the Yunzhou soil set. It also includes SNV plus partial least squares, which Zhang et al. report at $R^2 = 0.9951$ and RMSE $0.02236$ on olive oil. In the counting testbeds the equivalent is preprocessing followed by a Gaussian fit with propagated covariance. Linear models are the right strongest baseline here. Gupta et al. found linear kernels often beat nonlinear ones across more than 75,000 produce spectra, and Zhao et al. found partial least squares discriminant analysis the most stable. We must first reproduce the published $R^2$ values at native signal level before thinning. Beating these baselines means lower RMSE at equal or better prediction-interval coverage once per-band counts fall below the crossover. At native counts we expect a tie, and a tie there confirms the equivalence map rather than counting against it.

The strongest physics-side competitor is a raw Poisson fit with a generically flexible background: a fixed high-order polynomial, or a spline, with a hand-chosen number of terms. This is what a careful experimentalist would do. It gets the same data, the same template ensemble for evaluation, and the same compute. Its flexibility is swept over the same grid our selection rule searches, and each setting is scored by expected limit at the coverage it achieves. Beating it means a lower median expected 90% upper limit at matched worst-case coverage. For scale on the peak testbed, EXO-200 reports a median 90% CL half-life sensitivity of $5.0\times10^{25}$ yr, a roughly 25% gain from its neural topological classifier. For the KATRIN-style endpoint testbed, no reported numerical GNI coupling bound was found on Lacuna. Because our testbeds are synthetic, these figures are orientation only, not targets.

Two ablations isolate the key ingredients. Replacing the exact Poisson likelihood with a Gaussian one, holding the nuisance family fixed, isolates the value of keeping counts. Replacing coverage-based selection with a fixed family chosen once by the chemometric equivalence map, with no ensemble, isolates the value of the selection rule.

Why not just…?

Why not just fit the raw Poisson likelihood with a flexible background, as physicists already do? This is the real threat. Our method is a principled way of choosing that background's flexibility, not a replacement for it. If a single fixed flexibility, tuned once, matches our selected family's expected limits at equal coverage across all count levels and both testbeds, then the selection rule adds nothing. We would then report the equivalence map and the crossover measurements as the contribution. The flexibility sweep in the baselines settles this directly. The motivating evidence that flexibility matters is the KATRIN finding that exclusion contours move substantially with the set of floated terms.

Why not just keep the chemometric pipeline, since SNV and derivatives already work? At native signal levels they do work, and we expect to tie them. The concern is specific to low counts. SNV divides by a sample standard deviation that becomes noisy and correlated with the signal as counts drop, and it erases the absolute scale needed to set intervals. Nothing in the file measures chemometric pipelines below high signal-to-noise. Yao et al. explicitly leave low-signal detection limits open. The thinning experiment is the test.

Why not just collect more data? Halving a statistical error costs four times the exposure. The KATRIN analysis projects only a threefold GNI sensitivity gain from years of further running. More decisively, template misspecification bias does not shrink with $N$. As statistical error falls, a fixed bias becomes a larger fraction of it, so coverage failures grow with exposure. Our count sweep should show this directly for the naive baseline.

Why not just report model-agnostic bounds? The file's discussion of the precision–robustness trade-off, and the broad limits in the TRAPPIST survey analysis, show the cost. The maximally flexible end of our sweep is the model-agnostic limit, so our curves quantify exactly how much sensitivity that robustness costs.

Why not just learn the preprocessing with a neural network, as EXO-200 did? A learned filter trained on one template inherits that template's assumptions. We include a small learned spectral filter trained on the nominal template as an extra arm and evaluate its coverage on the ensemble. The prediction is that it is the most sensitive and the least robust.

Proposed Experiments

The first decisive check validates the equivalence map. At high counts, derivative-then-Gaussian and profiled-additive-baseline Poisson fits must agree on estimates and intervals to within Monte Carlo error on both testbeds. If they disagree, the map is wrong and everything downstream is suspect.

The second check is the crossover. We sweep total counts over five orders of magnitude and plot the ratio of expected limits between preprocess-then-fit and profiled Poisson, together with each method's worst-case coverage over $\mathcal{T}$. We predict that the ratio departs from one somewhere in the tens-of-counts-per-bin range. We also predict that independent-bin fits after smoothing overstate significance. We quantify this by the inflation of local significance for injected null fluctuations, the false "hotspot" mechanism documented by Telescope Array.

The third check tests the selection rule against the flexible-background sweep at matched coverage. To guard against overfitting the ensemble, we hold out template perturbations of a different type from those used for selection: selection uses operator-subset perturbations, and the held-out set uses response-shape perturbations. If coverage survives on the held-out type, the rule generalizes. If it does not, coverage selection has only memorized $\mathcal{T}$, and we would say so.

The fourth check repeats the second and third on Poisson-thinned chemometric spectra. The metrics are RMSE and 90% prediction-interval coverage, compared against the reproduced FD-CARS-PLSR and SNV-PLSR baselines.