Skip to main content
QUICK REVIEW

[Paper Review] Pitfalls in Language Models for Code Intelligence: A Taxonomy and Survey

Xinyu She, Yue Liu|arXiv (Cornell University)|Oct 27, 2023
Software Engineering ResearchComputer Science8 citations
TL;DR

A systematic literature review identifying 67 LM4Code studies and proposing a four-area taxonomy of pitfalls across data, system design, evaluation, and deployment, with implications and solutions to improve reliability.

ABSTRACT

Modern language models (LMs) have been successfully employed in source code generation and understanding, leading to a significant increase in research focused on learning-based code intelligence, such as automated bug repair, and test case generation. Despite their great potential, language models for code intelligence (LM4Code) are susceptible to potential pitfalls, which hinder realistic performance and further impact their reliability and applicability in real-world deployment. Such challenges drive the need for a comprehensive understanding - not just identifying these issues but delving into their possible implications and existing solutions to build more reliable language models tailored to code intelligence. Based on a well-defined systematic research approach, we conducted an extensive literature review to uncover the pitfalls inherent in LM4Code. Finally, 67 primary studies from top-tier venues have been identified. After carefully examining these studies, we designed a taxonomy of pitfalls in LM4Code research and conducted a systematic study to summarize the issues, implications, current solutions, and challenges of different pitfalls for LM4Code systems. We developed a comprehensive classification scheme that dissects pitfalls across four crucial aspects: data collection and labeling, system design and learning, performance evaluation, and deployment and maintenance. Through this study, we aim to provide a roadmap for researchers and practitioners, facilitating their understanding and utilization of LM4Code in reliable and trustworthy ways.

Motivation & Objective

  • Identify and classify pitfalls affecting LM4Code across the data, design, evaluation, and deployment lifecycle.
  • Assess the implications of these pitfalls on performance, reliability, and trustworthiness.
  • Summarize existing solutions and best practices to mitigate pitfalls in LM4Code.
  • Provide a roadmap of open challenges and directions for robust LM4Code research and practice.

Proposed method

  • Perform a systematic literature review (SLR) following Kitchenham and Charters guidelines.
  • Use quasi-gold standard search and backward/forward snowballing to collect relevant primary studies.
  • Categorize findings into a four-stage LM4Code lifecycle: data collection/labeling, system design/learning, performance evaluation, deployment/maintenance.
  • Synthesize qualitative and quantitative insights on pitfalls, implications, and solutions.
  • Analyze publication distributions over time and LM types to reveal trends in LM4Code research.

Experimental results

Research questions

  • RQ1RQ1: What types of pitfalls are prevalent in language models for code intelligence?
  • RQ2RQ2: What are the implications of these pitfalls for effectiveness, reliability, and ethics of LM4Code systems?
  • RQ3RQ3: What solutions have been proposed to address these pitfalls?

Key findings

  • 67 primary studies (2018–2023) were identified and analyzed.
  • A four-aspect taxonomy was developed: data collection/labeling, system design/learning, performance evaluation, deployment/maintenance.
  • Data-related pitfalls include unbalanced distribution, data noise, and labeling errors, which can lead to performance overestimation and compromised model efficacy.
  • System-design pitfalls include data snooping, spurious correlations, and inappropriate model design, contributing to over-optimistic metrics and unreliable behavior.
  • Solutions include data cleaning/denoising, real-world benchmarks, cross-project validation, time-based splits, regularization, and emphasis on model interpretability.
  • There is a shift in focus toward transformer-based LM4Code and transparency-aware evaluation as part of the research trajectory.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.