Program Semantic Inequivalence Game with Large Language Models
원문 초록
Large Language Models (LLMs) can achieve strong performance on everyday coding tasks, but they can fail on complex tasks that require non-trivial reasoning about program semantics. Finding training examples to teach LLMs to solve these tasks can be challenging. In this work, we explore a method to synthetically generate code reasoning training data based on a semantic inequivalence game SInQ: a generator agent creates program variants that are semantically distinct, derived from a dataset of real-world programming tasks, while an evaluator agent has to identify input examples that cause the original programs and the generated variants to diverge in their behaviour, with the agents training each other semi-adversarially. We prove that this setup enables theoretically unlimited improvement through self-play in the limit of infinite computational resources. We evaluated our approach on multiple code generation and understanding benchmarks, including cross-language vulnerability detection (Lu et al., 2021), where our method improves vulnerability detection in C/C++ code despite being trained exclusively on Python code, and the challenging Python builtin identifier swap benchmark (Miceli-Barone et al., 2023), showing that whereas modern LLMs still struggle with this benchmark, our approach yields substantial improvements. We release the code needed to replicate the experiments, as well as the generated synthetic data, which can be used to fine-tune LLMs.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
Are Sparse Autoencoders Useful for Java Function Bug Detection?
Can You Really Trust Code Copilots? Evaluating Large Language Models from a Code Security Perspective
CORE: Benchmarking LLMs Code Reasoning Capabilities through Static Analysis Tasks
SV-LLM: An Agentic Approach for SoC Security Verification using Large Language Models
SafeGenBench: A Benchmark Framework for Security Vulnerability Detection in LLM-Generated Code
The Devil behind the mask: An emergent safety vulnerability of Diffusion LLMs
토론
이 논문과 연결된 포럼 글이 아직 없습니다.