Dataset Featurization: Uncovering Natural Language Features through Unsupervised Data Reconstruction
Michal Bravansky, Vaclav Kubon, Suhas Hariharan, Robert Kirk
TL;DR
The paper tackles the challenge of interpretable dataset understanding by proposing a reconstruction-driven, unsupervised binary feature featurization pipeline that uses large language models to propose and evaluate features with minimal supervision. By formalizing features as binary predicates and optimizing perplexity-based reconstruction, the approach yields compact, semantically meaningful representations that support both granular analysis and cross-dataset comparisons. Empirically, it outperforms prompting baselines across multiple datasets, demonstrates strong scalability, and adapts to practical tasks such as compressing jailbreak tactics and supporting compositional preference modeling. The work has broad implications for scalable, interpretable data analysis and safety-aligned AI, though it notes limitations and avenues for future refinements, including numeric attributes and broader domain applications.
Abstract
Interpreting data is central to modern research. Large language models (LLMs) show promise in providing such natural language interpretations of data, yet simple feature extraction methods such as prompting often fail to produce accurate and versatile descriptions for diverse datasets and lack control over granularity and scale. To address these limitations, we propose a domain-agnostic method for dataset featurization that provides precise control over the number of features extracted while maintaining compact and descriptive representations comparable to human labeling. Our method optimizes the selection of informative binary features by evaluating the ability of an LLM to reconstruct the original data using those features. We demonstrate its effectiveness in dataset modeling tasks and through two case studies: (1) Constructing a feature representation of jailbreak tactics that compactly captures both the effectiveness and diversity of a larger set of human-crafted attacks; and (2) automating the discovery of features that align with human preferences, achieving accuracy and robustness comparable to human-crafted features. Moreover, we show that the pipeline scales effectively, improving as additional features are sampled, making it suitable for large and diverse datasets.
