Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
119 tokens/sec
GPT-4o
56 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
6 tokens/sec
GPT-4.1 Pro
47 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Understanding Programs by Exploiting (Fuzzing) Test Cases (2305.13592v2)

Published 23 May 2023 in cs.LG, cs.AI, cs.CL, cs.CR, and cs.SE

Abstract: Semantic understanding of programs has attracted great attention in the community. Inspired by recent successes of LLMs in natural language understanding, tremendous progress has been made by treating programming language as another sort of natural language and training LLMs on corpora of program code. However, programs are essentially different from texts after all, in a sense that they are normally heavily structured and syntax-strict. In particular, programs and their basic units (i.e., functions and subroutines) are designed to demonstrate a variety of behaviors and/or provide possible outputs, given different inputs. The relationship between inputs and possible outputs/behaviors represents the functions/subroutines and profiles the program as a whole. Therefore, we propose to incorporate such a relationship into learning, for achieving a deeper semantic understanding of programs. To obtain inputs that are representative enough to trigger the execution of most part of the code, we resort to fuzz testing and propose fuzz tuning to boost the performance of program understanding and code representation learning, given a pre-trained LLM. The effectiveness of the proposed method is verified on two program understanding tasks including code clone detection and code classification, and it outperforms current state-of-the-arts by large margins. Code is available at https://github.com/rabbitjy/FuzzTuning.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (5)
  1. Jianyu Zhao (9 papers)
  2. Yuyang Rong (8 papers)
  3. Yiwen Guo (58 papers)
  4. Yifeng He (14 papers)
  5. Hao Chen (1006 papers)
Citations (13)

Summary

We haven't generated a summary for this paper yet.