Do Code LLMs Understand Design Patterns?
Not on the map. Why?
Abstract (arXiv)
Code Large Language Models (LLMs) demonstrate great versatility in adapting to various downstream tasks, including code generation and completion, as well as bug detection and fixing. However, Code LLMs often fail to capture existing coding standards, leading to the generation of code that conflicts with the required design patterns for a given project. As a result, developers must post-process to adapt the generated code to the project's design norms. In this work, we empirically investigate the biases of Code LLMs in software development. Through carefully designed experiments, we assess the models' understanding of design patterns across recognition, comprehension, and generation. Our findings reveal that biases in Code LLMs significantly affect the reliability of downstream tasks.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 13 of its 18 references that are in the map. First posted on arXiv 8 Jan 2025.
Builds on
13 of 18 references.
References · 13
- 2023GPT-4 Technical Reportcited by 18,132
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023Qwen Technical Reportcited by 3,273
- 2023Mistral 7Bcited by 3,065
- 2024Qwen2 Technical Reportcited by 2,076
- 2023StarCoder: may the source be with you!cited by 790
- 2024Yi: Open Foundation Models by 01.AIcited by 706
- 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
- 2022CodeT: Code Generation with Generated Testscited by 369
- 2024Llama Scope: Extracting Millions of Features from Llama-3.1-8B with Sparse Autoencoderscited by 133
- 2024Chain-of-Action: Faithful and Multimodal Question Answering through Large Language Modelscited by 27
- 2024Conv-CoA: Improving Open-domain Question Answering in Large Language Models via Conversational Chain-of-Actioncited by 19
1 more
Built on by
Citing papers per year: 2025: 6; 2026: 3.
9 papers.
- 2025MetaSpatial: Reinforcing 3D Spatial Reasoning in VLMs for the Metaversecited by 50
- 2025Using LLMs in Generating Design Rationale for Software Architecture Decisionscited by 4
- 2025Code Reasoning for Software Engineering Tasks: A Survey and A Call to Actioncited by 4
- 2025Evo-MARL: Co-Evolutionary Multi-Agent Reinforcement Learning for Internalized Safetycited by 4
- 2025AdvEvo-MARL: Shaping Internalized Safety through Adversarial Co-Evolution in Multi-Agent Reinforcement Learningcited by 3
- 2025MetaFind: Scene-Aware 3D Asset Retrieval for Coherent Metaverse Scene Generationcited by 1
- 2026ArchAgent: Scalable Legacy Software Architecture Recovery with LLMscited by 1
- 2026LLM Translation of Compiler Intermediate Representationcited by 0
- 2026Strategies for Guiding LLMs to Use Software Design Patterns: A Case of Singletoncited by 0
- 2026Strategies for Guiding LLMs to Use Software Design Patterns: A Case of Singleton26 May 2026
- 2026LLM Translation of Compiler Intermediate Representation7 May 2026
- 2026ArchAgent: Scalable Legacy Software Architecture Recovery with LLMs19 Jan 2026
- 2025MetaFind: Scene-Aware 3D Asset Retrieval for Coherent Metaverse Scene Generation5 Oct 2025
- 2025AdvEvo-MARL: Shaping Internalized Safety through Adversarial Co-Evolution in Multi-Agent Reinforcement Learning2 Oct 2025
- 2025Evo-MARL: Co-Evolutionary Multi-Agent Reinforcement Learning for Internalized Safety5 Aug 2025
- 2025Code Reasoning for Software Engineering Tasks: A Survey and A Call to Action16 Jun 2025
- 2025Using LLMs in Generating Design Rationale for Software Architecture Decisions29 Apr 2025
- 2025MetaSpatial: Reinforcing 3D Spatial Reasoning in VLMs for the Metaverse24 Mar 2025