Learning Efficient Recursive Numeral Systems via Reinforcement Learning

Jonathan David Thomas, Andrea Silvi, Devdatt Dubhashi, Emil Carlsson, Moa Johansson

TL;DR

This paper explores how complex, recursive numeral systems, like the one used in English, could emerge from simple learning mechanisms. Using a modified grammar and reinforcement learning, an AI agent successfully learned to create numeral systems that are efficient and comparable to human languages, offering a mechanistic explanation for their development.

What Problem Does This Paper Address?

The emergence and evolution of number systems, particularly complex recursive ones, is an understudied area in AI. While previous work has shown that reinforcement learning (RL) can generate simpler numeral systems, it's unclear how more sophisticated systems, capable of representing arbitrarily large numbers (like English "one hundred and twenty-three"), could arise. Human languages strike a balance between being informative and cognitively simple. This paper aims to bridge this gap by investigating how an RL agent, optimizing for efficiency under a specific grammatical framework, can learn to construct such complex numeral systems, providing a mechanistic explanation for their development.

Methods

The core of the approach involves an RL agent interacting with a modified version of Hurford's (1975) meta-grammar for numeral systems. This meta-grammar defines how numeral systems are constructed using sets of "digits" (D) and "multipliers" (M). The modification to Hurford's grammar makes multipliers more costly, reflecting their higher cognitive load in human languages.

The RL agent's task is to optimize the sets D and M. The agent operates in finite-length episodes, observing its current state (represented by which numbers are in D, M, or neither) and taking one of seven actions. These actions allow the agent to add, move, or remove elements from D and M, effectively modifying the lexicon.

A key component is the reward function, which incentivizes the agent to minimize both the average morphosyntactic complexity (how complex the representation of numbers is) and the lexicon size (the number of unique words/morphemes). This reward function reflects the pressure for efficient communication. The agent's policy is a neural network trained using the REINFORCE algorithm.

To establish a baseline for comparison, the authors also employ a genetic algorithm to estimate the Pareto frontier of optimal numeral systems, balancing lexicon size and morphosyntactic complexity.

Datasets

The paper does not explicitly mention or use traditional datasets for training. Instead, it generates artificial numeral systems and compares them to existing human numeral systems. The "dataset" of human numeral systems is implicitly drawn from prior research, specifically the 94 recursive numeral systems studied by Denić & Szymanik (2024).

Key Insights and Ideas

  • Modified Grammar Matters: A slight modification to Hurford's meta-grammar, by assigning higher costs to multipliers, significantly improves the agent's ability to generate human-like numeral systems. This suggests that the grammatical structure itself plays a crucial role in shaping efficient systems.
  • RL Agent Learns Efficient Trade-offs: The RL agent, driven by a reward function that balances complexity and lexicon size, successfully navigates the space of possible numeral systems to find configurations close to the Pareto frontier. This demonstrates that simple RL mechanisms can learn complex linguistic structures.
  • Mechanistic Explanation for Emergence: The paper provides a plausible mechanistic explanation for how recursive numeral systems might emerge. By optimizing for communicative efficiency, an agent can learn to build systems that mirror the structure and efficiency of human languages.
  • Human Systems on the Frontier: The study reinforces the idea that human numeral systems are generally optimized for efficiency, lying close to the Pareto frontier of lexicon size and morphosyntactic complexity.

Key Results

  • The RL agent, using the modified meta-grammar, generated numeral systems that are demonstrably more similar in composition to human numeral systems than those generated using the original Hurford grammar.
  • The generated lexicons showed a consistent bias towards having a single multiplier element (M), mirroring a common characteristic of human numeral systems.
  • The RL agent's trajectories consistently moved towards configurations that represent an optimal trade-off between average morphosyntactic complexity and lexicon size, often converging to a specific optimal configuration (D = [1,2,3,4], M = [5]) under the chosen reward parameters.

Limitations and Future Work

  • Limited Action Space: The current action space for the RL agent does not allow for the emergence of all types of numeral systems, particularly those with non-sequential elements in D or M (e.g., Type 2-Russian).
  • Myopic Optimization: The RL agent's optimization is myopic, focusing on immediate reward within a fixed episode length. This might not fully capture the long-term evolutionary dynamics of language.
  • Single Agent: The current model uses a single agent. Future work should extend this to a multi-agent setting to explore how pressures for communicative efficiency shape shared lexicons in a more realistic evolutionary context.
  • Hyperparameter Sensitivity: The specific optimal configuration found by the RL agent is dependent on the chosen reward function hyperparameters (α and β). Further analysis is needed to understand how different reward functions affect convergence and the final limit.
  • Exploration of Other Reward Functions: Investigating alternative reward functions could reveal different aspects of language evolution and optimization.

Summary updated

BibTeX
@inproceedings{thomas2024learning,
  author = {Jonathan David Thomas and Andrea Silvi and Devdatt Dubhashi and Emil Carlsson and Moa Johansson},
  title = {{Learning Efficient Recursive Numeral Systems via Reinforcement Learning}},
  booktitle = {AI4MATH @ ICML},
  year = {2024},
  url = {https://openreview.net/forum?id=HTcdrmGrZ0},
}
Figure