paper-with-me

홈 › Papers

Uncovering LLM-Generated Code: A Zero-Shot Synthetic Code Detector via Code Rewriting

2024-05-25 · Tong Ye, Yangkai Du, Tengfei Ma, Lingfei Wu, Xuhong Zhang, Shouling Ji, Wenhai Wang

Large Language Models (LLMs) have demonstrated remarkable proficiency in generating code. However, the misuse of LLM-generated (synthetic) code has raised concerns in both educational and industrial contexts, underscoring the urgent need for synthetic code detectors. Existing methods for detecting synthetic content are primarily designed for general text and struggle with code due to the unique grammatical structure of programming languages and the presence of numerous ''low-entropy'' tokens. Building on this, our work proposes a novel zero-shot synthetic code detector based on the similarity between the original code and its LLM-rewritten variants. Our method is based on the observation that differences between LLM-rewritten and original code tend to be smaller when the original code is synthetic. We utilize self-supervised contrastive learning to train a code similarity model and evaluate our approach on two synthetic code detection benchmarks. Our results demonstrate a significant improvement over existing SOTA synthetic content detectors, with AUROC scores increasing by 20.5% on the APPS benchmark and 29.1% on the MBPP benchmark.

📄 PDF Abstract BibTeX arXiv:2405.16133

Code (0)

등록된 구현이 없습니다.

Tasks

Contrastive Learningmbpp

Methods 이 논문이 사용한 방법론

Contrastive Learning 설명 없음

Similar Papers 제목 키워드 기반

Uncovering Hidden Intentions: Exploring Prompt Recovery for Deeper Insights into Generated Texts

2024-06-22 · Louis Give, Timo Zaoral, Maria Antonietta Bruno

Today, the detection of AI-generated content is receiving more and more attention. Our idea is to go beyond detection and try to recover the prompt used to generate a text. This paper, to the best of our knowledge, intro…

In-Context Learning

Text-guided Synthetic Geometric Augmentation for Zero-shot 3D Understanding

2025-01-16 · Kohei Torimi, Ryosuke Yamada, Daichi Otsuka, Kensho Hara 외

Zero-shot recognition models require extensive training data for generalization. However, in zero-shot 3D classification, collecting 3D data and captions is costly and laborintensive, posing a significant barrier compare…

3D ClassificationZero-shot 3D classificationZero-Shot Learning

Is synthetic data from generative models ready for image recognition?

2022-10-14 · Ruifei He, Shuyang Sun, Xin Yu, Chuhui Xue 외

Recent text-to-image generation models have shown promising results in generating high-fidelity photo-realistic images. Though the results are astonishing to human eyes, how applicable these generated images are for reco…

Image GenerationText to Image GenerationText-to-Image GenerationTransfer Learning

HierSpeech++: Bridging the Gap between Semantic and Acoustic Representation of Speech by Hierarchical Variational Inference for Zero-shot Speech Synthesis

2023-11-21 · Sang-Hoon Lee, Ha-Yeong Choi, Seung-bin Kim, Seong-Whan Lee

Large language models (LLM)-based speech synthesis has been widely adopted in zero-shot speech synthesis. However, they require a large-scale data and possess the same limitations as previous autoregressive speech models…

Speech SynthesisSuper-Resolutiontext-to-speechText to Speech+2

FuseGen: PLM Fusion for Data-generation based Zero-shot Learning

2024-06-18 · Tianyuan Zou, Yang Liu, Peng Li, Jianqing Zhang 외

Data generation-based zero-shot learning, although effective in training Small Task-specific Models (STMs) via synthetic datasets generated by Pre-trained Language Models (PLMs), is often limited by the low quality of su…

Zero-Shot Learning