Cited by 72Software Engineering ResearchSoftware Testing and Debugging TechniquesSoftware Engineering Techniques and Practices

An Empirical Study of Code Smells in Transformer-based Code Generation Techniques

Siddiq, Mohammed Latif, Majumder, Shafayat H., Mim, Maisha R., Jajodia, Sourov, Santos, Joanna C. S.·2022·2022 IEEE 22nd International Working Conference on Source Code Analysis and Manipulation (SCAM)

Abstract

Prior works have developed transformer-based language learning models to automatically generate source code for a task without compilation errors. The datasets used to train these techniques include samples from open source projects which may not be free of security flaws, code smells, and violations of standard coding practices. Therefore, we investigate to what extent code smells are present in the datasets of coding generation techniques and verify whether they leak into the output of these techniques. To conduct this study, we used Pylint and Bandit to detect code smells and security smells in three widely used training sets (CodeXGlue, APPS, and Code Clippy). We observed that Pylint caught 264 code smell types, whereas Bandit located 44 security smell types in these three datasets used for training code generation techniques. By analyzing the output from ten different configurations of the open-source fine-tuned transformer-based GPT-Neo 125M parameters model, we observed that this model leaked the smells and non-standard practices to the generated source code. When analyzing GitHub Copilot's suggestions, a closed source code generation tool, we observed that it contained 18 types of code smells, including substandard coding patterns and 2 security smell types.

Integrity signals

Registry

Crossref · 10.1109/scam55253.2022.00014

Cites

53 of 53 references verified0 citation errors · 0 not checkable

Statistics

Recomputing p-values needs the paper’s full text.

Claims the paper makes

This paper’s full text isn’t openly available, so its claims and self-check weren’t run. The registry and citation checks still apply.

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

Cites

Flagged first, then by citations

Cited by

Sorted by citations

Authors
Siddiq, M. L., Majumder, S. H., Mim, M. R., Jajodia, S., & Santos, J. C. S.
Affiliations
  • University of Notre Dame (US)
  • Bangladesh University of Engineering and Technology (BD)
Venue
2022 IEEE 22nd International Working Conference on Source Code Analysis and Manipulation (SCAM)
Publisher
IEEE
Published
2022-10
Pages
71-82
OpenAlex
W4315815628
Cited by
70
References
50
Citations by year
2026: 14 · 2025: 22 · 2024: 28 · 2023: 6
FWCI
12.52
Type
conference paper
Language
en
Open access
closed
Locations
IEEE International Working Conference on Source Code Analysis and Manipulation (SCAM) (publishedVersion)
Topics
  • Physical Sciences › Computer Science › Information Systems › Software Engineering Research
  • Physical Sciences › Computer Science › Software › Software Testing and Debugging Techniques
  • Physical Sciences › Computer Science › Information Systems › Software Engineering Techniques and Practices
Keywords
code smells, training data quality, GPT-Neo, GitHub Copilot, CodeXGLUE, APP, Pylint, bandits

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review