Direct Metric Optimization for Image Captioning through Reward-Weighted Augmented Data Utilization

Takumi Takada, Yuma Suzuki, Hiroki Takushima, Hayato Tanoue, Haruki Sato, Aiswariya Manoj Kumar, Hiroki Nishihara, Takayuki Hori, Kazuya UekiACL 2024

Abstract

Direct Metric Optimization (DMO) is a lightweight training framework designed to bridge the "alignment gap" in image captioning. While standard models are trained using cross-entropy loss via Self-Supervised Learning (SSL), they are evaluated using specialized metrics like CIDEr and BLEU. Reinforcement Learning (RL) methods like Self-Critical Sequence Training (SCST) can optimize these metrics directly but are computationally expensive, unstable, and difficult to scale. DMO replaces the expensive online exploration of RL with a diverse set of pre-generated, augmented captions and reward-weighted self-supervised learning. This approach achieves performance parity with RL while accelerating training by hundreds of times and maintaining the stability of standard supervised learning.

Introduction

In image captioning, the primary challenge is the discrepancy between the training objective (predicting the next token) and the evaluation objective (maximizing linguistic similarity to human references). Standard SSL does not directly optimize for metrics like CIDEr. To address this, researchers typically employ Reinforcement Learning. However, RL introduces significant overhead: it requires word-by-word generation during training, which breaks the parallel efficiency of modern Transformers and leads to high computational costs and training instability.

The Direct Metric Optimization (DMO) Framework

DMO shifts the paradigm from online exploration to offline utilization of augmented data. The framework consists of three distinct phases:

  1. Text Data Augmentation (TDA): For each image, multiple caption variations are generated using back-translation, VLM sampling (e.g., BLIP-2), and LLM paraphrasing (e.g., Llama-2).
  2. Reward Precomputation: The reward (e.g., CIDEr score) for each augmented caption is calculated against original ground-truth references.
  3. Reward-Weighted Training: The model is trained using a modified Cross-Entropy loss where each sample's contribution is scaled by its precomputed reward.
The DMO training pipeline utilizes reward-weighted cross-entropy loss based on precomputed rewards from augmented data.

This mathematical formulation mimics the gradient of an RL objective but allows the model to leverage the standard, highly efficient parallel training pipelines of modern GPUs.

Experimental Evaluation

The researchers validated DMO using the MS-COCO and Flickr8k benchmarks, employing the standard Karpathy split for fair comparison. The study focused on three key dimensions: performance, efficiency, and stability across various model architectures including GIT and BLIP-2.

Key Insights

  • Diversity as Exploration: The core finding is that the expensive trial-and-error process of RL can be effectively replaced by a sufficiently diverse augmented dataset. If the data covers enough linguistic variety, the model learns high-reward patterns without needing to discover them during the training loop.
  • Preserving Parallelism: By using pre-sampled data, DMO avoids the sequential generation bottleneck of RL, allowing full utilization of Transformer parallelism.
  • Robustness to Noise: The reward-weighting mechanism naturally filters the data; the model learns to prioritize high-quality samples and ignore low-reward noise.

Results

DMO demonstrates a "best of both worlds" outcome, matching or exceeding the performance of state-of-the-art RL methods while offering dramatic improvements in training speed.

Efficiency and Speed

On the Flickr8k dataset, DMO completed three training epochs in just 14 seconds, compared to nearly 10,000 seconds for the RL-based SCST method. This represents a speedup of over 700x. Furthermore, DMO required approximately 100 times fewer model forwarding iterations than RL.

Comparison of forwarding iterations and execution time between standard LM, SCST (RL), and the proposed DMO.

Performance and Stability

Unlike the jittery learning curves often seen in RL, DMO’s training is as stable as standard supervised learning. Across models like GIT-base and BLIP2-2.7b, DMO consistently improved CIDEr scores over standard language modeling (LM) baselines, often reaching the performance levels of computationally intensive RL techniques.

Conclusion

Direct Metric Optimization provides a faster, leaner alternative to Reinforcement Learning for image captioning. By leveraging offline data augmentation and reward-weighting, it enables the direct optimization of evaluation metrics without sacrificing computational efficiency. Future work may extend this framework to other generative tasks such as document summarization and dialogue generation, where the alignment gap remains a significant hurdle.

Summary updated

BibTeX
@inproceedings{takada2024direct,
  author = {Takumi Takada and Yuma Suzuki and Hiroki Takushima and Hayato Tanoue and Haruki Sato and Aiswariya Manoj Kumar and Hiroki Nishihara and Takayuki Hori and Kazuya Ueki},
  title = {{Direct Metric Optimization for Image Captioning through Reward-Weighted Augmented Data Utilization}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.453},
}
Figure