Manuscript Offprint

arXiv:2610.31950

LOCI: Localized Continuous Control for Multi-Subject Image Editing

Sai Vidyaranya Nuthalapati, Shlok Kumar Mishra

Sai Vidyaranya Nuthalapati 1^{1}, Shlok Kumar Mishra 1^{1}

1^{1}Meta AI

Recent instruction-following image editors such as FLUX.1-KONTEXT enable text-driven editing but lack fine-grained control over where and how much an edit is applied. Existing approaches provide either continuous but global control or spatially localized editing at a fixed strength. To our knowledge, none jointly supports explicit spatial localization, continuous per-region strength, and independent simultaneous control of multiple subjects. We present LOCI (LOcalized Continuous control for multi-subject Image editing). Given a multi-subject image with per-subject regions and instructions, LOCI edits each subject at an independently chosen, continuously adjustable strength, for instance gradually aging one person while adding a beard to another with minimal cross-region leakage. LOCI pairs subject-level attention binding for spatial isolation with a Regional LoRA layer that replaces the LoRA's scalar coefficient with a per-token scaling vector aligned to the spatial layout. A single adapter is trained at one suppression point, and continuous edit strengths follow by rescaling its regional residual at inference. Experiments on multi-subject scenes demonstrate that LOCI achieves strong edit fidelity with significantly reduced cross-region interference compared to baselines, while maintaining continuous control over edit strength.

Date: October 26, 2026

Correspondence: saividyaranya@meta.com

Meta

1 Introduction

The rise of text-to-image (T2I) generative models (Ramesh et al., 2022; Saharia et al., 2022b; Podell et al., 2023; Rombach et al., 2022) has revolutionized image editing, enabling creative expression at an unprecedented scale through simple textual prompts. Ranging from Generative Adversarial Networks (Goodfellow et al., 2014) to diffusion models (Sohl-Dickstein et al., 2015; Song et al., 2021; Dhariwal and Nichol, 2021), to flow-based models (Lipman et al., 2023; Liu et al., 2023; Esser et al., 2024; Black Forest Labs, 2024), these models have demonstrated the ability to generate high-quality images which adhere to the text prompts. Recently diffusion and flow matching models have excelled at various tasks such as inpainting (Lugmayr et al., 2022), outpainting (Saharia et al., 2022a), style transfer (Zhang et al., 2023), and instruction-based editing (Brooks et al., 2023; Zhang et al., 2024; Sheynin et al., 2024; Black Forest Labs, 2025) to name a few.

Existing editors fall into two families. Firstly, continuous editors expose an edit-strength control but reach a subject only through the prompt (Zarei et al., 2025; Parihar et al., 2026). Language grounding is coarse: it can express “replace the dog with a cat,” but not “replace the second dog from the left” when several same-category instances co-occur. Because the control is never bound to an image region, it cannot designate which subject to edit, cannot assign independently chosen intensities to several subjects in one pass (Gandikota et al., 2023; Ye et al., 2025; Endo et al., 2026), and cannot confine the edit once it is applied without spilling onto its neighbours where an edit intended for one subject spills onto its neighbours (Dahary et al., 2024; Mun et al., 2025).

The second family binds edits to regions, through masks or attention, and so resolves both designation and containment. These methods, however, apply the edit at a single fixed strength, offering no interpolation between the source image and the fully applied edit (Chakrabarty et al., 2024; Zaccagnino et al., 2026; Cai et al., 2026; Xiong et al., 2026).

The two capabilities therefore live in separate families. To our knowledge, no existing approach combines edit strength increases ( α\alpha decreasing) ⟶\longrightarrow

Figure

Subject 1

Subject 2

Both

Input

transform the teapot into an ornate steampunk contraption with brass pipes, pressure gauges and copper rivets

change the teapot into a vessel carved from luminous jade, with dragon motifs and a serpent handle

Figure 1 LOCI gives every subject its own continuous edit control. From one input, the top row strengthens the edit on the first teapot while the second stays pinned at the neutral anchor, the middle row does the converse, and the bottom row moves both controls together. The boxes on the input are the spatial annotations supplied to the model: red for subject 1 and blue for subject 2, matching the row labels.

explicit regional localization, continuous per-region edit strength, and independent simultaneous control of multiple subjects in a single editing process.

We present LOCI, a single framework that resolves these limitations. Given a multi-subject image annotated with per-subject regions and edit instructions, LOCI edits each designated subject at an independently chosen, continuously adjustable strength while confining every edit to its own region. Each region is given as either a bounding box or a segmentation mask, and it supplies the explicit spatial addressing that language grounding lacks, so the user can specify exactly which subject to modify. Scaling each region's contribution independently gives every subject its own continuous strength within a single forward pass, and attention masking isolates the regions to suppress cross-subject leakage.

Realizing per-region strength control is nontrivial. The conditioning paths in MMDiT backbones (Esser et al., 2024; Black Forest Labs, 2024) (AdaLN modulation and attention) govern what features are computed, not how intensely an edit is applied; modulating their parameters does not yield a linear interpolation between unedited and edited outputs. Attention masking can partition which edit reaches which region (Zaccagnino et al., 2026), but this isolation is binary and carries no notion of graded strength. On the other hand, the low-rank update of LoRA (Hu et al., 2022), enters as an additive residual whose magnitude directly governs edit intensity. Scaling it by zero recovers the base output, scaling by one applies the learned update in full, and intermediate values interpolate continuously by construction (Zarei et al., 2025). However, scaling the residual per region is not sufficient on its own because the learned edit direction is spatially entangled: the residual is written only inside a region, but attention carries its effect outward, so assigning different scales to different regions does not produce independent edits. Our key insight is that training the LoRA under instance-aware attention masking yields region-local edit directions. Once each direction is local, per-region scaling of the residual becomes meaningful, and each subject can be edited at an independently chosen strength within a single forward pass, without modifying the base architecture. We make the following contributions.

  1. We introduce LOCI, a framework for independently controllable multi-subject editing that represents an edit as an instruction, a spatial support, and a continuous control coefficient. At its core is Regional LoRA, a layer that scales the residual separately in each region instead of applying one strength to the whole image, so every subject carries its own control and the background carries none. Multiple subject-specific edits are then composed within one model while their strength and spatial influence stay independently controlled.

  2. We curate a multi-subject evaluation set comprising 128 scenes and 427 source-region-edit tuples spanning people, animals, vehicles, furniture, and mixed compositions with 2–7 subjects per scene, and define four evaluation protocols (single-target editing, independent multi-control sweeps, joint editing, and two-dimensional Cartesian grid control) that together probe target fidelity, cross-subject leakage, continuity, and slider independence.

References (48)