After this unit you can
- Explain the pass / fail / unresolved rule and why a small refinement change is not an error bound
- Read the held-out benchmark and separate the three repairs it isolates
- Explain what “SH accuracy” does and does not mean
- Tell the g66 story: what failed, how it was established, and why
- Say when a cost comparison is meaningful
What a numerical pass means
The overlap formula was first checked against a separate ray construction that never calls it: points sampled in the inner mouth send rays toward the source and are intersected with wall triangles. The archived gate has 93 geometry–direction cases plus eight domain fixtures, and all 558 comparisons lie within their sampling bounds. That checks the implementation of the geometry. It shares the ideal walls and source, so it says nothing about a physical detector.
Most comparisons then use a refined numerical reference and an empirical allowance u based on how much the result moved under refinement. For a discrepancy e:
- Pass when e + u ≤ 0.01
- Fail when e − u > 0.01
- Unresolved otherwise
A small refinement change is not a proven error enclosure. This is a declared decision rule for a finite study. The g66 case below is a concrete example of the rule being fooled.
Shape, direction and angular detail
The representation benchmark has 352 cases: 112 for calibration on eight geometries and 240 held out on twelve others (200 positive-depth, 40 flat controls). Numerical settings were chosen on calibration only. It separates three choices:
- Is the response updated when the shape changes, or frozen at a reference shape?
- Is azimuthal structure kept, or averaged about the normal (a zonal average)?
- How finely is the remaining angular function represented? Spherical harmonics (SH) are an angular basis ordered by degree.
| Method | P / F / U | Max error (pp) | Negative predictions |
|---|---|---|---|
| Scalar attenuation | 0 / 240 / 0 | 80.0175 | 0 |
| Frozen zonal | 0 / 239 / 1 | 94.9324 | 0 |
| Updated zonal | 89 / 151 / 0 | 23.1025 | 0 |
| Frozen full SH | 3 / 236 / 1 | 93.9473 | 0 |
| Updated full SH | 221 / 19 / 0 | 4.4984 | 3 |
| Direct geometry | 240 / 0 / 0 | 0.0138 | 0 |
| Visibility lookup | 240 / 0 / 0 | 0.1198 | 0 |
Read it as a sequence of repairs. Updating the shape fixes one omission (compare frozen with updated). Keeping azimuth fixes another (zonal with full). Even after both, a finite expansion can be too smooth for narrow light: updated degree-24 SH passes all 72 held-out 5° cones but only 64 of 72 at 2° and 61 of 72 at 1°. No tested SH degree passed every calibration case, so degree 24 is reported as the predeclared maximum, not as a calibrated success.
The same representation has a restricted success that matches Unit 3: nine degree-two moments predict all 24 held-out isotropic and polynomial-field cases with maximum observed error 4.745 × 10⁻⁶.
Physical plausibility is not an accuracy test. Three updated-SH predictions are negative yet still within the error target. All nineteen of its accuracy failures lie inside [0, 1]. Clipping predictions into range would hide symptoms without establishing correctness, so the raw values are kept.
Keeping the boundary
There is more than one way to use spherical harmonics. The benchmark above expands the whole visibility-modulated kernel. A different approach keeps the projected aperture boundary explicitly and integrates a low-degree illumination over the admitted region. The paper implemented the published clipped-domain equations of Belcour et al. in a local adapter (the original authors’ code was not run).
On twenty reused cases, direct integration and the lookup each pass all twenty; the clipped adapter passes eighteen and leaves two unresolved, dominated by spatial integration over the mouth. The worst whole-kernel SH case passes with the boundary kept. So “SH accuracy” cannot be stated without saying what is expanded and where the boundary lives. This comparison is post hoc.
A sound record can feed an inaccurate integrator
Two further panels each have 72 new prisms and seventeen queries per prism (broad sources, finite cones, mixtures): 2,448 queries with inclined poses, offsets and grazing responses.
| Method | Passes, panel 1 | Passes, replication | Max, panel 1 | Max, replication |
|---|---|---|---|---|
| Equal-area square surrogate | 430 | 415 | 0.88646 | 0.90814 |
| Packed degree-two SH | 271 | 252 | 2.93194 | 3.14985 |
| Full precision, coarse direct | 1,194 | 1,193 | 0.62537 | 0.16059 |
| Binary16, coarse direct | 1,194 | 1,194 | 0.62498 | 0.16035 |
| Binary16, intermediate direct | 1,201 | 1,194 | 0.15842 | 0.07982 |
| Initial source-routed rule | 1,220 | 1,220 | 0.01507 | 0.02913 |
| Revised source-routed rule | 1,224 | 1,222 | 0.00505 | 0.02182 |
| Binary16, fine paired integration | 1,224 | 1,224 | 0.00161 | 0.00186 |
Compare the two coarse rows: full precision and binary16 storage fail the same stress cases. More storage precision does not repair insufficient integration. Fine integration of the binary16 record passes everything under the empirical allowances.
The g66 failure
A revised integration rule, developed on the first panel, refines a broad-field integral until twice its largest observed change is at most 0.001. On replication geometry g66 it stopped with a refinement indicator of only 0.000359 and an isotropic prediction near 0.168818. An independent high-order calculation gives about 0.147004.
Agreement between numerical methods still would not settle which is right. A separate enclosure of the ideal integral does:
| Source | Prediction | True transmission enclosure | Error exceeds |
|---|---|---|---|
| Isotropic | 0.168818 | [0.145911, 0.148097] | 0.02072 |
| 65% isotropic mixture | 0.109731 | [0.094842, 0.096263] | 0.01346 |
The mixture fails for the same reason: its cone contributes no transmitted flux, so Tmix = 0.65 Tiso. One bad broad integral, two failed queries.
Why it happened
Write 𝖠 = W−1. The smooth factor in the displacement integrand is
A large singular value of 𝖠 squeezes appreciable weight into a narrow strip. For g66 the singular values are about 54.7021 and 0.9142, so the strip is about 1/54.7021 ≈ 0.01828 wide, far narrower than the support. It is tilted and centred near β = (0.7734, −0.4171), away from the quadrant boundaries. Splitting at zero removes the tent creases but does not resolve the strip.
The failure is subtler than a grid missing the light. Orders 16 and 32 per quadrant give about 0.16863832 and 0.16881765, two overestimates that nearly agree. Order 24 gives 0.08994343; order 64 gives 0.14681339. Agreement between two orders was a coincidence, and the stopping rule trusted it.
The remedy that fits this case
For isotropic light, integrate the narrow coordinate analytically and apply quadrature only to the other. That gives about 0.147004102183 for the original input and 0.146967585774 for the decoded record, a difference of about 3.65 × 10⁻⁵. The rounding was harmless; the integration was not.
The lesson. Examine the integrand’s scale and position, resolve difficult directions instead of refining blindly, and use a defensible bound when a guaranteed decision is needed. A small observed refinement change can miss an error well above the target.
Cost comes after adequacy
A compact representation pays off when the same opening is queried many times; its construction cost returns whenever the shape changes. In the paper’s cost audit (1,000 mixed queries, median seconds on one machine), direct integration took 0.093966 with a fixed shape and 0.132537 when the shape changed every query; the visibility lookup took 0.083372 and 0.484670. At high reuse the two are similar. Rebuilding a lookup for every query is much more expensive.
Degree-24 SH supports no matched-tolerance speed claim on the mixed matrix, because it does not meet the accuracy requirement in the first place. The results support choosing a representation for a defined workload, not a universal ranking.
Check yourself
A method’s result changes by 0.0002 when its resolution is doubled. Is its error below 0.01?
Not established. g66 changed by a similar amount between orders 16 and 32 and was wrong by more than 0.02. Only an enclosure or another defensible bound settles it.
In the held-out table, which pair of rows shows the cost of not updating the shape?
Frozen full SH (3 passes) against updated full SH (221 passes). Same angular basis, same degree; the only change is recomputing the response for the current shape.
Updated full SH has three negative predictions. Are those its failures?
No. Those three still meet the absolute-error target. Its nineteen failures all lie in the physical range. Plausibility and accuracy are separate properties.
Why do both g66 queries fail from one mistake?
The mixture’s narrow component transmits nothing, so the mixture’s transmission is 0.65 times the isotropic one. The error in the isotropic integral carries straight through.
What single feature of g66’s geometry makes its integral hard?
The inverse slope map has singular values near 54.7 and 0.91. That anisotropy concentrates the integrand in a strip about 0.018 wide in displacement coordinates, off the axes where the rule splits.
Did rounding to binary16 cause the g66 failure?
No. The analytic-reduction estimates for the original and decoded records differ by about 3.65 × 10⁻⁵. The saved prediction misses the decoded ideal by about 0.02185. It is an integration failure on a sound record.