Constraint-Aware Test-Time Scoring for LLM and VLM Candidate Selection

Computer Science > Artificial Intelligence arXiv:2611.33161 (cs) [Submitted on 31 Aug 2026] Title: Constraint-Aware Test-Time Scoring for LLM and VLM Candidate Selection Authors: Rangarajan Ramesh, Yongchao Huang.

计算机科学 > 人工智能 arXiv:2611.33161 (cs) [提交于 2026 年 8 月 31 日] 标题:面向大语言模型与视觉语言模型候选选择的约束感知测试时评分 作者:Rangarajan Ramesh, Yongchao Huang。

Abstract: When an LLM or VLM produces several candidate answers, picking the best one usually relies on the model’s own confidence, a learned judge model, or a domain check. Each has a known weakness: an answer can be fluent but insecure, mathematically plausible but physically infeasible, or rated highly by a judge while quietly breaking a task requirement.

摘要:当大语言模型(LLM)或视觉语言模型(VLM)生成多个候选答案时,选择最佳答案通常依赖于模型自身的置信度、学习型判别模型或领域检查。每种方法都有已知的弱点:答案可能流畅但不安全,数学上合理但在物理上不可行,或者在被判别模型给予高分的同时却悄悄违反了任务要求。

We propose a scoring framework that combines a small set of hard checks every answer must pass with a wider set of softer checks whose scores are blended into one number per candidate. This adaptive scoring framework consists of three components: a drafting model that produces the candidates, a configuring model that selects and weights the checks for each task, and scoring models that rate properties no grounded tool can compute.

我们提出了一种评分框架,它结合了一组每个答案都必须通过的硬性检查,以及一组更广泛的软性检查,并将这些分数混合为每个候选者的单一数值。该自适应评分框架由三个组件组成:生成候选答案的起草模型、为每个任务选择并加权检查项的配置模型,以及对无法通过基础工具计算的属性进行评分的评分模型。

We apply our proposed method to four tasks: writing code that is both correct and secure (CWEval), generating robot manipulation plans (LIBERO with added safety variants), passing competitive-programming hidden tests (LiveCodeBench), and answering questions from retrieved documents (HotpotQA).

我们将所提出的方法应用于四项任务:编写既正确又安全的代码(CWEval)、生成机器人操作计划(带有额外安全变体的 LIBERO)、通过竞赛编程的隐藏测试(LiveCodeBench),以及回答来自检索文档的问题(HotpotQA)。

An ablation study isolates the contribution of each component and finds that the largest gains come from combining hard checks with candidate comparison: on tasks where the first sampled answer is often broken or unsafe, this pairing lifts joint correctness-and-safety by up to +0.21 (retrieval-augmented QA) and code-generation safety by up to +0.28 (CWEval), with the size of the gain tracking how weak the first sample is, falling to near zero or slightly negative where it is already strong.

消融研究分离了每个组件的贡献,发现最大的收益来自于将硬性检查与候选者比较相结合:在第一个采样答案通常损坏或不安全的任务中,这种配对将联合正确性与安全性提升了高达 +0.21(检索增强问答),并将代码生成安全性提升了高达 +0.28(CWEval);收益的大小取决于第一个样本的薄弱程度,而在样本本身就很强的情况下,收益会降至接近零或略微负值。

The per-task layer that selects and weights the softer checks adds no measurable value over simpler alternatives. This builds a unified scoring framework, together with an ablation that identifies the grounded hard checks, not the soft-factor configuration, as the source of the gain.

用于选择和加权软性检查的按任务层相比更简单的替代方案,并没有增加可衡量的价值。这构建了一个统一的评分框架,并通过消融研究确定了基础硬性检查(而非软性因素配置)才是收益的来源。