DiSciPLE: Learning Interpretable Programs for Scientific Visual Discovery

Utkarsh Mall, Cheng Perng Phoo, Mia Chiquier, Bharath Hariharan, Kavita Bala, Carl Vondrick

TL;DR

DiSciPLE is an evolutionary framework that leverages Large Language Models (LLMs) to discover interpretable Python programs for complex scientific vision tasks. By combining neural foundation models with logical operations, it produces models that outperform black-box deep learning baselines while providing human-readable explanations for their predictions in domains like demography and ecology.

Introduction: The Need for Interpretability in Science

In scientific fields such as ecology, demography, and climate science, researchers increasingly rely on satellite imagery to monitor global changes. While modern deep learning models can predict variables like poverty levels or forest biomass with high accuracy, they operate as "black boxes." They provide a prediction but fail to explain the underlying logic—for instance, why a specific region is flagged as high-density or low-vegetation.

DiSciPLE translates expert queries and satellite imagery into interpretable Python programs.

For a scientist, the "why" is often as critical as the "what." Existing interpretable methods, such as Concept Bottleneck Models, often lack the complexity needed for high-dimensional visual data. Meanwhile, code-generation tools like ViperGPT rely on an LLM's internal knowledge, which frequently falls short in specialized scientific domains where ground-truth relationships are not well-documented online. DiSciPLE bridges this gap by using an evolutionary process to ground LLM-generated code in real-world observational data.

Methods: Evolutionary Program Discovery

The core of the framework is DiSciPLE (Discovering Scientific Programs using LLMs and Evolution). It moves beyond rigid symbolic rules by using an LLM (specifically Llama-3) as an "evolutionary engine."

The DiSciPLE evolutionary framework: an LLM iteratively improves programs based on performance feedback and critic reviews.

The Discovery Loop

  1. Evolutionary Search: The LLM receives a "bank" of parent programs and their performance scores. It uses its programming logic to suggest improvements, mutations, or crossovers that might yield better results.
  2. Program Critic: To prevent overfitting, a critic performs stratified evaluation. It tests programs across different categories (e.g., varying land-use types) and provides the LLM with fine-grained feedback on specific failure modes.
  3. Program Simplifier: Evolution can produce redundant "spaghetti code." DiSciPLE uses Abstract Syntax Tree (AST) analysis to prune dead code and examines the weights of a final linear regressor to remove features that do not contribute to the prediction.
  4. Feature Set Prediction: Instead of forcing the LLM to output a single scalar, the system prompts it to generate a list of predictive features. A simple, interpretable linear regressor is then trained on these features to produce the final output.

Datasets and Evaluation

The authors evaluated DiSciPLE across several challenging geospatial discovery problems:

  • Population Density: Predicting people per square mile across the USA using Sentinel-2 imagery and OpenStreetMaps.
  • Poverty Indicator: Mapping coordinate locations to a wealth asset index using the SustainBench dataset.
  • Aboveground Biomass (AGB): Estimating forest biomass using NASA’s GEDI (Global Ecosystem Dynamics Investigation) data.
  • SocialExplorer: A large-scale benchmark containing 34 different demographic indicators to test generalizability.

Key Insights and Results

DiSciPLE demonstrates that while LLMs may lack specific domain knowledge (like the exact formula for biomass), they possess excellent "search common sense." Once provided with performance data, they can iterate toward highly effective formulas.

Superior Accuracy and Robustness

On population density tasks, DiSciPLE achieved 35% lower error than the leading non-interpretable deep learning baselines. More importantly, these programs proved more robust. In the biomass task, DiSciPLE's programs generalized significantly better to geographical regions not seen during training. While deep models often overfit to local pixel textures, DiSciPLE’s reliance on high-level concepts (like "distance to roads" or "forest area") allowed it to maintain accuracy across diverse environments.

The "Aha" Moment

In a notable test of the system's capability, DiSciPLE discovered a program for the biomass task that outperformed a human expert—a PhD student in the field—who had spent over an hour manually engineering features.

Limitations and Future Work

Currently, DiSciPLE performs differentiable optimization only on the final linear layer. Parameters within the program itself (such as specific thresholds) are updated via the slower evolutionary process. Future research aims to make the entire pipeline differentiable or incorporate second-order optimization to fine-tune numerical constants more efficiently. Expanding the primitive library beyond geospatial operators to fields like genomics or spectroscopy is also a high priority.

Summary updated

BibTeX
@inproceedings{mall2025disciple,
  author = {Utkarsh Mall and Cheng Perng Phoo and Mia Chiquier and Bharath Hariharan and Kavita Bala and Carl Vondrick},
  title = {{DiSciPLE: Learning Interpretable Programs for Scientific Visual Discovery}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  url = {https://openreview.net/forum?id=MzIp02BJRA},
}
Figure