TRIG: Toward Measuring Texture Realism in Image Generation
Organizations: Northwestern University · Futurewei Technologies
Abstract
This paper studies the backbone used by metrics for evaluating the quality of generated images. Although generative models have advanced rapidly, some outputs still exhibit unrealistic texture characteristics, and these differences are difficult to measure. Widely used evaluation metrics provide limited insight into texture realism, since they often rely on a backbone trained for another objective, such as image classification or image-text alignment. Such objectives typically encourage invariance to low-level variations that carry texture, so the resulting features primarily encode semantic and global structure. As a result, texture-specific discrepancies may not be explicitly captured. We propose TRIG, a metric directed at the texture realism of generated images. Its backbone is instead the discriminator of a generative adversarial network pre-trained on a texture dataset, which provides a learned prior for the local statistics of natural textures. A plausibility head is fine-tuned to identify local texture degradations, while preserving natural defocus and sensor noise as positive cases. On the features of this backbone, we compute a standard distributional distance between a reference set of real images and a set of generated ones. We apply TRIG to several generative models and observe closer agreement with human realness ratings than baseline metrics.
Figures & tables
| Model | FID | KID | CMMD | Gram-MMD 1 | Gram-MMD 2 | TRIG | |
| Paper | Reproduced | ||||||
| ImageNet-eval | — | 1.491 | |||||
| SiT-XL/2 (SDE) ( Ma et al. 2024 ) | 2.06 | 2.017 | |||||
| SiT-XL/2 (ODE) ( Ma et al. 2024 ) | 2.15 | 2.024 | |||||
| DiT-XL/2-G ( Peebles and Xie 2023 ) | 2.27 | 2.175 | |||||
| ADM-G ( Dhariwal and Nichol 2021 ) | 4.59 | 4.487 | |||||
| Variant | RAISE | ImageNet Study | ||
|---|---|---|---|---|
| Spearman | Kendall | Spearman | Kendall | |
| TRIG (main) | ||||
| Pre-trained Data | ||||
| Random | ||||
| FFHQ | ||||
| ImageNet | ||||
Appendix figures & tables21 assets
Supplementary material from the paper’s appendix.
Appendix
| Operator | Definition |
|---|---|
| Category 1: Blur (loss of local detail) | |
| Gaussian | |
| Box | ( uniform) |
| Motion | ( horizontal) |
| Bicubic resample | ( is the downscaling factor) |
| Category 2: Spectral (frequency-domain alteration) | |
| Component | Configuration |
|---|---|
| Input | RGB, |
| Trainable parameters | 747,009 |
| Optimizer | AdamW |
| Learning rate | |
| Weight decay | |
| Batch size | 8 |
| Software | Version |
|---|---|
| Python | 3.10.20 |
| PyTorch | 2.7.0+ cu128 |
| torchvision | 0.22.0+ cu128 |
| CUDA build | 12.8 |
| NumPy | 1.26.4 |
| SciPy | 1.15.3 |
| Set | Exact definition | Size |
|---|---|---|
| Backbone train set | Images from ImageNet official train set, excluding the final five lexicographically sorted filenames in each class and ImageNet-eval | 1,105,841 |
| Backbone val set | Final five lexicographically sorted training images per class | 5,000 |
| ImageNet-anchor | A subset of images from ImageNet official val set, with 50 images per class | 50,000 |
| ImageNet-eval | A subset of images from ImageNet official train set, with 50 images per class | 50,000 |
| Evaluated sources | 12 generated-image directories, each with 50 images per class | 50,000/source |
| NUUR-Texture2953 | Separate real-texture dataset absent from all evaluation, anchor, and human-study manifests | 2,953 |
| Fréchet distance | MMD distance | SWD (ours) | |
|---|---|---|---|
| Inception embeddings | ✗ Weak texture cues | ✗ Weak texture cues | ✗ Weak texture cues |
| ✗ Normality assumption | ✓ Distribution-free | ✓ Distribution-free | |
| ✓ Scales, | ✗ , subset-limited | ✓ Scales, | |
| CLIP / DINOv2 embeddings | ✓ Semantic embeddings | ✓ Semantic embeddings | ✓ Semantic embeddings |
| ✗ Normality assumption | ✓ Distribution-free | ✓ Distribution-free | |
| ✓ Scales, | ✗ , subset-limited | ✓ Scales, |
| Variant | RAISE | ImageNet | ||
|---|---|---|---|---|
| Spear. | Kend. | Spear. | Kend. | |
| TRIG (main) | ||||
| Fine-tuned layers | ||||
| FPN+b16 | ||||
| FPN+b16+b32 | ||||
| b16 only | ||||
| Property | Value |
|---|---|
| Participants (sessions) | 24 |
| Trials per participant | 200 |
| Total comparisons | 4,800 |
| Image sources | 10 (2 real + 8 generators) |
| Responses per trial | Left / Tie / Right |
| Session duration | 10-20 min |
| Metric | Trial CI | Participant CI | |
|---|---|---|---|
| FID | |||
| KID | |||
| Gram-MMD (DINOv2) | |||
| Gram-MMD (DCAE) | |||
| CMMD | |||
| TRIG |
| Model | Official code | Sampling | Parameters |
|---|---|---|---|
| ADM-G | https://github.com/openai/guided-diffusion | Class-conditional DDIM sampling with 1000 steps. | Classifier guidance 1.0; FP16. |
| BigGAN-deep | https://github.com/huggingface/pytorch-pretrained-BigGAN | One synthesis pass with truncated-normal latents and one-hot class labels. | Truncation 1.0. |
| DiT-XL/2 | https://github.com/facebookresearch/DiT | Class-conditional latent diffusion with 250 DDPM steps. | CFG 1.5. |
| SiT-XL/2 ODE | https://github.com/willisma/SiT | Class-conditional latent-flow sampling with adaptive Dopri5. | CFG 1.5; linear transport; velocity prediction; , . |
| SiT-XL/2 SDE | https://github.com/willisma/SiT | Euler–Maruyama SDE sampling with 250 steps. | CFG 1.5; diffusion_form=sigma ; norm 1.0; final estimator Mean , size 0.04. |
| StyleGAN-XL | https://github.com/autonomousvision/stylegan-xl | One synthesis pass with one-hot class labels and constant synthesis noise. | Truncation . |
| Model | Official code | Sampling | Parameters |
|---|---|---|---|
| Self-Flow | https://github.com/black-forest-labs/Self-Flow | Class-conditional SDE sampling with 250 steps. | CFG 1.0; guidance interval . |
| VAR-d30 | https://github.com/FoundationVision/VAR | Coarse-to-fine next-scale autoregressive sampling with hard token selection. | CFG 1.5; top- ; top- ; more_smooth=False . |
| RAR-XXL | https://github.com/bytedance/1d-tokenizer | Randomized autoregressive token sampling followed by VQGAN decoding. | Temperature 1.02; guidance 8.0; guidance exponent 1.2. |
| LlamaGen 3B | https://github.com/FoundationVision/LlamaGen | Autoregressive sampling of VQ tokens followed by VQ decoding. The outputs are bilinearly resized to . | CFG 1.65; temperature 1.0; top- ; top- ; cfg_interval=-1 . |