CSFlow: Aligning Flow Matching with Human Contrast Sensitivity

Malgorzata Galinska, Bart Pogodzinski, Jan Eric LenssenNeurIPS 2026

TL;DR

Image-generating models (like diffusion and flow matching) waste precious compute sculpting fine visual details and ultra-smooth gradients that the human eye literally cannot see. CSFlow connects the biology of human vision directly to the math of generative denoising, reallocating compute to the exact moments a model generates the spatial frequencies our eyes are most sensitive to. Best of all, it works as a drop-in upgrade—even purely at inference time without retraining—making generated images look noticeably less "cartoonish" and much more realistic.

What Problem Does This Paper Address?

When diffusion or flow matching models turn static noise into an image, they don't build everything at once. Because real-world images pack most of their energy into broad, low-frequency shapes (following a mathematical power law) while Gaussian noise spreads its energy evenly across all frequencies, denoising naturally happens coarse-to-fine. Big shapes emerge from the fog early on; crisp, high-frequency textures only resolve at the very end.

Figure 2: Comparison of average frequency strengths be- tween two denoising stages: t = 0.2 – early stage, mostly noise and t = 0.8 – late stage, mostly data. Natural image power spectrum follows a power law and noise power spec- trum is constant. The noisy image magnitude (green) aligns with the clean image (blue) and noise magnitude (red) on different ranges depending on the t. The later the stage, the higher frequency bands are reconstructed in the noisy image.

Meanwhile, millions of years of evolution have tuned the human eye to be a picky observer. According to the Contrast Sensitivity Function (CSF)—an established model of human vision—we are eagle-eyed when it comes to intermediate spatial frequencies, yet remarkably blind to very smooth gradients (ultra-low frequencies) and microscopic textures (ultra-high frequencies) unless the contrast is cranked way up.

Standard generative models don't know this. Given a fixed budget of neural network capacity and inference steps, they treat invisible cleanup work with the same urgency as the mid-range frequencies where human eyes immediately spot fake, "AI-looking" textures. Prior methods tried to tweak step schedules for training stability or via rough heuristics, but no one had mathematically wired the human eye's sensitivity curve directly into the denoising clock.

Methods

The authors introduce Contrast Sensitive Flow (CSFlow) through three neat, sequential steps:

  1. Tracking frequency birthrates: First, they derive a novel closed-form metric, $r_{\text{signal}}(f, t)$—essentially a normalized signal-to-noise ratio bounded between 0 and 1—that measures how much of a spatial frequency $f$ is recoverable at time $t$. By taking its derivative over time ($\partial_t r_{\text{signal}}$), they isolate the exact band of frequencies actively being generated during any tiny interval of the reverse flow.
  2. Weighting by human biology: Next, they convert digital image frequencies (cycles per pixel) into biological ones (cycles per degree of visual angle, assuming a standard screen size and a 50 cm viewing distance). They multiply the newly generated frequencies at each timestep by Barten's human Contrast Sensitivity Function, yielding a normalized importance curve, $w_{\text{CSFlow}}(t)$, across the entire denoising timeline.
  3. Drop-in deployment: Because $w_{\text{CSFlow}}(t)$ integrates to 1, it acts as a probability density function. By inverting its cumulative distribution (CDF), the authors apply it in two zero-architecture-change ways:
  4. At inference: Warping the ODE solver's step grid so the model takes smaller, more accurate steps during perceptually crucial early-to-middle stages, and larger leaps through invisible late-stage noise cleanup.
  5. During fine-tuning: Sampling training timesteps $t$ proportionally to $w_{\text{CSFlow}}(t)$ (or linearly interpolating with baseline schedules via a parameter $\alpha$) to focus model capacity where humans actually look.
Figure 1: Contrast Sensitive Flow (CSFlow) connects the human eye’s Contrast Sensitivity Function (CSF) [Barten, 2003] (left) to the iterative denoising steps of flow matching (right), providing a weighting scheme grounded in human vision. Information gain in Fourier space of each denoising step is weighted by the perceptual importance of generated frequencies, allocating more capacity to frequencies to which the human eye is more sensitive.

Datasets

No new datasets are introduced. Instead, the authors use existing datasets both to compute average natural-image power spectra ($S_f$) for their closed-form weights and to fine-tune/evaluate models:

  • ImageNet ($256 \times 256$): Used for spectral statistics, short fine-tuning, and class-to-image evaluation (FID and Inception Score).
  • BLIP3o-60k: A high-quality $512 \times 512$ instruction-tuning dataset used to compute spectral statistics and fine-tune text-to-image models.
  • GenEval: An object-focused benchmark suite used to evaluate text-to-image alignment and quality.

Key Insights and Ideas

  • Denoising has a closed-form spectral clock: We already knew diffusion builds images coarse-to-fine, but $\partial_t r_{\text{signal}}(f, t)$ gives us an exact, analytical map of which frequencies crystallize at which timestep $t$—requiring nothing more than the dataset's average power spectrum and the noise schedule.
  • Fixing "AI smoothness" without touching the loss: Baseline models often produce oversmoothed, plasticky, or cartoonish surfaces. Simply shifting compute toward CSF-sensitive mid-frequencies cuts log-space power spectrum errors by 33% to 51% in those mid-bands (compared to just 1%–6% at the extremes), restoring natural, lifelike textures.
  • Free lunches at inference time: Just redistributing existing ODE solver steps at inference—zero retraining—allowed a smaller model (JiT-H/16) to beat its giant sibling (JiT-G/16, which has over 1 billion more parameters) in both FID and Inception Score.

Key Results

Tested across state-of-the-art pixel-space flow matching models (PixelGen, PixelREPA, and JiT):

  • Quantitative boosts: Across inference-only and short fine-tuning setups, CSFlow lowers FID by up to 12.15% (improving PixelREPA-H from 1.81 down to 1.59 on ImageNet), boosts Inception Score by up to 3.2%, and improves GenEval text-to-image scores by up to 3.0% (pushing PixelGen-XXL from 0.789 to 0.813).
  • Human preference: In a two-stage, blind forced-choice study (393 comparisons across 49 participants, after filtering out obvious anatomical glitches), humans preferred CSFlow images over the baseline 65% of the time, with nearly 70% of participants favoring CSFlow in the majority of pairs they judged.

Limitations and Future Work

  • Pixel-space only (for now): CSFlow's math relies on noise being added directly to pixels so spatial frequencies map cleanly to human vision. In latent diffusion models (like Stable Diffusion), VAE encoders scramble spatial frequencies in nonlinear ways. Mapping image frequencies into VAE latent spaces is highlighted as a prime next step.
  • Viewing assumptions: Converting pixels to visual angles requires assuming a typical pixel size (0.0114 cm) and viewing distance (50 cm). Extreme setups—like a VR headset or a billboard—would technically need recalibrated weights.
  • Textures, not anatomy: While CSFlow makes surfaces, lighting, and textures look remarkably real, it doesn't change the rate of large geometric hallucinations (like missing legs on animals), proving those structural errors stem from something deeper than timestep scheduling.

Summary updated

Abstract

We introduce Contrast Sensitive Flow (CSFlow), a weighting scheme that connects the human eye's Contrast Sensitivity Function (CSF) to the iterative denoising steps of flow matching. Because real-world images concentrate signal at low spatial frequencies, these components reach high signal-to-noise ratio earlier during continuous diffusion than high-frequency components. When generating images with diffusion or flow matching models, this induces a soft autoregressive structure in Fourier space, where coarse image content stabilizes before fine detail. Meanwhile, the human visual system is unequally sensitive to spatial frequencies: very low and very high frequencies require significantly higher contrast to be perceived. We for the first time merge these observations through two contributions: (1) a metric that estimates which frequencies are generated at each reverse flow interval and (2) timestep weights obtained by aligning the frequencies generated at each noise level with human contrast sensitivity. We validate our contributions experimentally showing that these weights can improve generative performance by lowering FID by up to $12.15$%, increasing Inception Score by up to $3.2$% and improving GenEval scores by up to $3.0$% using inference-only timestep modification or short fine-tuning. Qualitatively, we find that our CSFlow weights lead to better visual realism and less cartoonish appearance of generated images. In a two-alternative forced-choice study, participants preferred CSFlow generations over the baseline in $65$% of comparisons.
BibTeX
@inproceedings{galinska2026csflow,
  author = {Malgorzata Galinska and Bart Pogodzinski and Jan Eric Lenssen},
  title = {{CSFlow: Aligning Flow Matching with Human Contrast Sensitivity}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=DKVqS2hVS1},
}
Figure