Visualizing Dialogues: Enhancing Image Selection through Dialogue Understanding with Large Language Models

Chang-Sheng Kao, Yun-Nung ChenACL 2024

Introduction

In modern digital communication, images are frequently shared to provide context, emotional depth, or clarification. For automated dialogue systems, retrieving the most relevant image from a large repository is a significant challenge. Current Vision-Language Models (VLMs), such as CLIP, often fail to bridge the "dialogue-to-image gap." These models are typically trained on concise, descriptive captions, whereas real-world dialogues are often lengthy, context-dependent, and filled with implicit references. This paper introduces a novel framework that uses Large Language Models (LLMs) as a "reasoning bridge" to translate conversational context into explicit visual cues.

Methodology

To address the limitations of standard VLMs, the proposed framework utilizes the common-sense reasoning of LLMs (specifically LLaMA-2) to bridge the gap between human conversation and the "caption-like" language that vision models understand.

The proposed framework uses an LLM to generate visual descriptors from dialogue context, which are then used for dual-scoring retrieval.

The pipeline consists of two primary stages:

  1. Descriptor Generation: The system feeds the dialogue context into an LLM using "visually-focused queries." The LLM is asked to speculate on the shared photo's main subject, foreground objects, background scene, and events.
  2. Dual-Scoring Retrieval: Instead of a single similarity check, the framework calculates two scores: a Scene-Aligned Score (comparing descriptors against pre-extracted object lists) and a Vision-Aligned Score (measuring similarity between descriptors and actual image pixels using CLIP).

Experimental Setup

The framework was evaluated on the PhotoChat dataset, which contains approximately 11,000 images paired with real-world dialogues. Further testing was conducted on VisDial and MMDialog to ensure generalizability across different multimodal interaction benchmarks. The researchers tested this in both zero-shot and fully-trained scenarios.

Results and Discussion

The proposed method achieved state-of-the-art (SOTA) performance across the board. In zero-shot settings on PhotoChat, the "Desc-Guessing" approach improved Recall@k by nearly 18% over the CLIP baseline. When fine-tuned, the model reached an R@1 of 44.00%, a massive jump from the previous SOTA of roughly 14.76% for standard dual encoders.

A key finding was the effectiveness of ensembling different types of descriptors. Combining summaries (S), guesses (G), queries (Q), and captions (C) yielded the highest performance, suggesting that different LLM prompting strategies capture complementary visual information.

Performance comparison of different ensemble strategies, showing that combining multiple descriptor types leads to the best retrieval results.

Ablation studies further revealed that identifying the "main subject" is the most critical factor for successful retrieval, followed by foreground objects. The system also demonstrated robustness to minor errors in object detection, though incorrect labels were found to be more damaging than missing ones.

Conclusion and Future Work

While the framework significantly improves image selection, it relies on pre-extracted object lists for candidate images, which may limit real-time scalability. Additionally, the model assumes a literal alignment between text and images, potentially struggling with ironic or metaphorical content. Future research will focus on distilling this visual reasoning capability into smaller, more efficient models to improve inference speed.

Summary updated

BibTeX
@inproceedings{kao2024visualizing,
  author = {Chang-Sheng Kao and Yun-Nung Chen},
  title = {{Visualizing Dialogues: Enhancing Image Selection through Dialogue Understanding with Large Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.700},
}
Figure