DEFT: Demystifying VLN Failures via a Unified Dual-View Explainability Framework for LLM-based Agents

Yawen Wang, Yihan Dai, Jianming Chen, Junjie Wang, Qing Wang

TL;DR

This paper introduces DEFT, a novel framework for explaining the decisions of Large Language Model (LLM)-based agents in Vision-and-Language Navigation (VLN). DEFT uniquely combines when a decision is critical with what visual evidence supports it, addressing a key "alignment gap" in existing methods and improving human understanding of agent behavior.

What Problem Does This Paper Address?

Large Language Models (LLMs) are increasingly used as the "brains" behind embodied agents, particularly in Vision-and-Language Navigation (VLN). These agents need to understand natural language instructions and navigate complex environments using visual input. However, the inner workings of LLMs are often opaque, making it difficult to understand why an agent makes a particular decision, especially when it fails. Existing methods for explaining these agents often focus on either when a decision was important (temporal criticality) or what visual information was used (feature salience), but rarely both simultaneously. This separation creates an "alignment gap," where explanations for time and visual evidence don't quite fit together. Furthermore, LLM-based agents can be unstable, meaning their behavior can change unpredictably, making standard explanation techniques unreliable. This paper aims to bridge this gap by providing a unified, dual-view explanation framework that is robust to this instability.

Methods

DEFT tackles this problem with a unified, dual-head architecture built on a shared latent representation.

  • Dual-Head Architecture:
    • Mask Head: This component acts as a "criticality detector." It uses a counterfactual masking mechanism to simulate what would happen if an agent's action at a specific timestep were different. By measuring how much the agent's performance (reward) degrades, it identifies "pivotal" timesteps – those where a wrong decision would lead to failure.
  • Action Head: This head acts as a "visual evidence retriever." It uses an ensemble of gradient-accessible "surrogate" models (simpler, interpretable models trained to mimic the LLM agent's behavior) to recover fine-grained visual features. This ensemble approach helps to overcome the instability of LLM agents by aggregating explanations from multiple proxies.
  • Ensemble-Surrogate Strategy: To address the behavioral instability of LLMs, DEFT trains multiple surrogate models. These surrogates are trained to mimic the target LLM agent's policy using a hybrid Imitation Learning (IL) and Reinforcement Learning (RL) objective. By using an ensemble, DEFT can capture a broader range of the target agent's behaviors and produce more robust visual explanations.
  • Integrated Gradients (IG): The Action Head leverages Integrated Gradients, a standard technique for attributing model outputs to input features, applied to the surrogate models. The ensemble of IG explanations is then aggregated to produce a stable and reliable visual attribution map.

Datasets

The experiments were conducted on the MatterPort3D simulator, using the Room-to-Room (R2R) dataset. This dataset consists of indoor environments with natural language instructions for navigation.

Key Insights and Ideas

  • Unified Dual-View is Crucial: The paper strongly suggests that explaining when a decision is critical and what visual evidence supports it simultaneously is far more effective than treating these aspects separately. This unified approach leads to more coherent and actionable explanations.
  • Ensemble of Surrogates for Stability: The inherent instability of LLM agents is a major challenge for interpretability. Using an ensemble of simpler surrogate models to approximate the LLM's behavior proves to be a robust strategy for generating reliable explanations.
  • Counterfactuals for Criticality: Simulating alternative actions (counterfactuals) is a powerful way to identify truly critical decision points, as it directly measures the impact of a decision on the task outcome.
  • Human Alignment is Key: The user study highlights that DEFT's explanations are not only technically sound but also align well with human intuition, making them more useful for debugging and understanding.

Key Results

  • Timestep Criticality: DEFT consistently outperformed baselines in identifying critical timesteps, achieving significantly higher "Fidelity" scores across three different LLM-based VLN agents.
  • Feature Attribution: DEFT demonstrated superior performance in feature attribution metrics (Insertion, Deletion, and µFidelity) compared to both white-box and black-box baselines, indicating it recovers visual evidence that is truly faithful to the agent's decision-making process.
  • User Study: In a user study, DEFT was favored 78% of the time for intuitive alignment and 75% for reasoning understanding. Crucially, users equipped with DEFT were more than twice as successful (64% vs. 30%) in diagnosing the root cause of navigation failures.
  • Efficiency: While DEFT requires training surrogates, its inference is significantly faster than methods that require repeated querying of the target LLM.

Limitations and Future Work

  • Surrogate Approximation: DEFT relies on surrogate models, which are approximations of the black-box LLM. While the ensemble approach mitigates this, there might still be a gap in representing highly non-linear reasoning in extreme corner cases.
  • Reward Dependency: The criticality detection relies on reward signals. Sparse or poorly defined rewards could affect the precision of identifying critical timesteps. Future work could explore self-supervised signals or goal-reaching metrics.
  • Environment Scope: The current study focuses on discrete VLN environments. The authors suggest that DEFT's modular design could allow for generalization to continuous-control and other embodied tasks by swapping out the backbone and surrogate models.

Summary updated

Abstract

Large Language Models (LLMs) have emerged as central planners in Vision-and-Language Navigation (VLN), yet their complexity increasingly obscures their internal decision-making. Existing interpretability methods typically isolate temporal criticality from feature salience, creating an alignment gap and failing to account for the behavioral instability of black-box agents. To address this, we propose DEFT, a unified dual-view framework that demystifies agent behavior by jointly analyzing when a decision is pivotal and what visual evidence grounds it. Featuring a dual-head architecture with a shared latent representation, DEFT employs a Mask Head for counterfactual-based criticality detection and an Action Head that leverages an ensemble of surrogates to recover robust visual cues. Extensive experiments on MatterPort3D across three LLM-based agents demonstrate that DEFT outperforms baselines in both temporal and feature fidelity. User studies further validate its utility, showing 78% alignment with human intuition.
BibTeX
@inproceedings{wang2026deft,
  author = {Yawen Wang and Yihan Dai and Jianming Chen and Junjie Wang and Qing Wang},
  title = {{DEFT: Demystifying VLN Failures via a Unified Dual-View Explainability Framework for LLM-based Agents}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.1363},
}
Figure