Introduction
In the early 1980s, artificial intelligence research was heavily focused on "first principles" generation—constructing solutions from scratch using rigid rule sets. However, human cognition often follows a different path: we typically recall a similar past experience and adapt it to meet current constraints. This paper introduces the Constrained Example Generation (CEG) system, a framework designed to study how an AI can learn the appropriateness of different modification strategies within a controlled "mini-domain."
The central question addressed is how a system can learn when and how to modify an existing example to satisfy specific constraints. For instance, if a target requires a line with a steeper, negative slope, the system must determine which mathematical operators to apply and in what sequence.
System Architecture
The CEG system operates as a modular problem solver, where different components handle specific aspects of the retrieval and modification process.
The architecture consists of several specialized modules:
- Retriever: Identifies the closest matching example from a database.
- Modifier: Applies "difference-reducing operators" to iteratively move the example toward the goal.
- Judge: Evaluates the "goodness" of a candidate based on global and local constraint satisfaction.
- Agenda-Keeper & History-Keeper: These modules manage the sequence of actions and record the system's trajectory to prevent loops and track progress.
- Noticer/Generalizer: This is the learning component. It monitors performance to discover heuristics—facts about which operators are most effective in specific contexts. Notably, in early iterations, this module was conceptualized as the "heart" of the learning process but remained a work in progress (indicated by dashed lines in the diagram).
The Mini-Domain: Linear Functions
To study these mechanics, the authors utilized a domain of linear functions ($ay = bx + c$). The system manipulates the x-coefficient using five primitive routines:
- ms1: Add 1 (linear increase).
- ms2: Double (exponential increase).
- ms3: Square (power increase).
- ms4: Subtract 1 (linear decrease).
- mn: Change the sign (negation).
The "dataset" is not static; it begins with an initial seed set of examples. Experiments involved varying this seed set to observe its impact on the system's ability to learn and generalize.
Key Insights and Learning Dynamics
The research yielded several critical insights into the nature of machine learning and problem-solving:
The Role of the Seed Set
The diversity of the initial knowledge base (KB) is a primary determinant of success. If the system's initial examples are limited—for instance, if it never encounters a slope between 0 and 1—it may fail to learn the nuances of certain operators. A specific example is the squaring operator (ms3), which increases steepness for values greater than 1 but decreases it for values between 0 and 1. Without a diverse seed set, the system cannot discover this "weakness."
Randomness vs. Structured Analysis
Counterintuitively, selecting operators at random often outperformed fixed regimes. Randomness allowed the system to discover powerful routines like ms3 more frequently. However, random sequences present a challenge for the "Noticer" module; they are difficult to analyze and transform into structured, reusable knowledge.
Persistence and Inverse Relationships
Effective learning requires the system to endure temporary performance dips. For example, applying ms1 followed by ms4 results in no net change. A system that halts as soon as a modification makes things "locally worse" will fail to discover that these two operators are inverses.
Knowledge vs. Search Complexity
There is a fundamental trade-off between the richness of the knowledge base and the complexity of the search algorithm. A diverse and well-populated KB allows for a simpler "Agenda-Keeper," as the system is more likely to start near a valid solution.
Results and Future Directions
The CEG system successfully acquired specific heuristics, such as the realization that doubling (ms2) is a reliable way to increase steepness, while squaring (ms3) is faster but context-dependent. It also learned procedural preferences, such as fixing the steepness of a line before addressing its sign.
While the results were initially limited to linear functions, the core CEG model proved robust enough for application in other domains like LISP programming and algebra. Future work aims to address the "credit assignment task" and scaling the system to more complex, real-world environments.
Summary updated