Training-Free Hidden-State Refinement for Flow-Matching Image Generators
Yuanyi Yan1, Xinzhe Rao1, Canyu Shen2, Yang Chen1, Yunlu Chen3, Meng Tang4, Teng Long5, Vincent Tao Hu1
- 1Huazhong University of Science and Technology
- 2Tongji University
- 3King Abdullah University of Science and Technology
- 4University of California, Merced
- 5University of Amsterdam
arXiv:2608.29160 [cs.CV], 2026

Abstract
We study how to spend additional inference-time computation inside a frozen flow-matching image denoiser, without changing its weights or outer sampler. The framework repeats selected transformer layers and exposes independent controls over token scope, layer depth, sampling progress, loop count, and prediction-space guidance. Across Scale-RAE and RAEv2 generators, the method improves prompt alignment and image-quality metrics while offering useful quality–latency trade-offs.
Key Results
+0.1220
GenEval
0.4471 → 0.5691 on Scale-RAE DiT2.4B
+0.0397
DPG-Bench
0.7656 → 0.8053 on Scale-RAE DiT2.4B
39.6%
Lower latency
Sparse versus Dense Token Loop on DiT9.8B
0
Training updates
Weights, conditioning, autoencoder, and sampler stay frozen
Method

Dense and Sparse Token Loop
Repeat a transformer-layer window for every token, or focus repeated computation on a subset while retaining full-token attention context.
Sampling-Progress Gating
Activate internal loops only during chosen denoising calls; the strongest shared setting concentrates them in the early half of sampling.
Layer Range and Loop Budget
Choose where repeated updates occur and distribute a total loop strength across a controllable number of inner evaluations.
Loop Guidance
Combine ordinary and looped vector-field predictions, using their difference as a prediction-space correction direction.
Results
Direct looping across three RAE-based generators
| Model | Method | GenEval ↑ | DPG-Bench ↑ | ImageReward ↑ | Time (s) ↓ |
|---|---|---|---|---|---|
| Scale-RAE DiT2.4B | w/o Loop | 0.4471 | 0.7656 | 0.0994 | 1.3054 |
| Dense Token Loop (Ours) | 0.5422 | 0.8007 | 0.4816 | 2.1812 | |
| Sparse Token Loop (Ours) | 0.5082 | 0.7893 | 0.2798 | 1.6884 | |
| Scale-RAE DiT9.8B | w/o Loop | 0.5321 | 0.8003 | 0.4609 | 1.6853 |
| Dense Token Loop (Ours) | 0.5977 | 0.8178 | 0.7211 | 4.0384 | |
| Sparse Token Loop (Ours) | 0.5857 | 0.8206 | 0.6365 | 2.4410 | |
| RAEv2 SigLIP2-B (615M) | w/o Loop | 0.3829 | 0.7131 | -0.3385 | 0.8025 |
| Dense Token Loop (Ours) | 0.3795 | 0.7226 | -0.2538 | 1.1023 | |
| Sparse Token Loop (Ours) | 0.3815 | 0.7152 | -0.2931 | 1.3572 |
Loop Guidance improves both primary metrics
| Model | GenEval | DPG-Bench |
|---|---|---|
| Scale-RAE DiT2.4B | 0.4471 → 0.5691 | 0.7656 → 0.8053 |
| Scale-RAE DiT9.8B | 0.5321 → 0.6432 | 0.8003 → 0.8264 |
| RAEv2 SigLIP2-B | 0.3829 → 0.4532 | 0.7131 → 0.7521 |
Each metric reports the no-loop baseline followed by the loop-guided result.
Internal compute also improves the quality–latency trade-off: a 25-step Dense Token Loop reaches 0.5422 GenEval and 0.8007 DPG-Bench in 2.1812 seconds, outperforming the 50-step no-loop baseline (0.4742 and 0.7738) while remaining faster than its 2.4032-second runtime.
Qualitative Comparisons
Prompt- and seed-matched samples on Scale-RAE Qwen7B / DiT9.8B compare the ordinary path, Dense Token Loop, and Loop Guidance. Expand either benchmark gallery to inspect the full set shown here.
GenEval gallery · 8 comparisons








DPG-Bench gallery · 9 comparisons









Scope and Limitations
Improvements are strongest for one- and two-subject prompts, where looping often repairs malformed structure and attribute binding. Aggregate GenEval2 does not improve, so hidden-state refinement alone does not solve difficult counting or crowded multi-object composition.
Reproducibility
The public repository contains the runtime, four backend adapters, exact presets, 2,418 ordered benchmark prompts, aggregate results, CPU-only tests, and generation, export, and aggregation utilities.
Browse the code and reproduction guide →Citation
@misc{yan2026trainingfree,
title={Training-Free Hidden-State Refinement for Flow-Matching Image Generators},
author={Yan, Yuanyi and Rao, Xinzhe and Shen, Canyu and Chen, Yang and Chen, Yunlu and Tang, Meng and Long, Teng and Hu, Vincent Tao},
year={2026},
eprint={2608.29160},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2608.29160}
}