Fine-grained Image Captioning with CLIP Reward
Paper · 2022 · Jaemin Cho, Seunghyun Yoon, Ajinkya Kale et al.
Summary
A photograph of cyclists on a city street can be described accurately without saying anything about the sign beside them. For someone trying to find that particular photograph, the sign may be the most useful detail in the sentence. Image captioning systems frequently learn from human descriptions that concentrate on the main subjects. When training rewards agreement with those descriptions, a visible detail can add little to the score simply because the people who wrote the references left it out. The authors investigate whether captions become more distinctive when the training reward measures how well the generated sentence matches the image itself.
Their approach uses CLIP, a system trained to place images and text in a shared numerical space. A caption receives a higher reward when its text representation is closer to the representation of the image it describes. This lets the authors score a generated sentence without consulting a human caption for that image during reward computation. Optimizing the image–text score on its own, however, can produce sentences with repeated words and awkward endings. The authors adapt CLIP’s text encoder to recognize synthetic errors created by editing existing captions. They then add its grammar score to the image–text reward. The captioning system still starts from training on human descriptions, and those descriptions also supply the material for the grammar exercise.
The paper evaluates the resulting captions in several ways. On the MS COCO Karpathy test split, the combined image–text and grammar reward achieves text-to-image retrieval R@1 of 35.8, compared with 20.9 for CIDEr training and 29.5 when the first human reference caption serves as the search query. The image–text reward alone reaches 42.5 on that test, but its captions exhibit the repetition the grammar reward was introduced to address. On FineCapEval, a new evaluation set with separate annotations for backgrounds, objects and their attributes, and relations, the combined reward scores higher than CIDEr training on every category, including overall description. Human comparisons also favor the combined reward by recorded wins across the criteria, although the relation comparison with maximum likelihood training is nearly even.
The results show why the choice of reward and the choice of evaluation matter together. A caption can be easier to use to locate a photograph while receiving a lower score against its original reference sentences. It can also be highly recognizable to a retrieval system while being difficult to read. The paper’s strongest evidence comes from considering those outcomes alongside detailed annotations and human preferences.
Deep dive: Fine-grained Image Captioning with CLIP Reward
Fine-grained Image Captioning with CLIP Reward tests whether scoring captions against images improves detail, and how a grammar reward affects fluency. · about 35 minutes to read
The problem and its context
What a relevant caption can leave out
Image captioning serves several purposes in the paper’s account. A sentence may give a reader access to visual information, or it may become searchable text associated with a photograph. Both uses make the choice of detail consequential. Knowing that a scene contains airplanes can put it in the right broad category. Knowing something about where the planes are parked or the condition of the ground can help identify a particular scene. A caption has room for only some of what is visible, so the training objective influences which details tend to survive that choice.
The authors locate the problem partly in the relationship between images and reference captions. A reference is a human description paired with the image. References can be accurate while leaving large parts of the scene implicit. Several people describing the same photograph may agree on its most prominent object and say little about what surrounds it. If a training score rewards a sentence for recovering the common wording, the system receives a clear signal about the object. Its signal about the background is weaker, even when the background would help distinguish the photograph from another one with the same object.
That is a problem of coverage as well as wording. A generated sentence and a reference may express the same fact in different terms. A generated sentence may also express an additional fact that the reference never attempted to record. A metric that becomes better at recognizing paraphrases can help with the first case. The second requires evidence about the scene or a more detailed account of it. The paper tackles that second case by introducing an image-based training signal and separately constructing an evaluation set that asks annotators to look for particular kinds of detail. Vision & language
The distinction also explains why the authors care about distinctiveness. A caption may be relevant to the photographed subject and still apply to many other photographs. For search, the question is whether the words carry enough information to help select the source image from alternatives. For a reader, the question includes which additional information the sentence conveys and whether it is expressed clearly. The paper uses retrieval to examine the first question and more detailed written annotations and human judgments to examine the second.
What earlier captioning objectives rewarded
The paper situates its method in a line of image-conditioned captioning work represented by Show and Tell and Show, Attend and Tell. A captioner uses information from an image to predict a sequence of words. A conventional starting objective is maximum likelihood estimation, or MLE. During this kind of training, the system sees the preceding words from a reference sentence and learns to assign a higher probability to its next word. The reference therefore supplies both the target and the context in which the target is predicted. Show and Tell · Show, Attend and Tell
At generation time, the preceding words come from the system’s own output. An awkward choice can put the decoder in a context that differs from the reference contexts used for training. The paper calls this mismatch exposure bias. It describes earlier scheduled sampling as a curriculum that addresses the mismatch, and it discusses sequence-level training as a way to give feedback on a caption the system actually produced. The move to evaluating a whole sequence is important here because a good next-word prediction and a useful description of the entire scene are different targets for training. Sequence Level Training with Recurrent Neural Networks
A sequence-level objective can give the generated caption a reward based on how it compares with human references. The paper discusses established metrics built from short strings of words or from structured descriptions of a scene. Short strings of adjacent words are called n-grams. Measures in the paper’s discussion include BLEU, ROUGE, METEOR, and CIDEr, alongside SPICE, which uses scene structure. CIDEr is especially relevant to the experiment because it serves both as a standard evaluation measure and as a reward for one of the comparison systems. The same score can thus play two roles, guiding training in one setting and measuring the resulting output in another. BLEU score · ROUGE · METEOR · CIDEr · SPICE
The authors also describe metrics that compare learned representations of sentences or of images and sentences. These approaches allow the evaluator to give credit for a match beyond exact wording. CLIPScore is the immediate precedent for the proposed reward. It uses CLIP to assign an image–text similarity score even when a reference caption is unavailable. The contribution in this paper is to use that score as feedback during caption training and to adapt the text encoder when direct optimization exposes a weakness. A useful evaluation signal can become an imperfect training objective when a generator actively searches for outputs that score well under it. CLIPScore
Why the authors turn to the image
The paper describes earlier efforts that also tried to give captioners a reason to include more informative details. One used visual question answering as a reward. In that setup, a caption is valuable if it contains enough information to support an answer to a question about the scene. The question makes the information need explicit. Other approaches rewarded self-retrieval. A caption earns credit if a retrieval system can use it to identify the image that generated it. As the authors describe them, those approaches mix the retrieval signal with a textual similarity reward and require care in balancing the objectives. CapWAP
CLIP offers another route because it was trained on image–text pairs collected from the web. It has an image encoder and a text encoder, each of which turns its input into a vector. Its contrastive training uses the distinction between paired and mismatched inputs to make corresponding images and descriptions closer in the shared representation. The captioning paper takes advantage of that distinction. A detail that helps make the entire caption a better match for the input image can influence the reward even if the dataset’s human writers never used those words. Learning Transferable Visual Models From Natural Language Supervision
This shifts the source of supervision during the reward stage. The generated caption is still judged by a learned system, and the score reflects what that system recognizes as a good image–text match. That introduces a specific question for the experiments. If the reward recognizes the subject, attributes, and setting but is relatively insensitive to malformed text, then optimizing it may improve the visual content while degrading the sentence. The authors design their grammar adaptation around that possibility and evaluate the two kinds of improvement separately.
The method, step by step
From the photograph to a whole-caption reward
The method has a caption generator and a scorer. The generator turns visual features into a sentence. The scorer judges how well that sentence fits the image and, in the grammar-augmented version, how much it resembles a well-formed caption. Both parts use CLIP components, but they serve different roles. Visual features in the generator help it decide what to write. A score returned after generation gives it feedback about the entire candidate sentence.
Training starts with example image–caption pairs. The generator first learns to produce plausible captions using maximum likelihood. The authors then give it feedback on its own complete outputs. During this stage, a candidate caption from beam search is scored alongside a caption from greedy decoding. Greedy decoding takes the most probable next token at each step. Beam search keeps several partial candidates in play so that a locally less probable choice can still lead to a competitive full sentence. The experiment uses a beam size of 5.
The greedy caption establishes a baseline for the same image and the same current generator. If a beam candidate earns more reward, the update favors producing that candidate. If the candidate earns less, the direction reverses. This measures the candidate against what the generator can already produce for the image. A difficult image with modest scores and an easy image with high scores each supply their own baseline. The update therefore uses the candidate’s advantage over a relevant comparison rather than interpreting its absolute score in isolation.
Preparing and using the image–text and grammar reward
The steps in order.
The adaptation in the middle of the diagram belongs to the preparation of the scorer. Once prepared, that scorer provides feedback during reward training of the generator. The paper also evaluates versions in which the feedback comes from CIDEr, from plain CLIP-S, or from a combination of CIDEr and CLIP-S. Those comparisons use the same captioning architecture. They help attribute a change in behavior to the objective rather than to a different generator design.
How CLIP-S scores a caption
The image encoder represents the input photograph as a vector. The text encoder represents the candidate caption as another vector. The authors compare the directions of the two vectors using cosine similarity. If a caption points in much the same direction as the image in this shared space, it receives a higher similarity score. Dividing by the lengths of the vectors means that the direction of each representation determines the cosine. CLIP-S then clips a negative result to zero and scales the value.
CLIP-S(I, c) = w × max((fᵢ(I)ᵀ fₜ(c)) / (‖fᵢ(I)‖ × ‖fₜ(c)‖), 0)
Here I is the input image and c is the caption. The subscripts ᵢ and ₜ identify the image encoder fᵢ and text encoder fₜ. The superscript ᵀ transposes the image vector so that its product with the text vector is a dot product. The double bars give each vector’s length, / divides by the product of those lengths, and × denotes multiplication. The function max selects the larger of the cosine similarity and 0. The scale factor w is set to 2.5. CLIP-S(I, c) is the resulting score for the pair.
The comparison operates on the whole image and the whole candidate. A caption with a reference to a sign or the weather can receive credit through its effect on the entire text representation. The formula has no separate term for signs, weather, background, or relations. Those categories come into play later, when the authors ask what kinds of visual detail the trained system actually includes. The score itself expresses a single judgment of image–text fit.
The calculation also shows exactly where the method dispenses with references. Its inputs are the image and the candidate sentence. The text in the reference set never enters this cosine computation. For the plain CLIP-S variant, the reward R(I, c) is simply this score. An earlier phase, in which the generator learns from reference captions, remains part of the training recipe.
How the reward changes the generator
The paper uses REINFORCE, a method for updating a system that assigns probabilities to possible actions. Here the action is the production of a caption. The reward need only supply a numerical value for a completed sequence. The update uses the gradient of the log probability the generator assigned to that sequence, with the reward difference determining the sign and strength of the adjustment. The baseline comes from self-critical sequence training, in which the system’s own greedy prediction is the comparison point. Self-critical Sequence Training for Image Captioning
∇θ E[ĉ ∼ Pθ(· | I)] [R(I, ĉ)] ≈ (R(I, ĉbeam) − R(I, ĉgreedy)) × ∇θ log Pθ(ĉbeam | I)
In this expression θ denotes the caption generator’s adjustable parameters, and ∇θ means differentiation with respect to those parameters. E denotes an expectation, an average weighted by the generator’s caption probabilities. Pθ(· | I) is its distribution over possible captions conditional on the image I, with · standing for a caption slot and | meaning “given.” The symbol ∼ indicates that ĉ, a generated caption, follows that distribution in the expectation. R is the reward function. ĉbeam is a caption obtained by beam search, and ĉgreedy is the greedily decoded baseline. The subtraction − gives the reward advantage, × multiplies it by the gradient, and log takes the logarithm of the beam caption’s probability. The symbol ≈ marks the right-hand side as an approximation to the gradient of the expected reward.
The expectation describes the objective over the space of possible captions. The right-hand side is the practical approximation shown in the paper. It evaluates a candidate from search and compares it with a deterministic greedy caption. When the two get the same reward, the difference vanishes. When the beam caption gets a better reward, raising its log probability follows the direction encouraged by this term. The probability being changed belongs to the caption generator. The scorer supplies the relative reward used to make that change.
The word self-critical is useful here because the comparison target changes with the generator. A reward value can be impressive relative to an early version of the generator and unremarkable relative to a later version. The baseline is recalculated from the current system’s output for the input image. This gives the reward stage a different structure from MLE, where the training signal directs the generator towards the supplied reference words.
Teaching the scorer to recognize malformed captions
CLIP’s original image–text training gives it a reason to recognize what a sentence is about. The authors observe that its score can remain attractive for a caption containing broken phrasing or repeated words. A generator trained to maximize that score can discover that a caption filled with relevant visual terms is rewarded even if the sentence is awkward. The paper addresses this by giving the text encoder an additional task whose examples differ in form, frequently while retaining much of the original caption’s subject matter.
The authors start from existing reference captions and treat them as positive examples. To create a negative example, they split the original text at whitespace and randomly choose a corruption operation. Repetition copies a span of tokens and inserts copies into the text. Removal deletes a span. Insertion adds a token chosen from the vocabulary used by the routine. The operation called swap replaces a selected token with a different vocabulary item in the published algorithm, so it can disrupt a phrase without exchanging the positions of two words. Shuffling reorders the tokens. The appendixed routine uses a maximum span length of 3 for repetition and removal, a maximum repeat count of 3, and a maximum edit count of 3 for the insertion and replacement operations.
These edits supply examples cheaply and are particularly relevant to the repetition seen under plain CLIP-S. They also give the task a specific meaning. The positives come from the existing reference corpus, while the negatives come from the authors’ corruption procedure. A negative may retain a recognizable scene description after the edit, and an insertion or deletion can also change the content. The learned score captures how well a sentence resembles the positive side of this constructed task.
The authors attach a 2-layer perceptron to the text encoder’s features. A perceptron here is a small trainable network that transforms the caption vector into a scalar prediction. A sigmoid activation restricts that prediction to the interval between 0 and 1. The paper calls the output g(c) and interprets it as the probability that the caption belongs to the grammatical reference class. The authors describe training the text encoder and grammar predictor while keeping the CLIP image encoder fixed and using CLIP’s original contrastive objective during adaptation. The image and text components therefore have different roles in this stage. The visual representation stays fixed while the text representation and the predictor attached to it can change.
This is fine-tuning because the text encoder starts with CLIP’s learned parameters and is adapted to the new training setup. The procedure needs no new human judgments of grammaticality. It reuses human-written captions and assigns training labels by construction. The FineCapEval annotators have a separate role. They supply detailed descriptions for evaluation, independently of the synthetic caption corruption that prepares the scorer.
Combining visual relevance and grammar
The final reward adds the grammar prediction to the image–text score. This allows a visual detail to contribute to the first term while the form of its sentence contributes to the second. A candidate with the same image–text score as another candidate can receive higher total reward when the grammar predictor favors it. A candidate can also gain total reward through a stronger image match.
R(I, c) = CLIP-S(I, c) + λg(c)
R(I, c) is the reward for caption c and input image I. CLIP-S(I, c) is the scaled, clipped image–text cosine score. g(c) is the grammar prediction from the adapted text encoder’s features, and λ controls that prediction’s contribution to the total. The authors set λ to 2.0. The adjacent symbols λg(c) denote multiplication, and + adds that weighted value to CLIP-S.
The grammar score is part of the training reward. The method is described as teaching the generator to favor complete captions with higher combined scores. Its grammar component does not rewrite a sentence after the generator emits it. That design matters for interpreting the comparison with plain CLIP-S. The two objectives can lead the generator towards different details as well as different wording, because changing the reward changes which sequences the updates favor.
The combined reward also differs from the CIDEr-plus-CLIP comparison. CIDEr brings the words of human references into the reward computation, while the grammar term assigns its score from the candidate text alone after being trained. Both approaches add a signal beyond plain visual similarity. They differ in what makes a candidate earn that extra credit. CIDEr rewards alignment with the reference descriptions for the particular image. The grammar predictor rewards a candidate’s resemblance to the kind of intact text it learned to recognize.
The generator and its training schedule
The captioner is a CLIP-Res50 Transformer. CLIP-Res50 extracts visual features, which a Transformer and attention architecture uses to generate the caption. The encoder processes the visual information that conditions the decoder. The decoder uses that information together with the caption prefix as it produces the next token. The architecture comes from the earlier work on using CLIP for vision-and-language tasks that the paper cites. How Much Can CLIP Benefit Vision-and-Language Tasks?
The authors resize the input images to 224x224 and extract 2048-dimensional visual features. The generator has a 6-layer encoder and a 6-layer decoder. MLE training runs for 15 epochs, where an epoch is a pass through the training data. The reward-trained versions continue for 25 epochs, giving the reported total of 40 epochs. The paper reports that this training takes within 1 day on 8 V100 GPUs. It uses PyTorch and PyTorch Lightning, as well as Hugging Face Transformers. The authors release their implementation and data as CLIP-Caption-Reward. Transformers: State-of-the-Art Natural Language Processing
The shared initialization procedure is part of what the study tests. The reward stage starts with a generator that has already learned to write image captions from paired examples. Its outputs provide useful starting material for the beam and greedy comparisons. The evidence therefore concerns a change in supervision after conventional caption training. It leaves open how well the reward would work if a generator were trained from an unprepared starting point.
How FineCapEval records details
FineCapEval is designed to make visible some of the information ordinary reference captions can omit. The authors collect 500 images from the MS COCO test2015 split and 500 from the Conceptual Captions validation split. For each image, 5 people write descriptions. The collection includes 1,000 images, with 5,000 annotations per criterion across all four criteria. The criteria are the overall caption, the background, the objects and their attributes, and the relations among the objects. Microsoft COCO · Conceptual Captions
Annotators write a single detailed sentence and identify words or phrases from their writing that belong to the individual categories. The instructions ask them to attend to both local details and the wider scene and to use at least ten words. They are directed towards descriptions that the image can support and away from unsupported judgments about people or events. The guidelines also discourage specific names, places, and times. The work is done by native English speakers living in the US through TELUS. The authors report spending 5,400 USD on caption creation and quality assurance, with different workers manually checking 50% of the captions.
The paper’s examples show what the separate annotations add. In a scene with a parked car, the annotators mention features of the house, the vegetation, and the equipment outside it. Their relation phrases concern where the car is parked in relation to the surroundings. In another scene, the background annotations focus on the carpeted stairs and wall, while the other phrases cover the child, clothing, a toy, and actions or positions. The annotators can emphasize different parts of the image and sometimes disagree on details, such as a vehicle’s color. Keeping their phrase annotations makes this variation part of the benchmark.
The overall description is scored with CIDEr against the detailed sentences. The three categories of phrases use word-level recall. The implementation splits each reference phrase into words and checks each word for membership in the generated caption string. It divides the number of matches by the number of words in that phrase, averages the resulting fractions across phrases for an image, and then averages across images. Thus each phrase contributes a fraction, even when its words differ in number from those of another phrase. The reported implementation scales the final average for display.
Rword = 100 × (1 / |A|) × ∑ᵢ∈A [(1 / |Pᵢ|) × ∑ₚ∈Pᵢ ((1 / |Wₚ|) × ∑𝓌∈Wₚ 𝟙[𝓌 in cᵢ])]
Rword is the reported word-level recall. A is the set of evaluated image identifiers for the criterion, i is an image identifier, and Pᵢ is its collection of reference phrases. p identifies a phrase and Wₚ is its list of whitespace-separated word occurrences. 𝓌 denotes one such occurrence. cᵢ is the generated caption string for image i. The indicator 𝟙[𝓌 in cᵢ] is 1 when the word string is present and 0 otherwise, matching the membership test in the paper’s implementation. Vertical bars denote the size of the corresponding set or list, and ∑ adds values over the members indicated by ∈. The factors beginning with 1 / form the successive averages over words, phrases, and images. The final multiplication by 100 gives the values used in the results table.
The benchmark therefore asks two related questions with different scoring procedures. CIDEr on the full descriptions measures how well the caption agrees with people who were explicitly asked to write a detailed sentence. Phrase recall asks whether vocabulary associated with a particular part of the description appears in the caption. The overall score gives a view of the full text, while the category scores show where the lexical agreement occurs. The human evaluation adds a judgment about whether the resulting descriptions work when someone can look at the image.
Experiments and results
What stays fixed across the comparisons
The main captioning experiment uses the English portion of MS COCO under the Karpathy split. This split supplies the training and test arrangement for the captioning comparison. The paper reports the ordinary caption metrics and retrieval results on the Karpathy test split. FineCapEval is the separate collection described above, drawn from COCO test2015 and Conceptual Captions validation images. Its annotations provide the references for the fine-grained columns reported alongside the COCO results. Deep Visual-Semantic Alignments for Generating Image Descriptions
The comparison starts with MLE and CIDEr training. MLE represents the starting strategy of learning from reference tokens, while the CIDEr setting continues with a reward that depends on reference captions. The other settings use plain CLIP-S, CIDEr plus CLIP-S, and CLIP-S plus Grammar. Since they share the CLIP-Res50 Transformer architecture, the experiment can ask what happens when the same kind of generator is rewarded for different properties of its output.
The evaluation spans conventional reference agreement, comparison in learned representation spaces, retrieval of the input image, and fine-grained caption assessment. Reference agreement gives continuity with previous captioning evaluations. Retrieval tests distinctiveness by asking the sentence to identify its image. Detailed references make background, object, and relation coverage more visible, and people judge paired captions with the photograph available. The measurements can disagree because they reward different properties. Evaluation & benchmarks
Agreement with the original COCO references
On the MS COCO Karpathy test split, CIDEr training produces a CIDEr score of 124.9. MLE scores 110.3, the mixed CIDEr and CLIP-S reward scores 124.6, and the grammar-augmented CLIP reward reaches 71.0. Plain CLIP-S receives 11.2. The ordering illustrates how strongly the particular training reward can affect agreement with the dataset’s original captions. The CIDEr-based rewards remain close on a test that uses CIDEr to measure agreement, while the two rewards computed from the image and generated sentence receive substantially lower scores.
Caption training objectives on MS COCO Karpathy test CIDEr
Grammar augmentation recovers reference agreement for CLIP training, while the CIDEr-based objectives lead on this measure.
The numbers
| System or setting | CIDEr |
|---|---|
| MLE | 110.3 |
| CIDEr | 124.9 |
| CLIP-S | 11.2 |
| CIDEr + CLIP-S | 124.6 |
| CLIP-S + Grammar (this paper) | 71.0 |
The pattern recurs on several related measures. On the same split, BLEU-4 is 38.2 for CIDEr training and 37.7 for the mixed CIDEr and CLIP-S setting. MLE gives 32.5, plain CLIP-S gives 6.2, and the grammar-augmented version gives 16.9. For ROUGE-L, the corresponding values are 58.5 for CIDEr, 58.3 for the mixed setting, 55.2 for MLE, 31.6 for plain CLIP-S, and 47.3 for CLIP-S plus Grammar. METEOR puts the mixed setting at 28.8 and CIDEr training at 28.7. MLE reaches 27.2, the grammar-augmented reward reaches 24.9, and plain CLIP-S reaches 18.7.
BERT-S examines reference agreement using learned text representations. The implementation uses RoBERTa-Large for this metric. On the Karpathy test split its values are 0.937 for MLE, 0.942 for CIDEr, 0.882 for plain CLIP-S, 0.941 for the mixed CIDEr and CLIP-S reward, and 0.924 for the grammar-augmented reward. The very low lexical agreement of plain CLIP-S also appears as lower agreement under BERT-S. Adapting the reward for grammar moves the result toward the text-based baselines on both kinds of measure. RoBERTa
The examples offer two concrete reasons for these differences. A caption can include a visually pertinent detail that is absent from the COCO references. The paper points to the blue sign in the cycling image as such a case. A caption can also diverge from the references because its language deteriorates, as the plain CLIP-S examples with repeated phrases make clear. The benchmark scores combine the consequences of these changes. They cannot assign a portion of the lower score to useful new detail and another portion to malformed output.
Image–text scores and image retrieval
The image–text evaluation uses CLIP ViT-B/32 for CLIP-S and RefCLIP-S. CLIP-S compares the image with the generated caption. RefCLIP-S combines image–text agreement with a comparison to reference captions. On the Karpathy test split, plain CLIP-S training reaches 0.860 on the CLIP-S evaluation metric and 1.17 on RefCLIP-S. The grammar-augmented reward reaches 0.793 and 1.15. CIDEr training gives 0.759 and 1.13, while MLE gives 0.758 and 1.12. The mixed reward gives 0.772 and 1.14. Both CLIP-guided variants lead the CIDEr baseline on these image–text measures, with the plain similarity reward leading the grammar-augmented variant.
Retrieval makes the test more concrete. The authors feed a caption to a pretrained CLIP ViT-B/32 retrieval system and see where the original image ranks. R@1 is recall with a cutoff at the top result. R@5 and R@10 allow the correct image to appear within the corresponding number of results. Higher recall means that the caption more frequently brings the intended image inside the cutoff. The reference-caption baseline uses the first caption out of 5 paired descriptions for each image, so it represents one human-written query per image.
Caption queries on MS COCO Karpathy test retrieval R@1
Plain CLIP-S leads retrieval, and the grammar-augmented reward also ranks above the first human reference and the text-trained baselines.
The numbers
| System or setting | R@1 |
|---|---|
| First reference caption | 29.5 |
| MLE | 21.8 |
| CIDEr | 20.9 |
| CLIP-S (this paper) | 42.5 |
| CIDEr + CLIP-S | 24.4 |
| CLIP-S + Grammar | 35.8 |
The ranking continues at the wider cutoffs. On the Karpathy test split, plain CLIP-S reaches R@5 of 71.6 and R@10 of 82.2. CLIP-S plus Grammar reaches 64.0 and 75.8, and the first reference reaches 54.2 and 65.0. The mixed reward reaches 50.2 and 63.1. CIDEr gives 45.6 and 58.2, while MLE gives 45.6 and 58.0. Thus the lead of the CLIP-guided variants over the text-trained comparisons persists when retrieval is allowed several guesses.
The first human reference provides a meaningful comparison because it is an actual description written for the image. It also brings a specific constraint to the test. The result depends on the selected reference and on a retrieval system that scores language using CLIP representations. The evidence establishes that the generated captions are effective queries for this retrieval setup. A caption optimized for CLIP can exploit wording that CLIP finds useful, and the grammar-augmented setting gives up some of that retrieval performance while improving other aspects of the output.
Fine-grained results on detailed annotations
FineCapEval’s overall CIDEr score has a different reference set from standard COCO CIDEr. Its human writers were asked to describe backgrounds, objects and attributes, and relationships. Under those references, CLIP-S plus Grammar leads with 19.3. Plain CLIP-S reaches 13.9, MLE reaches 13.5, the mixed reward reaches 13.0, and CIDEr training reaches 12.8. The grammar-augmented setting therefore leads on overall CIDEr for these detailed references while scoring well below the CIDEr-trained baseline against the original COCO references. Keeping the two reference sets in view explains how both results can hold.
The background category gives a view of where the added information appears. Its annotations can include surroundings, surfaces, structures, and other features beyond the most obvious subject. The combined reward reaches a background word recall of 21.8 on FineCapEval, and the plain CLIP-S reward follows at 20.8. CIDEr training gives 13.1 on this category. The gap is consistent with the authors’ suggestion that ordinary captions often leave background information implicit.
Caption training objectives on FineCapEval background word recall
The grammar-augmented reward leads background coverage, with plain CLIP-S close behind.
The numbers
| System or setting | Background word recall |
|---|---|
| MLE | 11.6 |
| CIDEr | 13.1 |
| CLIP-S | 20.8 |
| CIDEr + CLIP-S | 13.0 |
| CLIP-S + Grammar (this paper) | 21.8 |
Object word recall presents a different ordering among the CLIP variants. Plain CLIP-S leads with 26.4 on FineCapEval, followed by the grammar-augmented reward at 25.5. The mixed reward gives 23.4, CIDEr gives 23.1, and MLE gives 13.0. The authors observe that the CLIP-guided gains over CIDEr are smallest in this category. They interpret this pattern as consistent with the idea that the ordinary COCO references already provide more object information than background or relation information. The experiment measures caption scores under different training rewards, so that explanation remains an interpretation of the results rather than a direct count of omissions in COCO.
On relations, the combined reward leads with 27.5 on FineCapEval. Plain CLIP-S scores 24.9, CIDEr training scores 22.4, MLE scores 19.8, and the mixed reward scores 21.7. In combination, the category results show that both CLIP-based rewards computed without image-specific references exceed the CIDEr baseline on every FineCapEval measure. Grammar adaptation yields the highest reported values for overall description, background, and relations. Plain CLIP-S retains the highest object word recall. Each word recall figure describes coverage of reference phrase vocabulary for that category.
What people preferred
For the human comparison, workers see the image and a pair of captions. One caption comes from CLIP-S plus Grammar and the other from either MLE or CIDEr training. The results section identifies the images as coming from the Conceptual Captions validation portion of FineCapEval. For each criterion, the authors use 50 images and ask 10 annotators to judge the paired outputs. The alternatives appear in randomized and balanced order, and a tie is available for equally good or equally bad descriptions. The criteria are overall description, background, objects, attributes, and relations. Attributes receive their own human judgment, whereas FineCapEval’s automatic object score includes them with objects.
The table reports wins, losses, and ties from the perspective of CLIP-S plus Grammar. For overall description against MLE, the values are 49.0 wins, 41.8 losses, and 9.2 ties. Against CIDEr, they are 51.0 wins, 30.8 losses, and 18.2 ties. The overall preference is clearer against CIDEr. The MLE comparison yields a plurality of wins, with losses making up a substantial portion of the recorded choices.
For background, the combined reward records 52.8 wins, 35.0 losses, and 12.2 ties against MLE. Against CIDEr, the background figures are 53.9 wins, 25.4 losses, and 20.6 ties as printed in the paper. The background judgments match the direction of the automatic FineCapEval background results. They add a separate kind of evidence because workers see the scene and compare complete captions, while the automatic measure looks for strings from the annotated phrases.
For objects, the values against MLE are 52.0 wins, 36.6 losses, and 11.4 ties. Against CIDEr, they are 55.2 wins, 32.8 losses, and 12.0 ties. Attribute judgments give 57.2 wins, 36.8 losses, and 6.0 ties against MLE, and 55.8 wins, 37.2 losses, and 7.0 ties against CIDEr. The separate attribute criterion matters because identifying the right object and describing a characteristic of that object are distinct achievements. A caption might mention the sign in a street scene while saying little about the color that makes it stand out.
Relations show the closest comparison. Against MLE, CLIP-S plus Grammar records 44.6 wins, 44.2 losses, and 11.2 ties. Against CIDEr, it records 49.2 wins, 39.6 losses, and 11.2 ties. The authors summarize the human results as favoring the grammar-augmented reward across criteria. The strength of that preference varies. In particular, the relation comparison with MLE is nearly even, in spite of the larger separation of the two settings on the automatic FineCapEval relation score. This matters when interpreting word recall as evidence about how well a caption describes a relationship to a reader.
What the ablations show
Direct similarity rewards expose a fluency problem
The paper’s main controlled comparisons vary the reward while retaining the same generator architecture. The plain CLIP-S setting tests what happens when the captioner is rewarded for matching the image in CLIP’s representation. The grammar-augmented setting tests the authors’ full remedy for the language problems that emerge under that reward. Their example outputs make the issue concrete. The plain CLIP-S caption for the airport scene repeats material about the terminal and ends with stray words. It contains information about the arrangement of the aircraft, yet some of its length comes from phrases that do little for a reader.
The broader examples show a similar pattern around boats and a dog beside a plate. The plain similarity reward can produce relevant scene vocabulary alongside repeated fragments about the horizon or the food. Those are cases where the generator gets part of the scene right in recognizable words while producing a sentence that reads poorly. The examples make sense alongside the retrieval results. A search system can make use of recognizable visual terms even when a human reader finds their arrangement awkward.
Adding the grammar component gives the airport caption a shorter and more readable form while preserving a detail about wet conditions. The grammar-augmented dog caption mentions the wooden floor without the repeated food words and fragmented ending of the plain CLIP-S caption. The COCO reference metrics also rise across the measures reported in the paper when the grammar adaptation is used. That pattern supports the authors’ account that cleaning up the text improves its agreement with plausible human descriptions, even as the system retains an incentive to include scene details.
The comparison changes the text encoder through adaptation and also adds its grammar prediction to the reward. It establishes how that package behaves. The experiment leaves open the separate contributions of altering the text representation and adding the scalar grammar prediction. The paper likewise gives the corruption operations as a training recipe and leaves their individual effects unmeasured. The strongest attribution is to the combined grammar intervention tested against plain CLIP-S.
The gains move with the measurement
The grammar-augmented setting improves overall, background, and relation scores on FineCapEval relative to plain CLIP-S. Plain CLIP-S keeps the lead on object word recall and on each reported retrieval cutoff. This helps explain what the grammar intervention changes. It favors different captions under the same general training procedure, and those captions occupy a different balance between lexical coverage, image alignment, and readable phrasing.
In particular, the best retrieval setting is the one that produces the visible repetition problem. This shows why retrieval alone would give an incomplete account of the intervention. A caption might retrieve its source image because it includes distinctive vocabulary such as a color, an object type, or a feature of the background. The same caption can still repeat a detail or fail to express how two objects are connected. Grammar augmentation changes what the generator is rewarded for, so a lower retrieval score can accompany gains in the measures that attend to the caption’s form and to a fuller description.
The human study compares the grammar-augmented setting with the text-based baselines. This supports a claim about preference for the full system over those alternatives in the tested sample. The comparison with plain CLIP-S comes from the caption examples and the automatic metrics. The paper does not supply a direct human preference estimate for the added grammar intervention against the unadapted CLIP reward.
Retaining CIDEr pulls output toward the original references
Mixing CIDEr with CLIP-S offers another controlled comparison. On the COCO test split, its conventional reference scores stay close to those of CIDEr training, and its retrieval scores rise above CIDEr’s. Its FineCapEval scores sit much closer to the text-trained settings than to the grammar-augmented setting on background and relations. In particular, the mix gives 13.0 background word recall on FineCapEval, while CLIP-S plus Grammar gives 21.8.
This result helps distinguish the two ways of supplementing image similarity. CIDEr keeps the output tied to how the original human captions described each training image. The grammar predictor gives the generator an incentive related to sentence form, learned from intact and perturbed text. The mixed objective shows that adding visual agreement can improve retrieval while retaining ordinary reference scores. In the tested setup, that mix yields less of the detailed coverage that motivates the paper. The comparison concerns the particular objectives evaluated, with no reported sweep over alternative balances between their terms.
The examples show what a metric can miss
The cycling example is the authors’ clearest illustration of a detail absent from the original references. CIDEr training describes the cyclists and the street. The grammar-augmented caption also mentions a blue sign, which none of the reference writers mentions in that example. The extra content helps explain why the same change could be valuable for an image search query and receive little recognition from a reference-based score. The airport example makes a related point. The grammar-augmented caption mentions wet conditions, a detail missing from the CIDEr-trained output and present in one of the human references. In this case the reward helps recover a detail that some human writers also noticed.
The appendix includes cases that qualify the interpretation. A caption for the bicycle-and-train scene includes the train’s color but gives an awkward account of what the person is doing on the bicycle. The zebra caption adds visual characteristics while describing the animal’s position and surroundings less naturally than some of the references. Such examples show how a change can increase detail and still introduce a problem with wording or the account of the scene. They are qualitative illustrations. The benchmark and human comparisons supply the aggregate evidence, while the examples reveal individual errors that aggregate scores can obscure.
Limitations
Limits identified by the authors
The authors restrict the intended use to research and put deployed use cases outside the scope of the study. They connect this limit to the web image–text material used to train CLIP. As they note, work on large web collections has documented problematic and explicit pairings. Their method inherits a scoring signal learned from such material. The paper does not evaluate whether the trained captioner is suitable for deployment in the accessibility or search settings that motivate the work. Bias, fairness & safety
Their language restriction is also explicit. The captioning experiments and the CLIP components used in them rely on English data, and the authors limit the indicated use to English. They describe the method as adaptable to other languages and leave those extensions for future work. The synthetic grammar exercise is especially sensitive to this distinction. Its training examples come from English captions, and its corruption procedure is evaluated through English output. Claims about what it would learn under other linguistic conditions require separate evidence.
The authors also point to future work on desired writing styles and more sophisticated synthetic caption augmentation. Their current grammar procedure has a deliberately simple source of supervision. It uses corrupted text to make the scorer sensitive to errors that include repetition and disrupted word order. The paper’s examples support the value of that practical intervention. Evaluation against broader kinds of grammatical or stylistic variation remains outside the reported experiments.
Limits of the reward and the scoring tests
The method removes image-specific human references from reward computation for CLIP-S and CLIP-S plus Grammar. Human descriptions remain essential to the reported recipe. They supply the generator’s MLE training and the intact examples for grammar adaptation. They also supply the detailed and ordinary references used for several evaluation metrics. The demonstrated result is consequently about how the system can receive feedback on its own generated captions after supervised initialization. Training the entire system without paired human captions is an unanswered question.
An image–text cosine score is a judgment of the whole pairing. Its formula contains no explicit check that a color is attached to the right object, that an action is assigned to the right person, or that a stated relation has the right direction. An image and sentence can be close in the shared space because much of the scene is recognizable even if a particular claim is wrong. The study shows improvements in distinctiveness and several kinds of coverage. It does not report an independent count of visually unsupported claims or establish that a higher CLIP reward makes each added detail accurate.
There is also a connection between training and some of the evaluation instruments. The training reward comes from CLIP, and the embedding-based image–text measures and retrieval test use CLIP ViT-B/32. The retrieval test still answers a concrete question about using captions as queries. Its outcome is tied to what this retriever recognizes in text. The FineCapEval results and human judgments are important because they provide evidence from procedures that do not reduce the quality of a caption to a CLIP score.
The comparison to reference captions in retrieval has an additional boundary. The paper uses the first of the 5 paired references for each image. That is a defined benchmark baseline for a single human query. It leaves unanswered how the generated queries would compare with the strongest available reference for each image or with a human asked specifically to write a search query. The reported lead over the first reference concerns the actual test condition, where a caption written as a description is reused as a query.
What the detailed evaluations can establish
FineCapEval increases coverage of details by directing human attention to backgrounds, objects, attributes, and relations. Its automatic phrase metric remains a vocabulary check. The implementation tests a reference word as a substring of the generated caption string, so a match can be counted inside a longer word. The calculation also gives a word credit wherever it appears. In relation scoring, overlapping words can contribute even when the two captions disagree about which object stands in front of the other. Paraphrases with different wording can receive little credit despite expressing the same content.
The measure is recall, so the presence of unrelated or inaccurate extra words does not directly reduce the category score. Its categories offer a useful view of the information recalled from the annotations, while evaluation of factual precision or the compositional meaning of a relation requires more than this matching procedure. Overall CIDEr also depends on the sentences the annotators chose to write. FineCapEval expands the reference coverage and changes what the writers are looking for, but any collection of descriptions still reflects their choices and disagreements.
The human experiment addresses some of these gaps by letting judges compare the captions in view of the image. Its evidence is pairwise and tied to the sampled Conceptual Captions validation images. It reports preference for the grammar-augmented system against MLE and CIDEr, with separate criteria and a tie option. The relation result against MLE illustrates why the strength of the evidence varies by criterion. The human preference table offers little separation there, even though the automatic relation scores favor the grammar-augmented system. The experiment also leaves plain CLIP-S outside the paired human comparisons, so its fluency deficit is supported by examples and related metric changes.
Finally, the authors report automatic evaluation from a single weight initialization. They say their preliminary runs did not show meaningful fluctuation, but the reported table describes single runs and gives no distribution of results across seeds. The experiments use a shared captioning architecture and the paper’s chosen reward settings. The evidence supports the comparisons as run. The robustness of smaller score separations, the effects of individual corruption types, and the balance between retrieval and fluency under other reward weights remain open.
What came after
From identifying an image to distinguishing alternatives
The closest later work by subject is Pragmatic Inference with a CLIP Listener for Contrastive Captioning (2023). Its title places CLIP in the role of a listener for contrastive captions. A listener evaluates what the words help identify, and the term contrastive captioning directs attention to alternatives that a description needs to distinguish. That framing connects naturally to the earlier paper’s retrieval test, where a caption succeeds if it leads back to its source image. The earlier paper uses image–text agreement as a reward while training the generator. The later title points to a different use of CLIP, in pragmatic inference about how a caption distinguishes an image. The citation and title establish that connection, while the details of the inference procedure and its results are unspecified here. Pragmatic Inference with a CLIP Listener for Contrastive Captioning
Related questions in conversation and hallucination
MPCHAT: Towards Multimodal Persona-Grounded Conversation (2023) cites the captioning paper in the context of multimodal conversation. Its title identifies a task involving dialogue grounded in a persona as well as multimodal information. The conceptual connection is the need to select details that matter for a particular use of language. In the captioning paper, a visual detail matters when it makes an image easier to identify or more fully describes the scene. In a persona-grounded conversation, relevance also depends on what the dialogue is about and whom the response concerns. The citation establishes a relationship between the works. Whether MPCHAT reuses the CLIP reward, the grammar adaptation, or the evaluation set is unspecified. MPCHAT
A Survey on Hallucination in Large Vision-Language Models (2024) cites the paper from the perspective of hallucination in systems that process images and text. Its subject is relevant to a distinction exposed by the captioning results. A detail missing from the reference descriptions may still be visible in the image. The blue sign is the paper’s example. Conversely, an image–text score can reward agreement with much of the scene while leaving the truth of an individual phrase unresolved. The connection is therefore between rewarding informative visual detail and checking whether the detail is grounded. The survey’s title and citation establish that broader setting, while its specific treatment of the captioning method is unspecified. A Survey on Hallucination in Large Vision-Language Models
Cite
Cite as Jaemin Cho, Seunghyun Yoon, Ajinkya Kale, Franck Dernoncourt, Trung Bui and Mohit Bansal. 2022. Fine-grained Image Captioning with CLIP Reward. Findings of the Association for Computational Linguistics: NAACL 2022.
@inproceedings{cho2022fine,
title = {{Fine-grained Image Captioning with CLIP Reward}},
author = {Jaemin Cho, Seunghyun Yoon, Ajinkya Kale, Franck Dernoncourt, Trung Bui and Mohit Bansal},
booktitle = {Findings of the Association for Computational Linguistics: NAACL 2022},
year = {2022},
doi = {10.18653/v1/2022.findings-naacl.39},
url = {https://doi.org/10.18653/v1/2022.findings-naacl.39}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/cho-2022-fine-grained-image-captioning-clip/