Abstract
Subject-driven text-to-image (T2I) generation aims to produce images that align with a given textual description, while preserving the visual identity from a referenced subject image. Despite its broad downstream applicability -- ranging from enhanced personalization in image generation to consistent character representation in video rendering -- progress in this field is limited by the lack of reliable automatic evaluation. Existing methods either assess only one aspect of the task (i.e., textual alignment or subject preservation), misalign with human judgments, or rely on costly API-based evaluation. To address this, we introduce RefVNLI, a cost-effective metric that evaluates both textual alignment and subject preservation in a single prediction. Trained on a large-scale dataset derived from video-reasoning benchmarks and image perturbations, RefVNLI outperforms or matches existing baselines across multiple benchmarks and subject categories (e.g., Animal, Object), achieving up to 6.4-point gains in textual alignment and 8.5-point gains in subject consistency. It also excels with lesser-known concepts, aligning with human preferences at over 87% accuracy.
Introduction
Subject-driven text-to-image (T2I) generation is a specialized task where a model must generate an image following a text prompt while strictly maintaining the identity of a reference subject—for instance, generating "my specific flower" in a new context rather than a generic one. Evaluating these models presents a significant challenge. Traditional metrics like CLIP or DINO often struggle to distinguish between essential identity features and identity-agnostic variations such as lighting or pose.
Current evaluation frameworks typically suffer from three main issues: they focus on only one dimension (either text or image), they fail to align with human perception, or they rely on expensive, proprietary APIs like GPT-4o. To bridge this gap, we propose RefVNLI, a scalable, open-source metric designed to simultaneously assess textual alignment and subject preservation.
Methodology
RefVNLI is built upon a fine-tuned PaliGemma (3B) Vision-Language Model. The primary contribution lies in the automated construction of a 1.2-million-instance training dataset, specifically designed to teach the model fine-grained nuances:
- Subject Preservation via Video: By utilizing video frames from the Mementos and TVQA+ datasets, the model learns that a subject's identity remains constant across different viewpoints and environments.
- Identity-Sensitive Inpainting: To increase sensitivity to subtle changes, the authors used inpainting to create "identity-altering" negatives. These are images where a key feature (e.g., a specific pattern or facial detail) is modified while the rest of the scene remains the same.
- Hard-Negative Textual Alignment: Using LLMs (Gemini), the team generated captions and created "hard negatives" by altering single semantic facts in the prompt (e.g., changing spatial relations like "around" to "next to").
The model is trained to perform sequential binary classification, first evaluating textual alignment and then subject preservation, ensuring a holistic assessment of the generated output.
Experimental Setup
The model was trained on a curated mix of video data (Mementos, TVQA+) and inpainted negatives from Open Images. Evaluation was conducted across four diverse benchmarks:
- DreamBench++: The standard benchmark for personalized image generation.
- ImagenHub: A benchmark focusing on multi-subject and complex compositional scenarios.
- KITTEN: A dataset evaluating real-world entities and landmarks.
- ImageRAG: Specifically designed for rare and uncommon entities, such as obscure scientific species.
Results and Discussion
RefVNLI demonstrates significant improvements over existing baselines. On the DreamBench++ benchmark, it achieved a 6.4-point gain in textual alignment and a 5.9-point gain in subject preservation. Notably, despite its relatively small 3B-parameter size, RefVNLI outperformed or matched the performance of much larger API-based models like GPT-4o in several categories.
A key insight from the study is that joint training for both text and subject preservation is synergistic; the textual context helps the model focus on relevant identity features. Furthermore, RefVNLI shows superior performance on "long-tail" or rare subjects. On the ImageRAG benchmark, RefVNLI's human alignment score (91.4) vastly outperformed CLIP (69.2) and VIEScore (69.6).
Conclusion
RefVNLI provides a cost-effective and accurate alternative for evaluating subject-driven T2I models. While it currently faces challenges with significant domain shifts (e.g., photo-to-cartoon transitions) and is limited to single-reference cases, it represents a major step toward scalable and reproducible evaluation in the field. Future work will focus on multi-reference support and unifying the two scores into a single integrated metric.
Summary updated