Dual-Stage Value-Guided Inference with Margin-Based Reward Adjustment for Fast and Faithful VLM Captioning

Ankan Deria, Adinath Madhavrao Dukre, Feilong Tang, Sara Atito, Sudipta Roy, Muhammad Awais, Muhammad Haris Khan, Imran Razzak · DOI

Introduction

Vision-Language Models (VLMs) like LLaVA have demonstrated remarkable fluency in generating image descriptions. However, they are frequently hindered by two significant challenges: hallucinations—where the model describes non-existent objects or attributes—and computational inefficiency during inference-time search. While techniques like beam search or re-ranking can mitigate hallucinations, they are often prohibitively slow for real-world applications.

To address this, we present ViMaR (Value-guided Inference with Margin-based Reward), a two-stage framework designed to optimize the trade-off between generation speed and visual grounding. ViMaR achieves a significant reduction in hallucinations while maintaining a 4× speedup over existing state-of-the-art search methods.

The ViMaR Framework

ViMaR operates through a "global-to-local" search strategy that avoids the exhaustive computational cost of token-level re-scoring.

Stage 1: Coarse Global Selection

Instead of evaluating every possible word, the framework generates several diverse full-paragraph candidates. A specialized Value Model (based on LLaVA-Mistral-7B) performs a single pass to identify the most promising overall caption. This ensures the narrative arc of the description is grounded in the visual context from the start.

Stage 2: Targeted Local Refinement

Rather than re-generating the entire text, ViMaR identifies specific segments that are "under-grounded" (characterized by low confidence or missing objects). The model only resamples and refines these specific weak links, drastically reducing the total number of required computations.

Margin-Based Reward Adjustment

The Value Model is trained using Temporal-Difference (TD) learning, enhanced by a novel margin-based penalty. If a candidate's CLIP similarity score falls below a specific threshold ($\tau$), the model receives a penalty proportional to the gap. This mechanism sharpens the model’s ability to distinguish between detailed, accurate descriptions and detailed, hallucinated ones.

Experimental Results

Efficiency and Hallucination Reduction

ViMaR was evaluated against standard greedy decoding and existing search methods like VisVM and Best-of-N (BoN). As shown in the table below, ViMaR significantly outperforms greedy decoding in fidelity while remaining much faster than complex search alternatives.

Table 1: Comparison of hallucination metrics (CHAIR, MMHal) and inference time across different decoding methods.

Key findings include:

  • Speed: ViMaR is 4.3× faster than VisVM (108s vs. 462s per sample).
  • Fidelity: ViMaR achieved the lowest sentence-level hallucination rate (CHAIR_S), dropping from 32.4% (greedy) to 23.1%.
  • Human Preference: In side-by-side evaluations, ViMaR captions were preferred 64% of the time over VisVM.

Cross-Model Generalization and Self-Improvement

A critical insight from our study is the generalizability of the Value Model. A model trained on a 7B architecture (LLaVA-Mistral) effectively guided a much larger, unseen model (LLaVA-OneVision-Qwen2). Furthermore, using ViMaR to generate high-quality synthetic data for self-training led to a 15.87% average performance boost across a suite of visual comprehension and hallucination benchmarks.

Table 2: Performance of ViMaR across various visual comprehension and hallucination benchmarks, demonstrating consistent improvements over base models.

Conclusion

ViMaR demonstrates that high-quality VLM inference does not require exhaustive search. By combining global selection with targeted local refinement and a margin-based reward system, we can achieve captions that are both faster to generate and more faithful to the visual input. Future work will focus on reducing the dependency on CLIP similarity and further optimizing the refinement logic for real-time applications.

Summary updated

BibTeX
@inproceedings{deria2025dual,
  author = {Ankan Deria and Adinath Madhavrao Dukre and Feilong Tang and Sara Atito and Sudipta Roy and Muhammad Awais and Muhammad Haris Khan and Imran Razzak},
  title = {{Dual-Stage Value-Guided Inference with Margin-Based Reward Adjustment for Fast and Faithful VLM Captioning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=KstkQi6e7q},
}
Figure