LGCC: Enhancing Flow Matching Based Text-Guided Image Editing with Local Gaussian Coupling and Context Consistency

Fangbing Liu, Pengfei Duan, Wen Li, Yi HearXiv 2025 · DOI

Introduction

Text-guided image editing has seen significant advancements, yet current models often struggle with maintaining fine details and global context. The LGCC (Local Gaussian Coupling and Context Consistency) framework addresses these challenges by optimizing the flow matching process, providing a "shortcut" to high-fidelity results.

The Identity Crisis in Flow Matching

Traditional flow matching models treat image editing as a generative task, starting from pure Gaussian noise. This approach leads to several fundamental issues:

  1. Detail Degradation: Reconstructing an image from scratch often blurs sharp edges and destroys fine textures, such as the intricate wool on a sheep.
  2. Context Loss (Over-editing): Without an anchoring mechanism, models frequently over-edit, altering backgrounds or removing unrelated objects because they lack a way to preserve the original scene's structure.
  3. Inefficiency: The long mathematical trajectory from pure noise to a clean image requires numerous inference steps and high computational costs.

The LGCC Framework

LGCC introduces two core innovations to bridge the gap between source and target images, plugging into existing Multimodal Large Language Models (MLLMs) like Bagel.

Local Gaussian Noise Coupling (LGNC)

Instead of initializing with random noise ($x_0 \sim \mathcal{N}(0, I)$), LGNC starts with the source image plus a controlled amount of local noise. This creates a starting point in the latent space that already contains the original spatial structure. Consequently, the model only needs to learn the specific "delta" required for the edit rather than reconstructing the entire scene.

Content Consistency Loss (CCL)

To prevent over-editing, CCL acts as a semantic regulator. It calculates a "semantic delta" between the source and edited image in latent space and ensures this vector aligns precisely with the text instruction. This ensures that if a user asks for "tomatoes," the only major semantic shift in the image is toward that specific object.

High-fidelity local editing: replacing oranges with tomatoes while preserving the surrounding context.

Experimental Evaluation

The framework was evaluated on major benchmarks including I2EBench, GEdit-Bench, and MagicBrush. To better judge quality, the researchers introduced the Local Score (LScore), which uses a vision-language model (Qwen2.5-VL-72B) to specifically assess the quality of the edited region rather than the whole image.

Complex texture editing: transforming sheep into ceramic figures with intricate patterns.

Key Results

  • Efficiency: LGCC achieves a 2x to 5x speedup, producing high-quality results in just 10–20 steps. In testing, LGCC processed images in ~27 seconds compared to ~54 seconds for the BAGEL baseline.
  • Quality: On I2EBench, LGCC improved local detail scores by 1.60% and overall scores by 0.53% over the baseline.
  • Preservation: Qualitative analysis confirms that LGCC is significantly better at keeping non-target objects intact, avoiding the unintended modifications common in competing models.

Conclusion

LGCC demonstrates that editing should not be treated as pure generation. By leveraging the structural information of the source image through local coupling and enforcing semantic consistency, LGCC provides a faster, more reliable path to high-fidelity text-guided image editing. Future work will focus on automating the optimal number of inference steps to prevent over-adjustment in longer trajectories.

Summary updated

BibTeX
@misc{liu2025lgcc,
  author = {Fangbing Liu and Pengfei Duan and Wen Li and Yi He},
  title = {{LGCC: Enhancing Flow Matching Based Text-Guided Image Editing with Local Gaussian Coupling and Context Consistency}},
  year = {2025},
  eprint = {2511.01894},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.01894},
}
Figure