MCP
arXivarXiv
Preprint
Published: August 4, 2026
stat.ML

Should the Boundary Term Be Learned in Reflected Diffusion? Conormal Trace and Reflection Masking

Abstract
We study score learning for reflected diffusion on bounded domains. Reflection keeps trajectories feasible but does not ensure that the learned score satisfies the boundary behavior implied by the forward process. With implicit score matching, integration by parts leaves a boundary term, and we show that it depends on one scalar at each boundary point: the diffusion- weighted normal component of the score, or conormal trace. The no-flux condition fixes this value while leaving the re- maining boundary components unrestricted; under anisotropic diffusion it generally differs from the ordinary normal score component. On hyperrectangles, our parametrization enforces the required trace without additional trainable parameters or a stochastic boundary estimator and, under regularity assump- tions, can represent the true score, whereas fixing an incorrect value creates an error that more data cannot remove. We ex- tend the construction to simplices and polygonal domains and identify reflection masking: hard reflection can keep samples feasible even when the learned trace is wrong, so post-reflection metrics may hide the error. Experiments show the clearest separation with less frequent reflection, anisotropic diffusion, and mass near intersections of constraints; under full reflection, final sample placement improves inconsistently, illustrating how hard repair can mask boundary-score errors and decouple score accuracy from downstream generation quality.
0
AI overview
Reviews
Citation graph
References · 23
Structured
This preview uses generator v1; v2 is available

Overview

This paper addresses the problem of score learning for reflected diffusion on bounded domains. It defines the notion of the conormal trace of a score, proposes a parameterization scheme that can exactly satisfy conormal trace requirements, and identifies a reflection masking phenomenon whereby hard reflection can conceal errors from incorrect boundary traces.

Background on the Boundary Term Problem in Reflected Diffusion Score Learning

Existing boundary-term handling approaches in the field fall into three distinct technical routes: the first directly eliminates the boundary term by fixing the score at wall locations to a specific value; the second estimates the boundary term via stochastic local-time corrections; the third directly enforces the boundary values required by the forward process.

Existing Boundary-Term Handling Schemes and the Basic Definition of Conormal Traces

For any vector field ww, its normal trace is defined as the scalar boundary function n⊤wn^{\top}w; the conormal trace of a score ss is then n⊤Atsn^{\top}A_{t}s, so the boundary term depends on the score ss only through this conormal trace value. When the weighting matrix AtA_t is the identity matrix II, the conormal trace reduces to the ordinary normal trace.

The paper clarifies the theoretical property of the conormal score trace under the no-flux condition: assuming the pre-stated Assumption 1 holds, on the domain boundary ∂G\partial G it always holds that n⊤At∇log⁡ρt=n⊤bteffn^{\top}A_{t}\nabla\log \rho_{t} = n^{\top}b^{eff}_t. When the weighting matrix AtA_t is spatially constant, this equality simplifies to n⊤At∇log⁡ρt=n⊤btn^{\top}A_{t}\nabla\log \rho_{t} = n^{\top}b_t; when AtA_t is the identity matrix, the condition further reduces to the usual normal trace condition ∂nlog⁡ρt=bt⋅n\partial_{n} \log \rho_{t} = b_{t} \cdot n.

Conormal-Trace-Compatible Parameterization Construction and Identification of Reflection Masking

For the d-dimensional hyperrectangle domain G=[−1,1]dG = [-1,1]^d, the paper proposes an exactly conormal-trace-compatible parameterization construction: by defining a vector field with an arbitrary smooth neural field correction, it guarantees that the flux compatibility condition holds at the relative interiors of all faces of the domain.

Fig. 1: The reflected ISM boundary term depends only on the conormal trace; the figure illustrates boundary-term handling schemes, the box-domain construction, and the masking effect of the reflection mask on trace errors

The paper extends the conormal-trace-compatible construction on hyperrectangle domains to simplex and general polygonal domains, and also identifies the previously overlooked phenomenon of reflection masking: even if the learned boundary trace is incorrect, the hard reflection operation still keeps generated samples within the feasible domain, so post-reflection downstream evaluation metrics may mask the bias in the boundary trace itself.

Theoretical Mechanism by Which Incorrect Boundary Traces Introduce Irremovable Bias

An incorrectly fixed boundary trace forcibly introduces a positive risk floor; the driving term of this floor, Δ2F\Delta^2 F, is a closed-form conormal trace (CTR) that can be computed before any experiment is run. Boundary parameterization schemes of the incorrect class cannot escape their inherent bias, no matter how much subsequent training data is invested or how the training procedure is adjusted.

For all classes of boundary parameterizations that fail to satisfy the conormal-trace compatibility requirement, the corresponding CTR is fixed at a nonzero deterministic value. Algebraic structures such as the face-vanishing factor (1−xi2)(1-x_i^2) on hyperrectangle domains and MΔ(x)M_\Delta(x) on simplex domains completely eliminate the trainable backbone network hθh_\theta from the boundary score v∂Gv_{\partial G}, making the boundary values of v entirely independent of the trainable parameters θ. The CTR is thus an attribute pre-determined by the architectural choice and does not fall within the scope of training objectives fittable by gradient descent.

For the conormal-trace-compatible parameterization scheme, the boundary gradient ratio R∂R_\partial is identically 0 for any trainable backbone h. This property directly verifies that a score construction satisfying the conormal trace requirements can completely eliminate the originally untrainable boundary bias term exactly as theory predicts, demonstrating the inherent soundness of the conormal-trace-compatible construction.

Boundary-Trace-Related Comparison Experiments and Validation

Fig. 2: Qualitative comparison of hard reflection masking incorrect boundary traces: with reflection folding, the proposed method and the Fishman-style method perform similarly; after removing reflection folding, the Fishman-style method shows clear sample leakage, while the proposed method still keeps all samples within the domain

Under the standard experimental protocol with m=1, the hard-reflection MMD² difference between the proposed method and the Fishman method is only +3.1×10⁻³, with a pooled standard deviation of about 9×10⁻³; the performance difference between the two falls entirely within the noise range attributable to random seeds, with a signal-to-noise ratio of only 0.4. Across all commonly used practical sample size ranges, the performance difference between the two remains within the +0.001 to +0.004 range, with signal-to-noise ratios at each point not exceeding 0.5. Only when m≥8 or in the extreme setting m=∞ does the structural performance difference between the two fully manifest. This continuous observation directly validates the existence of the reflection masking effect: only as the strength of the reflection fix is gradually reduced do the incorrect conormal traces gradually show observable bias in distributional metrics.

Scope of Applicability and Final Conclusions

The error-free theorem established in this work holds strictly only for hyperrectangle domains satisfying Assumption 1; the corresponding properties of the weak-trace variant remain an open problem. The conclusions for simplex domains hold only face-by-face, and the validation for polygonal domains is an empirical result under a shared Jacobian penalty, not yet backed by a complete theoretical proof.

The mid-dimensional simplex and HITChip experiments serve only as structural diagnostics. The empirical ISM method carries a risk of overfitting to the divergence. Experimental results for the near-delta constraint and single-face control scenarios are inconclusive or even absent, and are recorded only in the supplementary material.

In the hyperrectangle setting, the conormal-compatible construction introduces no additional trainable parameters and requires no extra stochastic boundary estimator; its practical operational benefits apply only in three classes of scenarios: anisotropic settings, multiple active constraints, and weak repairs.

Rating
No ratings yet
Rate
Community rating
—
/ 5
No ratings yet
Rating
—
Soundness
—
Presentation
—
Contribution
—
Confidence
—
Discussion
Top
Newest
Questions
Replication
Author
No comments yet — be the first