Skip to main content
QUICK REVIEW

[Paper Review] What can you do with a rock? Affordance extraction via word embeddings

Nancy Fulda, Daniel Ricks|arXiv (Cornell University)|Mar 9, 2017
Topic ModelingComputer Science23 references20 citations
TL;DR

This paper proposes using word embeddings trained on Wikipedia to extract object affordances—actions feasible in a given context—enabling reinforcement learning agents to prune futile actions in text-based environments. By treating word vectors as a knowledge base and querying them via linear algebra, the method improves learning efficiency and human-like action selection, reducing total steps by up to 60% in tested games while maintaining or improving reward acquisition.

ABSTRACT

Autonomous agents must often detect affordances: the set of behaviors enabled by a situation. Affordance detection is particularly helpful in domains with large action spaces, allowing the agent to prune its search space by avoiding futile behaviors. This paper presents a method for affordance extraction via word embeddings trained on a Wikipedia corpus. The resulting word vectors are treated as a common knowledge database which can be queried using linear algebra. We apply this method to a reinforcement learning agent in a text-only environment and show that affordance-based action selection improves performance most of the time. Our method increases the computational complexity of each learning step but significantly reduces the total number of steps needed. In addition, the agent's action selections begin to resemble those a human would choose.

Motivation & Objective

  • To address the challenge of inefficient exploration in reinforcement learning agents with large action spaces in text-based environments.
  • To enable agents to detect contextually feasible actions (affordances) without relying on handcrafted rules or explicit knowledge bases.
  • To improve learning efficiency by reducing the search space using semantic knowledge from pre-trained word embeddings.
  • To evaluate whether affordance-based action selection leads to faster convergence and more human-like behavior in text-based adventure games.
  • To explore the feasibility of free-form, dynamic action selection using semantic similarity in word vector space.

Proposed method

  • Training word2vec embeddings on a large Wikipedia corpus to create a dense semantic representation of words and their contextual relationships.
  • Querying the word vector space using vector arithmetic (e.g., analogical reasoning) to infer possible actions for a given object.
  • Using the cosine similarity between object and verb vectors to identify semantically plausible actions (affordances) in a given state.
  • Integrating the affordance detection module into a Q-learning agent to restrict action selection to semantically plausible verbs.
  • Applying a dynamic action selection mechanism that expands the action set per state using top semantic neighbors of the current object.
  • Comparing affordance-based action selection against random, concept-based, and co-occurrence-based reduction techniques in a text-based game environment.

Experimental results

Research questions

  • RQ1Can word embeddings trained on Wikipedia encode implicit affordance knowledge that enables agents to avoid infeasible actions?
  • RQ2Does affordance-based action pruning improve learning efficiency in text-based reinforcement learning environments?
  • RQ3How does affordance-based action selection compare to alternative reduction methods like random selection, ConceptNet filtering, or co-occurrence thresholds?
  • RQ4Can free-form action generation using semantic similarity produce more creative and effective behaviors than fixed verb lists?
  • RQ5To what extent does affordance-based selection lead to human-like action choices in text-based games?

Key findings

  • Affordance-based action selection significantly reduced the number of learning steps required, improving sample efficiency by up to 60% in tested games.
  • The method outperformed random reduction, ConceptNet-based filtering, and co-occurrence thresholding, which often pruned essential actions and degraded performance.
  • Agents using affordance detection began selecting actions that closely resembled human choices, indicating improved semantic reasoning.
  • The free-form action generation mechanism, which dynamically expanded the action set using semantic neighbors, produced inventive and contextually appropriate actions not present in the original verb list.
  • Intrinsic reward-based exploration failed to outperform affordance-based pruning, indicating that semantic constraints are more effective than reward-based exploration alone.
  • The approach demonstrated robustness across diverse text-based games, with consistent performance improvements even in complex environments with large action spaces.

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.