Datasets:
LGL-DynT4: A Multi-Modal Benchmark with Aligned Dynamic Traces for Semantic Clone Detection
LGL-DynT4 is a multi-modal benchmark for semantic clone detection, with aligned source code, LLVM IR, and dynamic execution traces.
This Hugging Face repository is the benchmark/data release.
The corresponding development and reproducibility repository is maintained on GitHub:
GitHub:
https://github.com/lngooo/LGL-DynT4-Dev
Overview
LGL-DynT4 is designed for studying semantic similarity beyond surface-level lexical overlap. It provides paired static and dynamic views of programs under both Natural and Obfuscated settings.
The dataset includes:
- 50 functional seeds
- 21 implementation variants for each seed
- 10 execution traces for each implementation
Each sample is aligned across the following modalities:
- Source_Raw: original C source code
- Source_Clean: cleaned C source code
- LLVM_IR_Raw: raw LLVM IR
- LLVM_IR_Clean: cleaned LLVM IR
- Trace: dynamic execution traces
Versions
Natural
The original version with structurally diverse but semantically equivalent implementations.
Obfuscated
A version with identifier randomization applied to variable and function names, reducing lexical cues and making the task more dependent on structural and behavioral evidence.
Available Configurations
manifestnatural_source_rawnatural_source_cleannatural_ir_rawnatural_ir_cleannatural_traceobfus_source_rawobfus_source_cleanobfus_ir_rawobfus_ir_cleanobfus_trace
Loading the Dataset
from datasets import load_dataset
source_ds = load_dataset("lngoo/LGL-DynT4", "natural_source_clean")
trace_ds = load_dataset("lngoo/LGL-DynT4", "obfus_trace")
manifest_ds = load_dataset("lngoo/LGL-DynT4", "manifest")
Repository Structure
.
βββ Data/
β βββ Natural/
β β βββ Source_Raw/
β β βββ Source_Clean/
β β βββ LLVM_IR_Raw/
β β βββ LLVM_IR_Clean/
β β βββ Trace/
β βββ Obfuscated/
β βββ Source_Raw/
β βββ Source_Clean/
β βββ LLVM_IR_Raw/
β βββ LLVM_IR_Clean/
β βββ Trace/
βββ Manifest/
Citation
The paper is currently under review. Please replace the following placeholder information after acceptance.
@article{lgldynt4_under_review,
title = {LGL-DynT4: A Multi-Modal Benchmark with Aligned Dynamic Traces for Semantic Clone Detection},
author = {To be updated},
journal = {Under Review},
year = {2026},
note = {Placeholder citation. Please replace with the final publication information.}
}
- Downloads last month
- 5