arXiv:2610.21550cs.CVOct 2026

Manuscript Offprint

arXiv:2610.21550

Rethinking Classifier-Free Guidance for TI2I Flow Matching

Andreas Floros, Elena Koritska, Teofilo de Campos, Christoph Vogel, Chu-Tak Li, Anuj Sharma, Alexandros Neophytou

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

Abstract

We study Text-and-Image-to-Image (TI2I) flow matching methods for controllable image editing. In a broader generative modeling context, Classifier-Free Guidance (CFG) is established as a key component responsible for high quality outputs. However, we argue that its role in TI2I modeling is poorly understood. Specifically, we make the surprising observation that the CFG mechanism is implicitly harmful for editing in the noisy phase of flow modeling, hindering instruction following and controllability. We propose a simple correction in the early flow steps, enabling a richer alignment-preservation tradeoff at no extra cost. The effectiveness of our approach is demonstrated on both pixel-space and latent TI2I flows.

Figure

age the woman while keeping her smile and surroundings

turn the misty bog into cracked desert ground

turn the haunted manor into a gingerbread house

Figure

make the bike pastel pink

make the piano ivory

make the sunflower petals red

cover the donut in rainbow sprinkles

Figure

light the scene by candlelight

turn the scene into paper origami

make the scene a bioluminescent night

turn the muddy jungle into a glass forest

Figure 1: We propose a simple modification in TI2I flows that substantially improves source preservation while maintaining text alignment. In the examples above, source images are on the left, baseline edits in the middle (we evaluate Qwen, FLUX.2 and PixelGen models) and editing with our correction on the right.

1 Introduction

Text-and-Image-to-Image (TI2I) editing is the task of modifying a source image according to a text prompt while retaining the source wherever no change is intended. The source image provides the concrete visual instance, including scene, object identity, composition, appearance and incidental details. The prompt instead serves as an instruction specifying how that instance should change. Crucially, a successful edit must apply the requested changes without reopening the rest of the image for synthesis.

TI2I editing methods studied in the literature typically adapt pretrained Text-to-Image (T2I) models. These methods are often training-free, so their design space concentrates on inference-time mechanisms (Kulikov et al., 2025; Yang & Ye, 2026). This adaptation paradigm has produced a broad and useful set of techniques but it also inherits limitations from models trained primarily for T2I generation. In parallel, a newer line of systems trains text-and-image-conditioned flows directly for editing (Wu et al., 2025; Black Forest Labs, 2025a). These models are increasingly important yet their properties remain comparatively underexplored.

In this paper, we study this setting of bespoke TI2I flow matching, rather than editing through adaptation of a T2I generator. Specifically, we focus on the nuance of Classifier-Free Guidance (CFG), which is a central mechanism of modern generative flows (Ho & Salimans, 2021). In T2I generation, increasing the CFG weight, ω\omega, is commonly understood as improving text alignment at the cost of sample diversity and, at large values, visual naturalness (Zheng & Lan, 2024; Karras et al., 2024). In editing, however, the relevant tradeoff is alignment versus preservation with respect to the source. In that case, we find that CFG produces a poorly shaped guidance tradeoff. That is, small ω\omega weakens instruction following but may not reliably reduce distortion, while large ω\omega is often essential for alignment but tends to amplify unnecessary changes.

We identify the source of this inefficiency and attribute it to the well-established and widely adopted recipe of Ho & Salimans (2021). As demonstrated in Figure 1, we propose a simple inference-time correction that largely mitigates the issue. Our intervention requires no additional evaluations, leaves the trained model unchanged and recovers a richer set of operating points as ω\omega varies. We show this in two settings. For a controlled analysis, we use a PixelGen (Ma et al., 2026b) finetune for pixel-space editing. We then demonstrate our approach in more general editing, benchmarking via Qwen-Image-Edit (Wu et al., 2025) and FLUX.2 (Black Forest Labs, 2025a), representative off-the-shelf latent flows tailored for the task.

References (30)