Introduction
Vision-and-Language (V&L) models are notoriously brittle, often failing when faced with simple linguistic changes like negation or paraphrasing. This paper introduces Semantically Distributed Robust Optimization (SDRO), a method that uses a suite of semantic transformations during training to ensure models are robust to linguistic variations while simultaneously boosting overall accuracy and calibration.
The Challenge of V&L Robustness
Current V&L models—used for tasks like "Does this caption describe this image?"—often rely on superficial correlations rather than true semantic understanding. They are easily fooled by "adversarial" tweaks: swapping a word for its synonym might change the model's prediction, or the model might fail to realize that adding the word "not" should flip the truth value of a statement.
While Distributed Robust Optimization (DRO) and Adversarial Training (AT) are standard fixes in computer vision, they don't translate well to text. In vision, you can add a tiny amount of "noise" to pixels without changing the image's meaning. In text, adding "noise" to word embeddings usually results in nonsensical vectors that don't map back to real words. This paper seeks a way to apply the principles of robust optimization to the discrete, semantic nature of natural language.
Methodology: Semantically Distributed Robust Optimization (SDRO)
The authors propose SDRO, which shifts the focus from vector-space noise to SISP (Semantics-Inverting and Semantics-Preserving) transformations.
SISP Transformations
The authors defined 13 categories of linguistic transformations using tools like Spacy and WordNet:
- Semantics-Preserving (SP): Paraphrasing, swapping synonyms (e.g., "dog" $\rightarrow$ "canine"). The ground-truth label remains the same.
- Semantics-Inverting (SI): Negation, swapping antonyms (e.g., "large" $\rightarrow$ "small"), or swapping subjects and objects. The ground-truth label flips (True $\leftrightarrow$ False).
The SDRO Objective
Instead of minimizing average loss, SDRO minimizes the worst-case loss across these semantic groups. This forces the model to perform well even on its "hardest" linguistic transformation. To prevent the model from becoming biased toward a single "impossible" transformation, they use a group-wise approach that balances the influence of different transformation types.
Test-Time Ensembling
At inference, the model doesn't just look at the original sentence. It generates several SISP versions of the input, gets predictions for all of them, and ensembles the results.
Datasets and Evaluation
The method was evaluated on three major benchmarks:
- NLVR² (Natural Language Visual Reasoning): Requires reasoning about two images and a complex sentence.
- VIOLIN (Video-and-Language Inference): Requires matching video clips with subtitles/statements.
- VQA-v2 (Visual Question Answering): Specifically the "yes/no" subset, to test generalizability to other V&L tasks.
Key Results and Insights
- New State-of-the-Art: On NLVR², the SDRO-enhanced VILLA model achieved 82.22% accuracy, a significant jump over the baseline's 78.39%.
- Robustness Gains: The "SISP Accuracy" (performance on transformed sentences) improved drastically. For example, on NLVR², SI accuracy jumped from ~34% (worse than a coin flip!) to over 84% with SDRO.
- Data Efficiency: SDRO acts as a highly efficient data augmentation tool. Models trained on only 80% of the data using SDRO outperformed state-of-the-art models trained on 100% of the data.
- Calibration: Beyond accuracy, SDRO models are better calibrated. This means when the model says it is 90% confident, it is actually right about 90% of the time. Standard models tend to be overconfident even when they are wrong.
- Adversarial Defense: SDRO provided "free" protection, improving performance against unseen adversarial attacks by an average of 0.7% to 6.5% across different benchmarks.
Limitations and Future Work
The SISP transformations currently rely on templates and rule-based NLP tools, which can occasionally produce slightly unnatural sentences. Furthermore, the current implementation focuses on binary classification (True/False or Yes/No). Extending this to open-ended generation or multi-choice VQA is a logical next step. Finally, the discrete nature of linguistic transformations prevents the use of standard gradient-based optimization for the "inner loop" of DRO; future work may explore proximal point or trust-region methods to bridge this gap.
Summary updated