Reactor experiments such as JUNO plan to determine the neutrino mass ordering, meaning whether the third neutrino is the heaviest or the lightest. The signal is a tiny left-or-right phase shift of fast ripples in the measured antineutrino energy spectrum. The main thing that could fake that shift is fine structure in the reactor's own emitted spectrum, at energy scales comparable to the ripple period. A near detector can pin down the coarse shape of the reactor spectrum but not that fine structure. This proposal builds a generator of plausible fine structure that matches the near-detector measurement exactly. It then asks how often such structure erodes or flips the ordering verdict. The generator is a diffusion model, which learns to turn random noise into realistic samples by repeated denoising. At every denoising step its clean-sample estimate is projected onto the set of spectra consistent with what the detector actually measured.
The same mathematical problem appears in a setting where the answer can be checked: musical micro-timing. A quantized drum score fixes which grid cell each hit falls in. The human performance hides in the part the score cannot see, the millisecond offsets within each cell. We use the Groove MIDI Dataset, where those hidden offsets are recorded, to test whether projected diffusion produces realistic "invisible" structure. Only then do we trust it on reactor spectra, where the invisible part has no ground truth. Of the three input directions, iterative constraint projection supplies the method. Temporal rigidity supplies the diagnosis that a model's representation grid decides which sub-resolution structure it can express, plus a validation testbed. The mass ordering is the application where the answer matters.
Core Claim
Published ordering sensitivities rest on an assumption about structure finer than the near detector can resolve. The clearest example is the 3–3.5σ, $\Delta\chi^2_{\text{MH}}\sim 10$–$12$ in six years reported by Li et al. and the 3–4σ in Neutrino physics with JUNO. That assumption usually takes the form of uncorrelated bin-to-bin shape freedom or a smooth flux model. The known "5 MeV bump" in reactor flux models shows that unmodeled shape features exist. Both are coarse-graining problems: the observation is a linear or box-shaped summary of a finer object, and the decision depends on the part of that object the summary does not determine (the "null space").
We claim that a diffusion prior over continuous-energy reactor spectra, sampled with projection onto the exact near-detector-consistent set, gives a calibrated distribution of ordering sensitivity rather than a single number. The decisive question is falsifiable. If a Gaussian-process prior conditioned on the same constraints gives the same distribution, the diffusion machinery is unnecessary, and we will report that.
The constraint set at reactor-spectrum level is convex. Here $s$ is the unoscillated spectrum on a fine continuous-energy representation, $R$ is the near-detector response, $d$ the near-detector measurement with covariance $\Sigma$, and $\tau$ a tolerance set by its statistical error:
$$\mathcal{C}=\{\,s\ge 0:\ \|\Sigma^{-1/2}(Rs-d)\|_2\le\tau\,\}.$$
At each reverse step $t$ the denoiser predicts a clean spectrum $\hat s_0=f(x_t,t)$. We replace it with $\Pi_{\mathcal{C}}(\hat s_0)$, the nearest point in $\mathcal{C}$, before re-noising to $x_{t-1}$. Because $\mathcal{C}$ is convex, this projection is a small second-order cone program with a unique solution. That sidesteps the known failure of projection onto non-convex sets. For music, $\mathcal{C}$ is a box: each onset must stay within half a grid step of its score position.
Why This and Not the Obvious Idea
The obvious combination of these directions is to "unfold" the binned reactor spectrum with a diffusion model and enforce the oscillation formula (the PMNS mixing matrix) by projection. Diffusion-based unfolding already exists for collider events, in Diff-Unfolding and variable-length latent variational diffusion. Both use unconstrained sampling on jet-level data. A projected version for oscillation spectra would be new but pointless.
The ordering test is a likelihood ratio between two fully parametric hypotheses. No deterministic processing of the data, whether unfolding, de-binning or "inverting" multi-core baseline smearing, can increase the information it carries. Projecting onto the oscillation manifold simply reproduces a parametric fit. For the same reason we reject the GrooVAE-style idea of learning to undo the $\Delta\chi^2\sim 5$ loss from baseline smearing. That loss is information destroyed in the detector, not an analysis artifact.
The genuine uncertainty lives in nuisance structure, and that is where a learned, constraint-respecting prior can change a scientific conclusion.
Research Program
The method comes from the $x_0$-projection line of work. Constrained Posterior Sampling projects predicted clean time series onto hard constraints at each step. Efficient Fine-Grained Guidance does the same for symbolic music, reaching 0.0% out-of-key notes against 2.1%–3.5% for baselines. Its analysis also shows that violations decay only as $\mathcal{O}(n^{-1/(LH)})$ under data scaling alone, which motivates enforcing the constraint rather than learning it. Both papers work on fixed uniform grids; the music paper uses 16th notes and 4/4 meter.
Our departure is representational. We encode spectra and performances as continuous-position events plus a smooth component, not as grid cells. The reactor fine structure is generated largely by beta-decay branch endpoints, which act as sharp off-grid features. In this respect the representation is closer to the GrooVAE offset formulation of Learning to Groove with Inverse Sequence Transformations than to the beat-grid tokens of BEAT. The temporal-rigidity literature motivates this choice: Gillick et al. show that continuous offsets beat categorical bins, and that real timing has structured asymmetries that symmetric jitter misses. That literature also constrains it, because BEAT shows that finer grids are costly and that beat alignment helps coherence. For that reason we keep the coarse grid as the constraint, not as the representation.
The work has three stages. In the first, we train a continuous-offset diffusion model on the Groove MIDI Dataset and sample with box projection onto held-out quantized scores. This tests whether the projection recovers human null-space structure.
In the second, we construct a training ensemble of plausible reactor fine-structure spectra by varying nuclear-data inputs to summation-style spectrum calculations. No Lacuna resource provides this ensemble, so building it is part of the work. We train a diffusion prior on this ensemble.
In the third, we embed the projected sampler in a JUNO-like Asimov sensitivity study. The study uses the 53 km baseline, 36 GW thermal power, $3\%/\sqrt{E}$ resolution, the real multi-core layout, and a near detector following Wang et al.. We compute $\Delta\chi^2_{\text{MH}}$ for each sampled fine structure. The output is the full distribution: its median, its 5th percentile, and the fraction of samples for which the true ordering is not preferred. We also report how these quantities change when the external $\Delta m^2_{\mu\mu}$ constraint is added. Li et al. report that this constraint raises sensitivity to $\Delta\chi^2\sim 15$–$20$, and the T2K+NOvA joint analysis supplies a current $\Delta m^2_{32}$ precision.
Baselines
The naive reference point fits with a fixed reactor flux model and no fine-structure freedom. This reproduces the idealized $\Delta\chi^2\sim 10$–$12$ of Li et al., or about 5 units less with realistic multi-core smearing. Any credible nuisance model must lie at or below this, so it sets the ceiling.
The strongest existing treatment is near-detector-constrained, uncorrelated bin-to-bin shape uncertainty, as analyzed in Wang et al.. It is the standard way a near detector protects the far-detector ordering fit. We run it on the identical simulated exposure, binning, response and near-detector statistics. Its free shape amplitude is set by the same procedure as our tolerance $\tau$.
The Gaussian-process baseline gets the same treatment. It is a stationary prior on the fine-energy representation, with kernel hyperparameters fitted by marginal likelihood to the same training ensemble, conditioned exactly on the near-detector constraint (exact for linear constraints). It receives the same tuning budget as the diffusion model's architecture search.
No reported result found on Lacuna for ordering sensitivity under any learned fine-structure prior. "Beating" the baselines therefore does not mean a higher $\Delta\chi^2$. It means a more trustworthy one. On held-out spectra from the ensemble that the near detector cannot distinguish, our predicted $\Delta\chi^2$ distribution must match the realized one, while the bin-to-bin and Gaussian-process models are miscalibrated in the tail.
Two ablations isolate the key ingredients. The first replaces per-step projection with soft guidance or with a single post-hoc projection, which tests whether exact consistency during sampling matters. The second retrains the prior on a grid at analysis-bin resolution, which tests whether the continuous representation, the temporal-rigidity claim, matters.
For music, the baseline is GrooVAE, which reports a timing MAE of 18.47 ms on Groove MIDI and listener indistinguishability on humanization (Gillick et al.). Beating it means a comparable or lower MAE with a guaranteed 0% grid-violation rate, plus matching on-beat-late/off-beat-early asymmetry statistics.
Why not just…?
Why not just use a Gaussian process conditioned on the near detector? This is the real threat. Gaussian conditioning on linear constraints is exact and cheap. If the fine structure were Gaussian, it would be the right tool. Our bet is that structure built from branch endpoints is sparse and edge-like, and that its rare large excursions are exactly what fakes a phase shift. The second experiment compares tail calibration directly. If the Gaussian process matches, we drop diffusion and report the Gaussian-process result as the contribution.
Why not just compute the worst-case fine structure analytically? Maximizing the opposite-ordering fit over $\mathcal{C}$ is a convex program, and we will report it as a bound. A worst case over an unrestricted null space is generally unrealistically pessimistic and says nothing about probability. The projected prior turns the bound into a frequency, and the gap between the two numbers is itself a finding.
Why not just use finer bins or more bin-to-bin freedom? Shrinking bins below the $3\%/\sqrt{E}$ resolution starves bins of events without recovering phase information. Uncorrelated bin freedom also has the wrong correlation structure for edge-like features. The BEAT analysis of grid refinement (Qian et al.) describes the analogous cost in sequence models. The bin-to-bin baseline tests this directly.
Why not just soft guidance? Soft guidance leaves residual violations: 2.1%–3.5% in Zhu et al.. Here, a sample that is even slightly inconsistent with the near detector is not a valid nuisance draw. The soft-guidance ablation will measure how much this matters for $\Delta\chi^2$ tails.
Proposed Experiments
The music check runs first because it has ground truth. On held-out Groove MIDI performances we quantize, project-sample, and compare to the recorded human offsets. We measure timing MAE against the 18.47 ms reference, the grid-violation rate (which must be exactly zero), and the late/early asymmetry statistics. Gridded and post-hoc-projection variants are run as ablations. A failure here, for example a continuous model that cannot beat GrooVAE in the null space, would stop the reactor stage.
The decisive reactor check is a calibration test. We hold out 20% of the fine-structure ensemble as "true" reactor spectra and pass each through the near detector. Each nuisance model (bin-to-bin, Gaussian process, worst-case, projected diffusion, and its ablations) then predicts the $\Delta\chi^2_{\text{MH}}$ distribution and the wrong-ordering rate. We compare these predictions to what the held-out truths actually produce in a full far-detector fit, without and with the $\Delta m^2_{\mu\mu}$ constraint.
The proposal succeeds if projected diffusion is calibrated in the lower tail where the alternatives are not. It also succeeds as a negative result if every reasonable prior leaves the median sensitivity near the published value. In that case the near detector really does close the fine-structure loophole, which is worth knowing before JUNO publishes an ordering claim.
References
- Unambiguous determination of the neutrino mass hierarchy using reactor neutrinos
- Neutrino physics with JUNO
- Diff-Unfolding: A Model-Based Score Learning Framework for Inverse Problems
- Full event particle-level unfolding with variable-length latent variational diffusion
- Constrained Posterior Sampling: Time Series Generation with Hard Constraints
- Efficient Fine-Grained Guidance for Diffusion Model Based Symbolic Music Generation
- Learning to Groove with Inverse Sequence Transformations
- BEAT: Tokenizing and Generating Symbolic Music by Uniform Temporal Steps
- Mass hierarchy sensitivity of medium baseline reactor neutrino experiments with multiple detectors
- Joint neutrino oscillation analysis from the T2K and NOvA experiments