Semantic Flip: Synthetic OOD Generation for Robust Refusal in Embodied Question Answering and Spatial Localization
Semantic Flip synthesizes out-of-distribution samples to improve embodied refusal, achieving an F1 of 0.9559 on spatial localization.
Key Findings
Methodology
Semantic Flip employs independent corruption of query and visual memory to generate auxiliary OOD samples without external annotations. Using frozen pretrained VLMs, it extracts joint embeddings and trains a lightweight MLP rejection module. Q-FLIP distorts the query via large language models to produce unanswerable questions, while V-FLIP corrupts visual memory through object detection and inpainting, removing visual grounding. These synthetic samples are incorporated into training, enabling the model to distinguish answerable from unanswerable pairs effectively. Experiments on ABSTAINEQA and SPACEREJECT demonstrate superior performance over prompt-based baselines, with F1 scores of 0.7110 and 0.9559 respectively.
Key Results
- On ABSTAINEQA, the 7B model with Semantic Flip surpasses the 32B prompt-based baseline (0.6746 vs. 0.7110 F1), showing effective OOD rejection with minimal training overhead.
- In spatial localization, Semantic Flip achieves an F1 of 0.9559, significantly outperforming models without synthetic samples, confirming robustness over long video memory.
- The rejection module, trained on synthetic OOD samples, maintains high accuracy without fine-tuning the entire VLM, facilitating easy integration into existing systems.
Significance
This work addresses a critical challenge in deploying embodied AI systems—accurately rejecting unanswerable or unsupported queries. By synthesizing auxiliary OOD data without external annotations, it offers a scalable, practical solution that enhances safety and reliability in real-world applications. The approach reduces dependency on curated datasets, enabling broader deployment in diverse environments. Its success in both question answering and spatial navigation demonstrates its versatility, paving the way for more trustworthy autonomous agents capable of safe human interaction.
Technical Contribution
The core innovation lies in the synthetic generation of OOD samples via independent corruption of query and visual memory, combined with training a lightweight rejection head on frozen VLM features. This avoids costly fine-tuning of the entire model and ensures broad compatibility. Additionally, the introduction of the SPACEREJECT benchmark extends evaluation to long-term spatial tasks, emphasizing the method's robustness. The approach bridges the gap between supervised OOD detection and practical deployment, offering a scalable, annotation-free framework for embodied refusal.
Novelty
This is the first work to generate auxiliary OOD samples solely through modality-specific corruptions without external annotations, tailored for embodied tasks. Unlike prior supervised or prompt-based methods, Semantic Flip leverages data augmentation to teach models to recognize ungrounded or unsupported inputs, significantly reducing annotation costs and increasing adaptability. Its dual corruption strategy and lightweight rejection module set a new standard for scalable, effective refusal in multimodal systems.
Limitations
- The synthetic samples are generated by single-modality corruptions, which may not cover all types of invalid inputs, limiting the model's ability to reject certain complex or multi-modal unsupported queries.
- Reliance on inpainting and object detection introduces artifacts that could affect the quality of visual features, potentially impacting the robustness in highly cluttered or noisy environments.
- The current approach's effectiveness in highly dynamic or ambiguous scenes remains to be validated, and further improvements are needed to handle diverse real-world scenarios.
Future Work
Future directions include developing multi-modality corruption strategies to generate more diverse OOD samples, integrating active learning to refine rejection boundaries, and extending the framework to other embodied tasks such as manipulation or multi-agent coordination. Additionally, exploring unsupervised or self-supervised methods to further reduce reliance on synthetic data will be crucial. The goal is to create universally robust refusal modules adaptable across various embodied AI applications, enhancing safety and trustworthiness in autonomous systems.
AI Executive Summary
In the realm of embodied AI, enabling systems to accurately recognize when they cannot answer or support a user query is vital for safety and trust. Traditional models often overconfidently respond to unsupported questions, risking misinformation or unsafe actions, especially in critical tasks like spatial navigation. Existing solutions rely heavily on supervised datasets or prompt engineering, which are limited by their dependence on predefined categories or sensitive prompt wording. This paper introduces Semantic Flip, a novel framework that synthesizes auxiliary out-of-distribution samples by independently corrupting either the query or visual memory, without requiring external annotations.
The core idea involves using large language models to generate unanswerable questions by perturbing the original query, and employing object detection plus inpainting techniques to corrupt visual memory, removing visual grounding. These synthetic pairs are used to train a lightweight rejection module on top of a frozen pretrained vision-language model. This approach allows the system to learn a robust refusal signal, effectively distinguishing answerable from unanswerable inputs.
Experimental results on two benchmarks, ABSTAINEQA and SPACEREJECT, demonstrate that Semantic Flip significantly outperforms prompt-based baselines. On ABSTAINEQA, it achieves an F1 score of 0.7110 with a 7B model, surpassing larger prompt-based models. On SPACEREJECT, it reaches an F1 of 0.9559, confirming its robustness in spatial localization tasks over long video memory. The method's simplicity, efficiency, and compatibility make it highly practical for deployment in real-world embodied systems.
This work advances the field by providing a scalable, annotation-free approach to improve model abstention capabilities, addressing a long-standing challenge in embodied AI. Its ability to operate without retraining the core model preserves existing system architectures while enhancing safety. The introduction of the SPACEREJECT benchmark further encourages research into long-term spatial refusal, broadening the scope of trustworthy autonomous agents. Despite some limitations in handling complex multi-modal scenarios, Semantic Flip sets a new direction for scalable, effective refusal mechanisms in multimodal AI systems.
Deep Analysis
Background
The development of vision-language models (VLMs) such as CLIP, BLIP, and Flamingo has significantly advanced embodied AI tasks, including question answering and spatial reasoning. These models leverage large-scale pretraining on image-text pairs, enabling flexible understanding and reasoning. Notable works like ReMEmbR and META-MEMORY introduced long-term memory modules to improve navigation and question answering in complex environments. However, despite these advances, models tend to produce overconfident answers even when queries are unsupported or ambiguous, risking misinformation. Traditional detection methods rely on supervised datasets with predefined categories, which are impractical in open-world scenarios. Recent efforts in out-of-distribution detection focus on post hoc scoring or ensemble methods, but these are often computationally expensive and less effective in multi-modal settings. This context motivates the need for scalable, annotation-free approaches that can teach models to reject unsupported inputs reliably, especially in safety-critical applications like robotics and autonomous navigation.
Core Problem
The core challenge in embodied AI is enabling models to accurately identify when a user query is unanswerable or unsupported by visual evidence. Existing systems often respond confidently to unsupported questions, risking misinformation or unsafe actions. Supervised methods require extensive labeled datasets, which are costly and limited in scope. Prompt engineering offers some flexibility but remains sensitive to wording and lacks robustness. The fundamental problem is how to train models to recognize ungrounded or unsupported inputs without relying on large, curated out-of-distribution datasets. Achieving this requires a method that can generate diverse, realistic unanswerable examples during training, enabling models to generalize to unseen unsupported queries in real-world scenarios.
Innovation
Semantic Flip introduces a novel data augmentation strategy for embodied refusal. It independently corrupts either the query (Q-FLIP) or visual memory (V-FLIP) to generate auxiliary out-of-distribution samples without external annotations. Q-FLIP uses large language models to generate unanswerable questions by paraphrasing or introducing false premises, while V-FLIP employs object detection and inpainting to erase visual grounding. These synthetic pairs are used to train a lightweight rejection head on top of a frozen VLM, enabling the system to distinguish answerable from unanswerable inputs effectively. The approach is simple, scalable, and compatible with existing models, avoiding costly fine-tuning. Additionally, the paper introduces SPACEREJECT, a new benchmark for long-term spatial refusal, extending existing spatial QA datasets to include unanswerable queries, thus evaluating the model's robustness in real-world scenarios.
Methodology
- �� Start with a dataset of answerable (Q, V, A) triplets from embodied tasks.
- �� Generate Q-FLIP samples by prompting large language models (e.g., GPT-3) to produce questions that cannot be answered from the given visual context, simulating referential errors, false premises, or subjective queries.
- �� Generate V-FLIP samples by detecting target objects using models like Grounding-DINO, then removing these objects via inpainting methods such as LaMa, creating visual memory pairs lacking the necessary grounding.
- �� Extract joint embeddings of original and synthetic pairs using a frozen VLM encoder (e.g., Qwen2.5-VL).
- �� Train a small 3-layer MLP classifier on these embeddings to output a rejection score, with labels 0 for answerable, 1 for unanswerable.
- �� During inference, input (Q, V) pairs are encoded, and the rejection head predicts whether to answer or abstain based on a threshold.
- �� The entire pipeline integrates seamlessly into existing embodied systems without modifying the core VLM, enabling scalable deployment across tasks.
Experiments
- �� Conduct evaluations on ABSTAINEQA, a benchmark with answerability annotations, and SPACEREJECT, designed for spatial localization with unanswerable queries.
- �� Use a frozen 7B or 32B Qwen model as the backbone, training only the lightweight rejection module.
- �� Compare against prompt-based baselines, including Coarse and Fine prompts, and prompt-enhanced Chain-of-Thought prompting.
- �� Metrics include F1, balanced accuracy, recall, and specificity, with ablation studies varying the scale of synthetic samples.
- �� Results show that Semantic Flip consistently outperforms prompt-based methods, with significant improvements in OOD detection and refusal accuracy, especially in long-term spatial tasks.
- �� Additional analyses include per-category OOD recall, robustness to different corruptions, and generalization across datasets.
Results
- �� The method achieves an F1 of 0.7110 on ABSTAINEQA with a 7B model, surpassing larger prompt-based models.
- �� On SPACEREJECT, the combined Q-FLIP and V-FLIP approach reaches an F1 of 0.9559, demonstrating high robustness in spatial refusal.
- �� Ablation results indicate both components contribute significantly, with Q-FLIP providing most of the signal.
- �� The approach maintains high performance without retraining the entire VLM, reducing computational costs and simplifying deployment.
- �� The synthetic data effectively teaches models to reject unsupported inputs, generalizing well across different tasks and environments.
Applications
- �� Immediate: deployment in embodied robots for navigation and question answering, ensuring safety by rejecting unsupported queries.
- �� Long-term: development of autonomous agents with reliable self-assessment capabilities, reducing reliance on large labeled datasets, and enabling scalable, trustworthy AI systems in diverse real-world scenarios.
Limitations & Outlook
- �� Synthetic samples are generated via single-modality corruptions, which may not cover all types of invalid inputs, limiting the rejection scope.
- �� Visual inpainting can introduce artifacts, potentially affecting feature quality and robustness.
- �� Effectiveness in highly dynamic, cluttered, or ambiguous environments remains to be validated, requiring further robustness improvements.
Plain Language Accessible to non-experts
想象你在一个工厂里工作,工厂里有很多机器和工人。每次有人问你“这个机器在做什么?”你会根据工厂里的情况回答。有时候,问题很简单,比如“这个机器在生产什么?”你可以直接看机器上的标签和操作情况,给出答案。但有时候,问题很难,比如“这个机器是不是坏了?”或者“工厂里有没有这个零件?”如果你没有看到相关信息,不能确定答案,就应该说“我不知道”。
Semantic Flip就像在工厂里制造一些“假信息”,让你学会在没有足够信息时说“我不知道”。它通过故意扰乱问题或工厂的照片,制造一些看起来合理但实际上没有依据的场景,让你训练识别“无效请求”。这样,机器人或系统就能更聪明地知道什么时候该回答,什么时候该说“我不知道”,避免误导用户或造成错误操作。这种方法简单有效,不需要额外收集大量假数据,就能让系统变得更安全、更可靠。
ELI14 Explained like you're 14
想象你在学校里,有很多老师和同学。有时候有人问你问题,比如“今天的数学作业在哪里?”你可以直接告诉他们答案。但有时候,问题很奇怪,比如“你知道我是不是忘了带书?”或者“这个问题是不是我没学会的?”如果你不知道答案,你会说“我不知道”。
Semantic Flip就像教你在不知道答案时说“我不知道”。它通过制造一些假问题或假图片,让你练习识别哪些问题没有答案。比如,把图片里原本有的东西擦掉,或者让问题变得模糊不清。这样,你就学会了在不确定时说“我不知道”,而不是胡乱猜。这对机器人或智能系统也一样,能让它们在遇到无法回答的问题时,聪明地选择不回答,避免误导别人。这种方法简单又实用,能让机器人变得更聪明、更可靠。
Abstract
Detecting unanswerable user queries remains essential for the reliable deployment of real-world embodied agents. However, modern vision-language models (VLMs) often generate overly confident answers even when the available visual memory cannot support the query. Such overconfidence poses various task-dependent risks. The agent may provide misleading information to the user in Embodied Question Answering and select an arbitrary coordinate and physically guide the user there in spatial reasoning for navigation. Despite these high stakes, only a few prior studies directly address when and how an embodied VLM should respond with "I do not know." This work proposes Semantic Flip, a simple yet effective framework that synthesizes auxiliary out-of-distribution (OOD) samples for embodied refusal without requiring external OOD annotations. The key idea is to independently transform the query and video memory to construct auxiliary OOD pairs that lack sufficient visual grounding. These synthesized pairs enable training a lightweight rejection module on top of a frozen pretrained VLM. The module attaches to any existing VLM-based pipeline without retraining the underlying model. Across two complementary benchmarks, Semantic Flip consistently outperforms strong prompting baselines. This work also introduces SpaceReject, a new refusal benchmark for spatial localization with deliberately unanswerable queries over long video memory, where Semantic Flip achieves an $F_1$ score of 0.9559. The source codes and datasets are publicly available at https://github.com/ndb796/SemanticFlip.