Personalized Vision via Visual In-Context Learning
Yuxin Jiang, Yuchao Gu, Yiren Song, Ivor Tsang, Mike Zheng Shou
TL;DR
PICO reframes personalized vision as visual in-context learning, leveraging diffusion priors to infer a user-defined transformation from a single exemplar and apply it to new images without retraining. A compact VisRel dataset trains a diffusion transformer to map broad visual relations into a unified latent space, while an attention-guided seed scorer stabilizes test-time inference. Across segmentation and flexible task definitions, PICO outperforms fine-tuning and synthetic-data baselines and generalizes to both recognition and generation. The approach is data-efficient, flexible, and capable of handling novel user-defined tasks at test time. Limitations include extrapolation to tasks outside the learned visual relation space and constraints of the four-panel input format.
Abstract
Modern vision models, trained on large-scale annotated datasets, excel at predefined tasks but struggle with personalized vision -- tasks defined at test time by users with customized objects or novel objectives. Existing personalization approaches rely on costly fine-tuning or synthetic data pipelines, which are inflexible and restricted to fixed task formats. Visual in-context learning (ICL) offers a promising alternative, yet prior methods confine to narrow, in-domain tasks and fail to generalize to open-ended personalization. We introduce Personalized In-Context Operator (PICO), a simple four-panel framework that repurposes diffusion transformers as visual in-context learners. Given a single annotated exemplar, PICO infers the underlying transformation and applies it to new inputs without retraining. To enable this, we construct VisRel, a compact yet diverse tuning dataset, showing that task diversity, rather than scale, drives robust generalization. We further propose an attention-guided seed scorer that improves reliability via efficient inference scaling. Extensive experiments demonstrate that PICO (i) surpasses fine-tuning and synthetic-data baselines, (ii) flexibly adapts to novel user-defined tasks, and (iii) generalizes across both recognition and generation.
