paper-with-me

홈 › Papers

Code Representation Pre-training with Complements from Program Executions

2023-09-04 · Jiabo Huang, Jianyu Zhao, Yuyang Rong, Yiwen Guo, Yifeng He, Hao Chen

Large language models (LLMs) for natural language processing have been grafted onto programming language modeling for advancing code intelligence. Although it can be represented in the text format, code is syntactically more rigorous in order to be properly compiled or interpreted to perform a desired set of behaviors given any inputs. In this case, existing works benefit from syntactic representations to learn from code less ambiguously in the forms of abstract syntax tree, control-flow graph, etc. However, programs with the same purpose can be implemented in various ways showing different syntactic representations while the ones with similar implementations can have distinct behaviors. Though trivially demonstrated during executions, such semantics about functionality are challenging to be learned directly from code, especially in an unsupervised manner. Hence, in this paper, we propose FuzzPretrain to explore the dynamic information of programs revealed by their test cases and embed it into the feature representations of code as complements. The test cases are obtained with the assistance of a customized fuzzer and are only required during pre-training. FuzzPretrain yielded more than 6%/9% mAP improvements on code search over its counterparts trained with only source code or AST, respectively. Our extensive experimental results show the benefits of learning discriminative code representations with program executions.

📄 PDF Abstract BibTeX arXiv:2309.09980

Code (0)

등록된 구현이 없습니다.

Tasks

Code SearchLanguage ModelingLanguage Modelling

Similar Papers 제목 키워드 기반

Learning Blended, Precise Semantic Program Embeddings

2019-07-03 · Ke Wang, Zhendong Su

Learning neural program embeddings is key to utilizing deep neural networks in program languages research --- precise and efficient program representations enable the application of deep models to a wide range of program…

Graph Neural NetworkMethod name predictionRepresentation Learning

MuTT: A Multimodal Trajectory Transformer for Robot Skills

2024-07-22 · Claudius Kienle, Benjamin Alt, Onur Celik, Philipp Becker 외

High-level robot skills represent an increasingly popular paradigm in robot programming. However, configuring the skills' parameters for a specific task remains a manual and time-consuming endeavor. Existing approaches f…

Decoder

Learning to Encode and Classify Test Executions

2020-01-08 · Foivos Tsimpourlas, Ajitha Rajan, Miltiadis Allamanis

The challenge of automatically determining the correctness of test executions is referred to as the test oracle problem and is one of the key remaining issues for automated testing. The goal in this paper is to solve the…

General ClassificationSpecificity

PLLM: Pseudo-Labeling Large Language Models for CAD Program Synthesis

2026-02-13 · Yuanbo Li, Dule Shu, Yanying Chen, Matt Klenk 외 arxiv

Recovering Computer-Aided Design (CAD) programs from 3D geometries is a widely studied problem. Recent advances in large language models (LLMs) have enabled progress in CAD program synthesis, but existing methods rely on…

Program Synthesis

Teaching Code LLMs to Reason with Intermediate Formal Specifications

2026-07-05 · Minh Le-Anh, Cuong Chi Le, Tien N. Nguyen arxiv

Unlike natural-language specifications, executable formal specifications provide machine-checkable constraints for verifying, debugging, and repairing code. However, writing such specifications is labor-intensive, and ex…

Program Repair