Continual Learning for Image Captioning through Improved Image-Text Alignment

Bertram Taetz, Gal Bordelius
10/7/2025
cs.CV

Official code: Gepardius/Taetz_Bordelius_Continual_ImageCaptioning (0 stars, last commit 2025-10-08).

Abstract

Generating accurate and coherent image captions in a continual learning setting remains a major challenge due to catastrophic forgetting and the difficulty of aligning evolving visual concepts with language over time. In this work, we propose a novel multi-loss framework for continual image captioning that integrates semantic guidance through prompt-based continual learning and contrastive alignment. Built upon a pretrained ViT-GPT-2 backbone, our approach combines standard cross-entropy loss with three additional components: (1) a prompt-based cosine similarity loss that aligns image embeddings with synthetically constructed prompts encoding objects, attributes, and actions; (2) a CLIP-style loss that promotes alignment between image embeddings and target caption embedding; and (3) a language-guided contrastive loss that employs a triplet loss to enhance class-level discriminability between tasks. Notably, our approach introduces no additional overhead at inference time and requires no prompts during caption generation. We find that this approach mitigates catastrophic forgetting, while achieving better semantic caption alignment compared to state-of-the-art methods. The code can be found via the following link: https://github.com/Gepardius/Taetz_Bordelius_Continual_ImageCaptioning.

View on arXivView PDF

Code Implementations(1)

Continual learning Image Captioning model with catastrophic forgetting mitigation techniques.

00PythonApr 6, 20251 years ago

Similar Papers

Cite this paper

@article{taetz2025continual,
  title  = {Continual Learning for Image Captioning through Improved Image-Text Alignment},
  author = {Bertram Taetz and Gal Bordelius},
  year   = {2025},
  eprint = {2510.06009},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.06009v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.06009.svg)](https://codeofpaper.com/paper/2510.06009)

Discussion