Abstract
The development of large language models (LLMs) has significantly enhanced the capabilities of multimodal LLMs (MLLMs) as general assistants. However, lack of user-specific knowledge still restricts their application in human's daily life. In this paper, we introduce the Retrieval Augmented Personalization (RAP) framework for MLLMs' personalization. Starting from a general MLLM, we turn it into a personalized assistant in three steps. (a) Remember: We design a key-value database to store user-related information, e.g., user's name, avatar and other attributes. (b) Retrieve: When the user initiates a conversation, RAP will retrieve relevant information from the database using a multimodal retriever. (c) Generate: The input query and retrieved concepts' information are fed into MLLMs to generate personalized, knowledge-augmented responses. Unlike previous methods, RAP allows real-time concept editing via updating the external database. To further improve generation quality and alignment with user-specific information, we design a pipeline for data collection and create a specialized dataset for personalized training of MLLMs. Based on the dataset, we train a series of MLLMs as personalized multimodal assistants. By pretraining on large-scale dataset, RAP-MLLMs can generalize to infinite visual concepts without additional finetuning. Our models demonstrate outstanding flexibility and generation quality across a variety of tasks, such as personalized image captioning, question answering and visual recognition. The code, data and models are available at https://hoar012.github.io/RAP-Project/.
Introduction
Multimodal Large Language Models (MLLMs) like GPT-4o and LLaVA have demonstrated remarkable capabilities as general-purpose assistants. However, they typically lack the "personal memory" required to recognize and reason about user-specific concepts in daily life—such as a specific pet, a personal vehicle, or a friend's face. While a model can identify a "German Shepherd," it cannot inherently know that a specific dog is named "Lala" without prior context.
Existing solutions for personalization often rely on fine-tuning or many-shot learning. Fine-tuning is computationally expensive and slow, while many-shot learning consumes significant context window space and often requires dozens of examples to achieve accuracy. To address these challenges, we introduce Retrieval-Augmented Personalization (RAP), a framework that enables MLLMs to learn and utilize personal concepts from as little as a single reference image.
The RAP Framework
The RAP framework decouples personal knowledge from the model's weights by utilizing an external database. This approach allows for real-time updates and avoids the "catastrophic forgetting" associated with fine-tuning. The process follows a three-step pipeline:
- Remember: User-specific concepts are stored in a key-value database. Each entry consists of an "avatar" (a cropped image of the object), its name, and a brief textual description.
- Retrieve: When a user submits a query image, the system employs an open-world detector (YOLO-World) to identify potential regions of interest. These regions are encoded into visual embeddings using CLIP. A similarity search via FAISS then identifies the most relevant personal concepts from the database.
- Generate: The MLLM (e.g., LLaVA-1.5 or Phi-3V) receives the query image alongside the retrieved avatars and their descriptions. This knowledge-augmented prompt enables the model to generate responses that are both visually grounded and personally relevant.
Data Collection and Training
To train RAP-MLLMs, we developed a specialized pipeline for generating personalized multimodal data. Using Gemini-1.5 for high-quality annotations, we combined datasets like RefCOCO, Object365, and CelebA. To ensure robustness against varying viewpoints and lighting, we utilized diffusion models (Inpaint-Anything and Wonder3D) to perform data augmentation, creating novel 3D views of personal concepts.
A critical component of our training strategy is the inclusion of "negative samples." By intentionally providing the model with irrelevant retrieved concepts during training, we teach it to distinguish between the correct identity and similar-looking "noise," significantly improving precision in real-world scenarios.
Results and Insights
RAP demonstrates superior performance across various tasks, including personalized image captioning, question answering, and visual recognition. Notably, RAP-LLaVA achieved an F1-score of 94.97 in image captioning, outperforming traditional fine-tuning methods like LLaVA-LoRA (87.82). In visual QA, RAP-Phi3-V reached 94.1% accuracy, surpassing even GPT-4V with specialized prompting (88.7%) in personalized contexts.
Key advantages of RAP include:
- One-Shot Learning: Effective personalization with just a single reference image, whereas previous methods required 100-200 images.
- Real-Time Editing: Users can update their personal database, and the model immediately reflects these changes without retraining.
- Scalability: Performance remains stable even as the database grows to hundreds of concepts, avoiding the interference issues found in weight-based personalization.
Conclusion and Future Work
RAP provides a scalable and efficient path toward truly personalized AI assistants. By keeping personal information in an external database, the framework offers a flexible solution for long-term user interaction. Future work will focus on expanding the framework to handle video-based personalization and overcoming context window constraints when dealing with many simultaneous personal concepts.
Summary updated