atlas

Research map / Large language models / Language, safety and interpretability

Who Knows the Answer? Finding the Best Model and Prompt for Each Query Using Confidence-Based Search

AAAI 2024 · Large language models › Language, safety and interpretability · approach: Uncertainty quantification for LLMs · 5 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes PICS, which predicts the semantic confidence of each LLM-prompt template pair per query with a cheap regression ensemble, then routes the query to the most confident pair and returns the most confident sampled response.

Problem

Choosing which LLM and which prompt template to use for each individual input, without calling every model-prompt pair (which would require many LLM calls) to estimate response confidence.

Approach

Replace costly sampling-based semantic confidence with a regression ensemble that predicts each model-prompt pair's confidence from features built from nearest-neighbor training-query confidences and their embedding distances; select the pair with highest predicted confidence, then sample responses from it and return the most confident one.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use instance-level predicted-confidence search with confidence sampling instead of average model-prompt performancePICS on all models · StrategyQAaccuracy: 41.70 -> 70.55Helped
Use instance-level predicted-confidence search with confidence sampling instead of average model-prompt performancePICS on all models · TriviaQAaccuracy: 33.58 -> 51.35Helped
Use instance-level predicted-confidence search with confidence sampling instead of average model-prompt performancePICS on all models · Q. Formationaccuracy: 65.85 -> 96.80Helped
Add confidence sampling rather than returning a single randomly sampled response (ablation)PICS with FLAN-T5-XL · StrategyQAaccuracy: 49.20 -> 53.10Helped
Add confidence sampling rather than returning a single randomly sampled response (ablation)PICS with FLAN-T5-XL · TriviaQAaccuracy: 21.40 -> 27.10Helped
Add confidence sampling rather than returning a single randomly sampled response (ablation)PICS with FLAN-T5-XL · Q. Formationaccuracy: 66.25 -> 73.45Helped
Add confidence sampling rather than returning a single randomly sampled response (ablation)PICS across all models · StrategyQAaccuracy: 69.00 -> 70.55Helped
Add confidence sampling rather than returning a single randomly sampled response (ablation)PICS across all models · TriviaQAaccuracy: 48.35 -> 51.35Helped
Add confidence sampling rather than returning a single randomly sampled response (ablation)PICS across all models · Q. Formationaccuracy: 97.50 -> 96.80Hurt
Search instances across models and prompts using PICS-CS instead of using the most confident fixed pairPICS · Q. Formationaccuracy: 99.10 -> 96.80Hurt

Surprising findings

Limitations

Experimental setup

Datasets: StrategyQA TriviaQA Question Formation (BIG-bench)

Benchmarks: StrategyQA TriviaQA Question Formation

Metrics: thresholded RougeL accuracy runtime

Baselines: MPT Avg. Most Confident OCS-RS OCS-CS

Builds on: semantic entropy / semantic confidence (Kuhn et al. 2023) Lin, Trivedi and Sun 2023 similarity-graph confidence Sentence Transformers

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy