mlsanityData to 14 Oct 2026

Teaching LLMs Program Semantics via Symbolic Execution Traces

arXiv 2605.06184 ↗First posted 7 May 2026cs.SE cs.LG cs.LOcited by 0

Not on the map. Why?

Abstract (arXiv)

We introduce an evaluation framework of 500 C verification tasks across five property types (memory safety, overflow, termination, reachability, data races) built on SV-COMP 2025, and evaluate 14 models across six families. We find that high overall accuracy masks a critical weakness: while most models reliably confirm properties hold, violation detection varies widely and degrades sharply with program length. To close this gap, we train on formal verification artifacts: running the Soteria symbolic execution engine on generic open-source C code and using the resulting traces for continued pretraining of Qwen3-8B. Just ~3,000 bug traces combined with chain-of-thought reasoning at inference time improve violation detection by over 17 percentage points, producing one of the most balanced accuracy profiles among evaluated models. On violation detection, the trained 8B model outperforms the 4× larger Qwen3-32B without thinking and approaches it in overall accuracy. The interaction between trace training and chain-of-thought is superadditive: neither alone provides meaningful gains, but their combination does. Improvements transfer across all five property types, including ones the training traces do not target. Our 28 configurations confirm the gains stem from trace semantics, not code volume, and that trace curation and format matter.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 25 of its 38 references that are in the map. First posted on arXiv 7 May 2026.

Builds on

25 of 38 references.

References · 25

  1. 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 300
  2. 2025DeepSeek-Prover-V2: Advancing Formal Mathematical Reasoning via Reinforcement Learning for Subgoal Decompositioncited by 287
  3. 2025Kimina-Prover Preview: Towards Large Formal Reasoning Models with Reinforcement Learningcited by 180
  4. 2023SatLM: Satisfiability-Aided Language Models Using Declarative Promptingcited by 102
  5. 2025Seed-Prover: Deep and Broad Reasoning for Automated Theorem Provingcited by 101
  6. 2025CWM: An Open-Weights LLM for Research on Code Generation with World Modelscited by 93
  7. 2024NExT: Teaching Large Language Models to Reason about Code Executioncited by 63
  8. 2025Aristotle: IMO-level Automated Theorem Provingcited by 58
  9. 2023Lemur: Integrating Large Language Models in Automated Program Verificationcited by 49
  10. 2023Code Execution with Pre-trained Language Modelscited by 34
  11. 2024Automated Proof Generation for Rust Code via Self-Evolutioncited by 33
  12. 2025CLEVER: A Curated Benchmark for Formally Verified Code Generationcited by 29
13 more
  1. 2025CoRe: Benchmarking LLMs Code Reasoning Capabilities through Static Analysis Taskscited by 24
  2. 2025A benchmark for vericoding: formally verified program synthesiscited by 20
  3. 2025Everything You Wanted to Know About LLM-based Vulnerability Detection But Were Afraid to Askcited by 15
  4. 2025What I cannot execute, I do not understand: Training and Evaluating LLMs on Program Execution Tracescited by 12
  5. 2025LoCoBench: A Benchmark for Long-Context Large Language Models in Complex Software Engineeringcited by 12
  6. 2025CASTLE: Benchmarking Dataset for Static Code Analyzers and LLMs towards CWE Detectioncited by 10
  7. 2025Agentic Property-Based Testing: Finding Bugs Across the Python Ecosystemcited by 8
  8. 2025Trace Gadgets: Minimizing Code Context for Machine Learning-Based Vulnerability Predictioncited by 5
  9. 2023SkipAnalyzer: A Tool for Static Code Analysis with Large Language Modelscited by 4
  10. 2025Chain of Execution Supervision Promotes General Reasoning in Large Language Modelscited by 4
  11. 2025ATLAS: Automated Toolkit for Large-Scale Verified Code Synthesiscited by 4
  12. 2025Integrating Symbolic Execution into the Fine-Tuning of Code-Generating LLMscited by 2
  13. 2025Soteria: Efficient Symbolic Execution as a Functional Librarycited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Demystifying Errors in LLM Reasoning Traces: An Empirical Study of Code Execution Simulation
  2. 2025Integrating Symbolic Execution with LLMs for Automated Generation of Program Specifications
  3. 2026An Execution-Verified Multi-Language Benchmark for Code Semantic Reasoning
  4. 2026Teaching Code LLMs to Reason with Intermediate Formal Specifications
  5. 2026How Robustly do LLMs Understand Execution Semantics?
  6. 2026Can LLMs Reason About Runtime Behavior? A Repository-Level Dynamic Benchmark
  7. 2026LLMs versus the Halting Problem: Characterizing Program Termination Reasoning
  8. 2025Generating Verifiable Chain of Thoughts from Exection-Traces