LimeCross: Context-Conditioned Layered Image Editing with Structural Consistency

Ryugo Morita, Stanislav Frolov, Brian Bernhard Moser, Ko Watanabe, Riku Takahashi, Issey Sukeda, Andreas DengelarXiv 2026

TL;DR

LimeCross is a training-free framework for text-guided editing of individual RGBA layers within a layered image while keeping other layers perfectly intact. By utilizing a novel bi-stream attention mechanism, it allows a target layer to "read" contextual cues like lighting and contact from surrounding layers without copying their appearance or destroying layer independence.

What Problem Does This Paper Address?

In professional creative workflows, images are rarely flat; designers rely heavily on layered formats (like PSD files) to perform non-destructive, iterative edits. However, current AI-driven image editing tools struggle with this paradigm.

Existing methods typically fall into two traps: they either edit a single RGBA layer in complete isolation—ignoring crucial environmental interactions like shadows, reflections, and lighting—or they flatten the entire image before editing and attempt to re-decompose it back into layers afterward. This "flatten-then-edit" pipeline frequently causes background elements to leak into the foreground, destabilizes transparency (alpha channels), and creates messy artifacts under occlusions.

LimeCross addresses this gap by enabling context-aware, text-guided editing directly on user-selected RGBA layers while preserving strict layer separation.

Fig. 1: LimeCross enables text-guided image editing within a layered RGBA image set, modifying selected layers while preserving all others as reusable assets. By lever- aging contextual cues from the remaining layers, it maintains cross-layer consistency in illumination, contact, and appearance, making it well-suited for layered creation workflows that require independent yet coherent control of multiple image elements.

Methods

LimeCross operates entirely training-free within the latent space of an RGBA-capable Variational Autoencoder (VAE) and a Diffusion Transformer (MMDiT). Its pipeline consists of several key components:

  1. Opaque Context Construction: To provide context without altering non-target layers, LimeCross alpha-composites all unedited layers into a single opaque background scene.
  2. Bi-stream Context Conditioning: The target layer and the constructed context scene are encoded into separate token streams and concatenated. During the transformer's self-attention phase, an asymmetric block-structure attention matrix allows target tokens to attend to context tokens. Crucially, only the target stream is updated and integrated via delta-velocity integration; the context tokens are never modified or decoded, preventing write-back leakage.
  3. Two-Stage Schedule (Target-Only Refinement): The authors observe a trade-off between global context alignment and alpha-mask stability. LimeCross uses bi-stream conditioning in the early diffusion steps to establish coarse cross-layer alignment (illumination and placement). In later steps, it switches to target-only refinement, disabling context interactions to lock down fine details and sharp alpha boundaries.
  4. Sequential Multi-Layer Editing: For editing multiple layers, LimeCross introduces a back-to-front scheduling strategy. Background layers are edited first to stabilize global context before modifying dependent foreground elements.
Overview of the LimeCross framework architecture, detailing the bi-stream conditioning and late-stage target-only refinement.

Datasets

To evaluate layered image editing systematically, the authors introduce LayerEditBench.

  • Composition: It contains 1,500 layered scenes adapted from DreamLayer and PIE-Bench.
  • Structure: Each scene consists of a composite image and three ordered RGBA layers (two foreground objects and one background).
  • Prompts: It includes paired source/target text prompts for layer-wise editing, generated via a mix of human annotation and LLM assistance to ensure realistic creative scenarios.

Key Insights and Ideas

  • Reading Context Without Copying It: The core "aha moment" is using asymmetric attention blocks to let the model infer scene-level cues (like where a shadow should fall) without copying the background's actual textures or colors into the edited foreground layer's RGBA output.
  • The Coarse-to-Fine Attention Trade-off: Keeping cross-layer attention active throughout the entire diffusion process actually harms the final image by over-imposing context onto the target layer and degrading the alpha channel. Cutting off the context stream halfway through ($\rho = 0.5$) provides the perfect balance of realism and layer purity.
  • Back-to-Front Priority: In multi-layer editing, establishing the background first acts as an anchor, significantly reducing cross-layer ambiguity and error propagation for subsequent foreground edits.

Key Results

The authors evaluated LimeCross against strong baselines like KV-Edit (a flattened RGB editor) and MagicQuillV2 (a multi-layer input, flattened-output editor):

  • Higher Edit Quality: In single-layer editing, LimeCross achieved the highest overall human preference alignment scores (HPSv2 of 28.75 vs. MagicQuillV2's 28.34).
  • Superior Layer Integrity: LimeCross achieved better alpha-mask stability (mFID-$\alpha$ of 46.91 compared to KV-Edit's 48.12).
  • Perfect Preservation: Because non-target layers are left completely untouched by design, LimeCross inherently achieves perfect background preservation (PSNR = $\infty$, LPIPS = 0), whereas flattened baselines suffer from structural drift and error accumulation over repeated edits.

Limitations and Future Work

While a dedicated limitations section is not explicitly detailed in the provided text, a few inherent constraints are apparent:

  • Dependency on Stacking Order: The framework assumes the layer stacking order is known and fixed beforehand.
  • Hyperparameter Tuning: Performance relies on balancing the switching ratio ($\rho$), which may vary depending on how drastically a user wants to change a layer.
  • VAE Reliance: The quality of the edits and transparency boundaries remains bounded by the reconstruction capabilities of the underlying RGBA VAE.

Summary updated

BibTeX
@misc{morita2026limecross,
  author = {Ryugo Morita and Stanislav Frolov and Brian Bernhard Moser and Ko Watanabe and Riku Takahashi and Issey Sukeda and Andreas Dengel},
  title = {{LimeCross: Context-Conditioned Layered Image Editing with Structural Consistency}},
  year = {2026},
  eprint = {2605.10319},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.10319},
}
Figure