GramStatTexNet: Efficient, Interpretable, and Neuro-Inspired Texture Analysis-by-Synthesis

Vasha DuTell, Zeyu Yun, Anne Harrington, Yuan Sheng Fang, Mark Hamilton, Christian Koevesdi, Edward H Adelson, William T. Freeman, Ruth RosenholtzNeurIPS 2026

TL;DR

How does the brain effortlessly distinguish tree bark from velvet, or crisp central vision from the blurry periphery? Deep neural networks can generate hyper-realistic textures, but their representations are opaque black boxes—while classical, brain-inspired models are transparent yet brittle. GramStatTexNet (GSTN) marries the two, matching deep-network synthesis quality using a 30× smaller, fully interpretable representation that also generates testable hypotheses about how our own visual cortex processes the world.

What Problem Does This Paper Address?

Look at a patch of grass or a knitted sweater. Your visual system instantly grasps its "stuff-ness" without memorizing the exact coordinates of every blade or thread. Computational neuroscientists call this summary-statistic representation, and for decades they have tested it via analysis-by-synthesis: extract statistical numbers from a target image, force random pixel noise to match those same numbers, and see if a human perceives the result as the same texture.

Historically, researchers faced a frustrating tradeoff:

  1. Neuroscience-inspired models (like the classic Portilla & Simoncelli steerable pyramid) pass images through filters mimicking primary visual cortex (V1) neurons. They are compact and interpretable, but rely on small, painstakingly hand-crafted sets of statistics that are notoriously difficult to extend—say, to moving video textures.
  2. Deep learning models (like Gatys-style texture synthesis) compute correlations across layers of massive networks like VGG-19. They produce gorgeous textures without hand-tuning, but require hundreds of thousands of opaque parameters with tenuous ties to biology.

GSTN bridges this gap: can we get the quality and flexibility of deep learning while keeping the compactness, transparency, and biological grounding of classical vision models?

Methods

GSTN is a hybrid pipeline built from two classic ingredients:

  • Neuro-inspired Filter Banks (Standard): An input image is decomposed using GPU-accelerated multi-scale steerable Gabor pyramids—filters tuned to specific spatial scales, orientations, phases, and colors, much like V1 simple and complex cells.
  • The Gram Matrix (Standard in DL, novel pairing here): Instead of hand-picking which filter outputs to compare, GSTN takes all pairwise correlations across these filter responses, collapsing over space to form a Gram matrix. Its upper triangle yields 28,929 named, interpretable statistics. To synthesize a texture, pixel noise is iteratively updated via backpropagation until its Gram statistics match the target's.

What makes GSTN shine is how the authors dissect and extend this setup:

  • Taxonomizing Correlations: Every statistic has an explicit identity, allowing the authors to group all 28,929 correlations into 14 interpretable "families" based on whether the paired filters share attributes (e.g., differing only in orientation) or vary wildly across multiple properties at once.
Summary of GSTN's 14 interpretable statistical families, totaling 28,929 correlations.
  • Contrastive Compression: They train a single linear layer using self-supervised contrastive learning (InfoNCE) to pull crops of the same texture together, ranking individual statistics by importance to compress the representation.
  • Plug-and-Play Extensions: Because no hand-curated spatial rules are needed, GSTN extends naturally to peripheral vision (by pooling statistics over regions that grow larger away from the center of gaze) and dynamic video textures (by swapping 2D filters for 3D spatiotemporal Gabor filters).

Datasets

No new benchmarks were introduced; the authors evaluated GSTN on standard datasets:

  • Describable Textures Dataset (DTD): Used across 47 diverse categories (e.g., chequered, bumpy, frilly) for static synthesis, clustering, and contrastive learning.
  • DynTex: Five dynamic video textures (grass, fire, fence, blooms, tree) spanning varied motion and spatial structures for spatiotemporal evaluation.

Key Insights and Ideas

  • Cross-attribute chaos carries the texture: Classical neuroscience models mostly track "structured" correlations where only one property changes at a time (e.g., adjacent scales). Ablation studies reveal these capture only coarse structure! The bulk of visual realism lives in unstructured, cross-attribute families—correlations spanning different phases, scales, orientations, and colors simultaneously. Because V2/V4 brain studies have mostly tested classical structured stats, this offers a concrete new hypothesis for what higher visual cortex actually encodes.
Figure 5: Ablated syntheses optimized using statistical subsets defined by categorical families; column codes follow Table 1 (+ = union). sub_X_struct is the three single-phase multi-attribute families (Real, Imaginary, Magnitude), which are unstructured; sub_X*_eq is the three cross-phase families.
  • Telling textures apart $\neq$ building them from scratch: When pruning the 28,929 statistics down to 5,000 or 1,000, randomly sampled statistics actually outperformed the top-ranked statistics learned via contrastive learning! Why? Contrastive learning is discriminative—it cherry-picks a narrow set of features that separate categories. Synthesis is generative—it needs broad constraints across all visual dimensions so nothing goes off the rails.

Key Results

  • 30× Compression at Quality Parity: On 141 DTD textures, GSTN beats the classic Portilla & Simoncelli model across all 9 perceptual metrics (winning 30–46 of 47 categories). Against VGG-based Gatys synthesis (~852K stats), GSTN (~29K stats) achieves parity—losing on VGG-based metrics (like LPIPS, which shares Gatys' exact optimization features) but winning on 6 classical structural metrics (like SSIM, HaarPSI, and FSIM) in 32–46 of 47 categories.
Figure 3: Pareto comparison: representation size versus synthesis quality across five perceptual metrics on 141 DTD validation textures. GSTN-zpad sits on the Pareto frontier between P&S [43] and the order-of-magnitude-larger feature-space methods including Ustyuzhaninov [56] and Gatys [21], achieving competitive quality with 30× fewer statistics than Gatys on four of five metrics. On LPIPS, Gatys is superior, consistent with the metric evaluating similarity in the same VGG features that Gatys’ synthesis loss optimizes. Depletion variants (top-|w|, random, bottom-|w|) extend the GSTN frontier toward smaller representation sizes. µNCA not included due to compute limitations. See Appendix Figures 10 and 11. Error bars: 95% bootstrap confidence intervals on the mean over 141 textures, 1,000 resamples.
  • Compact Foveated Rendering: Using the top 5,000 contrastive statistics across 115 spatial pooling regions, GSTN generates convincing peripheral "mongrels" using 575,000 values—less than half the raw pixel count (1.2M) of the original image.
  • Better Motion in Video: On DynTex videos, neural cellular automata (DyNCA) produced sharper spatial frames (LPIPS-VGG 0.323 vs. GSTN's 0.515), while GSTN captured realistic temporal motion dynamics much more faithfully (temporal spectrum distance of 0.176 vs. DyNCA's 0.518).

Limitations and Future Work

  • No Human or Neural Validation Yet: While inspired by visual neuroscience, the paper includes no new human psychophysics or brain-recording comparisons. Testing whether humans perceive compressed GSTN peripheral and video syntheses as true visual "metamers" is a clear next step.
  • Compute Bottlenecks: Contrastive feature compression was too computationally expensive to run on the 3D spatiotemporal video model, and stat-depletion experiments relied on a faster circular-convolution approximation (GSTN-wrap) rather than the cleaner zero-padded version (GSTN-zpad).
  • Generative Guidance: Because GSTN's representation is fully differentiable, future work could pair these interpretable statistics with modern diffusion models via gradient guidance.

Summary updated

Abstract

Deep networks achieve high realism in texture synthesis but often rely on opaque, over-parameterized representations that have limited direct connection to biological vision. Neuroscience-informed pyramid models are interpretable, compact, and biologically inspired, but rely on small, hand-curated statistics sets that are difficult to generalize or extend. We introduce GramStatTexNet, a hybrid analysis-by-synthesis framework that combines the multi-scale Gabor filter structure of classical models with the flexibility of Gramian-based correlations, organized into structured filter families. This structured representation enables analyses that are challenging for deep-feature methods: each statistic carries a named filter-family identity, allowing us to decompose synthesis fidelity into per-family contributions and to learn an interpretable, low-dimensional embedding that preserves perceptual texture content. We compare our framework to classical and deep texture-synthesis baselines across diverse texture categories, and on multiple perceptual metrics, highlighting the compactness and interpretability advantages of this hybrid representation, alongside competitive synthesis quality. This same framework extends naturally to peripheral textures via spatial pooling, and to dynamic textures using a spatiotemporal filter bank. GramStatTexNet provides a unified, interpretable framework for analyzing and modeling visual information with natural extensions across space, time, and eccentricity.
BibTeX
@inproceedings{dutell2026gramstattexnet,
  author = {Vasha DuTell and Zeyu Yun and Anne Harrington and Yuan Sheng Fang and Mark Hamilton and Christian Koevesdi and Edward H Adelson and William T. Freeman and Ruth Rosenholtz},
  title = {{GramStatTexNet: Efficient, Interpretable, and Neuro-Inspired Texture Analysis-by-Synthesis}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=2wrNMRgCc2},
}
Figure