mlsanityData to 7 Oct 2026

Programmatic Representation Learning with Language Models

arXiv 2510.14825 ↗First posted 16 Oct 2025cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Classical models for supervised machine learning, such as decision trees, are efficient and interpretable predictors, but their quality is highly dependent on the particular choice of input features. Although neural networks can learn useful representations directly from raw data (e.g., images or text), this comes at the expense of interpretability and the need for specialized hardware to run them efficiently. In this paper, we explore a hypothesis class we call Learned Programmatic Representations (LeaPR) models, which stack arbitrary features represented as code (functions from data points to scalars) and decision tree predictors. We synthesize feature functions using Large Language Models (LLMs), which have rich prior knowledge in a wide range of domains and a remarkable ability to write code using existing domain-specific libraries. We propose two algorithms to learn LeaPR models from supervised data. First, we design an adaptation of FunSearch to learn features rather than directly generate predictors. Then, we develop a novel variant of the classical ID3 algorithm for decision tree learning, where new features are generated on demand when splitting leaf nodes. In experiments from chess position evaluation to image and text classification, our methods learn high-quality, neural network-free predictors often competitive with neural networks. Our work suggests a flexible paradigm for learning interpretable representations end-to-end where features and predictions can be readily inspected and understood.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 25 of its 43 references that are in the map. First posted on arXiv 16 Oct 2025.

Builds on

25 of 43 references.

References · 25

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  2. 2017A Unified Approach to Interpreting Model Predictionscited by 6,488
  3. 2024GPT-4o System Cardcited by 4,467
  4. 2017Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithmscited by 4,283
  5. 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
  6. 2017Towards A Rigorous Science of Interpretable Machine Learningcited by 1,400
  7. 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,359
  8. 2019Distributionally Robust Neural Networks for Group Shifts: On the Importance of Regularization for Worst-Case Generalizationcited by 1,232
  9. 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,057
  10. 2025AlphaEvolve: A coding agent for scientific and algorithmic discoverycited by 763
  11. 2021Generalizing to Unseen Domains: A Survey on Domain Generalizationcited by 762
  12. 2023Towards Automated Circuit Discovery for Mechanistic Interpretabilitycited by 700
13 more
  1. 2024Sparse Feature Circuits: Discovering and Editing Interpretable Causal Graphs in Language Modelscited by 412
  2. 2020Compositional Explanations of Neuronscited by 172
  3. 2022Neural Networks can Learn Representations with Gradient Descentcited by 161
  4. 2024WorldCoder, a Model-Based LLM Agent: Building World Models by Writing Code and Interacting with the Environmentcited by 99
  5. 2023Ghostbuster: Detecting Text Ghostwritten by Large Language Modelscited by 90
  6. 2024Knowledge Circuits in Pretrained Transformerscited by 60
  7. 2024Large Language Models As Evolution Strategiescited by 57
  8. 2024Amortized Planning with Large-Scale Transformers: A Case Study on Chesscited by 45
  9. 2025PoE-World: Compositional World Modeling with Products of Programmatic Expertscited by 25
  10. 2023Backpack Language Modelscited by 15
  11. 2024CodeACT: Code Adaptive Compute-efficient Tuning Framework for Code LLMscited by 15
  12. 2025FeRG-LLM : Feature Engineering by Reason Generation Large Language Modelscited by 8
  13. 2025Tversky Neural Networks: Psychologically Plausible Deep Learning with Differentiable Tversky Similaritycited by 2

Built on by

Not cited yet.