Zero-shot personalization systems put a specific subject, such as your dog, a particular cow, or a worn piece of machinery, into newly generated images. They do this from one photo, with no per-subject training: an image encoder turns the reference photo into "identity tokens," and a small adapter feeds those tokens into a frozen text-to-image diffusion model (a generator that turns random noise into an image step by step). These systems are tested almost entirely on clean, centered, well-lit references. Real users and field robots take photos where the subject sits half-hidden in foliage, washed out by glare, blurred by a moving camera, or colored like the mud around it. The usual way to tell the system where the subject is, a rectangular bounding box, makes this worse. A box around a non-convex animal or plant contains mostly background and hazard pixels, and the encoder treats all of them as identity.
We propose learning a soft "ownership" map: for each patch inside the box, a weight saying how much it belongs to the subject. The map is learned from video using only box tracks, with no mask labels. The signal is recurrence. Patches that help the generator reconstruct the same subject in a different frame are the subject. Background, glare, and occluders change between frames, so they do not help and get low weight. We add synthetic field hazards to the reference frame only, which pushes the map to down-weight them. The claim we will test is that this learned ownership gives more stable identity than either the raw box crop or masks from an off-the-shelf segmenter. It should matter most under exactly the hazards, camouflage, glare, and blur, that also break the segmenters.
Core Claim
The gap between lab and field performance in zero-shot personalization is largely a gap in support estimation, meaning which pixels to trust. It is not a gap in encoder capacity. Two things support this framing. First, current multi-subject systems condition only on rectangles. MS-Diffusion confines reference attention to box masks, and AnyMS crops and merges latents along box edges. Both papers note that rectangles enclose background and neighboring subjects for irregular shapes, and neither tests degraded references. Second, the standard escape from boxes fails in the field. Box-to-mask methods such as BoxInst recover masks through a color-affinity prior, which breaks under shadows and camouflage. The few-shot segmentation work in Adaptive Attention Distillation documents attention drifting onto background under blur, camouflage, and low light.
Our ownership map replaces the color prior with an identity-recurrence prior. The recurrence prior should still hold where color fails, because a camouflaged animal still looks like itself across frames even when it looks like the ground.
Research Program
The model starts from a frozen diffusion backbone with a resampler-style adapter, as in MS-Diffusion. A reference frame and a box give a grid of encoder patch features. A light ownership head predicts a weight $w_i \in [0,1]$ for each patch $i$ inside the box. These weights scale each patch's contribution to the identity tokens. Because the weighting is soft, the encoder can still use context when the weights are uncertain.
Training uses video clip pairs, the same data recipe MS-Diffusion uses to learn view-invariant identity from 3.6M pairs. The target is a different frame $t'$ of the same tracked subject. The objective is
$$ \mathcal{L} = \mathcal{L}_{\text{diff}}\big(x_{t'} \mid \text{text}, \{w_i f_i\}\big) + \lambda_{p}\,\mathcal{L}_{\text{proj}}(w, b) + \lambda_{s}\,\lVert w \rVert_1 / |b|. $$
In this objective, $\mathcal{L}_{\text{diff}}$ is the standard denoising loss on the target frame, restricted to its box. The terms $f_i$ are the reference patch features. $\mathcal{L}_{\text{proj}}$ is BoxInst's projection loss: the row and column extents of $w$ must match the box $b$, which rules out an all-zero map. The last term is a sparsity penalty normalized by box area $|b|$, which rules out an all-one map.
Hazards drawn from the WildDash hazard taxonomy (WildDash) are applied to the reference frame only, while the target frame stays clean. These hazards are overexposure halos, motion blur, foliage occluders, low light, and texture-matched backgrounds. A hazard pixel can therefore never help reconstruct the target.
One shortcut must be blocked: with a static camera, background recurs across frames and would earn high weight. We block it by sampling reference and target frames far apart and by discarding pairs whose background is too similar outside the box.
At inference the user supplies one field photo and a rough box. We will also test whether replacing the rectangular attention masks at generation time with the predicted map helps multi-subject layouts. This is secondary, and the core claim does not depend on it.
Evaluation Construction
No existing benchmark pairs field-degraded references with clean ground-truth identity. We will build one by corrupting the references of AnimalBench (AnimalBooth), DreamBench, and MS-Bench at graded severities in each hazard family. We keep the clean reference as the identity ground truth. A second, smaller split uses real footage: hard multi-concept video sequences from This-Is-My-Img (PeKit), plus a newly recorded set of animals in outdoor clutter, each with one clean and several naturally degraded views.
The metrics are as follows. Identity fidelity is DINO and CLIP-I similarity between the generated subject region and the clean reference. Text alignment is CLIP-T. Background leakage is feature similarity between the generated background and the corrupted reference's background. The robustness gap is fidelity with the clean reference minus fidelity with the degraded reference. Multi-subject runs also report M-DINO and layout mIoU.
Baselines
The naive reference point is the same adapter fed the raw box crop, trained without hazard augmentation. This measures how badly clean-trained personalization degrades.
The strongest box-conditioned competitor is MS-Diffusion. It reports M-DINO 0.108 and CLIP-T 0.341 on MS-Bench (MS-Diffusion). AnyMS reports layout accuracy of 49.75 mIoU and CLIP-T 35.82 (AnyMS) and serves as the training-free box baseline. For single animals, the strongest competitor is AnimalBooth, whose Q-Former bottleneck is meant to discard background on its own. It reports CLIP-I 90.00 and CLIP-T 20.73 on AnimalBench (AnimalBooth). No reported result was found on Lacuna for any of these methods with degraded references, so we will re-run all of them on our corrupted splits with released weights. Beating a method means matching its reported clean-reference scores within noise while showing a smaller robustness gap at every severity level.
The segmenter-mask baseline is strong. It follows PeKit's registration step: GroundedSAM masks the reference, and the masked crop goes into the same adapter. A mask-supervised variant follows FastComposer (FastComposer), which supervises cross-attention with Mask2Former masks but is limited to human faces.
Two ablations isolate our ingredients. In the first, hazard augmentation is applied without the ownership head: same data, same augmentation, same steps, raw box crop. In the second, the ownership head is trained with BoxInst's color-affinity loss in place of the recurrence signal. All trained variants share the backbone, the video data, a fixed GPU-hour budget, and the same hyperparameter-search budget.
Why not just…?
Why not just segment the reference with SAM first? This is the most serious threat. Where segmentation succeeds, we expect it to roughly match our method. Our bet is that segmenters fail on the same images that degrade identity. AAD documents attention drift under camouflage and blur. BoxInst's affinity prior collapses when foreground and background share color. PeKit itself reports trouble when GroundedSAM boundaries are wrong. We will stratify the test images by the segmenter's mask IoU against ground-truth AnimalBench masks. If the segmenter baseline matches us in the low-IoU stratum too, our idea adds nothing beyond masking, and we will report that result.
Why not just train with hazard augmentation? Augmentation may teach the encoder some invariance by itself, which is why the augmentation-only ablation is matched exactly. The two approaches predict different outcomes. Without ownership, the encoder can absorb occluders and glare into identity tokens, so we expect background leakage, not only fidelity, to separate the two.
Why not just rely on a semantic bottleneck like AnimalBooth's Q-Former? AnimalBooth's own analysis says bottlenecks discard fine, non-salient markings. Under glare, the most salient content may be the hazard itself. The AnimalBooth comparison and an ablation that puts our ownership weights in front of a Q-Former will show whether the two methods are complementary or redundant.
Why not restore the image first? Deblurring and dehazing models can invent texture, which is fatal for identity markings, and they do nothing about occluders or camouflage. We will include a restoration-first pipeline on the blur and low-light families only, where it has a fair chance.
Proposed Experiments
The decisive check is a plot of the robustness gap against hazard severity for each hazard family, split by segmenter-mask quality. Our claim predicts that the advantage over the segmenter baseline grows as segmenter IoU drops and is largest for camouflage and overexposure.
A second check scores the predicted ownership maps directly, as zero-shot masks, against AnimalBench and PlantSeg ground truth (PlantSeg). PlantSeg shows that low convex-hull-ratio shapes defeat standard segmenters. If the recurrence signal is doing real work, the ownership maps should degrade more slowly on those shapes than BoxInst masks do.
A third check, on the real-footage split, tests whether gains measured on synthetic hazards carry over to natural ones. If they do not, the synthetic benchmark is misleading and the method's value is unproven.
Finally, the multi-subject experiment on MS-Bench tests whether ownership maps reduce boundary artifacts and attribute bleeding relative to rectangular attention masks. A positive result there would extend the claim to generation-time layout control as well as reference encoding.
References
- MS-Diffusion: Multi-subject Zero-shot Image Personalization with Layout Guidance
- AnyMS: Bottom-up Attention Decoupling for Layout-guided and Training-free Multi-subject Customization
- BoxInst: High-Performance Instance Segmentation With Box Annotations
- Adaptive Attention Distillation for Robust Few-Shot Segmentation under Environmental Perturbations
- WildDash - Creating Hazard-Aware Benchmarks
- AnimalBooth: Multimodal Feature Enhancement for Animal Subject Personalization
- Personalization Toolkit: Training Free Personalization of Large Vision Language Models
- FastComposer: Tuning-Free Multi-subject Image Generation with Localized Attention
- A Large-Scale In-the-wild Dataset for Plant Disease Segmentation