Are High-Resolution Score Distillation Gradient Spikes a Rounding Problem?

Text-to-3D generation commonly borrows its knowledge from a 2D image diffusion model, a generator that learns to turn random noise into images by removing noise step by step. The 3D shape is rendered from random viewpoints, and the image model "grades" each rendering. Its grade is turned into a gradient that updates the shape. The detail the 3D asset can reach is capped by the resolution at which this 2D grader works. The obvious fix is to use a higher-resolution grader such as SDXL at 1024×1024. That fix breaks in a specific way. When the gradient is pushed back from the grader's compressed internal representation, through a frozen image encoder, to individual pixels, a few isolated pixels receive enormous gradients. These spikes wreck the texture. The current remedy, pixel-wise gradient clipping, caps each pixel's gradient at a hand-tuned threshold.

This note asks a question nobody in the file has asked, because it requires tools from formal verification. Are those spikes real signals from the encoder, or are they partly arithmetic error? Finite-precision floating-point arithmetic rounds every operation, and verification researchers have shown that rounding error can grow with problem dimension. The plan is to measure, per pixel, how much of each guidance gradient can be trusted given the arithmetic that produced it. If the spikes turn out to be numerical, a precision-aware mask that suppresses only the untrustworthy pixels should replace the tuned threshold. If they turn out to be real, the same measurement settles a mechanism that the clipping paper only assumed, and rules out a family of fixes.

Core Claim

The claim is that pixel-wise reliability of a score distillation gradient can be measured with techniques from sound numerical verification, and that this measurement decides how high-resolution guidance should be regularized.

Enhancing High-Resolution 3D Generation through Pixel-wise Gradient Clipping motivates the question. It identifies the unregulated backward path through the frozen encoder as the source of "zero-measure" spikes at SDXL scale. It fixes them with norm-based clipping (PGC-N), which keeps each pixel's gradient direction and caps its magnitude below a threshold $c$. It treats the spikes as an informational artifact of the latent space and never examines the arithmetic.

Getting a-Round Guarantees: Floating-Point Attacks on Certified Robustness supplies the opposing hypothesis. It shows that accumulated rounding error grows with dimensionality, from individual errors near $10^{-13}$ up to $10^3$ in high-dimensional settings. It also shows that outward-rounded interval arithmetic removes the resulting failures entirely. An encoder backward pass over roughly three million input values is exactly the kind of high-dimensional computation where this could matter. Practical pipelines often run it in reduced precision, which makes the concern sharper.

The claim is falsifiable. If spikes persist with matching locations and magnitudes when the backward pass is recomputed in 64-bit arithmetic, and if sound enclosures around spike pixels are narrow, the numerical hypothesis is dead.

Research Program

The first component is a precision ladder for the encoder backward pass. For a fixed set of renderings taken from real optimization runs, we record the latent-space score gradient once. We then backpropagate it to pixels in bfloat16, float16, float32 and float64, holding everything else fixed. For each precision we record per-pixel gradient norms, the set of pixels flagged as spikes (norm above $k$ times the image median), and how much those sets overlap across precisions.

The second component is a per-pixel error estimate that is cheap enough to run inside optimization. We repeat the backward pass twice, once with all rounding directed toward $-\infty$ and once toward $+\infty$, the hardware rounding modes that outward-rounded verifiers use. The gap between the two results is a cheap empirical indicator of how sensitive each pixel's gradient is to rounding. It is not a guarantee.

The third component provides a sound check. Scaling Polyhedral Neural Network Verification on GPUs showed that outward-rounded interval and polyhedral bounds can run fast on GPUs. That work was evaluated only on classification networks, and it reports roughly twice the memory and more than twice the floating-point operations of unsound execution. We cannot afford this over a whole 1024² encoder. However, the encoder is convolutional, so each pixel's gradient depends only on a bounded neighborhood of activations and latent gradients. For a sample of spike pixels and matched non-spike pixels, we extract that receptive-field patch. We then propagate sound outward-rounded intervals through both the forward activations and the linear backward map, which yields a certified enclosure of the true real-number gradient. The polyhedral relaxations in that paper are a fallback if plain intervals are too loose. The goal is a statement such as "this spike's true value lies within ±x% of the computed value," and its opposite for any pixel where the arithmetic is unreliable.

The fourth component turns the measurement into a regularizer, but only if the first three justify it. Precision-aware masking zeroes or shrinks a pixel's gradient when its rounding-sensitivity gap exceeds a fraction of its magnitude, and leaves all other pixels untouched. Unlike PGC-N it has no magnitude threshold, so real large updates at sharp structures survive.

Baselines

The naive reference point is unclipped score distillation with an SDXL backbone in the Fantasia3D and Stable-DreamFusion pipelines used by the clipping paper, run in their default precision. It establishes that spikes occur and that generation degrades.

The strongest existing method on this exact question is PGC-N from Enhancing High-Resolution 3D Generation through Pixel-wise Gradient Clipping. That paper reports that PGC-enhanced models were preferred in 84.44% of 180 user picks, versus 10.56% for Fantasia3D without PGC. No reported 3D-FID or T3Bench result was found on Lacuna for PGC. We will run PGC-N with its threshold tuned over the same number of trial runs given to our masking's single tolerance parameter. Prompts, seeds, iteration counts and GPU budget will be identical. We will beat it if precision-aware masking wins a blinded pairwise preference study against tuned PGC-N, and does not lose on T3Bench quality or alignment or on 3D-FID.

The distribution-level reference is Variational Score Distillation from ProlificDreamer, which reports a 3D-FID of 107.02 against 118.92 for SDS on its 100-prompt suite. It changes the objective rather than the gradient path, so it brackets how much of the quality gap a numerical fix could plausibly close.

The key ablation replaces the rounding-sensitivity mask with a random mask that zeroes the same number of pixels. This isolates whether the pixels we select matter, or whether discarding any small fraction of gradients would do as well.

Why not just…?

Why not just run the encoder backward pass in float64? This is the most serious threat, and it is built in as the first experiment rather than argued away. If float64 removes the spikes, the practical answer is "recompute this one backward pass at higher precision." The contribution then shrinks to the diagnosis plus a cost comparison against masking. The verification literature does argue that higher precision shrinks rounding error without bounding it. Getting a-Round Guarantees found boundary violations under default round-to-nearest even with tiny per-operation errors. GPUPoly's authors note the throughput cost of wider types. For guidance, a smaller unbounded error may be good enough, so we will report it plainly if it is.

Why not just keep PGC-N? It works, as its 84.44% preference shows. However, it needs a tuned threshold, and it truncates every large update, including real ones at sharp edges. If our measurements show the spikes are real, PGC-N is the right tool and we will say so. The decisive comparison is the edge-detail evaluation described below.

Why not just avoid the encoder path, for example with image-space losses as in HIFA? HIFA computes the distillation loss in both latent and decoded image space to fight color shifts. That changes which path carries the gradient but does not remove the latent-to-pixel path that PGC identifies at SDXL scale. We include a dual-space variant as an additional comparison. If it alone eliminates the spikes, that is itself evidence that they come from the encoder pathway rather than from rounding.

Proposed Experiments

The decisive check comes first and is cheap. On about 200 renderings drawn from SDXL-guided runs, we measure the overlap of spike pixel sets between float32 and float64, and the relative change in spike magnitudes. Above 90% overlap with under 1% magnitude change means the spikes are informational. In that case we stop the regularizer work and publish the attribution, with sound patch enclosures confirming that the computed spikes are accurate. Low overlap, or spikes that vanish in float64, means they are numerical, and the masking work proceeds. A precision dependence that appears only in bfloat16 or float16 is the likely middle outcome. It would point to an engineering fix and still validate the per-pixel diagnostic.

Downstream, we evaluate on T3Bench across its three prompt levels using its multi-view quality and alignment metrics. We also use ProlificDreamer's 3D-FID protocol on its 100 prompts and a blinded pairwise user study mirroring the clipping paper's design. To test the claim that magnitude clipping kills real detail, we render close-up crops at high-gradient structural edges. There we compare high-frequency energy and preference between PGC-N and masking, alongside the random-mask ablation. Finally, we repeat the ladder on Zero123 at 256×256 as a low-resolution control, where rounding should matter least. Finding the same precision dependence there would undercut any resolution-specific story.