atlas

Research map / Large language models / Agents, code and math

RvLLM: LLM Runtime Verification with Domain Knowledge

NeurIPS 2025 · Large language models › Agents, code and math · approach: Mathematical and structural reasoning benchmarks · 0 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 RvLLM, a runtime verification framework with a domain-specific specification language (ESL) that checks LLM outputs against expert rules via LLM-based interpretation and forward chaining, evaluated on legal violation detection, numerical comparison, and inequality solving.

Problem

LLMs produce inconsistent or erroneous outputs in high-stakes domains, and existing LLM testing and verification approaches are generic and do not incorporate domain-specific constraints.

Approach

A simple specification language (ESL) lets domain experts write rule-like predicate-logic constraints with natural language predicate descriptions; a perception LLM instantiates propositions from context and outputs, forward chaining over normalized rules infers new facts, and follow-up queries to the target LLM check consistency.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add RvLLM to the standalone target LLMLLMs on Singapore Rapid Transit Systems Act violation detection · Singapore Rapid Transit Systems Act violation detectionTPR: +15.7% to +50.2%Helped
Add RvLLM to Qwen 2.5 (7B)Qwen 2.5 (7B) · Singapore Rapid Transit Systems Act violation detectionTPR: 16.0% -> 61.2%Helped
Add RvLLM to DeepSeek-V3DeepSeek-V3 · Singapore Rapid Transit Systems Act violation detectionTNR: 87.0% -> 82.6%Hurt
Use RvLLM rather than SelfCheckGPTQwen plus · Numerical comparisonTNR: 96.7% -> 100%Helped
Use RvLLM rather than LLM-as-a-judgeQwen plus · Numerical comparisonTNR: 0 -> 100%Helped
Use DeepSeek-V3 instead of Qwen 2.5 (32B) as the perception agentRvLLM · Inequality solving (Qwen 2.5 (32B) target)TPR: 25% -> 50%Helped
Use DeepSeek-V3 instead of Qwen 2.5 (32B) as the perception agentRvLLM · Inequality solving (Qwen 2.5 (7B) target)TPR: 20% -> 48%Helped
Use DeepSeek-V3 instead of Qwen 2.5 (32B) as the perception agentRvLLM · Inequality solving across evaluated modelsTPR: up to 50%Helped
Use three expert-defined specifications for inequality verificationRvLLM · Inequality solvingTPR: 50%Mixed

Surprising findings

Limitations

Experimental setup

Datasets: Singapore Rapid Transit Systems Act scenarios (304 cases) random numerical comparison pairs (100) A-Level H2 Mathematics inequality problems (40)

Benchmarks: Singapore Rapid Transit Systems Act violation detection numerical comparison inequality solving

Metrics: TPR TNR error detection count

Baselines: SelfCheckGPT LLM-as-a-judge

Builds on: SelfCheckGPT forward chaining unit propagation

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