Gate-and-Merge: Zero-shot Compositional Personalization of Vision Language Models

Guodong Ding, Angela YaoarXiv 2026

TL;DR

Gate-and-Merge is a novel zero-shot framework that enables Vision-Language Models (VLMs) to recognize and reason about multiple user-defined personalized concepts simultaneously at test time. By training lightweight LoRA adapters for each concept independently and fusing them dynamically during inference using a text-visual gating mechanism, it eliminates the need for expensive multi-concept co-occurrence training while preserving privacy.

What Problem Does This Paper Address?

Personalizing VLMs means teaching a model to recognize specific, user-defined concepts that weren't in its original training data—like your own pet, a unique private object, or a specific face. While existing methods can learn a single concept well, they fall flat when faced with compositionality: interpreting scenes containing multiple personalized concepts at once.

Figure 1. Personalized VLMs can learn each concept in isolation, but without a mechanism for compositionality, they may struggle to interpret scenes containing multiple user-defined concepts.

Current solutions either require joint training on images where these concepts co-occur (which is data-intensive and entangles the representations) or rely on external retrieval databases (which raises privacy concerns and doesn't truly internalize the knowledge). The authors tackle this gap by asking: How can we teach a VLM multiple concepts in total isolation, yet successfully combine them at inference time zero-shot?

Methods

The authors introduce Gate-and-Merge, a modular framework split into two distinct phases:

  1. Single Concept Learning (Training): Each concept is learned completely independently. The base VLM remains frozen to ensure a stable, shared feature space. For each concept, the framework trains a unique concept token (added to the vocabulary) and a lightweight LoRA adapter attached to the language model.
  2. Multi-Concept Composition (Inference): When a user provides an image and a query, the model dynamically composes the necessary adapters using two steps:
  3. Gate: A dual-modality gating mechanism determines which concepts are relevant. It triggers if a concept token is explicitly mentioned in the text query, or if the visual features of the image match a pre-computed concept prototype via cosine similarity.
  4. Merge: Naively adding LoRA weights causes parameter interference. Instead, Gate-and-Merge applies a structured fusion strategy. It stochastically drops low-contribution weights (sparsification via DARE) and resolves directional conflicts by keeping only sign-consistent updates (inspired by TIES-merging), creating a single, clean compositional adapter on the fly.
Figure 2. The proposed Gate-and-Merge framework. (a) During personalization, each concept is independently learned as a LoRA module associated with a unique concept token, enabling scalable and disentangled representation learning. (b) At inference, the gating function identifies concept relevance from text and image cues, while the merging mechanism fuses the aligned LoRA updates to achieve zero-shot compositional reasoning.

Datasets

The authors built an evaluation benchmark using a recent multi-concept dataset.

  • Scope: 118 distinct concepts spanning real-world celebrities, everyday objects, and fictional characters.
  • Training/Testing: 10 positive images per concept. To prevent overfitting and enhance discrimination, they mined ~100 visually similar but semantically incorrect "hard negatives" per concept from the CC12M dataset.
  • Compositional Evaluation: A test split featuring 36 two-concept, 10 three-concept, and 2 four-concept combinations, with 5 images per combination.

Key Insights and Ideas

  • Decoupled Training Prevents Entanglement: Training concepts in complete isolation ensures that their representations remain distinct. The composition problem is shifted entirely to inference time.
  • Weight-Space Fusion Wins Over Prompting: Rather than concatenating soft prompts in the context window (which quickly degrades), merging the actual weights of low-rank adapters directly in parameter space yields much more stable multi-concept reasoning.
  • Sparsity and Sign Alignment are Crucial: Independent LoRA adapters often try to tweak the same base model weights in opposite directions. Sparsifying the updates and enforcing sign consistency prevents destructive interference.

Key Results

Gate-and-Merge demonstrates substantial performance leaps over existing parameter-based personalization methods like Yo'LLaVA and MyVLM:

  • Visual Recognition: In the most challenging "Multiple-Multiple" setting (where the model must jointly recognize multiple queried concepts in an image), Gate-and-Merge achieves 69.9% accuracy, vastly outperforming Yo'LLaVA's 29.3%.
  • Visual Question Answering (VQA): In multi-concept visual QA, the proposed method achieves 57.9% accuracy, outperforming retrieval-based and prompt-based baselines.
  • Image Captioning: While retrieval-based methods suffer from a "copy-paste" artifact (verbatim repeating stored text descriptions 77.4% of the time), Gate-and-Merge generates contextually accurate, visually grounded descriptions.
Figure 3. Qualitative comparison of personalized captioning capabilities across different models. From top to bottom, each row shows examples containing a single concept, two concepts, and three concepts, respectively. It shows our approach can be effectively extend to compositional scenarios. Red indicates the failure in generating the personalized concept.

Limitations and Future Work

Despite its success, the authors note a couple of key limitations:

  • Assumption of Separability: The framework assumes each concept can be cleanly isolated into a single token and LoRA module. Highly entangled or visually ambiguous concepts might require more expressive adaptation architectures.
  • Risk of Detail Loss: The aggressive weight sparsification strategy (dropping up to 80% of weights to reduce interference) risks losing fine-grained details or failing on concepts with highly variable appearances.

Summary updated

Abstract

This paper tackles compositional personalization of vision-language models (VLMs). In this problem, multiple user-defined concepts must be recognized or described jointly at test time. We introduce Gate-and-Merge, a zero-shot framework that enables compositional personalization without the need for co-occurrence training. During personalization, each concept is learned independently as a lightweight LoRA adapter, paired with a concept token. The base model remains unchanged and concepts are kept disentangled. At inference, we enable composition by merging concept-specific LoRA updates directly in weight space. To suppress irrelevant activations and prevent interference, a gating mechanism is employed to estimate textual and visual cues and select only the modules that contribute to the prediction. We further stabilize composition by combining only the most meaningful and mutually consistent updates, helping preserve each concept's identity. Our quantitative and qualitative analyses show consistent gains in performance across multiple personalization tasks in both single-concept and compositional settings.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Visual recognitionYo'LLaVAaccuracy29.3%Multiple-multiple (MM): jointly recognize multiple queried concepts appearing simultane…
Source quote
L159: Yo'LLaVA~\cite{nguyen2024yo} │ \ding{52} │ 65.1 │ 21.7 │ 36.4 │ 25.6 │ 58.2 │ 46.6 │ 32.4 │ 75.5 │ 50.6 │ 43.8 │ 29.3 │ 18.4 │ 87.7 │ 29.7 │ 52.2
Text / Visual QAYo'LLaVAaccuracy64.7%Visual QA, single-concept setting; ground concept-related questions in the input image.
Source quote
L217: Single │ Multiple │ Single │ Multiple RAP-MLLM │ 53.3 │ 42.6 │ 72.5 │ 58.8 Yo'LLaVA │ 71.5 │ 57.3 │ 64.7 │ 52.4
Text / Visual QAYo'LLaVAaccuracy52.4%Visual QA, multiple-concept setting; ground concept-related questions in the input image.
Source quote
L217: Single │ Multiple │ Single │ Multiple RAP-MLLM │ 53.3 │ 42.6 │ 72.5 │ 58.8 Yo'LLaVA │ 71.5 │ 57.3 │ 64.7 │ 52.4
BibTeX
@misc{ding2026gate,
  author = {Guodong Ding and Angela Yao},
  title = {{Gate-and-Merge: Zero-shot Compositional Personalization of Vision Language Models}},
  year = {2026},
  eprint = {2605.08702},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.08702},
}

Loading related content...

Figure