Large Language Models are Interpretable Learners

Ruochen Wang, Si Si, Felix Yu, Dorothea Wiesmann Rothuizen, Cho-Jui Hsieh, Inderjit S Dhillon

TL;DR

This paper introduces LLM-based Symbolic Programs (LSPs), a framework that bridges the gap between high-performance "black box" neural networks and human-readable symbolic rules. By using Large Language Models (LLMs) to translate raw data into natural language concepts and organizing those concepts into a symbolic decision tree, the authors create models that are highly accurate, easily understood, and replicable by humans.

The Challenge: Expressiveness vs. Interpretability

In machine learning, there is a classic tug-of-war between expressiveness and interpretability. Deep neural networks are incredibly expressive—capable of modeling complex patterns in images and text—but are notoriously opaque. Conversely, symbolic rules (e.g., "if the color is red, then the label is Fire-type") are perfectly interpretable but often too rigid to handle the messy reality of raw data.

The authors tackle the challenge of Interpretable Learning (IL): learning a predictive function from labeled data that a human can understand and apply without prior domain knowledge.

Comparison of Interpretable Learning and Common LLM Tasks

While existing Neurosymbolic Programming (NSP) attempts to combine these worlds, it often relies on manually designed operators or neural modules that remain "black boxes." Furthermore, standard LLM prompting methods (like Chain-of-Thought) are usually zero-shot and do not actually "learn" new rules from a specific dataset.

Methods: LLM-Symbolic Programs (LSP)

The core innovation of this paper is the LLM-Symbolic Program (LSP). It uses a minimalist Domain-Specific Language (DSL) consisting of two primary components:

  1. Prompted-LLM Modules: Acting as "interpretable neural units," these modules use natural language prompts to transform raw input (like an image of a creature) into a classification or concept, replacing abstract weights.
  2. Conditional Branching: These modules are organized into a tree structure, functioning similarly to a decision tree.
Comparison of Neuro-Symbolic Programming and LLM-Symbolic Programming

The Learning Process: To train an LSP, the authors employ a "divide-and-conquer" approach:

  • RuleSum (Module Optimization): A "learner" LLM examines a subset of labeled data and summarizes the patterns into a concise natural language rule. This rule becomes the prompt for that specific node in the tree.
  • Program Structure Search: The algorithm starts with a single node. It identifies where the model makes the most errors, then "splits" that node by adding a new branching rule to handle those specific cases. This incrementally builds a complex decision process out of simple, local rules.

Datasets: Introducing IL-Bench

Arguing that existing benchmarks are either too simple or "contaminated" (meaning the LLM already saw the data during its initial training), the authors introduce IL-Bench. This benchmark includes 16 tasks across three categories:

  • Symbolic Tasks: Synthetic datasets based on logic rules of varying complexity.
  • Textual Classification: Fine-grained visual datasets converted into detailed text descriptions to test linguistic reasoning.
  • Visual Classification (Palworld): A curated dataset of creatures from the game Palworld. Because the game was released after the training cut-off for most current LLMs, it serves as a true test of the model's ability to learn novel visual concepts from scratch.

Key Insights

  • LLMs as "Supernets": A pretrained LLM acts as a massive collection of potential sub-models. Changing the prompt essentially "searches" for the right sub-model to act as a specific feature extractor.
  • Natural Language is the "Glue": Because the rules are written in plain English, the "neural" part of the neurosymbolic system is no longer a black box. Humans can read the prompt at any node and understand exactly what the model is looking for.
  • Divide-and-Conquer Prevents Hallucination: LLMs often struggle with long, complex instructions. By breaking the decision process into a tree, each individual LLM module only handles a small, simple part of the problem, significantly improving reliability.
  • Human-to-AI Transfer: The knowledge isn't locked in weights; it's a readable program. This allows for "knowledge transfer" where a human can learn the rules discovered by the AI and perform the task themselves with high accuracy.

Key Results

  • Superior Accuracy: On the Palworld vision tasks, LSP achieved an average accuracy of 95.67%, outperforming traditional interpretable baselines (like ProtoTree) by over 10%.
  • Human Interpretability: In a user study, human raters were able to replicate the AI's decisions with ~90% accuracy simply by following the generated natural language rules.
  • Robustness to Out-of-Distribution (OOD) Data: The models generalized remarkably well to OOD samples (e.g., images generated by GPT-4V that were variations of the original creatures). LSP retained 90-100% of its accuracy, whereas traditional methods faltered.
  • Efficiency: Despite the multi-step tree process, the inference cost (in total tokens) is often lower than "vanilla" long-prompt methods because the tree structure ensures only one path is executed per query.

Limitations and Future Work

  • DSL Simplicity: The current framework is limited to tree structures. Future work could explore more complex symbolic structures like loops or advanced logic.
  • Redundancy: The search algorithm prioritizes accuracy, which can sometimes lead to redundant rules in different branches. Future iterations could involve "code cleaning" or regularization to keep the trees leaner.
  • Dependency on the "Learner": The quality of the LSP depends heavily on the "learner" LLM's ability to summarize data accurately. While models like GPT-4 excel here, smaller models might struggle to induce high-quality rules.

Summary updated

BibTeX
@inproceedings{wang2025large,
  author = {Ruochen Wang and Si Si and Felix Yu and Dorothea Wiesmann Rothuizen and Cho-Jui Hsieh and Inderjit S Dhillon},
  title = {{Large Language Models are Interpretable Learners}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=hTphfqtafO},
}
Figure