Artificial Expert Intelligence through PAC-reasoning

Shai Shalev-Shwartz, Amnon Shashua, Gal Beniamini, Yoav Levine, Or Sharir, Noam Wies, Ido Ben-Shaul, Tomer Nussbaum, Shir Granot PeledarXiv 2024 · DOI

Abstract

Current advancements in Large Language Models (LLMs) have focused on "System 2" reasoning—reflective processes like Chain-of-Thought and search. However, these systems remain vulnerable to error accumulation in long reasoning chains. This paper introduces Artificial Expert Intelligence (AEI), a framework that applies Probably Approximately Correct (PAC) learning to inference-time reasoning. By treating reasoning as a verifiable, empirical process ("System 3"), we demonstrate that it is possible to provide mathematical guarantees on the precision of complex logical outputs.

1. Introduction: Beyond Intuition

The trajectory of artificial intelligence has moved from fast, intuitive pattern matching (System 1) to slower, reflective search-based reasoning (System 2). While models like OpenAI’s o1 and DeepSeek-R1 represent the state-of-the-art in System 2, they lack a fundamental component of human expertise: the ability to rigorously validate the steps of a logical argument against empirical reality.

This paper proposes Artificial Expert Intelligence (AEI). Unlike Artificial General Intelligence (AGI), which prioritizes breadth, AEI prioritizes "intellectual sharpness"—the ability to maintain extreme precision over long, complex reasoning chains. We achieve this by adapting the Probably Approximately Correct (PAC) learning framework to the reasoning process itself.

2. The Problem: The Fragility of Long Chains

The primary bottleneck in current reasoning models is error accumulation. In any multi-step reasoning process of length $k$, if each individual step has a probability of error $\epsilon$, the probability that the entire chain is correct decays exponentially as $k$ increases.

In narrow domains like Chess or Go, AI avoids this through absolute "rules of the game" (oracles). However, in general reasoning, a single hallucination or logical slip can cause the entire structure to collapse. To reach expert-level performance, a system must be able to separate correct from incorrect statements with high precision, even when the problem is novel.

3. The PAC-Reasoning Framework

To address error accumulation, we introduce "System 3" reasoning. This framework treats reasoning as a form of "inference-time learning." Instead of merely searching a tree of possibilities, the system invests computational resources into generating and testing examples to bound its own error.

3.1 Core Components

The framework consists of three primary agents:

  • The Actor: Proposes a decomposition of a complex problem into a computation graph of simpler sub-problems.
  • The Example Validator (EV): A domain-specific oracle (e.g., a code compiler or a mathematical verifier) that tests if a specific sub-step produces the correct output for a given input.
  • The Critic: Acts as a PAC-learner. It evaluates the Actor’s proposals by using the EV to test them against multiple sampled instances, ensuring the error rate remains within a specified bound.

3.2 Reasoning Strategies

We formalize two distinct approaches to constructing these chains:

  1. Bottom-up Reasoning: The system builds a computation graph where each operation is fully implemented and verified before it is utilized by subsequent steps.
  2. Top-down Reasoning: This allows for "forward references" to unimplemented functions. High-level algorithms can call helper functions that are implemented and verified later using "Reference Implementations."

4. Theoretical Results: Bounding the Error

The core contribution of this work is the mathematical proof that error bounding is feasible for reasoning chains of arbitrary length.

4.1 The 1/k Rule and Sample Complexity

To maintain an overall accuracy of $\epsilon$ for a chain of length $k$, the error of each individual step must be strictly controlled. We derive the sample complexity required for the Critic to provide these guarantees. According to our findings (Theorems 1 and 2), the number of samples $m$ required is:

$$m \geq \log(|P| k_{max}/\delta) 2 k_{max} / \epsilon$$

Where:

  • $|P|$ is the number of possible proposals.
  • $k_{max}$ is the maximum length of the reasoning chain.
  • $\delta$ is the confidence parameter.

This formula demonstrates that the effort required by the Critic scales logarithmically with the proposal space and linearly with the chain length, making rigorous verification computationally tractable.

5. Discussion: Generality vs. Expertise

A central philosophical insight of this paper is that generality is neither a necessary nor a sufficient condition for intelligence. Human progress is often driven by deep expertise—the ability to be "approximately correct" with high probability in a specific, complex domain. By focusing on "inference-time learning," we suggest that compute should be spent not just on searching for answers, but on learning the reliability of the reasoning steps themselves.

6. Limitations and Future Directions

The primary challenge for PAC-reasoning is the "Oracle Problem." While Example Validators are straightforward in structured domains like mathematics or computer science, they are difficult to construct for "soft" domains like legal or social reasoning. Furthermore, the computational cost of running multiple simulations for every reasoning step is significant.

Future research should investigate how AI systems can autonomously construct their own validators and decomposition oracles, moving toward a fully self-correcting "System 3" architecture.

Summary updated

BibTeX
@misc{shalevshwartz2024artificial,
  author = {Shai Shalev-Shwartz and Amnon Shashua and Gal Beniamini and Yoav Levine and Or Sharir and Noam Wies and Ido Ben-Shaul and Tomer Nussbaum and Shir Granot Peled},
  title = {{Artificial Expert Intelligence through PAC-reasoning}},
  year = {2024},
  eprint = {2412.02441},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.02441},
}
Figure