TL;DR
When black-box LLMs are prompted to provide classification probabilities, they output only a tiny handful of distinct, rounded numbers (often just 15–25 unique values), severely restricting operational threshold tuning. The authors explain this "rounding bias" and introduce lightweight noise-injection and supervised calibration techniques that increase output cardinality by three orders of magnitude, providing continuous, fine-grained operating points on PR and ROC curves without expensive repeated sampling.
What Problem Does This Paper Address?
In high-stakes applications like fraud detection or clinical screening, machine learning classifiers must operate under strict metric constraints (e.g., maintaining precision $\ge 95\%$ or a false positive rate $< 1\%$). Achieving these operating points requires tuning decision thresholds across a dense, continuous spectrum of confidence scores on Precision-Recall (PR) or Receiver Operating Characteristic (ROC) curves.
However, when developers use proprietary black-box LLMs via APIs, they do not have access to internal logits or token probabilities. When prompted to generate numerical probabilities directly, LLMs exhibit a human-like cognitive rounding bias, overwhelmingly defaulting to numbers ending in 0 or 5. Across an entire benchmark, a model might only emit 15 to 25 distinct probability values. This low cardinality creates vast gaps in operational curves, preventing fine-grained behavioral control.
Methods
The authors formalize operational granularity ($g^a$) as the minimum uniform grid step required along a specific metric axis (e.g., precision, recall, or false positive rate) to ensure coverage. To achieve fine granularity, they introduce three methods that blend LLM outputs with continuous noise:
-
Ours-Unsup(Unsupervised Additive Noise): Adds bounded, rank-preserving uniform noise to verbalized predictions: $$\hat{y}_i = \hat{y}_i^{vrb} + z_i \cdot w$$ Here, noise $z \sim U(0, 1)$ is scaled so that it never alters the relative ranking of predictions. This smoothly interpolates between existing threshold steps without hurting zero-shot rankings. -
Ours-Sup-1call(Supervised Calibration with Adaptive Noise): Passes the verbalized probability through a lightweight Multi-Layer Perceptron (MLP) while jointly learning an additive Gaussian noise scale $w$: $$\hat{y}_i = \sigma\left(\frac{z_i}{w} + f(\hat{y}_i^{vrb}; \theta_f)\right)$$ Trained with cross-entropy and an entropy regularization penalty ($\lambda w$), the network simultaneously learns to fix calibration misalignments and smooth the output space using just a single LLM API call at inference. -
Ours-Sup-2call: Feeds two verbalized predictions (one at temperature 0 and one at temperature 1) into the MLP, capturing stochastic variance while requiring only 2 API calls (10× fewer than traditional 20-sample uncertainty estimators).
Datasets
The authors evaluated their framework across 11 binary classification benchmarks:
- NLP & Reasoning: SST-2, Rotten Tomatoes Movie Reviews, and BoolQ (with passage removed to prevent ceiling effects).
- Serialized Tabular Data: Heart disease, Income, and Jungle Chess endgames (converted to natural text via TabLLM).
- BIG-Bench Hard (BBH): Boolean Expressions, Causal Judgement, Formal Fallacies, Sports Understanding, and Hyperbaton.
- Joint Simulated Dataset: A heterogeneous, combined benchmark built by merging all 11 datasets to test calibration across diverse sub-populations.
Experiments used three LLMs: Anthropic Claude 3.0 Sonnet, Amazon Nova Pro 1.0, and DeepSeek R1 Distill-Qwen-32B.
Key Insights and Ideas
- Prompting alone does not fix granularity: Prompting LLMs to predict on a 0–100 scale, enforce two decimal places, or perform step-by-step arithmetic feature-weighting failed to generate smooth distributions and frequently degraded AUC.
- Rounding bias is ubiquitous across models: Analyzing token generation character-by-character revealed that Claude, Nova, and Qwen all collapse to ending digits
0or5—mirroring human communicative bias rather than true model uncertainty. - Continuous noise acts as a smooth prior: Rather than burning compute on tens of repeated high-temperature API calls, treating continuous noise (such as Gaussian or uniform distributions) as an infinite-cardinality prior enables smooth interpolation along ROC/PR curves at minimal inference cost.
Key Results
- Cardinality Explosion: On the joint dataset, naive prompting generated only 15 unique prediction values.
Ours-Unsupproduced 39,294 unique values, andOurs-Sup-1callyielded 20,596 values. - Fine Granularity: On the joint dataset, recall granularity ($g^{rec}$) improved from a coarse 0.451 (naive prompting) down to 0.001 (
Ours-Sup-1call), effectively eliminating dead zones on the operational curve. - Competitive Performance at Lower Cost: On the joint dataset,
Ours-Sup-2callachieved a PR-AUC of 0.79, outperforming naive prompting (0.73) and matching/exceeding a 20-sample baseline (0.78) while requiring only 2 API calls per instance.
Limitations and Future Work
- Supervision Requirement: The supervised variants (
Ours-Sup-1call,Ours-Sup-2call) require a small set of labeled examples to train the MLP calibrator. - Initial Prediction Dependency: The proposed methods cannot fix catastrophic ranking errors made by the base LLM; if the verbalized scores are entirely uninformative, rank-preserving or score-only perturbations cannot recover lost signal without input-level features.
- Task Scope: While conceptually applicable to multi-class problems via 1-vs-rest approaches, the study is limited empirically to binary classification. Future work plans to model the noise term as a latent prior in a generative framework rather than relying on explicit noise-performance regularizers.
Summary updated