Skip to main content
QUICK REVIEW

[Paper Review] AIXIjs: A Software Demo for General Reinforcement Learning

John Aslanides|arXiv (Cornell University)|May 22, 2017
Advanced Bandit Algorithms ResearchDecision Sciences11 references6 citations
TL;DR

AIXIjs is a JavaScript-based software framework that implements and experiments with general reinforcement learning (GRL) agents, including variants of AIXI such as knowledge-seeking agents, Thompson sampling, and optimism-based agents. It enables empirical comparison of these agents in non-trivial environments, offering interactive demos and a Gym-like interface to study their behavior and theoretical properties.

ABSTRACT

Reinforcement learning is a general and powerful framework with which to study and implement artificial intelligence. Recent advances in deep learning have enabled RL algorithms to achieve impressive performance in restricted domains such as playing Atari video games (Mnih et al., 2015) and, recently, the board game Go (Silver et al., 2016). However, we are still far from constructing a generally intelligent agent. Many of the obstacles and open questions are conceptual: What does it mean to be intelligent? How does one explore and learn optimally in general, unknown environments? What, in fact, does it mean to be optimal in the general sense? The universal Bayesian agent AIXI (Hutter, 2005) is a model of a maximally intelligent agent, and plays a central role in the sub-field of general reinforcement learning (GRL). Recently, AIXI has been shown to be flawed in important ways; it doesn't explore enough to be asymptotically optimal (Orseau, 2010), and it can perform poorly with certain priors (Leike and Hutter, 2015). Several variants of AIXI have been proposed to attempt to address these shortfalls: among them are entropy-seeking agents (Orseau, 2011), knowledge-seeking agents (Orseau et al., 2013), Bayes with bursts of exploration (Lattimore, 2013), MDL agents (Leike, 2016a), Thompson sampling (Leike et al., 2016), and optimism (Sunehag and Hutter, 2015). We present AIXIjs, a JavaScript implementation of these GRL agents. This implementation is accompanied by a framework for running experiments against various environments, similar to OpenAI Gym (Brockman et al., 2016), and a suite of interactive demos that explore different properties of the agents, similar to REINFORCEjs (Karpathy, 2015). We use AIXIjs to present numerous experiments illustrating fundamental properties of, and differences between, these agents.

Motivation & Objective

  • . The paper aims to provide an accessible, open-source platform for researchers and students to explore and demonstrate universal AI agents.
  • It addresses the challenge of empirically studying AIXI variants, which are largely theoretical and difficult to test.
  • The framework supports comparative experiments on exploration strategies and learning performance across different environments.
  • It seeks to bridge the gap between theoretical AIXI models and practical reinforcement learning research.
  • The project serves as a reference implementation and educational tool for general reinforcement learning.

Proposed method

  • . AIXIjs is implemented in JavaScript to ensure broad accessibility and web-based deployment.
  • The framework includes a modular environment interface similar to OpenAI Gym, enabling plug-and-play testing of agents.
  • It implements multiple AIXI variants: knowledge-seeking agents, Thompson sampling, optimism-based agents, and MDL agents.
  • The system supports Monte Carlo tree search (MCTS) for planning in partially observable environments.
  • Interactive demos visualize agent behavior, exploration patterns, and learning progress in real time.
  • Experiments are conducted in small, well-defined environments to isolate and compare agent properties.

Experimental results

Research questions

  • RQ1. How do different AIXI variants—such as knowledge-seeking agents and Thompson sampling—perform in non-trivial, structured environments?
  • RQ2What are the qualitative and quantitative differences in exploration behavior among universal reinforcement learning agents?
  • RQ3Can empirical comparisons of AIXI variants reveal insights into asymptotic optimality and learning efficiency?
  • RQ4How do prior assumptions and exploration strategies affect long-term performance in unknown environments?
  • RQ5To what extent can a lightweight, web-based framework like AIXIjs support meaningful empirical evaluation of general reinforcement learning agents?

Key findings

  • . AIXIjs successfully enables the first empirical comparisons of multiple AIXI variants in non-trivial environments, demonstrating distinct behavioral patterns.
  • Knowledge-seeking agents exhibit systematic exploration driven by epistemic uncertainty, differing from reward-maximizing strategies.
  • Thompson sampling agents show stable and effective exploration, aligning with theoretical expectations of asymptotic optimality.
  • Optimism-based agents demonstrate faster initial learning in some environments but may over-explore in others.
  • The framework's interactive demos effectively illustrate differences in exploration and learning dynamics across agent types.
  • The open-source implementation serves as a functional reference for both teaching and research in general reinforcement learning.

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.