This site requires Cookies enabled in your browser for login.
Updating ...
WaterNet Home
WaterNet
for
pour le
Canada
Menu
WaterNet
Home
GWFO
Home
Catalogue
Master Index
Data
Centre
Collections
X
Defaults
Select All
Websites
X
Global Water Futures Observatories (GWFO) Global Water Futures (GWF) Global Institute for Water Security (GIWS) International Network of Alpine Research Catchment Hydrology
Legacy Research Programs
X
Changing Cold Regions Network (CCRN) Drought Research Initiative (DRI) International Network of Alpine Research Catchment Hydrology (Legacy Site) Improving Processes & Parameterization for Prediction in Cold Regions Hydrology (IP3) The Mackenzie Global Energy and Water Cycle Experiment (GEWEX) Study (MAGS)
Legacy sites
Map
Utilities
X
Account Settings Create a New Record Record List Alias List Editor
Edit Data Centre
Data Types
. . .
X
Clear
Select All
Advanced Search
Go to Top⇡
Related items loading ...
Fetching Chart ...
Publication Additional Information
Publication Type
Conference Presentation
Authorship
Roy P.R., Alam A.I., Al-omari F., Roy B., Roy C.K., Schneider K.A.
Title
Unveiling the Potential of Large Language Models in Generating Semantic and Cross-Language Clones
Year
2023
Publication Outlet
2023 IEEE 17th International Workshop on Software Clones (IWSC), Bogotá, Colombia, 2023, pp. 22-28
DOI
https://doi.org/10.1109/IWSC60764.2023.00011
Citation
Roy P.R., Alam A.I., Al-omari F., Roy B., Roy C.K., Schneider K.A. (2023) Unveiling the Potential of Large Language Models in Generating Semantic and Cross-Language Clones, 2023 IEEE 17th International Workshop on Software Clones (IWSC), Bogotá, Colombia, 2023, pp. 22-28
Abstract
Semantic and Cross-language code clone generation may be useful for code reuse, code comprehension, refactoring and benchmarking. OpenAI's GPT model has potential in such clone generation as GPT is used for text generation. When developers copy/paste codes from Stack Overflow (SO) or within a system, there might be inconsistent changes leading to unexpected behaviours. Similarly, if someone possesses a code snippet in a particular programming language but seeks equivalent functionality in a different language, a semantic cross-language code clone generation approach could provide valuable assistance. In this study, using SemanticCloneBench as a vehicle, we evaluated how well the GPT-3 model could help generate semantic and cross-language clone variants for a given fragment. We have comprised a diverse set of code fragments and assessed GPT-3's performance in generating code variants. Through extensive experimentation and analysis, where 9 judges spent 158 hours to validate, we investigate the model's ability to produce accurate and semantically correct variants. Our findings shed light on GPT-3's strengths in code generation, offering insights into the potential applications and challenges of using advanced language models in software development. Our quantitative analysis yields compelling results. In the realm of semantic clones, GPT-3 attains an impressive accuracy of 62.14% and 0.55 BLEU score, achieved through few-shot prompt engineering. Furthermore, the model shines in transcending linguistic confines, boasting an exceptional 91.25% accuracy in generating cross-language clones.
Program Affiliations
GWF: Global Water Futures
Publication Stage
Published
© 2026 - WaterNet Version 2026-07-08
Global Water Futures Observatories
Powered by
G W F Net
T-2024-10-30-t135lEt27Xhkm3PRPiq5GqHQ Publication 1.0