paper-with-me

홈 › Papers

Between Lines of Code: Unraveling the Distinct Patterns of Machine and Human Programmers

2024-01-12 · Yuling Shi, Hongyu Zhang, Chengcheng Wan, Xiaodong Gu

Large language models have catalyzed an unprecedented wave in code generation. While achieving significant advances, they blur the distinctions between machine- and human-authored source code, causing integrity and authenticity issues of software artifacts. Previous methods such as DetectGPT have proven effective in discerning machine-generated texts, but they do not identify and harness the unique patterns of machine-generated code. Thus, its applicability falters when applied to code. In this paper, we carefully study the specific patterns that characterize machine- and human-authored code. Through a rigorous analysis of code attributes such as lexical diversity, conciseness, and naturalness, we expose unique patterns inherent to each source. We particularly notice that the syntactic segmentation of code is a critical factor in identifying its provenance. Based on our findings, we propose DetectCodeGPT, a novel method for detecting machine-generated code, which improves DetectGPT by capturing the distinct stylized patterns of code. Diverging from conventional techniques that depend on external LLMs for perturbations, DetectCodeGPT perturbs the code corpus by strategically inserting spaces and newlines, ensuring both efficacy and efficiency. Experiment results show that our approach significantly outperforms state-of-the-art techniques in detecting machine-generated code.

📄 PDF Abstract BibTeX arXiv:2401.06461

Code (1)

yerbapage/detectcodegpt 공식 구현 pytorch

Tasks

Code GenerationDiversity

Similar Papers 제목 키워드 기반

Uncovering Latent Communication Patterns in Brain Networks via Adaptive Flow Routing

2026-01-31 · Tianhao Huang, Guanghui Min, Zhenyu Lei, Aiying Zhang 외 arxiv

Unraveling how macroscopic cognitive phenotypes emerge from microscopic neuronal connectivity remains one of the core pursuits of neuroscience. To this end, researchers typically leverage multi-modal information from str…

Enhancing Financial Data Visualization for Investment Decision-Making

2023-12-09 · Nisarg Patel, Harmit Shah, Kishan Mewada

Navigating the intricate landscape of financial markets requires adept forecasting of stock price movements. This paper delves into the potential of Long Short-Term Memory (LSTM) networks for predicting stock dynamics, w…

Data VisualizationDecision Makingfeature selectionStock Market Prediction+1

Mamba Knockout for Unraveling Factual Information Flow

2025-05-30 · Nir Endy, Idan Daniel Grosbard, Yuval Ran-Milo, Yonatan Slutzky 외

This paper investigates the flow of factual information in Mamba State-Space Model (SSM)-based language models. We rely on theoretical and empirical connections to Transformer-based architectures and their attention mech…

Mamba

Unraveling Code Clone Dynamics in Deep Learning Frameworks

2024-04-25 · Maram Assi, Safwat Hassan, Ying Zou

Deep Learning (DL) frameworks play a critical role in advancing artificial intelligence, and their rapid growth underscores the need for a comprehensive understanding of software quality and maintainability. DL framework…

Bug fixingDeep Learning

Unraveling the English-Bengali Code-Mixing Phenomenon

2016-11-01 · WS 2016 11 · Ch, Arunavha a, Dipankar Das, Ch Mazumdar 외