New scoring framework improves LLM and VLM candidate selection
Researchers propose a dual-layered scoring method that combines hard constraints with soft checks to pick better AI outputs. Learn how it works.
Source: Grafy Research LabResearchers have developed a new scoring framework designed to help Large Language Models (LLMs) and Vision-Language Models (VLMs) select the highest quality answers from a pool of candidates. By combining non-negotiable "hard" checks with flexible "soft" scores, the method aims to prevent common AI failures where outputs appear correct but violate critical safety or logical constraints.
What is the problem with current AI selection methods?
When an AI generates multiple possible answers, developers typically use one of three methods to choose the best one: relying on the model's own confidence, using a separate learned judge model, or applying domain-specific checks. According to the research by Rangarajan Ramesh and Yongchao Huang, each approach has significant flaws.
A model might be highly confident but factually wrong, or it might produce a response that is linguistically fluent but physically impossible in a robotics context. Furthermore, learned judge models often share the same biases and reasoning errors as the original model, meaning they might agree on a wrong answer rather than identifying a flaw. Standard domain checks, such as a code compiler, can verify if code is well-formed but cannot determine if that code actually solves the specific problem intended by the user.
How does the new scoring framework work?
To address these gaps, the proposed framework utilizes three distinct components to evaluate candidates. First, a "drafting model" generates a variety of potential answers. Second, a "configuring model" determines which specific checks are relevant for the given task and how much weight each check should carry. Finally, "scoring models" evaluate properties that cannot be verified by simple automated tools.
The framework distinguishes between two types of validation. "Hard checks" act as universal requirements that every candidate must pass; if a candidate fails a hard check, it is immediately removed from consideration via a veto. "Soft checks" provide graded scores for more nuanced qualities. These different types of data—ranging from pass/fail flags to continuous numerical margins—are normalized to a common scale and combined log-linearly to produce a final score for each candidate.
What were the results of the research experiments?
The authors tested the framework across four diverse domains: secure code generation (CWEval), robot manipulation planning (LIBERO/SafeLIBERO), competitive programming (LiveCodeBench), and retrieval-augmented question answering (HotpotQA).
In the domain of code generation, the researchers found that combining hard checks with candidate comparison significantly improved results. Specifically, for the CWEval benchmark, the method improved code-generation safety by up to +0.28. In retrieval-augmented QA tasks, the framework improved joint correctness and safety by up to +0.21 on the HotpotQA benchmark.
However, the study also revealed that the effectiveness of the framework depends on the quality of the initial samples. The largest improvements occurred in scenarios where the first sampled answer was weak or unsafe. In cases where the initial model output was already strong, the framework provided little to no additional benefit.
Does the configuring model improve performance?
A notable finding in the research is that the complexity of the configuration layer does not necessarily translate to better performance. The researchers conducted an ablation study to see if a dedicated model could better select and weight the soft checks for specific tasks.
According to the authors, the specialized configuring model performed no better than much simpler alternatives, such as using uniform weights or allowing the generator model to weight the checks itself. They identified that soft-factor scores tend to cluster very closely among the candidates that have already survived the hard checks. Because these survivors are already similar in their soft-factor scores, the weighting layer has very little "headroom" to change which candidate ends up at the top of the list.
Why does this matter for AI deployment?
This research provides a blueprint for making AI systems more reliable in high-stakes environments. For robotics, it offers a way to ensure that a non-negotiable physical constraint—such as avoiding a collision or staying within a reachability margin—can override a visual model's potentially flawed opinion on a plan.
In software engineering, the framework could allow developers to integrate compilers, test runners, and security analyzers into a single, unified selection rule. For retrieval-augmented systems, it provides a mechanism to enforce that an AI must cite existing documents before a judge model even attempts to rate the quality of the answer. This layered approach moves AI from simply being "fluent" to being "constrained" by reality and logic.
Researchers looking to dive deeper into the mathematical nuances of the scoring and the specific benchmarks used can explore the full paper via the original source.
To explore this yourself, open Reader: read, search and question PDFs and papers with AI.
Frequently asked questions
How does the framework handle different types of checks?
The framework treats checks as either hard or soft. Hard checks are mandatory requirements that use a veto system to disqualify any candidate that fails them. Soft checks provide graded, continuous scores for various properties. All these different signals are normalized to a common scale and then combined using a log-linear method to produce a single final score.
Does the framework certify that an AI answer is correct?
No, the framework does not certify absolute correctness. It is a scoring mechanism designed to rank multiple candidate outputs. It identifies which of the provided options is most likely to be successful based on the available hard and soft constraints, but it cannot guarantee that the top-ranked candidate is free from all possible errors.
What is the main limitation identified in the study?
The study identified that the specialized configuring model, which is supposed to optimize the weighting of soft factors, provides no measurable advantage over simpler weighting methods. This is because the candidates that pass the initial hard checks often have very similar soft-factor scores, leaving very little room for re-weighting to change the final selection.
Source: Grafy Research Lab — Constraint-Aware Test-Time Scoring for LLM and VLM Candidate Selection


