Enabling Fine-Grained Operating Points for Black-Box LLMs

Ege Beyazit, Kl Navaneet, Prashant Mathur, Roi Blanco, Vidit Bansal, Karim Bouyarmane

TL;DR

When using black-box Large Language Models (LLMs) via cloud APIs, asking them to output numerical probabilities results in a very small set of unique values (e.g., heavily favoring numbers ending in 0 or 5). This "rounding bias" makes it incredibly difficult to tune models for strict operational constraints, such as requiring a precision of $\ge$ 95%. This paper introduces simple, efficient noise-injection techniques that smooth out these sparse predictions, increasing operational granularity by three orders of magnitude without sacrificing task performance.

What Problem Does This Paper Address?

When deploying machine learning models in mission-critical applications like fraud detection or medical diagnosis, practitioners rarely rely on raw accuracy alone. Instead, they need fine-grained control over operational trade-offs—such as maximizing recall while keeping the false positive rate below a strict threshold. This is traditionally achieved by adjusting decision thresholds across a continuous score distribution, mapping out a smooth Precision-Recall (PR) or Receiver Operating Characteristic (ROC) curve.

However, commercial LLMs are increasingly served as "black boxes" behind cloud APIs, meaning users cannot access internal token probabilities or logits. If you prompt a black-box LLM to "verbalize" its confidence as a number between 0 and 1, it suffers from a severe lack of diversity, typically returning only 16 to 23 unique values across an entire dataset. This results in blocky, sparse operational curves that prevent practitioners from making precise adjustments to the system's behavior.

Figure 1: PR and ROC curves of 3 LLMs’ verbalized probability estimates (vrb) together with Qwen’s decision token probabilities (tkn) across 11 datasets. Histograms of verbalized probabilities over individual axes are also provided to visualize the sparsity along these axes. All three LLMs’ verbalized probability distributions imply low cardinality and diversity of operating points, while using token probabilities provides a highly continuous curve (its histogram is omitted for brevity).

Methods

The authors demonstrate that standard prompt engineering (e.g., explicitly telling the model to output high-precision decimals) fails to solve this issue reliably and can even degrade classification performance. To circumvent this, they propose three lightweight post-processing methods that inject continuous noise into the LLM's verbalized outputs:

  1. Ours-Unsup (Unsupervised): This method adds a small amount of uniform noise to the verbalized probabilities. The noise range is mathematically bounded to preserve the original relative ranking of the predictions, effectively interpolating smoothly between the sparse points.
  2. Ours-Sup-1call (Supervised): This approach passes the verbalized probability along with Gaussian noise into a tiny Multi-Layer Perceptron (MLP). The MLP is trained on a small labeled dataset to minimize cross-entropy loss, utilizing an entropy regularization term to ensure the final output distribution remains continuous and smooth.
  3. Ours-Sup-2call (Supervised): A variant of the 1-call method that queries the LLM twice per instance (once at temperature 0 and once at temperature 1). This captures additional variance from the model before feeding the scores into the MLP, further boosting performance.

Datasets

The authors evaluated their approaches across 11 diverse binary classification datasets using three state-of-the-art LLMs (Anthropic Claude 3.0 Sonnet, Amazon Nova Pro 1.0, and DeepSeek R1 Distill-Qwen-32B):

  • Text Classification: SST2, Movie Reviews, and BoolQ.
  • Serialized Tabular Data: Heart, Income, and Jungle datasets processed via TabLLM.
  • Reasoning Benchmarks: Five challenging tasks from BIG-Bench Hard (Boolean Expressions, Causal Judgement, Formal Fallacies, Sports Understanding, and Hyperbaton).

Key Insights and Ideas

  • The "Rounding Bias" Phenomenon: By analyzing token-level probabilities character by character, the authors discovered that LLMs inherently prefer round numbers. All three models overwhelmingly chose to end their verbalized probabilities with "0" or "5" tokens (e.g., 0.80, 0.85, 0.90). This mimics human cognitive bias present in the pre-training data, collapsing a high-precision internal state into a coarse textual representation.
Token probabilities and character counts by position showing heavy bias toward 0 and 5
  • Prompting is a Double-Edged Sword: Forcing the LLM to follow explicit mathematical steps (like simulating a linear or logistic regression model) does increase output cardinality. However, restricting the model's natural generation path often severely degrades its overall predictive accuracy (PR-AUC and ROC-AUC).
  • Noise as a Feature: Instead of fighting the LLM's rounding bias via complex prompting, it is far more effective to treat the coarse verbalized output as a prior and use continuous noise distributions to restore the missing continuum ($|\mathbb{R}|$).

Key Results

  • Massive Cardinality Boost: The proposed noise-injection methods increased the number of unique operating points by nearly three orders of magnitude (jumping from ~15 unique values to over 20,000, effectively matching the dataset size).
  • Finer Operational Granularity: The minimum adjustable step size along the precision, recall, and false-positive rate axes dropped significantly, allowing micro-adjustments to decision thresholds.
  • Superior Performance on Diverse Data: When combining all 11 datasets to simulate a highly diverse real-world deployment, Ours-Sup-2call achieved an 8% point improvement in mean PR-AUC over the baseline naive prompting approach. Furthermore, it proved to be 10$\times$ more computationally efficient during inference than traditional multi-query sampling methods.
Scatter plot of precision-recall values for all possible thresholds

Limitations and Future Work

  • Garbage In, Garbage Out: All proposed variants rely on the initial LLM predictions. If the base model's classification performance is poor, injecting noise will smooth the curve but will not fix the underlying errors.
  • Supervised Overhead: The supervised variants (Ours-Sup) require access to ground-truth labels to train the auxiliary MLP, adding a layer of engineering complexity compared to pure zero-shot API calls.
  • Binary Constraint: This study explicitly limited its focus to binary classification tasks.

As a next step, the authors plan to move away from simple noise-performance tradeoffs by modeling the continuous noise variable as a prior within a broader generative framework, extending the capability to complex multi-class settings.

Summary updated

BibTeX
@misc{beyazit2025enabling,
  author = {Ege Beyazit and KL Navaneet and Prashant Mathur and Roi Blanco and Vidit Bansal and Karim Bouyarmane},
  title = {{Enabling Fine-Grained Operating Points for Black-Box LLMs}},
  year = {2025},
  eprint = {2510.17727},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.17727},
}
Figure