Papers › Evaluating language models as risk scores

Evaluating language models as risk scores

19 Jul 2024arXiv:2407.14614archive 2025-07-28

André F. Cruz, Moritz Hardt, Celestine Mendler-Dünner

Current question-answering benchmarks predominantly focus on accuracy in realizable prediction tasks. Conditioned on a question and answer-key, does the most likely token match the ground truth? Such benchmarks necessarily fail to evaluate LLMs' ability to quantify ground-truth outcome uncertainty. In this work, we focus on the use of LLMs as risk scores for unrealizable prediction tasks. We introduce folktexts, a software package to systematically generate risk scores using LLMs, and evaluate them against US Census data products. A flexible API enables the use of different prompting schemes, local or web-hosted models, and diverse census columns that can be used to compose custom prediction tasks. We evaluate 17 recent LLMs across five proposed benchmark tasks. We find that zero-shot risk scores produced by multiple-choice question-answering have high predictive signal but are widely miscalibrated. Base models consistently overestimate outcome uncertainty, while instruction-tuned models underestimate uncertainty and produce over-confident risk scores. In fact, instruction-tuning polarizes answer distribution regardless of true underlying data uncertainty. This reveals a general inability of instruction-tuned LLMs to express data uncertainty using multiple-choice answers. A separate experiment using verbalized chat-style risk queries yields substantially improved calibration across instruction-tuned models. These differences in ability to quantify data uncertainty cannot be revealed in realizable settings, and highlight a blind-spot in the current evaluation ecosystem that folktexts covers.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2407.14614")

Code

Syntology Ran 11 of 16 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 11 ran with no contract checked.

By repository: official repository: 16 samples from 1 repository, 11 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

socialfoundations/folktexts officialmentioned in papermentioned on GitHubMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 11 ran; 0 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

11ran
5unverified

Licence: 0 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from socialfoundations/folktexts. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

compute_best_threshold socialfoundations/folktexts/folktexts/evaluation.py official repository ran MIT (permissive) · cf37f3a9cdc6c7aa · report
decode_topk_logprobs_to_risk_estimate socialfoundations/folktexts/folktexts/llm_utils.py official repository ran MIT (permissive) · 5062267f04eb87f0 · report
hash_dict socialfoundations/folktexts/folktexts/_utils.py official repository ran MIT (permissive) · 01541e897eeb12a8 · report
is_valid_number socialfoundations/folktexts/folktexts/_utils.py official repository ran fingerprinted MIT (permissive) · 31ad435fddbf752e · report
load_json socialfoundations/folktexts/folktexts/_io.py official repository ran MIT (permissive) · 01ac3ca87c183a87 · report
load_pickle socialfoundations/folktexts/folktexts/_io.py official repository ran MIT (permissive) · 7dada3fae6fa983f · report
query_model_batch socialfoundations/folktexts/folktexts/llm_utils.py official repository ran MIT (permissive) · 42c4582c73314ab0 · report
query_model_batch_multiple_passes socialfoundations/folktexts/folktexts/llm_utils.py official repository ran MIT (permissive) · e810648cd6b36c41 · report
safe_division socialfoundations/folktexts/folktexts/_utils.py official repository ran MIT (permissive) · d2bc3968e99d74c2 · report
save_pickle socialfoundations/folktexts/folktexts/_io.py official repository ran MIT (permissive) · 830399f6f5c3fa70 · report
tokenizer_supports_system_prompt socialfoundations/folktexts/folktexts/prompting.py official repository ran MIT (permissive) · ca43e66139b9adbd · report
evaluate_binary_predictions socialfoundations/folktexts/folktexts/evaluation.py official repository unverified MIT (permissive) · b9dfaaf12e5dc135 · report
evaluate_binary_predictions_fairness socialfoundations/folktexts/folktexts/evaluation.py official repository unverified MIT (permissive) · c8232e3ddcdf11c2 · report
render_evaluation_plots socialfoundations/folktexts/folktexts/plotting.py official repository unverified MIT (permissive) · cacc10e89eb26d82 · report
render_fairness_plots socialfoundations/folktexts/folktexts/plotting.py official repository unverified MIT (permissive) · fa65093fc4513ba8 · report
save_fig socialfoundations/folktexts/folktexts/plotting.py official repository unverified MIT (permissive) · b35fd0172480d532 · report

Tasks

Multiple-choiceQuestion Answering

Datasets

Introduced by this paper, per the archive.

folktexts

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

BASEFocus

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections