Abstract
Text-based games are becoming commonly used in reinforcement learning as real-world simulation environments. They are usually imperfect information games, and their interactions are only in the textual modality. To challenge these games, it is effective to complement the missing information by providing knowledge outside the game, such as human common sense. However, such knowledge has only been available from textual information in previous works. In this paper, we investigate the advantage of employing commonsense reasoning obtained from visual datasets such as scene graph datasets. In general, images convey more comprehensive information compared with text for humans. This property enables to extract commonsense relationship knowledge more useful for acting effectively in a game. We compare the statistics of spatial relationships available in Visual Genome (a scene graph dataset) and ConceptNet (a text-based knowledge) to analyze the effectiveness of introducing scene graph datasets. We also conducted experiments on a text-based game task that requires commonsense reasoning. Our experimental results demonstrated that our proposed methods have higher and competitive performance than existing state-of-the-art methods.
Introduction
In the field of Reinforcement Learning (RL), text-based games like Zork or TextWorld present a unique challenge of partial observability. Agents must navigate and interact with the world using only textual descriptions. To succeed in tasks like cleaning a house, agents require "common sense"—external knowledge about where objects typically belong. Traditionally, this knowledge has been sourced from textual knowledge bases like ConceptNet.
However, textual knowledge bases often suffer from redundancy and a lack of specific spatial information. For instance, finding that a "dirty fork" belongs in a "dishwasher" might require traversing multiple abstract nodes in ConceptNet. Furthermore, ConceptNet relies heavily on generic tags like "at location," which lacks the precision needed for physical cleanup tasks.
Methodology and Datasets
The researchers propose leveraging Visual Genome (VG), a large-scale scene graph dataset, to provide more direct spatial commonsense. Unlike text-only databases, scene graphs are derived from actual images, capturing dense, grounded relationships like (fork, IN, dishwasher).
The Scene Graph Agent
The proposed architecture replaces or augments ConceptNet with Visual Genome data. The agent uses Graph Attention Networks (GAT) to encode these knowledge graphs and a Co-Attention mechanism to align textual observations from the game with relevant commonsense triplets.
Curriculum Learning: ConceptNet + SG
A hybrid approach was also tested where the agent is first trained on abstract textual knowledge (ConceptNet) and then refined with concrete visual knowledge (Scene Graphs), mimicking human learning patterns from abstract concepts to concrete physical interactions.
Analysis of Spatial Relationships
A key finding of this research is the difference in relationship distributions between visual and textual datasets. Visual Genome is dominated by specific spatial predicates such as "on," "in," and "under." In contrast, ConceptNet is heavily skewed toward the "related to" predicate, which offers less actionable information for an agent performing a physical task.
Experimental Results
The agents were evaluated on the TextWorld Commonsense (TWC) benchmark across varying difficulties.
- Efficiency: The Scene Graph (SG) agent demonstrated superior efficiency, completing "Easy" tasks in an average of 17.23 steps, compared to 20.34 steps for the ConceptNet baseline.
- Generalization: On the "Medium" difficulty test set with unseen objects (OUT), the hybrid ConceptNet + SG model achieved a normalized score of 0.63, significantly outperforming the 0.50 score of the standalone ConceptNet agent. This suggests that visual relationships are more universal and transferable to new objects.
- Complexity Challenges: Performance on "Hard" levels remains a challenge for all models, indicating that while commonsense helps with local object placement, long-term multi-room navigation requires further architectural improvements.
Conclusion and Future Work
This work demonstrates that visual scene graphs provide a richer, more direct source of spatial commonsense for RL agents than traditional text-based networks. Future research will focus on improving the utilization of specific edge labels (e.g., distinguishing "on" from "under" more effectively) and developing better navigation models for complex, multi-room environments.
Summary updated