Improving Editability in Image Generation with Layer-wise Memory
Daneul Kim, Jaeah Lee, Jaesik Park
TL;DR
This work tackles the challenge of sequential image editing with rough masks by introducing a three-component framework: Layer-wise Memory to preserve editing history, Background Consistency Guidance (BCG) for stable background maintenance, and Multi-Query Disentangled Cross-Attention (MQD) for natural integration of new elements. The method stores latent representations and prompt embeddings across edits, enabling efficient, consistent updates via selective latent blending and cross-attention disentanglement, while a new Multi-Edit Benchmark evaluates semantic and spatial alignment across multiple edits. Quantitative and qualitative results demonstrate superior performance over editing and layout-to-image baselines, as well as favorable human judgments, particularly in maintaining background coherence and object relations through several iterations. This approach advances practical, interactive image editing by reducing user effort (rough masks suffice) and enabling robust multi-step scene modifications with context preservation. By combining memory, consistency guidance, and disentangled cross-attention, the framework achieves scalable, layer-wise editing suitable for complex tasks such as occluded object removal, depth-aware ordering, and progressive content insertion, with potential applications in design, advertising, and creative media generation.
Abstract
Most real-world image editing tasks require multiple sequential edits to achieve desired results. Current editing approaches, primarily designed for single-object modifications, struggle with sequential editing: especially with maintaining previous edits along with adapting new objects naturally into the existing content. These limitations significantly hinder complex editing scenarios where multiple objects need to be modified while preserving their contextual relationships. We address this fundamental challenge through two key proposals: enabling rough mask inputs that preserve existing content while naturally integrating new elements and supporting consistent editing across multiple modifications. Our framework achieves this through layer-wise memory, which stores latent representations and prompt embeddings from previous edits. We propose Background Consistency Guidance that leverages memorized latents to maintain scene coherence and Multi-Query Disentanglement in cross-attention that ensures natural adaptation to existing content. To evaluate our method, we present a new benchmark dataset incorporating semantic alignment metrics and interactive editing scenarios. Through comprehensive experiments, we demonstrate superior performance in iterative image editing tasks with minimal user effort, requiring only rough masks while maintaining high-quality results throughout multiple editing steps.
