In the early days of machine learning, researchers faced a stark divide. On one side were "attribute-value" systems (like the famous ID3) that were fast and statistically robust but could only handle simple, flat data. On the other were "logical inference" systems that could understand complex relationships and structures but were often slow and required a "human-in-the-loop" to guide them. J.R. Quinlan’s 1990 paper, Learning Logical Definitions from Relations, introduced FOIL (First-Order Inductive Learner), a landmark system that bridged this gap by bringing the statistical efficiency of the former to the expressive power of the latter.
TL;DR
FOIL is an algorithm that learns complex, human-readable logical rules (Horn clauses) directly from relational data. It successfully adapts the information-theoretic heuristics of decision tree learning to the world of first-order logic, enabling the automated discovery of recursive definitions and structural concepts with high efficiency.
What Problem Does This Paper Address?
The paper tackles the "expressive power" bottleneck. Most early ML systems used propositional logic, where every object is described by a fixed set of attributes (e.g., Color=Red, Size=Large). This works for simple classification but fails miserably when data is structured, like a social network or a chemical molecule.
To describe a simple concept like "two nodes are linked to each other" in a network using fixed attributes, you would need a "horrific" and nearly unreadable list of every possible pair of attributes.
As shown in Figure 1, a network's complexity can easily outstrip a fixed attribute list. FOIL addresses this by allowing the system to learn rules in first-order logic, such as can-reach(X, Y) :- linked-to(X, Z), can-reach(Z, Y), which is compact, powerful, and works regardless of the network's size.
Methods
FOIL operates using a "covering" approach. It works in two main loops:
- The Outer Loop: It looks for a single logical rule (a clause) that explains some of the positive examples. Once found, it removes those explained examples and repeats the process until all positive examples are "covered."
- The Inner Loop: This is where the magic happens. To build a rule, FOIL starts with an empty right-hand side and greedily adds "literals" (conditions).
What makes FOIL special is its Gain Heuristic. Borrowing from information theory, FOIL calculates which new condition provides the most "information gain" regarding the target concept. This allows it to navigate a massive search space of possible logical connections without needing a human "oracle" to guide it.
Additionally, FOIL includes a clever mechanism to handle recursion. To prevent the system from creating infinite loops (like defining a word using itself), FOIL enforces a "partial ordering" on constants, ensuring that recursive calls always move toward a "simpler" state.
Datasets
Quinlan evaluated FOIL on six diverse tasks from the existing literature:
- Kinship Relations: Learning family ties (aunt, uncle, etc.) from a small population.
- List Processing: Learning standard programming functions like
appendandreverse. - Winston’s Arch: A classic AI benchmark for learning the structural definition of an "arch."
- Michalski’s Trains: Predicting the direction of a train based on the properties and arrangement of its cars.
- Chess Endgame: Identifying illegal positions in a White King and Rook vs. Black King setup.
- Eleusis: Discovering the secret rules of a card game based on sequences of plays.
Key Insights and Ideas
- Statistical Guidance for Logic: The paper proves that you don't need complex theorem provers to learn logic; simple statistical heuristics (like Gain) are remarkably effective at picking the right "building blocks" for a rule.
- Handling Noise with MDL: FOIL uses the Minimum Description Length (MDL) principle. It stops adding to a rule if the "cost" of describing the rule in bits becomes greater than the "cost" of simply listing the exceptions. This prevents the system from over-fitting to noisy data.
- Recursive Safety: By tracking the relationships between variables, FOIL can safely learn recursive definitions (like how a list is defined by its tail) without falling into logical paradoxes.
Key Results
FOIL demonstrated significant improvements over contemporary systems:
- Chess Endgame: FOIL achieved 99.4% accuracy on 1,000 training objects in just 20.8 seconds. In contrast, competing systems like DUCE only reached 37.7% accuracy and took 10 hours.
- Kinship: On Hinton’s kinship task, FOIL was correct on 78 out of 80 test cases, outperforming the connectionist (neural network) models of the time.
- Efficiency: Most tasks were solved in fractions of a second or a few minutes on a DECstation 3100, proving that relational learning could be computationally practical.
Limitations and Future Work
Despite its success, Quinlan noted several "glaring weaknesses":
- Greedy Search: Because FOIL makes the "best" choice at each step without looking ahead, it can get stuck in "blind alleys" where a combination of two conditions is necessary, but neither looks good on its own (the "parity" problem).
- Discrete Only: The version of FOIL described only handles discrete constants, not continuous numbers (like age or weight).
- No Predicate Invention: FOIL can only use the relations it is given; it cannot "invent" a new intermediate concept to simplify a complex rule.
Quinlan suggested that future versions could incorporate beam search (keeping the top $N$ best partial rules) to overcome the short-sightedness of the greedy approach.
Summary updated