paper-with-me

Papers

Understanding Programs by Exploiting (Fuzzing) Test Cases

2023-05-23 · Jianyu Zhao, Yuyang Rong, Yiwen Guo, Yifeng He, Hao Chen

Semantic understanding of programs has attracted great attention in the community. Inspired by recent successes of large language models (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.

📄 PDF Abstract BibTeX arXiv:2305.13592

Code (1)

rabbitjy/fuzztuning 공식 구현 pytorch

Tasks

Clone DetectionCode ClassificationNatural Language UnderstandingRepresentation Learning

Similar Papers 제목 키워드 기반

Greybox fuzzing as a contextual bandits problem

2018-06-11 · Ketan Patil, Aditya Kanade

Greybox fuzzing is one of the most useful and effective techniques for the bug detection in large scale application programs. It uses minimal amount of instrumentation. American Fuzzy Lop (AFL) is a popular coverage base…

Multi-Armed Bandits

WhiteFox: White-Box Compiler Fuzzing Empowered by Large Language Models

2023-10-24 · Chenyuan Yang, Yinlin Deng, Runyu Lu, Jiayi Yao 외

Compiler correctness is crucial, as miscompilation can falsify program behaviors, leading to serious consequences. Fuzzing has been studied to uncover compiler defects. However, compiler fuzzing remains challenging: Exis…

Code GenerationCompiler Optimization

KQFuzz: Knowledge-Guided Fuzzing for Quantum Libraries via Large Language Models

2026-07-28 · Fuyuan Xia, Qixin Zhang, Chenhao Ying, Haojin Zhu 외 arxiv

As quantum computing continually improves, ensuring the reliability and correctness of quantum libraries has become increasingly critical. To this end, many LLM-based fuzzing approaches towards quantum libraries have bee…

MEUZZ: Smart Seed Scheduling for Hybrid Fuzzing

2020-02-20 · Yao-Hui Chen, Mansour Ahmadi, Reza Mirzazade farkhani, Boyu Wang 외

Seed scheduling is a prominent factor in determining the yields of hybrid fuzzing. Existing hybrid fuzzers schedule seeds based on fixed heuristics that aim to predict input utilities. However, such heuristics are not ge…

BIG-bench Machine LearningScheduling

Adaptive Grey-Box Fuzz-Testing with Thompson Sampling

2018-08-24 · Siddharth Karamcheti, Gideon Mann, David Rosenberg

Fuzz testing, or "fuzzing," refers to a widely deployed class of techniques for testing programs by generating a set of inputs for the express purpose of finding bugs and identifying security flaws. Grey-box fuzzing, the…

Thompson Sampling