Memory-Augmented Query Intent Understanding for Efficient Chat-based Image Retrieval

Xianke Chen, Daizong Liu, Yushuo Lou, Xin Tan, Xun Yang, Shuhui Wang, Xun Wang, Jianfeng DongarXiv 2026

TL;DR

Chat-based image retrieval systems often struggle to balance accuracy and efficiency when tracking evolving user intent over multi-round dialogues. This paper introduces MAQIU, a framework that uses a lightweight, fixed-size semantic memory and a unique "least-similar" recall mechanism to efficiently track intent. MAQIU consistently outperforms existing methods while slashing dialogue encoding computational costs (FLOPs) by 86.4%.

What Problem Does This Paper Address?

Traditional text-to-image retrieval relies on a single query, which is often insufficient for complex or highly specific search intents. Chat-based image retrieval solves this by letting users interactively refine their search through multi-round dialogue (e.g., "Find a picture of a street." $\rightarrow$ "What color is the light?" $\rightarrow$ "Red.").

However, existing systems handle dialogue history poorly. They typically fall into two camps:

  1. Concatenate-based methods: They append every new dialogue turn to a single long text sequence. This causes a "token length explosion," leading to massive computational redundancy and slower processing as the conversation goes on.
  2. Reconstruct-based methods: They use Large Language Models (LLMs) to rewrite the entire dialogue history into a concise query at every turn. While cleaner, this introduces heavy generative overhead and high latency.

The core challenge is to dynamically maintain a coherent, long-term representation of user intent across multiple rounds without computational bloat or forgetting early details.

Fig. 2. Illustration of our motivation. Unlike previous methods that simply integrate dialogue contexts via either multi-round concatenation or LLM-based reconstruction, we propose an efficient memory-based approach that enables more coherent and accurate understanding of evolving query intent.

Methods

The authors propose MAQIU (Memory-Augmented Query Intent Understanding), which replaces heavy re-encoding or LLM rewriting with a persistent, lightweight semantic memory. It consists of three core components:

  1. Progressive Dialogue-Semantic Memorization: Instead of re-encoding the entire history, MAQIU initializes a fixed set of learnable memory tokens. At each round, it uses cross-attention to update these tokens using only the current turn's text. This keeps the token length and computational complexity constant across dialogue rounds.
  2. Recalling Weakened Dialogue Memories: Sequential updates can cause a model to focus too much on recent turns and "forget" earlier constraints. MAQIU maintains a key-value history repository of past turns. Crucially, it calculates the cosine similarity between the current memory state and past turns, selectively recalling the least similar contexts to reinforce the memory and prevent intent drift.
  3. Query Refinement with Visual History: Dialogue turns are naturally correlated with the images retrieved along the way. MAQIU takes the top-$k$ retrieved images from the previous round, projects them into the text feature space, and fuses them via cross-attention to provide visual guidance for the next round.
Overview of the MAQIU framework showing progressive memorization, memory recall, and visual history refinement.

Datasets

The authors evaluated MAQIU on three primary setups:

  • Visual Dialog (VisDial): The standard benchmark for this task, containing 123,287 training images and 2,064 validation images. Each image is paired with an initial query and 10 rounds of human-annotated dialogue.
  • ChatGPT-BLIP2 & Human-BLIP2: Two cross-domain evaluation datasets built on VisDial images but featuring newly generated dialogues from different question-answer sources to test the model's generalization capabilities.

Key Insights and Ideas

  • Fixed-Size Memory Bottlenecks Work: You don't need to re-read an entire conversation to understand the current context. A small, fixed set of memory tokens can act as a continuous bottleneck that accumulates intent efficiently.
  • Recalling the Least Similar History: Standard memory networks typically look for the most relevant history. MAQIU flips this intuition: it looks for the least similar past turns because those are the ones most likely to have been diluted or overwritten during sequential updates.
  • Images as Context, Not Just Outputs: Past retrieval results aren't just the end product; they serve as a coarse visual history that grounds the text dialogue and ensures cross-round continuity.

Key Results

  • Massive Efficiency Gains: MAQIU keeps token length and FLOPs virtually constant across 10 rounds of dialogue. It reduces dialogue encoding FLOPs by 86.4% compared to the concatenation-based baseline (ChatIR), dropping text-side processing latency to just ~1 ms per query.
  • Superior Accuracy: On the original VisDial dataset, MAQIU achieves a Mean Hit/Recall @ 10 (MHR@10) score of 83.21% at round 5 and 87.45% at round 10, consistently outperforming competitive baselines.
  • Mitigating Semantic Drift: Qualitative analysis showed that while LLM-reconstruction methods often hallucinate incorrect details by round 10, MAQIU successfully preserves the core user intent throughout the entire conversation.

Limitations and Future Work

The authors note that under reconstructed dialogue settings (where an external LLM has already pre-processed the text into a single summary), MAQIU's memory-based encoding can occasionally introduce redundant information, slightly lowering cumulative success metrics in early rounds compared to direct encoding.

The authors focus primarily on validating the core memory architecture; specific future extensions, such as scaling to larger multimodal backbones or optimizing the visual history selection mechanism for noisier environments, are not extensively discussed in the paper.

Summary updated

BibTeX
@misc{chen2026memory,
  author = {Xianke Chen and Daizong Liu and Yushuo Lou and Xin Tan and Xun Yang and Shuhui Wang and Xun Wang and Jianfeng Dong},
  title = {{Memory-Augmented Query Intent Understanding for Efficient Chat-based Image Retrieval}},
  year = {2026},
  eprint = {2605.17365},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.17365},
}
Figure