MARRS: Multimodal Reference Resolution System

Halim Cagri Ates, Shruti Bhargava, Site Li, Jiarui Lu, Siddhardha Maddula, Joel Ruben Antony Moniz, Anil Kumar Nalamalapu, Roman Hoang Nguyen, Melis Ozyildirim, Alkesh Patel, Dhivya Piraviperumal, Vincent Renkens, Ankit Samal, Thy Tran, Bo-Hsiang Tseng, Hong Yu, Yuan Zhang, Rong ZouarXiv 2023 · DOI

TL;DR

MARRS (Multimodal Reference Resolution System) is a lightweight, on-device framework designed to help dialogue agents understand context across conversational, visual, and background modalities. By combining query rewriting with a two-stage entity resolution pipeline, it enables seamless multi-turn interactions while strictly adhering to privacy and latency constraints.

What Problem Does This Paper Address?

Modern virtual assistants often struggle with "reference resolution"—the ability to understand what a user means by words like "it," "that," or "the second one." This challenge is compounded when context comes from multiple sources: the conversation history (anaphora and ellipsis), the user's screen (visual context), or background events like a ringing alarm.

Traditional systems are often insufficient for handling these multiple modalities simultaneously, especially under the strict latency and privacy requirements of on-device processing. MARRS aims to provide a unified, domain-agnostic solution that handles these diverse contextual cues efficiently without sending sensitive data to the cloud.

Methods

MARRS employs a dual-track architecture that processes the current utterance and context in parallel, as shown in the high-level diagram below:

Figure 2: High level diagram show-casing how MARRS models interface with each other

The system consists of two primary components:

  1. Query Rewriter (QR): This component transforms context-dependent queries into self-contained ones. For example, if a user asks "How far is it?" after discussing Ohio's capital, the QR might rewrite it to "How far is Columbus?" It uses an LSTM-based seq2seq model with a copy mechanism. A key optimization is a built-in classifier that predicts if a rewrite is even necessary, allowing the system to skip the expensive decoding step for simple, context-independent queries.
  2. Reference Resolution System (MDMR): This is a two-stage pipeline for linking mentions to specific entities.
  3. Mention Detector (MD): Identifies spans in the text that likely refer to entities (e.g., "[this house]"). It uses a BERT-based span classifier alongside a rule-based matcher for direct entity names.
  4. Mention Resolver (MR): Links these spans to actual entities, such as a phone number on the screen or a playing song. It uses a modular architecture—scoring based on category, location, and text—and features a high-precision rule-based "fast path" to resolve common cases instantly.

Datasets

The authors utilized a mix of real-world and synthetic data to train and evaluate the different components:

  • Screen Entity Resolution: Data collected by showing screenshots to annotators and asking them to generate requests referring to specific on-screen elements.
  • Conversational Entity Resolution: Synthetically generated lists of entities (e.g., coffee shops) used to train models to resolve references like "the one on Homestead Road."
  • Query Rewriting: Mined from anonymized usage logs. Annotators simplified "context-free" queries into "context-dependent" versions to create training pairs for the rewriter.
  • Synthetic Data: Template-based generation (e.g., "play [this]") to ensure broad coverage of common entity resolution tasks.

Key Insights and Ideas

  • Efficiency through Parallelism: By running the Query Rewriter and the Mention Detector/Resolver in parallel, MARRS minimizes the bottleneck of sequential processing, ensuring the assistant feels responsive.
  • The Power of "Fast Paths": Integrating rule-based components before machine learning models allows the system to resolve common, high-confidence cases with extremely low latency.
  • On-Device Optimization: The researchers found that removing the self-attention layer from the Mention Detector had negligible impact on accuracy for their specific use case—where references are usually nearby—but yielded massive gains in memory and speed.
  • Hybrid Output: Providing both a rewritten query and decorated reference spans gives downstream NLU components the flexibility to choose the most useful representation for their specific task.

Key Results

MARRS achieves high performance while remaining remarkably small, making it ideal for mobile hardware:

  • Model Size: The QR model has only 4.5M parameters, while the MD and MR models are even tinier at 116k and 196k parameters, respectively.
  • Accuracy: On conversational tasks, the MDMR system achieved an F1 score of 89.85. The Query Rewriter reached an F1 of 91.44 for anaphora and ellipsis resolution.
  • Privacy: Because the entire system runs on-device, user data never needs to leave the hardware for context resolution, fulfilling a core design requirement for modern personal assistants.

Limitations and Future Work

The authors note that while the system is highly performant, detailed cross-industry benchmarks and results against large-scale cloud models were outside the scope of this specific paper. Future work likely involves deeper integration of these contextual signals into even more sophisticated, proactive dialogue agents that can anticipate user needs based on background and visual cues.

Summary updated

BibTeX
@misc{ates2023marrs,
  author = {Halim Cagri Ates and Shruti Bhargava and Site Li and Jiarui Lu and Siddhardha Maddula and Joel Ruben Antony Moniz and Anil Kumar Nalamalapu and Roman Hoang Nguyen and Melis Ozyildirim and Alkesh Patel and Dhivya Piraviperumal and Vincent Renkens and Ankit Samal and Thy Tran and Bo-Hsiang Tseng and Hong Yu and Yuan Zhang and Rong Zou},
  title = {{MARRS: Multimodal Reference Resolution System}},
  year = {2023},
  eprint = {2311.01650},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.01650},
}
Figure