arrow
Return

Code Similarity Detection Using Complexity-Based Birthmarks

delete2026-01-01
delete0
PRE
AI
R
Rares Folea *
M
Mihai Dascălu
E
Emil Sluşanschi
DOI:10.1007/978-3-032-09318-9_21delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
This research investigates using complexity-based code embeddings to produce unique software birthmarks optimized for software similarity detection. We suggest a novel approach to address this problem by handling the source code as a collection of complexity-based birthmarks. Our model has identified code implementation similarity across 280,000 analyzed pairs with an F1-score of 82% when evaluated against a dataset of solutions gathered from Codeforces competitive programming contests, using only twenty-four unique features for birthmark generation. Using a perf-based profiler that recorded raw metrics like branch misses, total CPU cycles, or page faults captured on a Unix system, the programs under evaluation were dynamically evaluated under a range of incremental inputs. The similarity score was subsequently determined using these performance metrics to build regression models designed to approximate the programs complexity class for each performance metric.
Keywords:
code similarity
complexity-based birthmarks
code embeddings
complexity
similarity detection
software plagiarism detection

Journal

C
COMPUTATIONAL COLLECTIVE INTELLIGENCE, ICCCI 2025, PT I
IF:
0
Papers:
33
Citations:
0

Organization

Cited Papers

Cited Papers

Binary cross-entropy with dynamical clipping
err2022-03-04
err0
PREAI
errPetr Hurtik; Stefania Tomasiello; Jan Hula; David Hynar
errShare
errSave
Fast and Memory-Efficient Neural Code Completion
err2021-05-01
err0
errOAAI
errAlexey Svyatkovskiy; Sebastian Lee; Anna Hadjitofi; Maik Riechert; Juliana Vicente Franco; Miltiadis Allamanis
errShare
errSave
code2vec: learning distributed representations of code
err2019-01-02
err0
errOAAI
errUri Alon; Meital Zilberstein; Omer Levy; Eran Yahav
errShare
errSave
A Survey of Binary Code Similarity
err2021-04-17
err50
errOAAI
errUl Haq, Irfan; Caballero, Juan
errShare
errSave
BinCola: Diversity-Sensitive Contrastive Learning for Binary Code Similarity Detection
err2024-10-01
err1
PREAI
errJiang, Shuai; Fu, Cai; He, Shuai; Lv, Jianqiang; Han, Lansheng; Hu, Hong
errShare
errSave
researcher View more