LLMs can construct powerful representations and streamline sample-efficient supervised learning

İlker Demirel, Larry Shi, Zeshan Hussain, David Sontag

Abstract

As real-world datasets become increasingly complex and heterogeneous, supervised learning is often bottlenecked by input representation design. Modeling multimodal data for downstream tasks, such as time-series, free text, and structured records, often requires non-trivial domain-specific engineering. We propose an agentic pipeline to streamline this process. First, an LLM analyzes a small but diverse subset of text-serialized input examples in-context to synthesize a global rubric, which acts as a programmatic specification for extracting and organizing evidence. This rubric is then used to transform naive text-serializations of inputs into a more standardized format for downstream models. We also describe local rubrics, which are task-conditioned summaries generated by an LLM. Across 15 clinical tasks from the EHRSHOT benchmark, our rubric-based approaches significantly outperform traditional count-feature models, naive text-serialization-based LLM baselines, and a clinical foundation model, which is pretrained on orders of magnitude more data. Beyond performance, rubrics offer several advantages for operational healthcare settings such as being easy to audit, cost-effectiveness to deploy at scale, and they can be converted to tabular representations that unlock a swath of machine learning techniques.

Introduction

In high-stakes domains like healthcare or finance, data is often a heterogeneous mix of time-series, structured codes, and free-text notes. Traditionally, converting this raw data into a format suitable for machine learning requires extensive bespoke feature engineering by domain experts. While Large Language Models (LLMs) can process raw text serializations of this data, this "Naive Text" approach is often noisy and computationally inefficient. This study addresses the representation bottleneck: the challenge of extracting meaningful signals from complex datasets without requiring manual expert intervention for every new task.

Methods

We introduce Rubric Representation Learning, an agentic pipeline designed to automatically construct task-specific data representations. The process consists of several key stages:

  1. Diverse Cohort Selection: Using k-means clustering on text embeddings, we identify a small but representative set of 40 "medoid" examples that capture the diversity of the patient population.
  2. Global Rubric Synthesis: An LLM analyzes these 40 examples to synthesize a Global Rubric—a structured template that specifies which clinical evidence (e.g., specific symptoms, lab trends, risk factors) is most discriminative for the target task.
  3. Rubric Application: The raw data is transformed into the rubric-defined format. We evaluated three application methods: Global-Rubric (LLM-based transformation), Global-Rubric-Auto (where the LLM generates a Python script for deterministic parsing), and Global-Rubric-Tabular (where the LLM generates a script to convert data into numeric feature vectors).
  4. Local Rubrics: As a baseline, we also generated task-conditioned summaries for individual patients without a shared global template.
The multi-stage agentic pipeline for Rubric Representation Learning, from cohort selection to tabularization.

Results

The pipeline was evaluated on the EHRSHOT benchmark, comprising 15 clinical prediction tasks (e.g., ICU transfer, 30-day readmission, and new diagnosis assignment) using data from Stanford Medicine.

Performance and Efficiency

Rubric-based methods significantly outperformed both the "Naive Text" baselines and traditional Count-GBM models. Notably, the Local-Rubric approach achieved the highest mean AUROC (0.772), while the Global-Rubric achieved the best AUPRC (0.459). These results surpassed the performance of CLMBR-T, a clinical foundation model pre-trained on 2.57 million patients, despite the rubric being synthesized from only 40 patients.

Performance comparison showing rubric-based methods outperforming naive text and foundation model baselines in AUROC and AUPRC.

Operational Advantages

The Global-Rubric-Tabular method achieved a mean AUROC of 0.770. By converting complex EHR data into a deterministic, tabular format via LLM-generated scripts, this approach offers high auditability and extreme cost-effectiveness for hospital deployment. Qualitative analysis further revealed that the LLM-generated rubrics independently discovered established clinical guidelines, such as ACC/AHA hypertension thresholds, without explicit instruction.

Discussion

Our findings demonstrate that LLMs are highly effective as "architects" of data representations. By providing sufficient inductive bias through a task-specific rubric, we can achieve state-of-the-art performance with high sample efficiency. Future work will explore incorporating non-textual modalities like medical imaging and waveforms, as well as iterative refinement processes where the agent improves the rubric based on error analysis. While tested in a clinical context, this framework is broadly applicable to any domain requiring the synthesis of complex, heterogeneous data.

Summary updated

BibTeX
@inproceedings{demirel2026llms,
  author = {İlker Demirel and Larry Shi and Zeshan Hussain and David Sontag},
  title = {{LLMs can construct powerful representations and streamline sample-efficient supervised learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=OQzUaEnhcP},
}
Figure