TRACED: Execution-aware Pre-training for Source Code
Not on the map. Why?
Abstract (arXiv)
Most existing pre-trained language models for source code focus on learning the static code text, typically augmented with static code structures (abstract syntax tree, dependency graphs, etc.). However, program semantics will not be fully exposed before the real execution. Without an understanding of the program execution, statically pre-trained models fail to comprehensively capture the dynamic code properties, such as the branch coverage and the runtime variable values, and they are consequently less effective at code understanding tasks, such as retrieving semantic clones and detecting software vulnerabilities. To close the gap between the static nature of language models and the dynamic characteristics of programs, we introduce TRACED, an execution-aware pre-training strategy for source code. Specifically, we pre-train code language models with a combination of source code, executable inputs, and corresponding execution traces. Our goal is to teach code models the complicated execution logic during the pre-training, enabling the model to statically estimate the dynamic code properties without repeatedly executing code during task-specific fine-tuning. To illustrate the effectiveness of our proposed approach, we fine-tune and evaluate TRACED on three downstream tasks: static execution estimation, clone retrieval, and vulnerability detection. The empirical results show that TRACED relatively improves the statically pre-trained code models by 12.4% for complete execution path prediction and by 25.2% for runtime variable value predictions. TRACED also significantly outperforms statically pre-trained models in clone retrieval and vulnerability detection across four public benchmarks.
Key facts. Cited by 27 papers in the map (data through 14 Oct 2026). First posted on arXiv 13 Jun 2023.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2023: 4; 2024: 7; 2025: 12; 2026: 4.
27 papers.
Sort:
By area:
- 2023Clover: Closed-Loop Verifiable Code Generationcited by 67
- 2024LLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability Reasoningcited by 59
- 2024Reasoning Runtime Behavior of a Program with LLM: How Far Are We?cited by 45
- 2023Beyond Accuracy: Evaluating Self-Consistency of Code Large Language Models with IdentityChaincited by 31
- 2024Towards AI-Native Software Engineering (SE 3.0): A Vision and a Challenge Roadmapcited by 30
- 2024Transformer-Based Models Are Not Yet Perfect At Learning to Emulate Structural Recursioncited by 14
- 2025CodeSense: a Real-World Benchmark and Dataset for Code Semantic Reasoningcited by 13
- 2025Towards Effectively Leveraging Execution Traces for Program Repair with Code LLMscited by 11
- 2023Exploiting Code Symmetries for Learning Program Semanticscited by 10
- 2023Towards Causal Deep Learning for Vulnerability Detectioncited by 9
- 2025Locus: Agentic Predicate Synthesis for Directed Fuzzingcited by 9
- 2025A Systematic Literature Review on Detecting Software Vulnerabilities with Large Language Modelscited by 8
15 more
- 2024CodeArt: Better Code Models by Attention Regularization When Symbols Are Lackingcited by 7
- 2025LLMs Lean on Priors, Not Programming Language Semanticscited by 6
- 2025Trace Gadgets: Minimizing Code Context for Machine Learning-Based Vulnerability Predictioncited by 5
- 2026Debugging code world modelscited by 5
- 2026Self-Improvement of Large Language Models: A Technical Overview and Future Outlookcited by 5
- 2025ObscuraCoder: Powering Efficient Code LM Pre-Training Via Obfuscation Groundingcited by 4
- 2025Gistify! Codebase-Level Understanding via Runtime Executioncited by 4
- 2025DynaFix: Iterative Automated Program Repair Driven by Execution-Level Dynamic Informationcited by 3
- 2026StepCodeReasoner: Aligning Code Reasoning with Stepwise Execution Traces via Reinforcement Learningcited by 2
- 2024Morescient GAI for Software Engineering (Extended Version)cited by 1
- 2025Investigating Execution-Aware Language Models for Code Optimizationcited by 1
- 2024Knowledge-Guided Prompt Learning for Request Quality Assurance in Public Code Reviewcited by 0
- 2025Themisto: Jupyter-Based Runtime Benchmarkcited by 0
- 2025Generating Verifiable Chain of Thoughts from Exection-Tracescited by 0
- 2026Synthetic Semantic Supervision for Contrastive Code Representation Learning in Small Transformers: An Empirical Studycited by 0
- 2026Synthetic Semantic Supervision for Contrastive Code Representation Learning in Small Transformers: An Empirical Study3 Sep 2026
- 2026StepCodeReasoner: Aligning Code Reasoning with Stepwise Execution Traces via Reinforcement Learning12 May 2026
- 2026Self-Improvement of Large Language Models: A Technical Overview and Future Outlook26 Mar 2026
- 2026Debugging code world models7 Feb 2026
- 2025DynaFix: Iterative Automated Program Repair Driven by Execution-Level Dynamic Information31 Dec 2025
- 2025Generating Verifiable Chain of Thoughts from Exection-Traces28 Nov 2025
- 2025Gistify! Codebase-Level Understanding via Runtime Execution30 Oct 2025
- 2025LLMs Lean on Priors, Not Programming Language Semantics3 Oct 2025
- 2025Locus: Agentic Predicate Synthesis for Directed Fuzzing29 Aug 2025
- 2025A Systematic Literature Review on Detecting Software Vulnerabilities with Large Language Models30 Jul 2025
- 2025CodeSense: a Real-World Benchmark and Dataset for Code Semantic Reasoning31 May 2025
- 2025Towards Effectively Leveraging Execution Traces for Program Repair with Code LLMs7 May 2025
15 more
- 2025Trace Gadgets: Minimizing Code Context for Machine Learning-Based Vulnerability Prediction18 Apr 2025
- 2025Themisto: Jupyter-Based Runtime Benchmark16 Apr 2025
- 2025ObscuraCoder: Powering Efficient Code LM Pre-Training Via Obfuscation Grounding27 Mar 2025
- 2025Investigating Execution-Aware Language Models for Code Optimization11 Mar 2025
- 2024Knowledge-Guided Prompt Learning for Request Quality Assurance in Public Code Review29 Oct 2024
- 2024Towards AI-Native Software Engineering (SE 3.0): A Vision and a Challenge Roadmap8 Oct 2024
- 2024Morescient GAI for Software Engineering (Extended Version)7 Jun 2024
- 2024Reasoning Runtime Behavior of a Program with LLM: How Far Are We?25 Mar 2024
- 2024CodeArt: Better Code Models by Attention Regularization When Symbols Are Lacking19 Feb 2024
- 2024LLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability Reasoning29 Jan 2024
- 2024Transformer-Based Models Are Not Yet Perfect At Learning to Emulate Structural Recursion23 Jan 2024
- 2023Clover: Closed-Loop Verifiable Code Generation26 Oct 2023
- 2023Beyond Accuracy: Evaluating Self-Consistency of Code Large Language Models with IdentityChain21 Oct 2023
- 2023Towards Causal Deep Learning for Vulnerability Detection12 Oct 2023
- 2023Exploiting Code Symmetries for Learning Program Semantics7 Aug 2023
- 2024LLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability Reasoningcited by 59
- 2024Reasoning Runtime Behavior of a Program with LLM: How Far Are We?cited by 45
- 2023Beyond Accuracy: Evaluating Self-Consistency of Code Large Language Models with IdentityChaincited by 31
- 2025CodeSense: a Real-World Benchmark and Dataset for Code Semantic Reasoningcited by 13
- 2025LLMs Lean on Priors, Not Programming Language Semanticscited by 6
- 2025Generating Verifiable Chain of Thoughts from Exection-Tracescited by 0
- 2025Generating Verifiable Chain of Thoughts from Exection-Traces28 Nov 2025
- 2025LLMs Lean on Priors, Not Programming Language Semantics3 Oct 2025
- 2025CodeSense: a Real-World Benchmark and Dataset for Code Semantic Reasoning31 May 2025
- 2024Reasoning Runtime Behavior of a Program with LLM: How Far Are We?25 Mar 2024
- 2024LLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability Reasoning29 Jan 2024
- 2023Beyond Accuracy: Evaluating Self-Consistency of Code Large Language Models with IdentityChain21 Oct 2023
- 2025Gistify! Codebase-Level Understanding via Runtime Execution30 Oct 2025
- 2025Locus: Agentic Predicate Synthesis for Directed Fuzzing29 Aug 2025
- 2026Debugging code world modelscited by 5
- 2026Debugging code world models7 Feb 2026
- 2023Clover: Closed-Loop Verifiable Code Generationcited by 67
- 2024Towards AI-Native Software Engineering (SE 3.0): A Vision and a Challenge Roadmapcited by 30
- 2024Transformer-Based Models Are Not Yet Perfect At Learning to Emulate Structural Recursioncited by 14
- 2025Towards Effectively Leveraging Execution Traces for Program Repair with Code LLMscited by 11
- 2023Exploiting Code Symmetries for Learning Program Semanticscited by 10
- 2023Towards Causal Deep Learning for Vulnerability Detectioncited by 9
- 2025A Systematic Literature Review on Detecting Software Vulnerabilities with Large Language Modelscited by 8
- 2024CodeArt: Better Code Models by Attention Regularization When Symbols Are Lackingcited by 7
- 2025Trace Gadgets: Minimizing Code Context for Machine Learning-Based Vulnerability Predictioncited by 5
- 2025ObscuraCoder: Powering Efficient Code LM Pre-Training Via Obfuscation Groundingcited by 4
- 2025DynaFix: Iterative Automated Program Repair Driven by Execution-Level Dynamic Informationcited by 3
- 2024Morescient GAI for Software Engineering (Extended Version)cited by 1
12 most cited of 16 All 16 (JSON)
- 2026Synthetic Semantic Supervision for Contrastive Code Representation Learning in Small Transformers: An Empirical Study3 Sep 2026
- 2025DynaFix: Iterative Automated Program Repair Driven by Execution-Level Dynamic Information31 Dec 2025
- 2025A Systematic Literature Review on Detecting Software Vulnerabilities with Large Language Models30 Jul 2025
- 2025Towards Effectively Leveraging Execution Traces for Program Repair with Code LLMs7 May 2025
- 2025Trace Gadgets: Minimizing Code Context for Machine Learning-Based Vulnerability Prediction18 Apr 2025
- 2025Themisto: Jupyter-Based Runtime Benchmark16 Apr 2025
- 2025ObscuraCoder: Powering Efficient Code LM Pre-Training Via Obfuscation Grounding27 Mar 2025
- 2025Investigating Execution-Aware Language Models for Code Optimization11 Mar 2025
- 2024Knowledge-Guided Prompt Learning for Request Quality Assurance in Public Code Review29 Oct 2024
- 2024Towards AI-Native Software Engineering (SE 3.0): A Vision and a Challenge Roadmap8 Oct 2024
- 2024Morescient GAI for Software Engineering (Extended Version)7 Jun 2024
- 2024CodeArt: Better Code Models by Attention Regularization When Symbols Are Lacking19 Feb 2024
12 newest of 16 All 16 (JSON)