Generalizability of Code Clone Detection on CodeBERT
Sonnekalb, Tim, Gruner, Bernd, Brust, Clemens-Alexander, Mäder, Patrick
–arXiv.org Artificial Intelligence
Transformer networks such as CodeBERT already achieve outstanding results for code clone detection in benchmark datasets, so one could assume that this task has already been solved. However, code clone detection is not a trivial task. Semantic code clones, in particular, are challenging to detect. We show that the generalizability of CodeBERT decreases by evaluating two different subsets of Java code clones from BigCloneBench. We observe a significant drop in F1 score when we evaluate different code snippets and functionality IDs than those used for model building.
arXiv.org Artificial Intelligence
Sep-1-2022
- Country:
- Europe > Germany (0.06)
- North America > United States
- New York > New York County
- New York City (0.05)
- Michigan > Oakland County
- Rochester (0.06)
- New York > New York County
- Africa > Middle East
- Tunisia (0.05)
- Genre:
- Research Report (0.41)
- Technology: