Manuscript Offprint

arXiv:2610.18656

Bayesian Test-Time Inference of Task-Aligned Similarity from Weak Interactive Feedback

Weida Liang, Kenji Kawaguchi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Language model systems repeatedly make test-time decisions by comparing similarity: they retrieve exemplars, rank candidates, and revise responses. Yet similarity is not unique: lexical, semantic, structural, and stylistic resemblance can point to different candidates, and the task-aligned notion can change across instances. We introduce BASIS (Bayesian Axis Selection via Interactive Signals), a training-free Bayesian method that uses weak test-time feedback to infer which criterion in a supplied, task-specific library governs the current decision. It maintains a joint posterior over candidate targets and criteria, updates it from scalar scores, pairwise preferences, or verifier outputs, and selects probes by expected information gain. In a finite noisy model, we characterize when the target–criterion pair is recoverable and show why fixed-criterion and fixed-mixture rules can fail under criterion shift. Across concept recovery, reasoning exemplar selection, and response refinement, BASIS improves six-probe concept-recovery Success@1 from 56.0% to 68.1%, reasoning accuracy from 72.3% to 73.1%, and refinement win rate from 61.4% to 63.8% over tuned static mixtures. It also exceeds compute-matched best-of-N selection on reasoning (72.1%) and refinement (61.2%). Gains are largest under criterion mismatch and with larger candidate pools, and matched controls indicate that adaptive criterion weighting explains much of the benefit, with joint target–criterion inference adding further value. BASIS selects only among supplied criteria and does not discover new ones.

1 Introduction

Language models rank passages, demonstrations, and response drafts using similarity [4, 14, 21]. Yet relevance depends on the instance: a useful math exemplar may share the operation sequence rather than the topic, while a preferred revision may match the requested tone rather than the subject matter. A fixed embedding or mixture score may select a plausible but task-misaligned candidate.

At test time, systems may receive scalar, pairwise, or verifier feedback. Prior work uses such signals for reranking, query rewriting, self-correction, and verifier-guided selection [17, 24, 11, 1, 18, 6, 22]. But feedback can show which candidate works without revealing why: a verifier score may reward structural fit, answer consistency, or style, and the useful criterion can vary by instance. Search and stronger rerankers improve selection under a chosen scoring rule, but do not by themselves infer when that rule should change [25, 3].

We study this inference within a finite, task-specific criterion library supplied in advance. BASIS (Bayesian Axis Selection via Interactive Signals) is training-free: it maintains a joint posterior over candidate targets and criteria, updates it from scalar, pairwise, or verifier feedback, and selects probes by expected information gain. Joint inference retains target–criterion dependence, while the criterion marginal makes the selection process inspectable.

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

After six probes, concept-recovery Success@1 is 68.1% for BASIS versus 56.0% for a tuned mixture. Reasoning accuracy is 73.1% versus 72.3%, and refinement win rate is 63.8% versus 61.4%. Under distractors, reasoning drops by 4.9 points for BASIS and 6.5 for the tuned mixture. We evaluate one model stack and inference within a supplied criterion library.

Our contributions are:

  1. We formulate feedback-driven selection as joint inference over a candidate and a finite library of relevance criteria, and introduce BASIS for this task.

  2. We characterize recovery under separability and probe coverage, and identify settings in which a fixed criterion or mixture cannot track instance-dependent relevance.

  3. We evaluate concept recovery, reasoning exemplar selection, and response refinement, using matched controls to separate adaptive weighting from joint target–criterion inference.

References (25)

  • Self-rag: Learning to retrieve, generate, and critique through self-reflection
  • Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedback
  • Large language monkeys: Scaling inference compute with repeated sampling (opens arXiv in a new tab)
  • Advances in neural information processing systems, 33:1877–1901, 2020
  • Interpretable by design: Learning predictors by composing interpretable queries
  • Training Verifiers to Solve Math Word Problems
  • Ultrafeedback: Boosting language models with high-quality feedback, 2023
  • C-sts: Conditional semantic textual similarity
  • Placing search in context: The concept revisited
  • Did aristotle use a laptop? a question answering benchmark with implicit reasoning strategies
  • Critic: Large language models can self-correct with tool-interactive critiquing (opens arXiv in a new tab)
  • Simlex-999: Evaluating semantic models with (genuine) similarity estimation
  • Advances in neural information processing systems, 36:47669–47681, 2023
  • Advances in neural information processing systems, 33:9459–9474, 2020
  • Reasoning graph enhanced exemplars retrieval for in-context learning
  • Iterative refinement with self-feedback
  • Rafe: Ranking feedback improves query rewriting for rag
  • In-context learning through the bayesian prism
  • Learning to retrieve prompts for in-context learning
  • Rewarding progress: Scaling automated process verifiers for llm reasoning
  • Reflexion: Language agents with verbal reinforcement learning
  • Scaling llm test-time compute optimally can be more effective than scaling parameters for reasoning
  • Conceptnet 5.5: An open multilingual graph of general knowledge
  • Bayesian example selection improves in-context learning for speech, text and visual modalities
  • Followir: Evaluating and teaching information retrieval models to follow instructions