paper-with-me

홈 › Papers

RvLLM: LLM Runtime Verification with Domain Knowledge

2025-05-24 · Yedi Zhang, Sun Yi Emma, Annabelle Lee Jia En, Jin Song Dong

Large language models (LLMs) have emerged as a dominant AI paradigm due to their exceptional text understanding and generation capabilities. However, their tendency to generate inconsistent or erroneous outputs challenges their reliability, especially in high-stakes domains requiring accuracy and trustworthiness. Existing research primarily focuses on detecting and mitigating model misbehavior in general-purpose scenarios, often overlooking the potential of integrating domain-specific knowledge. In this work, we advance misbehavior detection by incorporating domain knowledge. The core idea is to design a general specification language that enables domain experts to customize domain-specific predicates in a lightweight and intuitive manner, supporting later runtime verification of LLM outputs. To achieve this, we design a novel specification language, ESL, and introduce a runtime verification framework, RvLLM, to validate LLM output against domain-specific constraints defined in ESL. We evaluate RvLLM on three representative tasks: violation detection against Singapore Rapid Transit Systems Act, numerical comparison, and inequality solving. Experimental results demonstrate that RvLLM effectively detects erroneous outputs across various LLMs in a lightweight and flexible manner. The results reveal that despite their impressive capabilities, LLMs remain prone to low-level errors due to limited interpretability and a lack of formal guarantees during inference, and our framework offers a potential long-term solution by leveraging expert domain knowledge to rigorously and efficiently verify LLM outputs.

📄 PDF Abstract BibTeX arXiv:2505.18585

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Bayesian Verification under Model Uncertainty

2017-02-28 · Lenz Belzner, Thomas Gabor

Machine learning enables systems to build and update domain models based on runtime observations. In this paper, we study statistical model checking and runtime verification for systems with this ability. Two challenges …

model

Conformal Prediction for STL Runtime Verification

2022-11-03 · Lars Lindemann, Xin Qin, Jyotirmoy V. Deshmukh, George J. Pappas

We are interested in predicting failures of cyber-physical systems during their operation. Particularly, we consider stochastic systems and signal temporal logic specifications, and we want to calculate the probability t…

Conformal PredictionPredictionUncertainty Quantification

GROOT: Graph Edge Re-growth and Partitioning for the Verification of Large Designs in Logic Synthesis

2025-11-23 · Kiran Thorat, Hongwu Peng, Yuebo Luo, Xi Xie 외 arxiv

Traditional verification methods in chip design are highly time-consuming and computationally demanding, especially for large scale circuits. Graph neural networks (GNNs) have gained popularity as a potential solution to…

graph partitioningGraph Learning

Verification-Guided Shielding for Deep Reinforcement Learning

2024-06-10 · Davide Corsi, Guy Amir, Andoni Rodriguez, Cesar Sanchez 외

In recent years, Deep Reinforcement Learning (DRL) has emerged as an effective approach to solving real-world tasks. However, despite their successes, DRL-based policies suffer from poor reliability, which limits their d…

Deep Reinforcement Learningreinforcement-learningReinforcement Learning

DSperse: A Framework for Targeted Verification in Zero-Knowledge Machine Learning

2025-08-09 · Dan Ivanov, Tristan Freiberg, Shirin Shahabi, Jonathan Gold 외 arxiv

DSperse is a modular framework for distributed machine learning inference with strategic cryptographic verification. Operating within the emerging paradigm of distributed zero-knowledge machine learning, DSperse avoids t…