Tackling Vision Language Tasks through Learning Inner Monologues

Diji Yang, Kezhen Chen, Jinmeng Rao, Xiaoyuan Guo, Yawen Zhang, Jie Yang, Yi Zhang

Abstract

This paper introduces Inner Monologue Multi-Modal Optimization (IMMO), a framework designed to bridge the gap between performance and interpretability in vision-language tasks. By enabling Large Language Models (LLMs) and Vision-Language Models (VLMs) to engage in a structured "inner monologue," the system decomposes complex visual reasoning into a series of natural language queries and observations. Through a two-stage training process involving supervised fine-tuning and alternating reinforcement learning, IMMO achieves state-of-the-art results on benchmarks such as ScienceQA and SNLI-VE. Crucially, the model's reasoning process remains fully transparent, allowing for human-auditable decision-making.

Introduction

Current methodologies for vision-language tasks typically face a trade-off between interpretability and raw performance. Hybrid integration models, which use a VLM to generate text descriptions for an LLM, offer transparency but often fail to capture nuanced visual details. Conversely, embedding alignment models translate visual features into high-dimensional vectors; while performant, these "black box" systems provide no insight into their internal logic and require massive datasets for training.

Examples of inner monologues generated by IMMO to solve visual reasoning tasks.

To address this dilemma, we propose IMMO, a framework that emulates human cognitive processes by treating visual reasoning as a multi-turn conversation between two specialized agents: a Reasoner (the brain) and an Observer (the eyes). This approach allows the model to "interrogate" an image, identifying and filling information gaps through targeted natural language dialogue.

Methodology

The IMMO framework utilizes a two-agent architecture where a Reasoner (Vicuna-7B) identifies missing information and an Observer (BLIP-2) provides specific visual answers. The system is optimized through a unique two-stage training pipeline.

Supervised Human-Prior Fine-Tuning

Initial training focuses on establishing the format of self-questioning. Using synthetic data derived from the A-OKVQA dataset, we transformed human-annotated reasoning paths into two-turn dialogues. This stage ensures the models understand how to structure an inner monologue before moving to performance optimization.

Alternating Reinforcement Learning

To refine the agents' accuracy, we employ Proximal Policy Optimization (PPO). Training two interacting neural networks simultaneously often leads to instability due to the "moving target" problem. To mitigate this, IMMO uses an alternating training strategy: in one epoch, the Reasoner is updated while the Observer remains frozen; in the subsequent epoch, the roles are reversed.

The IMMO framework architecture featuring alternating reinforcement learning between the Reasoner and Observer across different training epochs.

Experimental Results

We evaluated IMMO across three major benchmarks, demonstrating that efficiency and interpretability do not have to come at the cost of accuracy.

  • ScienceQA (SQA): IMMO achieved an accuracy of 84.8%, significantly outperforming the Vicuna-SL baseline (78.3%). It remains competitive with much larger models, such as the GPT-4-based Chameleon (86.5%), despite having only ~9 billion parameters.
  • SNLI-VE: The framework reached 65.7% accuracy, representing a 10.4% improvement over the previous state-of-the-art hybrid model, IdealGPT.
  • Interpretability: Analysis of the generated monologues shows that the Reasoner frequently uses subsequent turns to validate initial observations, mimicking human verification strategies and providing a clear "Chain-of-Thought" for users to follow.

Discussion and Limitations

While IMMO represents a significant step forward in transparent visual reasoning, several areas for future work remain. Currently, the number of monologue turns is fixed; future iterations could allow the Reasoner to autonomously determine when sufficient information has been gathered. Additionally, while the current single-Observer model is effective, incorporating multiple specialized Observers (e.g., for OCR or spatial analysis) could further enhance performance on niche tasks. Finally, reducing the reliance on synthetic data from models like GPT-3.5 in favor of high-quality human-annotated dialogues may further improve the naturalness of the reasoning paths.

Conclusion

IMMO demonstrates that natural language can serve as a powerful and interpretable interface for multi-modal reasoning. By leveraging alternating reinforcement learning and the concept of an inner monologue, we provide a framework that is both computationally efficient and transparent, offering a viable path forward for trustworthy AI in vision-language applications.

Summary updated

BibTeX
@inproceedings{yang2024tackling,
  author = {Diji Yang and Kezhen Chen and Jinmeng Rao and Xiaoyuan Guo and Yawen Zhang and Jie Yang and Yi Zhang},
  title = {{Tackling Vision Language Tasks through Learning Inner Monologues}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i17.29905},
}
Figure