AdaEdit: Adaptive Temporal and Channel Modulation for Flow-Based Image Editing
Organizations: iFLYTEK
Abstract
Inversion-based image editing in flow matching models has emerged as a powerful paradigm for training-free, text-guided image manipulation. A central challenge in this paradigm is the injection dilemma: injecting source features during denoising preserves the background of the original image but simultaneously suppresses the model's ability to synthesize edited content. Existing methods address this with fixed injection strategies -- binary on/off temporal schedules, uniform spatial mixing ratios, and channel-agnostic latent perturbation -- that ignore the inherently heterogeneous nature of injection demand across both the temporal and channel dimensions. In this paper, we present AdaEdit, a training-free adaptive editing framework that resolves this dilemma through two complementary innovations. First, we propose a Progressive Injection Schedule that replaces hard binary cutoffs with continuous decay functions (sigmoid, cosine, or linear), enabling a smooth transition from source-feature preservation to target-feature generation and eliminating feature discontinuity artifacts. Second, we introduce Channel-Selective Latent Perturbation, which estimates per-channel importance based on the distributional gap between the inverted and random latents and applies differentiated perturbation strengths accordingly -- strongly perturbing edit-relevant channels while preserving structure-encoding channels. Extensive experiments on the PIE-Bench benchmark (700 images, 10 editing types) demonstrate that AdaEdit achieves an 8.7% reduction in LPIPS, a 2.6% improvement in SSIM, and a 2.3% improvement in PSNR over strong baselines, while maintaining competitive CLIP similarity. AdaEdit is fully plug-and-play and compatible with multiple ODE solvers including Euler, RF-Solver, and FireFlow. Code is available at https://github.com/leeguandong/AdaEdit
Figures & tables
| Method | LPIPS | SSIM | PSNR | CLIP |
|---|---|---|---|---|
| ProEdit [ 17 ] | 0.2960 | 0.7244 | 19.13 | 0.2617 |
| AdaEdit (Ours) | 0.2703 | 0.7433 | 19.58 | 0.2593 |
| Improvement | -8.7% | +2.6% | +2.3% | -0.9% |
| Method | Model | Struct. Dist. ( ) | PSNR | SSIM ( ) | CLIP Whole | CLIP Edited |
|---|---|---|---|---|---|---|
| P2P [ 4 ] | Diffusion | 69.43 | 17.87 | 71.14 | 25.01 | 22.44 |
| PnP [ 20 ] | Diffusion | 28.22 | 22.28 | 79.05 | 25.41 | 22.55 |
| PnP-Inv [ 9 ] | Diffusion | 24.29 | 22.46 | 79.68 | 25.41 | 22.62 |
| RF-Solver [ 21 ] | Flow | 31.10 | 22.90 | 81.90 | 26.00 | 22.88 |
| FireFlow [ 2 ] | Flow | 28.30 | 23.28 | 82.82 | 25.98 | 22.94 |
| UniEdit [ 8 ] ( ) | Flow | 10.14 | 29.54 | 90.42 | 25.80 | 22.33 |
| Edit Type | LPIPS | CLIP | ||
|---|---|---|---|---|
| ProEdit | Ours | ProEdit | Ours | |
| Random | 0.295 | 0.271 | 0.258 | 0.257 |
| Change Obj. | 0.280 | 0.246 | 0.260 | 0.260 |
| Add Obj. | 0.152 | 0.123 | 0.259 | 0.256 |
| Delete Obj. | 0.307 | 0.284 | 0.248 | 0.248 |
| Change Attr. | 0.267 | 0.245 | 0.259 | 0.260 |
| Configuration | LPIPS | SSIM | PSNR | CLIP |
|---|---|---|---|---|
| Baseline | 0.297 | 0.729 | 20.16 | 0.267 |
| + Prog. Sched. | 0.259 | 0.766 | 20.91 | 0.268 |
| + Soft Mask | 0.174 | 0.812 | 23.33 | 0.251 |
| + Adapt. KV | 0.285 | 0.739 | 20.61 | 0.266 |
| + Chan. LS | 0.298 | 0.727 | 20.13 | 0.268 |
| Configuration | LPIPS | SSIM | PSNR | CLIP |
|---|---|---|---|---|
| SM only ( ) | 0.222 | 0.788 | 22.60 | 0.265 |
| Sched.+SM+CLS | 0.139 | 0.840 | 24.78 | 0.237 |
| Sched.+CLS (AdaEdit) | 0.260 | 0.765 | 20.90 | 0.269 |
| LPIPS | SSIM | PSNR | CLIP | |
|---|---|---|---|---|
| 5 | 0.174 | 0.812 | 23.33 | 0.251 |
| 15 | 0.222 | 0.788 | 22.60 | 0.265 |
Text-Guided Image Editing
Text-guided image editing changes selected image content from natural-language instructions while aiming to preserve everything else.
See all 165 papers