On the definition of a general learning system with user-defined operators

Fernando Martínez-Plumed, Cèsar Ferri Ramirez, José Hernández-Orallo, M. José Ramírez-QuintanaarXiv 2013 · OpenReview

TL;DR

This paper introduces gErl, a novel machine learning system that allows users to define custom operators for problem-specific data manipulation. By learning heuristics through reinforcement learning and enabling policy reuse via abstract state/action representations, gErl demonstrates flexibility and efficiency across diverse structured prediction tasks, including IQ tests.

What Problem Does This Paper Address?

Traditional machine learning systems often struggle with complex, structured data because they either flatten the data into a less interpretable format or rely on specialized, fixed operators. This limits their adaptability to new problems and data representations. The authors identify a gap in general-purpose learning systems that can handle diverse structured data while preserving its original representation and allowing for user-defined, problem-specific transformations. They propose a paradigm where users can define and adapt operators, making the learning system itself more flexible and capable of tackling a wider range of problems.

Methods

The core of gErl is its flexible architecture, implemented in the functional language Erlang. Key components include:

  • User-Defined Operators: Users can define custom operators to manipulate rules and programs, allowing for problem-specific data transformations. This is facilitated by meta-operators that allow for operations like replacing, inserting, or deleting parts of rules.
  • Reinforcement Learning (RL) for Heuristics: Instead of fixed heuristics, gErl learns them through an RL approach. The system views the application of an operator to a rule as an action within a state-action space.
  • Abstract State and Action Representation: To make RL feasible and enable policy reuse, states (populations of rules and programs) and actions (operator-rule pairs) are represented by abstract features. This abstraction allows for knowledge transfer between tasks, even if they are dissimilar.
  • Policy Reuse (Transfer Learning): The learned Q-table from a source task is used to initialize the learning process for a target task. This significantly accelerates learning by leveraging previously acquired knowledge.
  • Program Generation: Rules are combined into programs, and a regression model is used to guide the selection of actions (operator-rule applications) to optimize program quality.

Datasets

The paper evaluates gErl on several types of structured problems:

  • List Patterns: Experiments on structured prediction problems involving list manipulation.
  • IQ Tests:
    • Odd-one-out problems: Using a dataset of 35 examples coded with the R-ASCM representation.
  • Raven's Progressive Matrices (RPM): Tested on subsets C, D, and E of the Standard Progressive Matrices (SPM), involving geometrical reasoning.
  • Thurstone Letter Series Completion Problems: Tested on 15 problems from a standard intelligence test.

Key Insights and Ideas

  • Operator Flexibility is Key: Allowing users to define custom operators is a powerful way to adapt a learning system to diverse data structures and problem domains, moving beyond fixed, built-in operations.
  • Abstract Representations Enable Transfer: Representing states and actions with abstract features is crucial for effective policy reuse and transfer learning, allowing knowledge to be applied across seemingly unrelated tasks.
  • RL for Heuristic Discovery: Learning heuristics through reinforcement learning is a robust approach when operators are dynamic and problem-dependent, as it avoids the need for manual heuristic engineering.
  • "System for Writing Machine Learning Systems": gErl can be viewed as a meta-learning system, where the learning process itself is guided by learned heuristics and adaptable operators, effectively allowing users to "build" specialized learning systems.

Key Results

  • List Patterns: The system successfully learned to solve list manipulation problems, demonstrating the application of operators and policy reuse.
  • IQ Tests:
    • Odd-one-out: gErl achieved 80% accuracy on odd-one-out problems, matching human performance and outperforming a previous approach (Ruiz [54]) in terms of generality.
  • Raven's Progressive Matrices: gErl solved 35 out of 36 matrices, achieving a score comparable to above-average human adults and outperforming previous AI approaches.
  • Thurstone Letter Series: gErl learned 14 out of 15 problems, outperforming several existing pattern generator variants and human subjects.
  • Policy Reuse: Experiments showed significant speedups in learning when reusing policies, even between problems with different operators.

Limitations and Future Work

  • Operator Definition Complexity: Constructing new operators can be challenging and requires expertise in the functional language (Erlang).
  • Efficiency with Large Datasets: The system becomes inefficient when dealing with a very large number of examples.
  • Future Work:
    • Investigating features for operators.
  • Using subsets of examples for training and others for coverage calculation.
  • Exploring the use of this framework to discover new properties and principles for more general machine learning systems.

Summary updated

Abstract

In this paper, we push forward the idea of machine learning systems whose operators can be modified and fine-tuned for each problem. This allows us to propose a learning paradigm where users can write (or adapt) their operators, according to the problem, data representation and the way the information should be navigated. To achieve this goal, data instances, background knowledge, rules, programs and operators are all written in the same functional language, Erlang. Since changing operators affect how the search space needs to be explored, heuristics are learnt as a result of a decision process based on reinforcement learning where each action is defined as a choice of operator and rule. As a result, the architecture can be seen as a 'system for writing machine learning systems' or to explore new operators where the policy reuse (as a kind of transfer learning) is allowed. States and actions are represented in a Q matrix which is actually a table, from which a supervised model is learnt. This makes it possible to have a more flexible mapping between old and new problems, since we work with an abstraction of rules and actions. We include some examples sharing reuse and the application of the system gErl to IQ problems. In order to evaluate gErl, we will test it against some structured problems: a selection of IQ test tasks and some experiments on some structured prediction problems (list patterns).
BibTeX
@misc{martinezplumed2013definition,
  author = {Fernando Martínez-Plumed and Cèsar Ferri Ramirez and José Hernández-Orallo and M. José Ramírez-Quintana},
  title = {{On the definition of a general learning system with user-defined operators}},
  year = {2013},
  eprint = {1311.4235},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1311.4235},
}
Figure