Skip to main content
QUICK REVIEW

[Paper Review] WordCraft: An Environment for Benchmarking Commonsense Agents

Minqi Jiang, Jelena Luketina|arXiv (Cornell University)|Jul 17, 2020
Topic ModelingComputer Science42 references10 citations
TL;DR

WordCraft introduces a fast, lightweight reinforcement learning environment based on Little Alchemy 2 to benchmark commonsense reasoning in agents. It enables efficient training and evaluation by grounding entities in natural language and integrating knowledge graphs via ComplEx link prediction, significantly improving zero-shot generalization over KG-free baselines.

ABSTRACT

The ability to quickly solve a wide range of real-world tasks requires a commonsense understanding of the world. Yet, how to best extract such knowledge from natural language corpora and integrate it with reinforcement learning (RL) agents remains an open challenge. This is partly due to the lack of lightweight simulation environments that sufficiently reflect the semantics of the real world and provide knowledge sources grounded with respect to observations in an RL environment. To better enable research on agents making use of commonsense knowledge, we propose WordCraft, an RL environment based on Little Alchemy 2. This lightweight environment is fast to run and built upon entities and relations inspired by real-world semantics. We evaluate several representation learning methods on this new benchmark and propose a new method for integrating knowledge graphs with an RL agent.

Motivation & Objective

  • To address the lack of lightweight, semantics-rich RL environments that ground knowledge in real-world concepts.
  • To enable efficient benchmarking of agents that leverage commonsense knowledge from natural language and knowledge graphs.
  • To investigate how pre-trained knowledge graph embeddings can improve zero-shot generalization in RL agents.
  • To develop and evaluate a method for conditioning RL policies on knowledge graph predictions using ComplEx link scores.

Proposed method

  • WordCraft is built as a Markov Decision Process with 700 entities and 3,417 valid item combinations, simulating a crafting game based on Little Alchemy 2.
  • Entities are grounded using natural language semantics, enabling alignment with external knowledge sources like ConceptNet.
  • A ComplEx model is trained on a knowledge graph of valid recipes to predict missing relations between entities.
  • The policy network uses a weighted sum of ComplEx-predicted relation scores (e.g., combinesWith, componentOf) and self-attention weights to guide action selection.
  • The method conditions the agent’s policy on knowledge graph embeddings, allowing it to generalize to unseen combinations.
  • Evaluation uses zero-shot success rates on depth-1 and depth-2 tasks with varying numbers of distractors, comparing KG-augmented and KG-free agents.

Experimental results

Research questions

  • RQ1Can knowledge graph embeddings improve zero-shot generalization in RL agents within a symbolic reasoning environment?
  • RQ2How does the choice of relation scores (e.g., combinesWith vs. componentOf) affect policy performance and action selection?
  • RQ3To what extent does access to a full knowledge graph outperform partial or no knowledge in unseen task generalization?
  • RQ4How does the integration of ComplEx-predicted scores compare to end-to-end RL without external knowledge?
  • RQ5Does the model’s performance improve with more training data, even without explicit knowledge integration?

Key findings

  • Access to a full knowledge graph via ComplEx significantly improves zero-shot success rates, especially in low-distractor settings.
  • Full-KG agents that use only the 'combinesWith' relation score achieve high success rates, though they sometimes select the same entity twice due to self-combination predictions.
  • Partial-KG agents do not consistently outperform KG-free agents, suggesting that RL agents can learn some relational inductive biases from data alone.
  • KG-augmented agents show superior early training performance, achieving higher zero-shot success rates faster than KG-free counterparts.
  • The 'componentOf' relation score leads to suboptimal behavior, as it often causes agents to select the same entity twice, favoring the most probable component of the goal.
  • Human performance remains stable across 1 and 8 distractors, suggesting that human reasoning is robust to increased ambiguity, unlike some model behaviors.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.