Skip to content

Commit

Permalink
Add Liu et al.
Browse files Browse the repository at this point in the history
  • Loading branch information
mallamanis committed Nov 14, 2023
1 parent b0f3ae6 commit 6b4502b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _publications/liu2023code.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ conference:
year: 2023
additional_links:
- {name: "ArXiV", url: "https://arxiv.org/abs/2305.05383"}
tags: ["execution", "dynamic"]
tags: ["Transformer", "execution"]
---
Code execution is a fundamental aspect of programming language semantics that reflects the exact behavior of the code. However, most pre-trained models for code intelligence ignore the execution trace and only rely on source code and syntactic structures. In this paper, we investigate how well pre-trained models can understand and perform code execution. We develop a mutation-based data augmentation technique to create a large-scale and realistic Python dataset and task for code execution, which challenges existing models such as Codex. We then present CodeExecutor, a Transformer model that leverages code execution pre-training and curriculum learning to enhance its semantic comprehension. We evaluate CodeExecutor on code execution and show its promising performance and limitations. We also demonstrate its potential benefits for code intelligence tasks such as zero-shot code-to-code search and text-to-code generation. Our analysis provides insights into the learning and generalization abilities of pre-trained models for code execution.

0 comments on commit 6b4502b

Please sign in to comment.