Interpretable Feature Discovery from Unstructured Data Using LLMs and Statistical Choice Models
Organizations: École polytechnique, Palaiseau, France · Now at the Institute for Computational and Mathematical Engineering (ICME), Stanford University. · Operations Department, Kellogg School of Management, Northwestern University, Evanston, IL, USA
Abstract
Feature extraction from unstructured data typically relies on opaque embeddings unsuited to interpretable decision-making. Interpretable features, on the other hand, typically require costly, and often infeasible, hand-engineering. Large language models (LLMs) offer a natural bridge, as they can read raw data and describe it in interpretable terms. One could simply ask an LLM to extract features from a large sample of the dataset, but context limitations and diluted attention can lead to unsatisfactory results. We introduce a method that automatically discovers interpretable, decision-relevant features from unstructured data. Our key idea is to perform pairwise comparisons between items, asking an LLM to articulate, in interpretable terms, the features distinguishing each pair. We treat these explanations, or rationales, as data: we develop a statistical choice model that combines these rationales across the comparisons to identify relevant features and estimate per-item, per-feature scores. We first test our method on a synthetic hiring dataset of cover letters with known ground-truth features and show that it significantly outperforms direct LLM feature extraction in feature recovery. We then apply it to the ChangeMyView (Reddit) debate dataset, where it discovers several interpretable features associated with persuasion while reaching predictive accuracy comparable to established baselines. We also show how the same rationales can be used to audit LLM decisions, yielding a holistic score whose decomposition over interpretable features reveals what the LLM rewards.
Figures & tables
| Method | Cost | Tracked | Stat.R. | Sem.R. | Attrib. | LK | ||
|---|---|---|---|---|---|---|---|---|
| Ours | 3.45 | 21 | 100.0% | 0.850 | 100.0% | 76.2% | 0.090 | |
| Benchmarks | Direct LLM | 0.26 | 21 | 81.2% | 0.732 | 81.2% | 61.9% | 0.109 |
| Direct LLM–Multi-score | 3.42 | 21 | 81.2% | 0.787 | 81.2% | 66.7% | 0.118 | |
| Local LLMs | 2.35 | 23 | 75.0% | 0.702 | 68.8% | 47.8% | 0.110 | |
| Local LLMs–Multi-score | 3.27 | 23 | 75.0% | 0.737 | 68.8% | 47.8% | 0.113 | |
| Ablations | Pairwise comparisons + LLM scoring | 3.67 | 32 | 93.8% | 0.763 | 87.5% | 40.6% | 0.093 |
Appendix figures & tables28 assets
Supplementary material from the paper’s appendix.
Appendix
| Dial | Type | Levels | Group |
| Experience (years) | ordered | 3 / 5 / 7 | primary |
| Education level | ordered | BS / MS / PhD | primary |
| School selectivity | ordered | low / mid / high | primary |
| Employer prestige | ordered | startup / mid / big tech | primary |
| Languages known | ordered | 2 / 5 / 9 | primary |
| Production launches | ordered | 2 / 4 / 6 | primary |
| feature | Cite rate | Kept | |||
| AI experience | 0.613 | 3.6 | 0.937 | ✓ | |
| Security assessment experience | 0.596 | 2.9 | 0.935 | ✓ | |
| Security automation experience | 0.562 | 2.4 | 0.917 | ✓ | |
| Agentic systems experience | 0.544 | 2.7 | 0.924 | ✓ | |
| Professional experience | 0.531 | 3.8 | 0.960 | ✓ | |
| Algorithmic strength | 0.524 | 2.7 | 0.917 | ✓ |
| Feature | Description | Scoring guidelines |
|---|---|---|
| Academic degree | Captures the formal level of academic preparation or equivalent technical grounding the applicant presents. | 1 No clear qualifying degree or equivalent preparation is shown. 2 Shows a bachelor’s degree or equivalent practical preparation. 3 Shows a master’s degree in a relevant technical field. 4 Shows a doctoral degree in a relevant technical field. |
| Adversarial practice | Captures ongoing offensive-security practice through CTF participation and competitive results. | 1 No ongoing offensive-security practice is shown. 2 Mentions occasional CTF participation or light adversarial practice. 3 Shows regular or serious CTF participation as continuing skill development. 4 Shows strong competitive results, such as near-top or top placements in substantial CTF fields. |
| Agent boundary design | Captures experience designing agentic systems with explicit control boundaries between Python agents and Go services. | 1 No agentic tooling or agent architecture is described. 2 Mentions agents or agentic systems only at a high level. 3 Describes building agentic systems with Python agents and Go back-end support. 4 Describes explicit guardrails such as bounded actions, permissions, auditing, or enforced boundaries between agents and services. |
| Algorithmic depth | Captures depth of data-structure and algorithm reasoning as evidenced by concrete redesign or optimization examples. | 1 Does not provide evidence of algorithmic or data-structure skill. 2 Claims strong algorithms knowledge, but with little concrete illustration. 3 Provides a clear example of using better algorithms or data structures to improve a system. 4 Provides a strong example with technical specificity and visible impact, such as removing a bottleneck or making a previously hard problem tractable. |
| Applied AI deployment | Captures whether the applicant has shipped AI or LLM features in production and understands reliability or evaluation concerns. | 1 No meaningful AI or LLM experience is shown. 2 Mentions AI interest or exposure without a clear shipped production example. 3 Shows direct experience shipping AI or LLM-backed functionality in production. 4 Shows shipped AI or LLM systems plus concrete attention to evaluation, reliability, or failure modes. |
| Developer enablement mindset | Captures whether the applicant frames security tooling as a way to help developers do the right thing with less friction. | 1 Does not frame security work in terms of helping other engineers. 2 Mentions helping teams only in broad or generic language. 3 Clearly emphasizes making secure behavior easier or more natural for developers. 4 Explicitly focuses on reducing friction, building good defaults, or serving busy developer teams through usable tooling. |
| Method | Cost | Tracked | Stat.R. | Sem.R. | Attrib. | LK | |
|---|---|---|---|---|---|---|---|
| Ours | 3.45 | 21 | 100.0% | 0.850 | 100.0% | 76.2% | 0.090 |
| resampling matchings | [16.2, 22.0] | [87.5, 93.8] | [0.737, 0.805] | [81.2, 93.8] | [71.4, 87.5] | [0.087, 0.095] | |
| Direct LLM | 0.26 | 21 | 81.2% | 0.732 | 81.2% | 61.9% | 0.109 |
| resampling letters | [17.2, 25.0] | [68.8, 87.5] | [0.649, 0.825] | [62.5, 87.5] | [40.6, 69.6] | [0.109, 0.135] | |
| Direct LLM–Multi-score | 3.42 | 21 | 81.2% | 0.787 | 81.2% | 66.7% | 0.118 |
| resampling letters | [21.0, 21.0] | [81.2, 81.2] | [0.788, 0.807] | [81.2, 81.2] | [57.1, 66.7] | [0.119, 0.145] |
| Difference | 95% CI | Ours better | |
| (a) Ours Direct LLM (discovery re-run per replicate on both sides) | |||
| — | |||
| Tracked ∗ | |||
| Stat.R. | |||
| Sem.R. ∗ | |||
| Attrib. ∗ | |||
| Framing | Accuracy |
|---|---|
| P1 (unnamed, scrubbed) | |
| P2 (named) | |
| Lift | pp |
| Arm | Dims | Accuracy | CI |
|---|---|---|---|
| Emb. (full) | 3,072 | 64.88% | |
| Tan | 3,205 | 63.75% | |
| D + PW | 29 | 62.63% | |
| D r + PW | 16 | 62.13% | |
| Emb. | 3,072 | 61.63% | |
| D r + BT | 16 | 61.50% |
| Feature | Description | Win rate (95% CI) | |
|---|---|---|---|
| Concrete illustration ∗ | The argument makes its case through specific, vivid, or worked-through examples rather than abstraction alone. | 0.604 | 0.001 |
| Qualified rebuttal ∗ | The challenger narrows the claim, marks exceptions, or emphasizes contextual dependence instead of arguing absolutely. | 0.596 | 0.001 |
| Structured rebuttal development ∗ | The challenger builds an organized, multi-step, or multi-pronged case rather than a single bare point. | 0.583 | 0.001 |
| Scope broadening | The exchange expands or contracts the discussion by moving between narrow cases and wider principles or issue areas. | 0.583 | 0.001 |
| Counterexample use ∗ | The challenger undermines the OP with exceptions, alternative cases, or edge-case scenarios that break the generalization. | 0.581 | 0.001 |
| Challenger evidentiary support ∗ | The challenger backs the rebuttal with external evidence, citations, factual corrections, or expert authority. | 0.575 | 0.001 |
| Feature | Description |
|---|---|
| Core Claim Relevance | It measures the degree to which the reply focuses on the central claim under dispute rather than drifting to side issues. |
| Reason Engagement | It measures the degree to which the reply directly addresses the original poster’s stated reasons, premises, or assumptions. |
| View Understanding | It measures the degree to which the reply accurately represents the other person’s position before challenging it. |
| Logical Coherence | It measures the degree to which the reply’s conclusions follow clearly and consistently from its premises. |
| Evidence Strength | It measures the degree to which the reply supports its claims with substantial, pertinent evidence or examples. |
| Source Trustworthiness | It measures the degree to which the reply relies on credible, authoritative, and verifiable sources when offering support. |
| Feature | Description |
|---|---|
| Topical responsiveness | How directly a reply addresses the poster’s actual view rather than pivoting to meta-issues or adjacent topics. |
| Premise targeting | Whether a reply attacks the core assumption or inference supporting the view instead of focusing on side details. |
| Clarification demand | How much a reply advances the discussion by asking the poster to specify vague claims, terms, or examples. |
| Conceptual reframing | Whether a reply changes the frame of the debate by redefining the key concept or explaining that the dispute is really about something else. |
| Thought experiment | Whether a reply uses an invented scenario to test the implications or consistency of the poster’s view. |
| Analogy use | How much a reply explains its point by mapping the issue onto a different familiar domain. |
Interpretable ML
Interpretable machine learning develops models and explanations that make predictions, evidence, and decision processes understandable to people.
See all 310 papers