AF-NTC Filters Anisotropically at 25% of BC7, +1.3 to +7.6 dB vs Trilinear

Explicit LOD-Conditioned Anisotropic Filtering for Neural Texture Compression

Shin Fujieda, Takahiro Harada

cs.GR

2026-11-10

AF-NTC drives a feature-pyramid decoder with LOD, stretch, and orientation, beating trilinear BC7 by 1.3–7.6 dB on ten pairs at 25% of a mip chain.

What problem this solves

Neural texture compression has to store a material under the size of a BC7 mip chain and still hold image quality. The same texture is resampled under minification and at grazing angles. Anisotropic filtering (AF) keeps detail near the camera and strips high frequencies once the pixel footprint stretches.

Feature-pyramid NTC, the branch posting the leading rate-quality numbers, stores learned multi-resolution grids and decodes them with a small MLP. The GPU texture unit never filters those grids. They are fitted at one UV and one level of detail, so one sample per pixel aliases. Production setups then use stochastic texture filtering: fewer taps, less temporal aliasing, more noise, plus a cleanup pass. Packing latents into BC textures flips the arrangement. The hardware sampler filters the latents, and AF costs almost nothing extra. A feature pyramid only sees UV, so it never receives that footprint.

Conditioning on aspect ratio alone fails. Correct blur depends on two quantities that move separately: absolute footprint size, and how elongated the footprint is. The ratio is only the shape. Knowing a rectangle is 4:1 does not say whether it is 4 cm or 4 m, so the decoder is stuck with one scale that is right at a single distance. A small, strongly elongated footprint, the near-camera grazing case, cannot be represented. Figure 1 shows that ratio-only decoder: blurry beside the camera, by about the same amount at every distance.

Method

AF-NTC gives the decoder the same three bounded values a hardware sampler uses. From the screen-to-UV Jacobian, LOD is the log of the minor-axis length, stretch is σmax / σmin, and rot is the major-axis angle. At 4K the ranges are LOD in [0, 12], stretch in [1, 16], and rot in [0, π). The renderer passes LOD per pixel. Minor-axis length is always recovered as σmin = 2^LOD / texres, and both tap placement and the training target use that value.

Features sit on four 2D grids at 1024, 512, 256, and 128, 12 dimensions each. The two axes are filtered differently.

The MLP receives those 48 values plus one normalized LOD. rot and stretch stay out of the network. Feeding them as an extra 18-dimensional positional encoding barely moves quality, because the tap geometry has already used both. Hidden widths are 192 and 192, with leaky-ReLU and a sigmoid, writing 9 channels: albedo, an ARM packing of ambient occlusion, roughness, and metalness, and a normal. One network is fit to one 4K material. The loss is L2, with optional LOD weighting and a higher weight on normals, then quantization-aware training in Brevitas to int8. Disk size is 16.75 MB, about 25% of the 67 MB full BC7 mip chain for the same three maps.

Supervision mimics hardware AF instead of integrating the ellipse: ceil(stretch) taps along the major axis, each fetched trilinearly at mip = LOD. That target sits 37 to 41 dB from a supersampled reference and is used only for training. Reported scores are rendered frames. rot, stretch, and LOD are sampled independently, with LOD weighted by screen area, so size and elongation are not locked to one camera path.

Results

PSNR is measured in rendering space. Each method's maps are lit the same way and compared with a supersampled EWA reference, so only the maps differ. Five 4K materials run from low to high spatial frequency (bluemetal, clayroof, stonefloor, pavement, stonewall), each on a plane and a sphere. Both BC7 baselines store a full mip chain at about 4× the size and use the same software AF code as AF-NTC. aniso-BC7 is fully anisotropic. trilinear-BC7 is isotropic trilinear mip filtering with no AF. The table is the int8 model.

ComparisonSettingResult
vs trilinear BC7all 10 pairs+1.31 to +7.63 dB
vs aniso-BC7all 10 behind, mean gap 1.57 dB−0.03 to −3.37 dB
isotropic training to full AF-NTCmetal plane / stone-floor plane / pavement sphere+1.02 / +4.66 / +5.85 dB
no minor-axis blendpavement and stone floor−5.3 to −9.3 dB
about 4× model sizesameat most +0.4 dB

Switching the target to anisotropic supervision, then adding LOD, raises every pair. Low-frequency metal moves the least. High-frequency stone and pavement move the most. stonefloor is closest to aniso-BC7: 0.03 dB on the sphere, 0.48 dB on the plane. pavement on the plane is farthest, 3.37 dB down. Every row stays under that 4× reference.

On two PolyHaven meshes with unique UVs, a concrete cat and a wine barrel, AF-NTC scores 40.34 dB and 46.02 dB. That is at most 0.07 dB under full-4K aniso-BC7, and 2.0 to 3.5 dB above trilinear BC7. Against equal-byte 2K aniso-BC7 the cat is +0.28 dB and the barrel is −0.07 dB. Footprints there are already large (LOD about 1.4 to 2.4), so AF has removed most fine detail and a 2K map loses little. That tie is not claimed for Table 1, where the 2K chain leads AF-NTC by 0.4 to 3.3 dB.

Removing the minor-axis blend costs 5.3 to 9.3 dB, mostly near the camera. A model about 4× larger gains at most 0.4 dB. At 16.75 MB the remaining error is compression error.

Why it matters

NTBC, from the same AMD authors, is this feature pyramid with features packed into BC blocks so an asset pipeline can carry them. Explicit AF was missing in both. AF-NTC spends one decode on a deterministic, noise-free color and skips the stochastic swap of aliasing for noise plus a temporal denoise. The bill is 30 taps per pixel.

At 16.75 MB against about 67 MB, all ten pairs beat trilinear BC7 despite that baseline being 4× larger. Against BC7 with AF actually on, AF-NTC is lower on every row: within 0.5 dB on some materials, more than 3 dB on others. That fits offline assets that already ship a tiny decoder per material. It does not support retiring BC7.

Limitations

The stated claim is correct filtering at a fixed budget. There is no claim of a general size-quality win, and no claim of matching BC7. All ten rows trail 4× aniso-BC7, by as much as 3.4 dB. No runtime is reported. The filter is a PyTorch emulation, not a tuned GPU sampler, so the milliseconds behind 30 taps are unknown.

The training target only approximates hardware AF and matches supersampled EWA to 37–41 dB, while the tables score against that supersampled reference. Gaps of a few tenths of a dB sit inside this disagreement. The decoder's tap budget is also fixed, while the target places ceil(stretch) taps, so the two sampling patterns differ.

Each model is fit to one material, and the test reuses that texture. Behavior on an unseen map is unmeasured. The equal-byte 2K comparison holds only for large footprints. Latent-in-BC methods, which get AF from the hardware sampler without extra filtering logic, are absent, and so is any timed comparison with stochastic filtering.

Terms

Source

What people are saying

Related papers

All paper explainers