TL;DR
This paper introduces LIGHT-Quests, a new dataset of goal-driven scenarios in a fantasy text-adventure game, and ATOMIC-LIGHT, a domain-adapted commonsense knowledge graph. They propose a reinforcement learning agent that leverages these resources to learn to act and communicate naturally within the game world, demonstrating improved performance over agents trained without this rich, interactive context.
What Problem Does This Paper Address?
Creating AI agents that can effectively interact with humans and achieve goals in complex, dynamic environments is a significant challenge. While progress has been made in natural language processing and goal-oriented agents separately, agents that can seamlessly combine natural language communication with goal-directed actions in interactive settings remain primitive. Existing datasets often lack the grounding and interactive nature required to train such agents, and agents often struggle to acquire commonsense knowledge necessary for realistic interactions. This paper tackles this by developing agents that can understand and act upon natural language motivations within a rich, interactive fantasy world.
Methods
The authors introduce a reinforcement learning (RL) agent with a novel architecture. Key components include:
- Factorized Action Space: The agent's action space is split into distinct action commands and dialogue utterances, allowing for a balance between physical actions and communication.
- Language and Commonsense Pre-training: The agent's encoder is pre-trained on large language models and a custom commonsense knowledge graph (ATOMIC-LIGHT) adapted to the fantasy domain. This imbues the agent with relevant priors for acting and reasoning in the game world.
- Switch Policy: A learned switch mechanism dynamically decides whether the agent should perform an action or generate dialogue, based on the current context. This is trained to mimic the action-to-dialogue ratio observed in human demonstrations.
- RL Training: The agent is trained using A2C (Advantage Actor-Critic), optimizing for both action completion (act goals) and naturalness of dialogue (speech goals). Rewards are derived from the game engine for achieving goals and from a learned "Dungeon Master" for dialogue quality.
Datasets
- LIGHT-Quests: A new dataset of quests for the LIGHT text-adventure game. Each quest includes a character persona, setting, natural language motivations at varying levels of abstraction, and corresponding in-game goals. Human demonstrations of players completing these quests are also collected.
- ATOMIC-LIGHT: A domain-adapted version of the ATOMIC commonsense knowledge graph, tailored to the fantasy setting of LIGHT. This dataset provides structured knowledge about intents, effects, wants, and needs relevant to the game world.
- Original LIGHT Dataset: Used for pre-training the partner agent and for dialogue modeling.
- Reddit Dialogue Corpus: Used for general language modeling pre-training.
Key Insights and Ideas
- Interactivity is Crucial for Language Learning: The paper strongly suggests that interactive environments, like text-based games, are essential for training agents that can effectively ground language in actions and achieve goals. Static pre-training alone is less effective for RL in these settings.
- Domain-Specific Commonsense Matters: Adapting a general commonsense knowledge graph (ATOMIC) to the specific fantasy domain (ATOMIC-LIGHT) significantly improves agent performance, highlighting the importance of relevant world knowledge.
- Pre-training Strategy is Key for RL: Unlike supervised learning, where more pre-training generally leads to better performance, in RL, the type of pre-training matters more. A balanced approach, like the "Adaptive" model, which combines general and domain-specific pre-training, yields the best results.
- Motivations Drive Behavior: The presence of explicit natural language motivations is critical for agents to act consistently and speak naturally, as demonstrated by the performance gains when motivations are included in the input.
Key Results
- Zero-Shot Performance: The proposed RL agent, particularly when pre-trained with the "Adaptive" strategy, achieves strong zero-shot performance on held-out human quest demonstrations, acting consistently and speaking naturally.
- RL vs. Supervised Learning: The RL agent significantly outperforms supervised methods (behavioral cloning) on the LIGHT-Quests task, underscoring the benefits of interactive learning.
- Pre-training Benefits: The "Adaptive" model, combining general and LIGHT-specific pre-training, consistently outperforms other pre-training strategies across various metrics (Act Goals, Speech Goals, Act & Speech Goals) in both RL and supervised settings. For instance, in RL, the Adaptive model achieved an Act Goals score of 0.420, compared to Scratch (0.418) and General+Light (0.251).
- Learned Switch Outperforms Hardcoded: A learned switch policy that adapts to the action-to-utterance ratio in the training data leads to better zero-shot generalization and faster learning compared to a hardcoded switch.
Limitations and Future Work
- Data Inefficiency: While pre-training helps, RL training can still be data-inefficient. The authors use a fixed encoder to mitigate this, but further improvements are desirable.
- Potential for Specification Gaming: The authors acknowledge that in RL, agents can sometimes exploit loopholes in reward functions. While their Adaptive model shows some resilience, this remains a general challenge.
- Mitigating Bias: The paper mentions efforts to filter outputs and use curated datasets to mitigate issues like non-normative language usage and dataset bias, but these are ongoing challenges.
- Future Work: The authors suggest exploring more complex agent architectures, richer interaction dynamics, and applying these methods to more diverse domains beyond fantasy text-games. They also highlight the potential for these agents to serve as platforms for studying human-AI communication and planning.
Summary updated