[Paper Review] A Simple Loss Function for Improving the Convergence and Accuracy of Visual Question Answering Models
This paper proposes a novel soft cross entropy loss function for Visual Question Answering (VQA) that accounts for all ground-truth answers per question, reducing the discrepancy between training loss and evaluation accuracy. By weighting each plausible answer according to its frequency, the method improves training convergence and boosts VQA model accuracy by up to 1.6% on the VQA v2.0 benchmark.
Visual question answering as recently proposed multimodal learning task has enjoyed wide attention from the deep learning community. Lately, the focus was on developing new representation fusion methods and attention mechanisms to achieve superior performance. On the other hand, very little focus has been put on the models' loss function, arguably one of the most important aspects of training deep learning models. The prevailing practice is to use cross entropy loss function that penalizes the probability given to all the answers in the vocabulary except the single most common answer for the particular question. However, the VQA evaluation function compares the predicted answer with all the ground-truth answers for the given question and if there is a matching, a partial point is given. This causes a discrepancy between the model's cross entropy loss and the model's accuracy as calculated by the VQA evaluation function. In this work, we propose a novel loss, termed as soft cross entropy, that considers all ground-truth answers and thus reduces the loss-accuracy discrepancy. The proposed loss leads to an improved training convergence of VQA models and an increase in accuracy as much as 1.6%.
Motivation & Objective
- To address the mismatch between standard cross entropy loss and the actual VQA evaluation metric, which considers multiple correct answers.
- To improve training stability and convergence speed in VQA models by better reflecting the true evaluation criteria during optimization.
- To increase test accuracy by aligning the loss function more closely with the VQA evaluation protocol, which grants partial credit for any answer matching at least three human annotations.
- To provide a simple, plug-and-play loss function that enhances performance across diverse VQA architectures without architectural changes.
Proposed method
- The proposed soft cross entropy loss computes a weighted average of individual cross entropy losses over all unique ground-truth answers for each question.
- Each answer in the ground-truth set is assigned a weight equal to its frequency divided by the total number of answers (typically 10), reflecting its likelihood of being correct.
- The loss function is defined as a sum over unique answers, where each term is the standard cross entropy loss for that answer, scaled by its frequency weight.
- The method preserves the standard cross entropy formulation but extends it to consider multiple correct answers simultaneously, rather than just the most frequent one.
- The approach is compatible with any VQA model architecture and can be easily integrated into existing training pipelines.
Experimental results
Research questions
- RQ1How does the discrepancy between standard cross entropy loss and the VQA evaluation metric affect model convergence and accuracy?
- RQ2Can modeling multiple ground-truth answers in the loss function lead to improved training dynamics and final performance?
- RQ3Does a weighted average of cross entropy losses over all plausible answers reduce the gap between training loss and test accuracy?
- RQ4To what extent does the proposed loss improve performance across different VQA model architectures?
Key findings
- The soft cross entropy loss increases average validation accuracy by 1.2% on the AVG VQA model and 1.6% on the POOL VQA model compared to standard cross entropy.
- The improvement is consistent across all answer types: Yes/No, Number, Other, and the overall average.
- The method stabilizes the training process, eliminating the abnormal trend where validation loss and accuracy both increase simultaneously, observed with standard cross entropy.
- The proposed loss leads to faster convergence, as shown by training and validation curves in Figures 1 and 2, where loss and accuracy trends align more naturally.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.