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.
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.
For any vector field , its normal trace is defined as the scalar boundary function ; the conormal trace of a score is then , so the boundary term depends on the score only through this conormal trace value. When the weighting matrix is the identity matrix , 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 it always holds that . When the weighting matrix is spatially constant, this equality simplifies to ; when is the identity matrix, the condition further reduces to the usual normal trace condition .
For the d-dimensional hyperrectangle domain , 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.
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.
An incorrectly fixed boundary trace forcibly introduces a positive risk floor; the driving term of this floor, , 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 on hyperrectangle domains and on simplex domains completely eliminate the trainable backbone network from the boundary score , 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 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.
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.
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.