Quality Assessment of LLM-Generated Multi-Language Systems: Comparative Analysis Using Design Smells | Research Square window.SnipcartSettings = { analytics: { enabled: false } }; (function() { var accessVector = localStorage.getItem('access_vector') || ''; window.dataLayer = window.dataLayer || []; if (accessVector) { window.dataLayer.push({ user: { profile: { profileInfo: { snid: accessVector } } } }); } })(); (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-K279D39R'); Browse Preprints In Review Journals COVID-19 Preprints AJE Video Bytes Research Tools Research Promotion AJE Professional Editing AJE Rubriq About Preprint Platform In Review Editorial Policies Our Team Advisory Board Help Center Sign In Submit a Preprint Cite Share Download PDF Research Article Quality Assessment of LLM-Generated Multi-Language Systems: Comparative Analysis Using Design Smells Md. Shahrukh Ansari, Harinath Kuruva, Salman Abdul Moiz This is a preprint; it has not been peer reviewed by a journal. https://doi.org/ 10.21203/rs.3.rs-9407347/v1 This work is licensed under a CC BY 4.0 License Status: Under Review Version 1 posted 4 You are reading this latest preprint version Abstract Large Language Models (LLMs) are increasingly used to generate source code, including software that integrates multiple programming languages. While prior research has examined correctness and security aspects of LLM-generated code, little is known about its structural quality in multi-language settings, particularly with respect to cross-language design smells. Multi-language systems, such as those based on the Java Native Interface (JNI), introduce additional architectural complexity due to the need for coordination across language boundaries.In this paper, we present an exploratory empirical study investigating the prevalence and distribution of multi-language design smells in LLM-generated codes. We design a set of 80 JNI-based programming tasks covering 16 multi-language smells and generate implementations using four state-of-the-art LLMs: ChatGPT-5.2 , Claude Sonnet 4.6 , Gemini 3.1 pro , and Qwen3-Coder . The generated code is analyzed using a rule-based detection framework to identify the presence and distribution of multli-language design smells.Our results show that multi-language design smells are prevalent across all models, with up to 60% of generated implementations containing at least one smell. We observe significant variation across both models and smell types. Some smells occur consistently across all LLMs, suggesting shared structural tendencies, while others exhibit strong model-dependent behavior. These findings indicate that structural deficiencies in LLM-generated multi-language code are systematic and not uniformly distributed.Overall, this study highlights that architectural quality remains an underexplored dimension of LLM-based code generation, particularly in multi-language contexts. The results suggest that existing evaluation practices, which focus primarily on correctness, may overlook important structural issues. We argue for the need to incorporate multi-language structural quality assessment into future evaluation frameworks for LLM-generated codes. Code smells design smells Multi-language systems Multi-language design smells Code smell Detection Technique change-proneness fault-proneness Full Text Additional Declarations No competing interests reported. Cite Share Download PDF Status: Under Review Version 1 posted Reviewers invited by journal 19 Apr, 2026 Editor assigned by journal 17 Apr, 2026 Submission checks completed at journal 14 Apr, 2026 First submitted to journal 13 Apr, 2026 You are reading this latest preprint version Research Square lets you share your work early, gain feedback from the community, and start making changes to your manuscript prior to peer review in a journal. As a division of Research Square Company, we’re committed to making research communication faster, fairer, and more useful. We do this by developing innovative software and high quality services for the global research community. Our growing team is made up of researchers and industry professionals working together to solve the most critical problems facing scientific publishing. Also discoverable on Platform About Our Team In Review Editorial Policies Advisory Board Help Center Resources Author Services Accessibility API Access RSS feed Manage Cookie Preferences © Research Square 2026 | ISSN 2693-5015 (online) Privacy Policy Terms of Service Do Not Sell My Personal Information {"props":{"pageProps":{"initialData":{"identity":"rs-9407347","acceptedTermsAndConditions":true,"allowDirectSubmit":false,"archivedVersions":[],"articleType":"Research Article","associatedPublications":[],"authors":[{"id":625784295,"identity":"65e3f9ce-7515-4c1f-ac59-008dbb43837c","order_by":0,"name":"Md. Shahrukh Ansari","email":"","orcid":"","institution":"University of Hyderabad","correspondingAuthor":false,"prefix":"","firstName":"Md.","middleName":"Shahrukh","lastName":"Ansari","suffix":""},{"id":625784296,"identity":"60b49cca-a912-4842-992d-7d45936599b7","order_by":1,"name":"Harinath Kuruva","email":"","orcid":"","institution":"University of Hyderabad","correspondingAuthor":false,"prefix":"","firstName":"Harinath","middleName":"","lastName":"Kuruva","suffix":""},{"id":625784302,"identity":"c48413e0-dc93-40c0-991f-42e8b6a356fc","order_by":2,"name":"Salman Abdul Moiz","email":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAAyAQMAAABI0h/eAAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAz0lEQVRIiWNgGAWjYFAC5gYgYcPAIAFGDAxshLUwgrSkka7lMEILQSDffrB1w88d5xP7pXsMbzDU2DHwSTfg12JwJrHtZu+Z24kz55wxtmA4lszAJnOAgBaGxLYbvG23EzfcyDGTYGA7wMAmkUDAYf0P227+bTsH1fKPCC0MNxLbbvO2HYBoYWwjQovBjYdtt2Xbko1nzkgrtkjsS+YhwmHJx26+bbOT7ZdI3njjwzc7OfkZhByGABwGDEDFPESrBwL2B6SoHgWjYBSMghEEADhMRLtYY6C7AAAAAElFTkSuQmCC","orcid":"","institution":"University of Hyderabad","correspondingAuthor":true,"prefix":"","firstName":"Salman","middleName":"Abdul","lastName":"Moiz","suffix":""}],"badges":[],"createdAt":"2026-04-13 18:08:13","currentVersionCode":1,"declarations":"","doi":"10.21203/rs.3.rs-9407347/v1","doiUrl":"https://doi.org/10.21203/rs.3.rs-9407347/v1","draftVersion":[],"editorialEvents":[],"editorialNote":"","failedWorkflow":false,"files":[{"id":107935470,"identity":"a397217f-5a39-4daa-ad24-ddd87d29304a","added_by":"auto","created_at":"2026-04-27 17:51:54","extension":"pdf","order_by":1,"title":"","display":"","copyAsset":false,"role":"manuscript-pdf","size":380584,"visible":true,"origin":"","legend":"","description":"","filename":"LLMcodequalitySQJ1.pdf","url":"https://assets-eu.researchsquare.com/files/rs-9407347/v1_covered_e158c235-fce3-4beb-86d2-495d890a0675.pdf"}],"financialInterests":"No competing interests reported.","formattedTitle":"Quality Assessment of LLM-Generated Multi-Language Systems: Comparative Analysis Using Design Smells","fulltext":[],"fulltextSource":"","fullText":"","funders":[],"hasAdminPriorityOnWorkflow":false,"hasManuscriptDocX":false,"hasOptedInToPreprint":true,"hasPassedJournalQc":"","hasAnyPriority":false,"hideJournal":false,"highlight":"","institution":"","isAcceptedByJournal":false,"isAuthorSuppliedPdf":true,"isDeskRejected":"","isHiddenFromSearch":false,"isInQc":false,"isInWorkflow":false,"isPdf":true,"isPdfUpToDate":true,"isWithdrawnOrRetracted":false,"journal":{"display":true,"email":"
[email protected]","identity":"software-quality-journal","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":false,"externalIdentity":"sqjo","sideBox":"Learn more about [Software Quality Journal](http://link.springer.com/journal/11219)","snPcode":"11219","submissionUrl":"https://submission.nature.com/new-submission/11219/3","title":"Software Quality Journal","twitterHandle":"","acdcEnabled":true,"dfaEnabled":true,"editorialSystem":"em","reportingPortfolio":"Springer Hybrid","inReviewEnabled":true,"inReviewRevisionsEnabled":false},"keywords":"Code smells, design smells, Multi-language systems, Multi-language design smells, Code smell Detection Technique, change-proneness, fault-proneness","lastPublishedDoi":"10.21203/rs.3.rs-9407347/v1","lastPublishedDoiUrl":"https://doi.org/10.21203/rs.3.rs-9407347/v1","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"},"manuscriptAbstract":"\u003cp\u003eLarge Language Models (LLMs) are increasingly used to generate source code, including software that integrates multiple programming languages. While prior research has examined correctness and security aspects of LLM-generated code, little is known about its structural quality in multi-language settings, particularly with respect to cross-language design smells. Multi-language systems, such as those based on the Java Native Interface (JNI), introduce additional architectural complexity due to the need for coordination across language boundaries.In this paper, we present an exploratory empirical study investigating the prevalence and distribution of multi-language design smells in LLM-generated codes. We design a set of 80 JNI-based programming tasks covering 16 multi-language smells and generate implementations using four state-of-the-art LLMs: \u003cem\u003eChatGPT-5.2\u003c/em\u003e, \u003cem\u003eClaude Sonnet 4.6\u003c/em\u003e, \u003cem\u003eGemini 3.1 pro\u003c/em\u003e, and \u003cem\u003eQwen3-Coder\u003c/em\u003e. The generated code is analyzed using a rule-based detection framework to identify the presence and distribution of multli-language design smells.Our results show that multi-language design smells are prevalent across all models, with up to 60% of generated implementations containing at least one smell. We observe significant variation across both models and smell types. Some smells occur consistently across all LLMs, suggesting shared structural tendencies, while others exhibit strong model-dependent behavior. These findings indicate that structural deficiencies in LLM-generated multi-language code are systematic and not uniformly distributed.Overall, this study highlights that architectural quality remains an underexplored dimension of LLM-based code generation, particularly in multi-language contexts. The results suggest that existing evaluation practices, which focus primarily on correctness, may overlook important structural issues. We argue for the need to incorporate multi-language structural quality assessment into future evaluation frameworks for LLM-generated codes.\u003c/p\u003e","manuscriptTitle":"Quality Assessment of LLM-Generated Multi-Language Systems: Comparative Analysis Using Design Smells","msid":"","msnumber":"","nonDraftVersions":[{"code":1,"date":"2026-04-27 17:51:34","doi":"10.21203/rs.3.rs-9407347/v1","editorialEvents":[{"type":"communityComments","content":0},{"type":"reviewersInvited","content":"","date":"2026-04-19T17:25:35+00:00","index":"","fulltext":""},{"type":"editorAssigned","content":"","date":"2026-04-17T07:09:31+00:00","index":"","fulltext":""},{"type":"checksComplete","content":"","date":"2026-04-15T00:41:08+00:00","index":"","fulltext":""},{"type":"submitted","content":"Software Quality Journal","date":"2026-04-13T17:52:00+00:00","index":"","fulltext":""}],"status":"published","journal":{"display":true,"email":"
[email protected]","identity":"software-quality-journal","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":false,"externalIdentity":"sqjo","sideBox":"Learn more about [Software Quality Journal](http://link.springer.com/journal/11219)","snPcode":"11219","submissionUrl":"https://submission.nature.com/new-submission/11219/3","title":"Software Quality Journal","twitterHandle":"","acdcEnabled":true,"dfaEnabled":true,"editorialSystem":"em","reportingPortfolio":"Springer Hybrid","inReviewEnabled":true,"inReviewRevisionsEnabled":false}}],"origin":"","ownerIdentity":"68984690-0db7-435d-85d1-ee9c5673df3b","owner":[],"postedDate":"April 27th, 2026","published":true,"recentEditorialEvents":[],"rejectedJournal":[],"revision":"","amendment":"","status":"under-review","subjectAreas":[],"tags":[],"updatedAt":"2026-04-27T17:51:34+00:00","versionOfRecord":[],"versionCreatedAt":"2026-04-27 17:51:34","video":"","vorDoi":"","vorDoiUrl":"","workflowStages":[]},"version":"v1","identity":"rs-9407347","journalConfig":"researchsquare"},"__N_SSP":true},"page":"/article/[identity]/[[...version]]","query":{"redirect":"/article/rs-9407347","identity":"rs-9407347","version":["v1"]},"buildId":"XKTyCvWXoU3ODBz1xrDgd","isFallback":false,"isExperimentalCompile":false,"dynamicIds":[84888],"gssp":true,"scriptLoader":[]}
Text is read by the "Ask this paper" AI Q&A widget below.
Extraction quality varies by source — PMC NXML preserves structure
cleanly, OA-HTML may include some navigation residue, and OA-PDF can
have broken hyphenation. The publisher copy
(via DOI)
is the canonical version.