[Paper Review] Learning Combinatorial Prompts for Universal Controllable Image Captioning
This paper proposes ComPro, a prompt-based framework for universal controllable image captioning that learns combinatorial prompts to jointly handle multiple control signals—such as content and structure—using a single GPT-2-based architecture. By generating task-specific prompts and employing a novel mask attention mechanism, ComPro achieves state-of-the-art performance on both single and combined control signals across COCO Entities and Flickr30K Entities benchmarks.
Controllable Image Captioning (CIC) -- generating natural language descriptions about images under the guidance of given control signals -- is one of the most promising directions towards next-generation captioning systems. Till now, various kinds of control signals for CIC have been proposed, ranging from content-related control to structure-related control. However, due to the format and target gaps of different control signals, all existing CIC works (or architectures) only focus on one certain control signal, and overlook the human-like combinatorial ability. By ``combinatorial", we mean that our humans can easily meet multiple needs (or constraints) simultaneously when generating descriptions. To this end, we propose a novel prompt-based framework for CIC by learning Combinatorial Prompts, dubbed as ComPro. Specifically, we directly utilize a pretrained language model GPT-2 as our language model, which can help to bridge the gap between different signal-specific CIC architectures. Then, we reformulate the CIC as a prompt-guide sentence generation problem, and propose a new lightweight prompt generation network to generate the combinatorial prompts for different kinds of control signals. For different control signals, we further design a new mask attention mechanism to realize the prompt-based CIC. Due to its simplicity, our ComPro can be further extended to more kinds of combined control signals by concatenating these prompts. Extensive experiments on two prevalent CIC benchmarks have verified the effectiveness and efficiency of our ComPro on both single and combined control signals.
Motivation & Objective
- To address the lack of combinatorial generalization in existing controllable image captioning (CIC) models, which are designed for single control signals only.
- To enable a unified framework that supports multiple control types—such as content-related (e.g., object regions) and structure-related (e.g., sentence length)—simultaneously.
- To bridge the architectural gap between signal-specific CIC models by using a single pretrained language model (GPT-2) and prompt-based control.
- To develop a lightweight prompt generation network that produces effective, task-specific prompts for diverse control signals.
- To demonstrate the extensibility of the framework to unseen combinations of control signals through prompt concatenation.
Proposed method
- The framework reformulates CIC as a prompt-guided sentence generation problem, using GPT-2 as the underlying language model to unify diverse control signal formats.
- A lightweight prompt generation network is introduced to produce combinatorial prompts tailored to different control signals, such as object regions or sentence structures.
- A novel mask attention mechanism is designed to dynamically attend to relevant parts of the prompt based on the control signal type, enabling effective condition control.
- The framework supports multi-modal control by concatenating prompts from different signal types, enabling joint control over content and structure.
- The model is trained end-to-end on two benchmarks: COCO Entities and Flickr30K Entities, with prompt length and visual features ablated for optimal performance.
- Visual features are either bottom-up (from faster R-CNN) or CLIP features (with ResNet/ViT encoders), with ablation showing bottom-up features outperform CLIP for content control.
Experimental results
Research questions
- RQ1Can a unified framework effectively handle multiple types of control signals—such as content and structure—simultaneously in image captioning?
- RQ2Does learning combinatorial prompts enable better generalization to unseen combinations of control signals compared to signal-specific models?
- RQ3How does prompt length affect the performance of the proposed ComPro framework on content and structure control tasks?
- RQ4What is the impact of different visual feature representations (bottom-up vs. CLIP) on the model’s ability to generate accurate, controllable captions?
- RQ5To what extent does the model’s performance align with human judgments in user studies for controllability and accuracy?
Key findings
- ComPro achieves state-of-the-art performance on both COCO Entities and Flickr30K Entities benchmarks, with a CIDEr score of 23.6 and a B-4 score of 27.1 under content control.
- The model reaches optimal performance with a prompt length of 10 tokens, as longer prompts (e.g., 20) show performance saturation or slight degradation.
- User studies show that ComPro outperforms SCT in human judgment, with 86 out of 100 trials preferred over the baseline, indicating superior controllability and accuracy.
- ComPro achieves high agreement with human judgments (80% agreement with CIDEr, 84% with NW), confirming metric reliability.
- Bottom-up visual features yield significantly better performance than CLIP features for content-related control, while CLIP features are sufficient for structure-related control.
- The framework successfully generalizes to combined control signals through prompt concatenation, demonstrating its universality and extensibility.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.