Transformer based Multitask Learning for Image Captioning and Object Detection

Debolena Basak,P.K. Srijith,Maunendra Sankar Desarkar
DOI: https://doi.org/10.48550/arXiv.2403.06292
2024-03-11
Abstract:In several real-world scenarios like autonomous navigation and mobility, to obtain a better visual understanding of the surroundings, image captioning and object detection play a crucial role. This work introduces a novel multitask learning framework that combines image captioning and object detection into a joint model. We propose TICOD, Transformer-based Image Captioning and Object detection model for jointly training both tasks by combining the losses obtained from image captioning and object detection networks. By leveraging joint training, the model benefits from the complementary information shared between the two tasks, leading to improved performance for image captioning. Our approach utilizes a transformer-based architecture that enables end-to-end network integration for image captioning and object detection and performs both tasks jointly. We evaluate the effectiveness of our approach through comprehensive experiments on the MS-COCO dataset. Our model outperforms the baselines from image captioning literature by achieving a 3.65% improvement in BERTScore.
Computer Vision and Pattern Recognition,Computation and Language
What problem does this paper attempt to address?
The problem that this paper attempts to solve is to obtain a better visual understanding of the surrounding environment through Image Captioning and Object Detection in autonomous navigation and human mobility assistance systems. Specifically, the author proposes a Transformer - based multi - task learning framework (TICOD), which can perform image captioning and object detection tasks simultaneously. This method aims to overcome several major problems in existing methods: 1. **Existing image captioning models usually adopt a two - stage training method**: First, use a pre - trained object detector (such as Faster R - CNN) to extract image region features, and then input these features into an encoder - decoder framework for image captioning. This method has the following disadvantages: - The object detection model is trained on a specific visual dataset (such as Visual Genome) in the first step, and its visual representation is not optimized for the image captioning dataset (such as MS - COCO), which may lead to error propagation. - The process of extracting regional features is time - consuming, causing the state - of - - the - art models to rely on cached visual features for training and evaluation, which limits the model design and introduces the problem of low runtime inference efficiency during prediction. 2. **Existing methods are difficult to achieve end - to - end training**: Generating descriptions directly from image pixels limits the application of these models in practical scenarios. To solve these problems, the author proposes a Transformer - based multi - task learning framework (TICOD), which combines image captioning and object detection tasks and improves the overall performance of the model through shared feature learning. Specifically, the model contains three main components: - **Backbone Network**: Used to extract image features. In this paper, Swin Transformer is used as the backbone network. - **Object Detection Network**: Use the Cascade R - CNN framework for object detection. - **Caption Generation Network**: Use the GPT - 2 architecture to generate image captions. By jointly training these two tasks, the model can enhance the overall learning ability with the knowledge obtained from each task, thus achieving a significant performance improvement in the image captioning task and also maintaining considerable performance in the object detection task. Specific improvements include: - Experiments on the MS - COCO dataset show that the BERTScore of the TICOD model in the image captioning task has increased by 3.65%. - In the object detection task, the TICOD model outperforms the performance of Swin Transformer under the Cascade R - CNN framework in metrics such as mAP, AP@0.75, AP@small, and AP@medium. In summary, the main contribution of this paper is to propose a multi - task learning model that can perform image captioning and object detection simultaneously. By optimizing the model parameters through the joint loss function, complementary learning between the two tasks is achieved, thereby improving the overall performance.