TL;DR
Standard RGB cameras squish the rich rainbow of real-world light into just three color channels, making low-level vision models painfully specific to the exact sensor they were trained on. SPECTRIFY solves this data bottleneck by turning standard 3D computer graphics scenes into physically accurate, 31-band hyperspectral images—assigning real-world measured light spectra to objects based on what material they are made of, not just what color they look like. Models trained purely on these synthetic worlds generalize to unseen real-world cameras and lighting better than models trained on the largest real hyperspectral datasets.
What Problem Does This Paper Address?
Every smartphone or DSLR sensor sees the world slightly differently depending on its lenses and color filters—its Spectral Sensitivity Functions (SSFs). Because of this, low-level vision models (like auto-white-balance or raw denoising) trained on RAW images from an iPhone 14 degrade on an iPhone 15. Re-capturing massive training sets for every new sensor is a Sisyphean task.
Hyperspectral images (HSIs) offer an elegant escape hatch: instead of three RGB channels, they record the full spectrum of light at every pixel. If you have one HSI, you can mathematically project it through any camera's SSFs to simulate that exact camera's RAW output. Unfortunately, real hyperspectral cameras are slow, expensive, and require static scenes—the largest benchmarks hold around 1,000 images.
Why not render synthetic HSIs using 3D graphics? Standard 3D assets only store RGB textures, not physical wavelengths. Previous attempts matched RGB colors to spectra blindly, falling victim to metamerism—the optical quirk where two completely different materials (say, green paint and a green leaf) look identical in RGB under daylight, but reflect completely different wavelengths under indoor LEDs.
Methods
SPECTRIFY automates the conversion of existing 3D scene datasets into physically grounded HSIs by ensuring that spectra follow the material.
Here is how the pipeline bridges standard 3D graphics and physics:
- A Massive Material-Labeled Library (New): Existing spectral libraries were either huge-but-unlabeled or labeled-but-tiny. The authors compiled ~370 million real reflectance spectra across 63 material categories from 70 datasets. For unannotated hyperspectral photos, they rendered them to RGB and used Segment Anything Model 3 (SAM 3) with text prompts to automatically segment and label pixels by material.
- Material & Optical Assignment (New): SPECTRIFY reads object and material names in 3D assets to assign each part a category (e.g., mapping a chair's frame to wood and cushion to fabric). That category dictates both the pool of candidate spectra and a physically based BSDF (Bidirectional Scattering Distribution Function—an optical model of how surfaces scatter light, like matte plaster vs. conductive metal).
- Delaunay Spectral Texturing (New): To preserve visual details like wood grain, SPECTRIFY converts RGB textures into spectral ones. It maps a material category's library spectra into 3D color space (CIE XYZ) and divides them into 3D triangles (tetrahedra) via Delaunay triangulation. Each texture pixel's color is written as a smooth blend of four corner colors, and receives that exact blend of real material spectra.
- Spectral Path Tracing (Standard): Lamps get realistic emission spectra (LEDs, halogen, etc.), outdoor skies use atmospheric radiative transfer models (
libRadtran), and the Mitsuba 3 engine path-traces full light transport—including color-accurate interreflections—across 31 wavelength bands (400–700 nm).
Datasets
- Introduced: The authors release 4,500 synthetic HSIs (512×512 resolution, 31 bands) rendered from indoor 3D-FRONT rooms and custom outdoor/urban scenes built from Poly Haven and ambientCG assets, alongside their 370M-spectrum reflectance library.
- Evaluated:
- Hyperspectral Reconstruction (RGB-to-HSI): Tested cross-dataset generalization on four real datasets (ARAD 1K, ICVL, BJTU-UVA, and Doomer, which features tricky narrow-band LEDs) and compared against synthetic data from Buzzelli et al. (test set spectra were strictly scrubbed from SPECTRIFY's library beforehand).
- Color Constancy (Illuminant Estimation): Tested on real Canon EOS 600D RAW images from NUS and Cube++, comparing against RawGen (diffusion-based) and Buzzelli et al.
Key Insights and Ideas
- Material semantics beat pure color matching: Matching an RGB pixel to a spectrum across a giant unorganized database fails because green fabric scatters light differently than green foliage. Constraining the search to the object's true material category improved downstream generalization across every single test set.
- Synthetic diversity beats real-world scarcity: Real HSI datasets are usually captured in one geographic region under similar weather. Because SPECTRIFY mixes diverse 3D geometry with varied lighting (like narrow-band indoor LEDs), models trained purely on synthetic data actually beat models trained on real data when tested on unfamiliar real-world domains.
Key Results
- Out-of-Domain Hyperspectral Reconstruction: Training an MST++ network on SPECTRIFY achieved the #1 or #2 out-of-domain accuracy across all four real benchmarks. For instance, on ARAD 1K, SPECTRIFY reached 36.99 dB PSNR and 6.54° SAM (spectral angle error, lower is better), outperforming real training sets like ICVL (32.99 dB) and prior synthetic data from Buzzelli et al. (29.98 dB).
- Ablation on Material Assignment: Switching from color-only matching to material + color matching jumped PSNR on ICVL from 31.92 dB to 37.55 dB (cutting angular error nearly in half from 7.60° to 4.13°) and on BJTU-UVA from 29.15 dB to 31.51 dB.
- Color Constancy: On real Canon 600D RAW images, SPECTRIFY performed on par with specialized synthetic RAW generators, ranking first or second in 7 out of 8 method/dataset combinations (e.g., achieving 2.33° mean angular error with FC4 on Cube++, vs. 3.34° for RawGen).
Limitations and Future Work
- Unseen Material Colors: If a 3D artist paints a material an unnatural color absent from real-world measurements (like neon-blue wood), it falls outside the triangulation and gets snapped to the nearest valid spectrum—preserving material physics at the expense of color accuracy.
- Reliance on Camera SSFs: Projecting HSIs into RAW images requires knowing the target camera's spectral sensitivity functions, which require specialized lab equipment to measure. Future work aims to pair SPECTRIFY with camera-agnostic algorithms that adapt without per-camera calibration, and to leverage SPECTRIFY's per-pixel illumination maps for multi-illuminant estimation.
Summary updated