atlas

Research map / Image generation / Editing and style transfer

CAMILA: Context-Aware Masking for Image Editing with Language Alignment

NeurIPS 2025 · Image generation › Editing and style transfer · approach: Instruction-based diffusion editing · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes CAMILA, an MLLM-based context-aware masking framework that classifies instruction tokens as [MASK] or [NEG] to edit only executable instructions in IP2P-style diffusion, and introduces multi-instruction and context-aware editing benchmarks built from MagicBrush.

Problem

Text-guided image editing models try to execute all instructions, including infeasible or contradictory ones, producing nonsensical or over-edited images; existing multi-instruction benchmarks do not test non-executable requests.

Approach

An MLLM (LLaVA-7B, LoRA-tuned) outputs [MASK]/[NEG] tokens per instruction; a Token Broadcaster aligns them to text embeddings via cosine similarity, a two-layer Transformer Token Decoder produces binary masks, and these masks modulate IP2P cross-attention. A surrogate module predicting CLIP-T is used to refine mask generation.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use CAMILA instead of FoIimage editing models · Multi-instruction Image EditingL1: 0.1054 -> 0.0945Helped
Use CAMILA instead of FoIimage editing models · Context-Aware Image EditingDINO: 0.8190 -> 0.8932Helped
Use CAMILA instead of FoIimage editing models · Multi-instruction Image EditingPickScore: 0.2363 -> 0.2790Helped
Use CAMILA instead of FoIimage editing models · Context-Aware Image EditingPickScore: 0.2285 -> 0.2834Helped
Use CAMILA instead of SEEMU single-instruction editing · EMU single-instructionCLIP-dir: 0.094 -> 0.092Hurt
Add surrogate-module training (ablation)CAMILA · Single-instruction single-turnCLIP-T: 0.3020 -> 0.3022Helped
Add surrogate-module training (ablation)CAMILA · Single-instruction multi-turnL1: 0.0931 -> 0.0782Helped
Add surrogate-module training (ablation)CAMILA · Multi-instruction Image EditingCLIP-T: 0.2975 -> 0.2984Helped
Add surrogate-module training (ablation)CAMILA · Context-Aware Image EditingL1: 0.0673 -> 0.0661Helped
Replace the Token Decoder with SAM (ablation)CAMILA · Multi-instruction Image EditingCLIP-T: 0.2975 -> 0.2895Hurt
Replace the Token Decoder with SAM (ablation)CAMILA · Single-instruction single-turnL1: 0.0602 -> 0.0585Helped

Surprising findings

Limitations

Experimental setup

Datasets: MagicBrush EMU

Benchmarks: MagicBrush EMU Multi-instruction editing (constructed) Context-aware instruction editing (constructed)

Metrics: L1 L2 CLIP-I DINO CLIP-T CLIP-dir PickScore IoU Dice

Baselines: InstructPix2Pix MGIE SmartEdit FoI EMILIE

Builds on: InstructPix2Pix Stable Diffusion LLaVA FoI MagicBrush

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy