paper-with-me

Papers

LLMSniffer: Detecting LLM-Generated Code via GraphCodeBERT and Supervised Contrastive Learning

2026-04-17 · Mahir Labib Dihan, Abir Muhtasim arxiv

The rapid proliferation of Large Language Models (LLMs) in software development has made distinguishing AI-generated code from human-written code a critical challenge with implications for academic integrity, code quality assurance, and software security. We present LLMSniffer, a detection framework that fine-tunes GraphCodeBERT using a two-stage supervised contrastive learning pipeline augmented with comment removal preprocessing and an MLP classifier. Evaluated on two benchmark datasets - GPTSniffer and Whodunit - LLMSniffer achieves substantial improvements over prior baselines: accuracy increases from 70% to 78% on GPTSniffer (F1: 68% to 78%) and from 91% to 94.65% on Whodunit (F1: 91% to 94.64%). t-SNE visualizations confirm that contrastive fine-tuning yields well-separated, compact embeddings. We release our model checkpoints, datasets, codes and a live interactive demo to facilitate further research.

📄 PDF Abstract BibTeX arXiv:2604.16058

Code (0)

등록된 구현이 없습니다.

Tasks

Contrastive Learning

Similar Papers 제목 키워드 기반

Augmenting the Interpretability of GraphCodeBERT for Code Similarity Tasks

2024-09-20 · Jorge Martinez-Gil

Assessing the degree of similarity of code fragments is crucial for ensuring software quality, but it remains challenging due to the need to capture the deeper semantic aspects of code. Traditional syntactic methods ofte…

Clone Detection

GraphCodeBERT: Pre-training Code Representations with Data Flow

2020-09-17 · ICLR 2021 1 · Daya Guo, Shuo Ren, Shuai Lu, Zhangyin Feng 외

Pre-trained models for programming language have achieved dramatic empirical improvements on a variety of code-related tasks such as code search, code completion, code summarization, etc. However, existing pre-trained mo…

Clone DetectionCode CompletionCode SearchCode Summarization+6

Fine-Tuning Pre-Trained Code Models for AI-Generated Code Detection

2026-05-02 · Jany-Gabriel Ispas, Sergiu Nisioi arxiv

This paper describes the system submitted by team \textbf{Archaeology} to SemEval-2026 Task~13 on AI-generated code detection. The shared task consists of three subtasks; we participate in Subtask-A (binary classificatio…

Binary Classification

What do pre-trained code models know about code?

2021-08-25 · IEEE/ACM International Conference on Automated Software Engineering (ASE) 2021 8 · Anjan Karmakar, Romain Robbes

Pre-trained models of code built on the transformer architecture have performed well on software engineering (SE) tasks such as predictive code generation, code summarization, among others. However, whether the vector re…

DiagnosticOpen-Ended Question Answering

Advanced Detection of Source Code Clones via an Ensemble of Unsupervised Similarity Measures

2024-05-03 · Jorge Martinez-Gil

The capability of accurately determining code similarity is crucial in many tasks related to software development. For example, it might be essential to identify code duplicates for performing software maintenance. This …

Clone DetectionCode SearchEnsemble Learning