arXiv:2611.02551cs.CVNov 2026

Manuscript Offprint

arXiv:2611.02551

Flat Features, Detailed Images? Simple Detail Control for Diffusion Transformers

Qingtao Yu, Zhen Wang, Jiyang Zheng, Minghao Sun, Hongdong Li, Dylan Campbell

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Prompt engineering is commonly used to encourage text-to-image models to generate more detailed images. However, it does not provide reliable, continuous, or disentangled control. We analyze feature tokens produced with and without detail-enhancing prompts across six diffusion transformers and observe a common pattern: these prompts tend to increase the entropy of each token's energy distribution while largely preserving its ordering. That is, flattening the distribution increases the level of detail. Motivated by this counter-intuitive finding, we introduce a simple training-free approach that continuously adjusts the level of detail according to a scalar. Specifically, it shifts the squared channel magnitudes of each token toward a higher entropy distribution with a time-aware scheduler to concentrate the intervention at intermediate sampling steps. Across extensive experiments on different types of diffusion transformers, we show that our approach provides continuous control over detail metrics while largely preserving image quality and semantic structure. It requires only a few lines of code and adds negligible inference time overhead. Code is available at TerrysLearning/TokenFlat.

1 INTRODUCTION

Prompt engineering is a straightforward approach that can be used to enhance visual detail in images generated by text-to-image (T2I) models (Liu & Chilton, 2022; Mo et al., 2024), for example, by adding phrases such as “highly detailed” or “fine texture”. However, such instructions provide vague control, making their strength difficult to specify precisely. Their effects are also unpredictable and model-dependent, as different models may interpret the same phrase differently. Moreover, prompt-based control is not localized and may alter the global semantic structure, complicating iterative refinement. We aim to understand how such detail-focused prompt engineering impacts feature tokens internally, and whether universal patterns exist that can be leveraged for finer control.

Flow-matching models (Lipman et al., 2023) with diffusion transformers (DiTs) (Peebles & Xie, 2023) have emerged as a dominant paradigm for T2I generation. We first investigate how such prompts affect feature tokens in pretrained DiTs. Given the same image embedding, we compare the features obtained with and without detail instructions in the prompt. Across six variants of DiTs, we analyze all tokens at every layer and inference timestep. We find that detail-based instructions consistently increase the entropy of the token's energy distribution, that is, the distribution of its squared channel amplitudes, while largely preserving their rank ordering. In contrast, adding content descriptions rather than detail descriptions exhibits this pattern weakly or not at all. This observation suggests that detail richness could be controlled in a training-free manner by directly rescaling channel magnitudes. It may seem counter-intuitive that flattening a token's feature distribution should make the associated image patch less flat. We speculate that activating a sparse set of feature dimensions encodes a specific texture, so activating a larger set (i.e., a higher entropy distribution) leads to a mixture of textures.

Motivated by this finding, we introduce T▹\triangleright (Token Flattening), a simple mechanism for controlling the level of detail in the generated images according to a user-specified scalar α\alpha. T▹\triangleright linearly interpolates the per-token distribution of squared channel amplitudes (i.e., its energy distribution) with the uniform distribution, increasing its entropy. To improve stability, we design a time-aware scheduler that emphasizes the intervention at intermediate sampling stages. T▹\triangleright requires only a few lines of code and can be applied directly to DiTs as a plug-in.

We evaluate T▹\triangleright on three representative diffusion transformers: FLUX.2 Klein 9B, FLUX.2 Klein 9B Base, and Qwen-Image (Black Forest Labs, 2026; Wu et al., 2025), covering distilled and undistilled variants with both single and double stream architectures. Varying α\alpha produces continuous changes across all evaluated detail metrics while largely preserving text alignment, perceptual quality, and semantic structure. Some qualitative examples are demonstrated in fig. 1. Compared with existing training-free detail-enhancement methods, T▹\triangleright achieves greater structure-preserving detail improvements and increased image quality, with negligible additional inference time overhead.

References (43)