Skip to main content
QUICK REVIEW

[Paper Review] Action Assembly: Sparse Imitation Learning for Text Based Games with Combinatorial Action Spaces

Chen Tessler, Tom Zahavy|arXiv (Cornell University)|May 23, 2019
Multimodal Machine Learning ApplicationsComputer Science36 references11 citations
TL;DR

This paper introduces Sparse Imitation Learning (Sparse-IL), a computationally efficient method that combines compressed sensing with imitation learning to solve text-based games with combinatorial action spaces. By using a novel Integer K-Orthogonal Matching Pursuit (IK-OMP) algorithm to reconstruct meaningful natural language actions from dense word embedding sums, the approach successfully solves the full Zork1 game—featuring ~10 million possible actions—using both perfect and noisy expert demonstrations.

ABSTRACT

We propose a computationally efficient algorithm that combines compressed sensing with imitation learning to solve text-based games with combinatorial action spaces. Specifically, we introduce a new compressed sensing algorithm, named IK-OMP, which can be seen as an extension to the Orthogonal Matching Pursuit (OMP). We incorporate IK-OMP into a supervised imitation learning setting and show that the combined approach (Sparse Imitation Learning, Sparse-IL) solves the entire text-based game of Zork1 with an action space of approximately 10 million actions given both perfect and noisy demonstrations.

Motivation & Objective

  • Address the challenge of combinatorial action spaces in text-based games, where action enumeration is computationally infeasible.
  • Overcome the inefficiency of traditional imitation learning in large action spaces by leveraging compressed sensing and word embeddings.
  • Enable robust policy learning from imperfect or noisy expert demonstrations in natural language environments.
  • Develop a method that generalizes across semantically similar actions (e.g., 'drop', 'throw', 'discard') using pre-trained word embeddings.
  • Achieve end-to-end solution of complex text-based games like Zork1 without exhaustive action enumeration.

Proposed method

  • Use a neural encoder to map game states to dense continuous representations of actions (a_SoE), defined as the sum of word embeddings of the intended action.
  • Apply Integer K-Orthogonal Matching Pursuit (IK-OMP) to reconstruct the most likely Bag-of-Words (BoW) action from the continuous embedding vector a_SoE.
  • Incorporate a fitness function to score candidate BoW actions and select the best one for execution in the environment.
  • Feed the selected action into a language model to generate a natural language command (a_env) that the game interpreter can parse.
  • Train the encoder via supervised imitation learning using mean squared error (MSE) between predicted and demonstrated a_SoE vectors.
  • Leverage pre-trained word embeddings (e.g., GloVe) to enable semantic generalization, improving robustness to synonymy and noise.

Experimental results

Research questions

  • RQ1Can compressed sensing techniques be effectively adapted to recover natural language actions from learned embedding representations in large combinatorial action spaces?
  • RQ2How does the proposed IK-OMP algorithm perform in reconstructing true actions from noisy or corrupted embedding sums compared to baseline CS methods?
  • RQ3To what extent can imitation learning with embedding-based action representations generalize across semantically similar but lexically different actions?
  • RQ4Can a hybrid approach of compressed sensing and imitation learning solve the full Zork1 game with ~10 million actions using only expert demonstrations, even when noisy?
  • RQ5Does the use of pre-trained word embeddings significantly improve policy generalization and robustness to demonstration errors compared to end-to-end learning?

Key findings

  • Sparse-IL successfully solves the entire Zork1 game, including the full 10-million-action action space, for the first time using imitation learning with expert demonstrations.
  • IK-OMP outperforms baseline CS methods and end-to-end models like DeepCS-2 in both reconstruction accuracy and downstream task performance, especially under noisy demonstrations.
  • The method generalizes effectively to semantically similar actions (e.g., 'drop', 'throw', 'discard') due to the semantic inductive bias of pre-trained word embeddings.
  • Even with 40% probability of receiving a sub-optimal action in demonstrations, Sparse-IL maintains high performance, demonstrating robustness to noisy expert data.
  • The training process shows a consistent improvement in signal-to-noise ratio (SNR) of the embedding representation, indicating effective learning of a clean action representation.
  • The use of sum-of-embeddings (a_SoE) as a supervised signal leads to better generalization than directly predicting BoW vectors, due to the geometric clustering of semantically similar words in embedding space.

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.