Large Language Models are Interpretable Learners

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

TL;DR

This paper introduces LLM-based Symbolic Programs (LSPs), a framework that combines the reasoning power of Large Language Models with the clarity of symbolic logic. By using LLMs to generate natural-language rules within a decision-tree structure, the authors create models that are as accurate as deep neural networks but as easy for a human to follow as a simple flowchart.

What Problem Does This Paper Address?

In machine learning, there is a long-standing tug-of-war between expressiveness and interpretability.

  • Deep Neural Networks are incredibly expressive (they can learn almost anything) but are "black boxes"—we don't really know why they make specific decisions.
  • Symbolic Programs (like sets of "if-then" rules) are perfectly interpretable but often too rigid to handle complex, raw data like images or nuanced text.

Previous attempts to bridge this gap, known as Neuro-Symbolic Programming (NSP), often fail because they still rely on "black-box" neural operators for the heavy lifting, which compromises the overall transparency. The authors set out to find a way to use the power of neural networks without losing the ability for a human to look at the model and say, "I understand exactly how this works."

Methods

The core innovation is the LLM-based Symbolic Program (LSP). Instead of complex neural layers, LSPs use a minimalist Domain-Specific Language (DSL) consisting of just two things: prompted LLMs and conditional branching.

Figure 1: Illustration of LLM-Symbolic vs. Neuro-Symbolic Program on interpretable learning task. The goal is to develop a model that allows humans with no prior knowledge to replicate AI’s decisions by following the same rules as the model. While NSP (Top right) offers a certain level of interpretability, it heavily relies on manually designing operators, and the inclusion of neural operators often reduces interpretability. In contrast, LSP (Bottom right) generates fully interpretable programs with the help of versatile LLM modules.

To build these programs, the authors developed a two-part learning algorithm:

  1. Program Structure Search: The algorithm builds a decision tree from scratch. It starts at a root node and identifies which data points are being misclassified. It then "splits" those error-prone nodes to create new branches, effectively using a divide-and-conquer strategy.
  2. LLM Module Optimization: At each node, a "Learner LLM" examines a subset of data and summarizes a high-quality, natural-language rule to distinguish between classes. This rule then becomes the "instruction" for the inference engine.
Figure 2: Learning Algorithm for LSPs. The learning algorithm for LSPs contains two parts: (1) program structure search (Left): This process is akin to constructing a traditional decision tree. Starting from the root, the algorithm traverses down the tree, iteratively splitting the training dataset based on the current node’s predictions and expanding the leaf node with the highest prediction errors. (2) LLM module optimization (Right): Here, a learner LLM is instructed to summarize rules based on the observed data at its node.

Datasets

The authors introduced IL-Bench (Interpretable-Learning-Benchmark) to test their method across different modalities:

  • Synthetic Tasks: Abstract rules generated by decision trees of varying complexity to test pure logical reasoning.
  • Textual Classification: Fine-grained bird species classification, where images were converted to detailed text descriptions using a new technique called Concatenated Contrastive Captioning (C3).
  • Visual Classification: A suite of datasets featuring creatures from the game Palworld. Since this game was released after the training cutoff for most LLMs, it forces the model to learn new concepts entirely from the provided data rather than relying on pre-existing knowledge.

Key Insights and Ideas

  • LLMs as "Interpretable Neurons": The authors argue that a prompted LLM is essentially a neural network whose "weights" are natural language. Because the prompt is human-readable, the operation itself becomes interpretable.
  • Divide-and-Conquer Logic: LLMs often struggle with complex, multi-step instructions (hallucinations). By breaking the task into a symbolic tree, each LLM module only has to solve a very simple sub-problem, which significantly boosts reliability.
  • Knowledge Portability: Because the learned "model" is just a series of English rules and a tree structure, it can be easily handed off to a human or even a different, smaller LLM that wasn't involved in the training.

Key Results

LSPs demonstrated a significant leap in both performance and transparency:

  • Superior Accuracy: On the Palworld vision tasks, LSP (using GPT-4V) achieved an average accuracy of 95.67%, outperforming the nearest neuro-symbolic competitor (ProtoTree) by over 10%.
  • Human-in-the-Loop: In human studies, raters were able to replicate the AI's decisions with ~90% accuracy just by following the generated rules.
  • Robustness to Change: LSPs generalized remarkably well to Out-Of-Distribution (OOD) data. While traditional models often break when visual styles change, LSP retained 90-100% of its original accuracy because its rules were based on high-level concepts (like "has orange fur") rather than specific pixel patterns.
LSP shows much higher accuracy retention on Out-Of-Distribution data compared to traditional decision trees and ProtoTree.

Limitations and Future Work

While promising, the authors note a few areas for improvement:

  • DSL Complexity: The current version uses a very simple "switch" logic. Future work could incorporate more sophisticated symbolic operators.
  • Optimization for Simplicity: The current search algorithm prioritizes accuracy. This can sometimes lead to redundant or overly wordy rules; adding a "regularization" step to keep the programs concise would improve human readability even further.
  • Computational Cost: Building the tree requires multiple calls to LLM APIs, which can be expensive and time-consuming compared to training a standard decision tree.

Summary updated

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