WeChat Researchers Built F2RVLM to Find Buried Chat Fragments Across Thousands of Turns
A new retrieval framework tackles the messy reality of long group chats by finding coherent multi-message, multi-image fragments instead of isolated utterances
Takeaways
- New task defined: Fine-grained Fragment Retrieval (FFR) retrieves coherent multi-message, multi-image conversation fragments, not just isolated utterances.
- Two systems built: F2RVLM handles single-dialogue retrieval; FFRS (Fragment Embedding Model + F2RVLM reranker) scales to large corpora.
- RL-trained model: F2RVLM uses GRPO reinforcement learning with multi-objective rewards and difficulty-aware curriculum sampling for coherent fragment outputs.
- New benchmark: MLDR dataset averages 25.45 turns per dialogue -- the longest multimodal dialogue retrieval dataset to date -- plus a real WeChat test set averaging 75.38 turns.
- Strong results: F2RVLM and FFRS consistently outperform leading VLMs including GPT-4o on both in-domain and real-world benchmarks.
- Open release: Code and dataset available at f2rvlm.github.io.
Anyone who has tried to find a specific conversation thread in a long group chat knows the pain: you remember the gist of what was said, but the relevant messages are scattered across dozens of turns, mixed with images, and buried under unrelated tangents. Standard search tools return individual messages in isolation, stripping away the context that made them meaningful in the first place. A new paper from researchers at WeChat's parent organization tackles this head-on with a framework called Fine-grained Fragment Retrieval (FFR) -- a system designed to find coherent, multi-message, multi-image conversation fragments from long-form dialogues.
The gap that existing retrieval misses
Traditional dialogue retrieval aims to select the most appropriate utterance or image from recent dialogue history, but these approaches often fail to meet users' actual needs for revisiting semantically coherent content scattered across long-form conversations. Think of it like the difference between a search engine returning a single sentence versus returning the whole relevant paragraph. Even leading Vision-Language Models (VLMs) struggle here -- they often retrieve incoherent utterance-image fragments because, while optimized for generating responses from visual-textual inputs, they lack explicit supervision to ensure semantic coherence within retrieved fragments.
The problem is compounded by scale. Real-world WeChat conversations reflect authentic user interactions with noisy inputs, informal expressions, and frequent topic shifts, posing greater challenges for robust retrieval than any clean benchmark can simulate. Retrieving a fragment that spans, say, a planning discussion with shared photos requires understanding topical boundaries, not just keyword overlap.

Two problems, two systems
The paper defines FFR and then splits it into two distinct settings, each with its own solution:
- FFR within a Single Dialogue: Given one long conversation, find the fragment most relevant to a query. The model here is F2RVLM, a generation-based retrieval model that reasons over the full dialogue and outputs the relevant span.
- FFR within a Dialogue Corpus: Given a large collection of dialogues (think: an entire organization's chat history), find the right fragment across all of them. This is handled by FFRS, a two-stage pipeline built for scale.
FFRS is a two-stage retrieval system that combines offline fragment-level indexing with online retrieval, enabling efficient and accurate retrieval at scale. Each long-form dialogue is decomposed into minimal semantic units (fragments), which are encoded into a vector database by a Fragment Embedding Model (FEM). During inference, FEM rapidly recalls Top-K candidate fragments based on a user query, followed by F2RVLM performing fine-grained reasoning to identify the most relevant sub-content within each candidate. This is essentially a retrieve-then-rerank architecture, but applied at the fragment level rather than the document level.
How F2RVLM actually learns to retrieve
F2RVLM is the core model powering both settings. It is a generation-based VLM (Vision-Language Model) -- meaning it treats retrieval as a generation task, producing the indices or identifiers of the relevant utterances and images rather than computing similarity scores. Training it well is the real challenge.
F2RVLM is trained in a two-stage paradigm: (1) supervised fine-tuning to inject fragment-level retrieval knowledge, and (2) GRPO-based reinforcement learning with multi-objective rewards promoting semantic precision, relevance, and contextual coherence. GRPO (Group Relative Policy Optimization) is the same RL algorithm popularized by DeepSeek-R1 for reasoning tasks -- here it is repurposed to teach the model what makes a good retrieval fragment, not just a correct answer.
The second key training ingredient is difficulty-aware curriculum sampling. To handle varying intra-fragment complexity, from locally dense to sparsely distributed, the authors introduce difficulty-aware curriculum sampling that ranks training instances by model-predicted difficulty and gradually exposes the model to harder samples. Concretely, a fragment where all the relevant messages are clustered together is easier than one where the relevant content is spread thinly across 50 turns. The curriculum starts with easy cases and progressively introduces harder ones.
The multi-objective rewards during RL training push the model along three axes simultaneously:
- Semantic precision: Are the retrieved utterances actually on-topic?
- Relevance: Does the fragment answer the query?
- Contextual coherence: Do the retrieved pieces form a logically consistent unit?

A dataset built for the real world
To train and evaluate FFR, the team built two benchmarks from scratch. MLDR is a large-scale multi-modal long-form dialogue retrieval dataset where each dialogue covers three distinct topics with an average of 25.45 turns, making it the longest-turn multi-modal dataset to date. For context, prior datasets like MMDialog averaged just 4.56 turns per dialogue -- MLDR is roughly 5x longer.
Each matched triplet is converted into a coherent long-form dialogue using the Qwen3-235B model with structured prompts. The generation process preserves multimodal semantics, ensures topical coherence through smooth transitions, and yields fluent, contextually grounded long-form dialogues. To support fine-grained fragment retrieval, the team adopts a two-level shared tagging scheme automatically generated by Qwen3 under structured prompts. Each sentence and image caption is assigned a coarse-grained tag (e.g., domain) and a fine-grained tag (e.g., event), with each tag shared by at least two elements to form semantically consistent fragments.
The second benchmark is more demanding. To evaluate fine-grained retrieval in real-world scenarios, the authors construct a real-domain test set from naturally occurring multi-modal WeChat conversations. Unlike the synthesized MLDR data, these dialogues reflect authentic user interactions, with noisy inputs, informal expressions, and frequent topic shifts. The WeChat-based test set consists of real-world dialogues with an average of 75.38 turns -- three times longer than MLDR's already-long conversations.
What the results show
Extensive experiments on both the in-domain MLDR and real-domain WeChat-based sets demonstrate that F2RVLM significantly outperforms mainstream VLMs in retrieval accuracy and contextual understanding. The paper also notes that this extended work represents a major expansion over its AAAI conference predecessor. Compared to the original conference paper accepted by AAAI, which introduced F2RVLM for single-dialogue fragment retrieval, this extended work expands the task scope from single-dialogue to corpus-level fragment retrieval, enabling the model to identify semantically consistent fragments across multiple dialogues -- an essential step toward scalable real-world applications.
Where it fits and where it falls short
The most obvious use cases are enterprise and consumer messaging platforms -- think Slack, Teams, or WeChat -- where users need to resurface past discussions, not just individual messages. It also has clear applications in:
- Meeting recap systems that need to pull the relevant discussion thread, not just a transcript snippet
- Customer support platforms where agents need to find past resolution threads with shared screenshots
- Multimodal RAG pipelines where the knowledge base consists of chat logs rather than documents
- Personal knowledge management tools that index your own conversation history
The limitations are worth noting. The MLDR dataset is synthetically generated using Qwen3-235B, which means the training distribution may not perfectly match real-world noise -- a gap the WeChat test set partially exposes. Each MLDR dialogue is deliberately constructed to span three distinct topics, promoting multi-topic contextual modeling and ensuring a balanced semantic distribution. In contrast, the WeChat-based test set exhibits natural domain bias, with over 50% of conversations centered on Work and Tech. The corpus-level FFRS system also inherits the standard limitations of two-stage retrieval: if FEM misses the right fragment in the Top-K recall step, F2RVLM never gets a chance to find it.
Code and dataset are available at f2rvlm.github.io. The full paper and the earlier AAAI conference version are both on arXiv. For teams building retrieval systems over chat-heavy knowledge bases, this is one of the first frameworks purpose-built for the fragment-level problem -- and the dataset alone is a meaningful contribution to a space that has been starved of long-form multimodal benchmarks.