Referring Expression Generation (REG) is the task of producing a natural language description that uniquely identifies a specific object within a complex visual scene. While traditional models aim to produce a single "ground truth" description, human communication is inherently diverse. Depending on the context, one might identify an object by its color, its location relative to others, or its current action.
Presented at NAACL 2024, this research introduces a novel framework for Aspect-Controlled REG. By leveraging visual and textual prompting, the authors enable models to generate diverse descriptions tailored to specific attributes like color, location, action, or shape.
The Challenge: Aspect-Based Multiplicity
Most existing REG models suffer from two primary limitations. First, they lack control; they typically output the most frequent or generic description found in training data, ignoring the "aspect-based multiplicity" of real-world references. Second, high-quality human-annotated data for REG is scarce and expensive, which hinders the development of downstream tasks like Referring Expression Comprehension (REC).
Methodology: Visual and Textual Prompting
The proposed system is built upon the BLIP (Bootstrapping Language-Image Pre-training) architecture. The core innovation lies in how the model is prompted and trained to achieve fine-grained control.
1. Visual Prompting via the "Red Box"
Instead of using complex region-of-interest (ROI) pooling or specialized encoders that might distort the image, the authors employ a remarkably simple technique: they draw a red bounding box directly onto the input image. The model is then prompted with the text: "Describe the red box inside the image:" This approach provides a clear spatial cue without architectural overhead.
2. Aspect-Controlled Text Prompting
To control the style of the description, the authors append aspect tags to the prompt. For example, a user can request a color-based description by prompting: "Describe the red box inside the image by color." The model currently supports four primary aspects: Color, Location, Action, and Shape.
3. Multitask Training and Hard Negatives
To ensure robust grounding, the model is trained using a combination of three losses:
- Region-Expression Contrastive (REC) Loss: Aligns specific image regions with their corresponding text.
- Region-Expression Matching (REM) Loss: A binary classifier that determines if a given region and description match.
- Expression Generation (EG) Loss: The standard language modeling loss used for generating the final text.
The training process also incorporates "hard negatives"—pairs where the image region or the text description is subtly incorrect—forcing the model to learn fine-grained distinctions.
Key Results and Impact
The model demonstrates significant improvements in both the quality of generated expressions and their utility for downstream tasks.
- State-of-the-Art Performance: On the RefCOCOg benchmark, the model achieved a CIDEr score of 1.069, a substantial leap over the previous state-of-the-art of 0.749.
- Data Augmentation Power: The authors used their REG model to generate over 158,000 synthetic annotations for MSCOCO images. They found that a downstream REC model trained on just 50% real data plus synthetic data performed nearly as well (80.54% accuracy) as one trained on 100% real human data (80.89%).
- Human Preference: In blind evaluations, human raters consistently scored the model's descriptions higher for both correctness and naturalness compared to baseline models.
Limitations and Future Directions
While highly effective, the "red box" method has potential pitfalls, such as confusion when an image naturally contains red rectangular elements. Additionally, the model showed lower faithfulness when prompted for "Shape," likely due to the dominance of color and location in existing datasets. Future work aims to expand the range of controllable aspects and develop better sampling strategies for generating even more challenging synthetic training examples.
Summary updated