Fluency-Guided Cross-Lingual Image Captioning

Weiyu Lan, Xirong Li, Jianfeng Dong · DOI

TL;DR

This paper tackles the challenge of generating image captions in a target language (like Chinese) using only machine-translated English captions, which often suffer from poor fluency. They introduce a "fluency-guided learning" framework that automatically estimates sentence fluency and uses these scores to train a better captioning model, significantly improving the naturalness of the generated captions without requiring any human-written target language data.

What Problem Does This Paper Address?

Image captioning, the task of generating a textual description for an image, has seen significant progress, but primarily in English due to the availability of large datasets. However, for image captioning to be truly useful globally, it needs to work across different languages. This is where "cross-lingual image captioning" comes in. Previous attempts at cross-lingual captioning often relied on manually creating new datasets in the target language, which is expensive and time-consuming. This paper aims to overcome this limitation by leveraging readily available machine-translated text. The core problem they address is that machine translation, while improving, still produces sentences that can be grammatically awkward or unnatural (lacking fluency), making them unsuitable for direct use in training a captioning model. Simply translating the output of an English captioning model can also lead to irrelevant or exaggerated descriptions.

Methods

The paper proposes a "fluency-guided learning" framework. The key innovation lies in two main components:

  1. Sentence Fluency Estimation: They develop an LSTM-based classifier to automatically estimate the fluency of machine-translated sentences. This classifier is trained on a dataset of machine-translated sentences that have been manually labeled as either fluent or not fluent. To improve accuracy, they use a "four-way" classifier that combines predictions from LSTMs trained on:
  2. The machine-translated Chinese sentences themselves.
  3. English sentence POS tags.
  4. Chinese sentence POS tags.
  5. Original English sentences.
  6. Fluency-Guided Training: The estimated fluency scores are then used to guide the training of the image captioning model. They propose three strategies:
  7. Fluency-only: Train only on sentences classified as fluent. This is simple but risks losing valuable information from less fluent but still relevant sentences.
  8. Rejection Sampling: Sentences classified as not fluent are still included in training, but with a probability proportional to their fluency score. This allows less fluent sentences a chance to contribute if they are still somewhat useful, while prioritizing more fluent ones.
  9. Weighted Loss: The loss function for each training sample is weighted by its fluency score. This means that more fluent sentences contribute more to the model's learning process.

The image captioning model itself is a standard CNN-RNN (specifically, a ResNet-152 encoder and an LSTM decoder) architecture, which is a common approach in the field.

Datasets

  • For Sentence Fluency Estimation:
    • Flickr8k and MSCOCO: Used to sample English sentences.
  • These sampled English sentences were machine-translated into Chinese using Baidu translation API.
  • A subset of these machine-translated Chinese sentences (6,593 in total) were manually labeled for fluency by eight native Chinese speakers. This labeled dataset was split into training, validation, and test sets.
  • For Image Caption Generation:
    • Flickr8k-cn: A publicly available dataset containing manually written Chinese captions for Flickr8k images.
  • Flickr30k-cn: A new bilingual dataset constructed by the authors. They machine-translated the training and validation sets of Flickr30k from English to Chinese and manually translated the test set.

Key Insights and Ideas

  • Fluency is a critical bottleneck for cross-lingual captioning: The paper strongly demonstrates that machine-translated text, while containing correct keywords, often lacks the natural flow and grammatical correctness needed for effective training data. This is a significant hurdle that needs to be addressed.
  • Automated fluency estimation is feasible and useful: Developing a reliable classifier to predict sentence fluency without human intervention is achievable and provides a valuable signal for improving downstream tasks.
  • Fluency scores can guide training effectively: Instead of discarding potentially useful but imperfect translations, using fluency scores to weight or sample training data offers a more robust approach than simply filtering.
  • Manual annotation for fluency is much cheaper than for full captions: The authors highlight that labeling a sentence as fluent or not fluent is significantly less effort than writing a complete, accurate caption from scratch. This makes their approach more scalable.
  • Cross-lingual models can generalize better: The fluency-guided models showed better generalization ability when tested on a different dataset (Flickr30k-cn) compared to models trained solely on manually written target language data (Manual Flickr8k-cn).

Key Results

  • Sentence Fluency Estimation: The proposed four-way LSTM classifier achieved high precision (80.0%) on the test set for fluency classification, indicating its effectiveness. They found that less than 30% of machine-translated sentences were considered fluent.
  • Image Caption Generation (Automated Metrics):
    • The "Without fluency" baseline (training on all machine-translated sentences) performed best on BLEU-4, ROUGE-L, and CIDEr metrics, which focus on relevant terms.
  • "Rejection sampling" and "Weighted loss" strategies were comparable to the "Without fluency" baseline, suggesting they effectively leverage machine-translated data without significant loss in relevance.
  • "Fluency-only" performed worse, likely due to insufficient training data.
  • Image Caption Generation (Human Evaluation):
    • "Rejection sampling" achieved the best balance between relevance and fluency, outperforming the "Without fluency" baseline.
  • The proposed fluency-guided approaches (rejection sampling and weighted loss) significantly improved fluency scores compared to "Late translation" and "Late translation rerank" (which uses estimated fluency for reranking).
  • While a model trained on manual Flickr8k-cn captions performed slightly better on that specific dataset, the fluency-guided models showed better generalization on the larger Flickr30k-cn dataset.

Limitations and Future Work

  • Limitations:
    • The "Fluency-only" strategy, while improving fluency, suffered from reduced relevance, highlighting the trade-off when drastically reducing training data.
  • The "Rejection sampling" and "Weighted loss" strategies were comparable to the "Without fluency" baseline on automated metrics, suggesting that while fluency is improved, the overall relevance might not be boosted beyond what's achievable with raw machine translation.
  • The paper focuses on English-to-Chinese, and while the method is extensible, its performance on other language pairs is not explored.
  • Future Work:
    • The authors suggest extending the approach to other target languages.
  • They also propose exploring its application in broader multimedia content analysis and repurposing in a multilingual setting.
  • Further investigation into optimizing the balance between fluency and relevance, especially for strategies like "Fluency-only," could be beneficial.

Summary updated

BibTeX
@inproceedings{lan2017fluency,
  author = {Weiyu Lan and Xirong Li and Jianfeng Dong},
  title = {{Fluency-Guided Cross-Lingual Image Captioning}},
  booktitle = {ACM Multimedia},
  year = {2017},
  doi = {10.1145/3123266.3123366},
}
Figure