Sampling in Software Engineering Research: A Critical Review and Guidelines
Not on the map. Why?
Abstract (arXiv)
Representative sampling appears rare in empirical software engineering research. Not all studies need representative samples, but a general lack of representative sampling undermines a scientific field. This article therefore reports a critical review of the state of sampling in recent, high-quality software engineering research. The key findings are: (1) random sampling is rare; (2) sophisticated sampling strategies are very rare; (3) sampling, representativeness and randomness often appear misunderstood. These findings suggest that software engineering research has a generalizability crisis. To address these problems, this paper synthesizes existing knowledge of sampling into a succinct primer and proposes extensive guidelines for improving the conduct, presentation and evaluation of sampling in software engineering research. It is further recommended that while researchers should strive for more representative samples, disparaging non-probability sampling is generally capricious and particularly misguided for predominately qualitative research.
Key facts. Cited by 23 papers in the map (data through 7 Oct 2026). First posted on arXiv 18 Feb 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 1; 2022: 1; 2023: 2; 2024: 4; 2025: 9; 2026: 6.
23 papers.
Sort:
By area:
- 2025An Empirical Study on Failures in Automated Issue Solvingcited by 15
- 2024Just another copy and paste? Comparing the security vulnerabilities of ChatGPT generated code and StackOverflow answerscited by 12
- 2025SPICE: An Automated SWE-Bench Labeling Pipeline for Issue Clarity, Test Coverage, and Effort Estimationcited by 11
- 2024Towards More Trustworthy and Interpretable LLMs for Code through Syntax-Grounded Explanationscited by 10
- 2024Are Latent Vulnerabilities Hidden Gems for Software Vulnerability Prediction? An Empirical Studycited by 9
- 2023Ethics in the Age of AI: An Analysis of AI Practitioners' Awareness and Challengescited by 6
- 2022TEP-GNN: Accurate Execution Time Prediction of Functional Tests using Graph Neural Networkscited by 5
- 2025CodeReviewQA: The Code Review Comprehension Assessment for Large Language Modelscited by 3
- 2023The Perspective of Software Professionals on Algorithmic Racismcited by 1
- 2024Navigating Fairness: Practitioners' Understanding, Challenges, and Strategies in AI/ML Developmentcited by 1
- 2025Enabling Global, Human-Centered Explanations for LLMs:From Tokens to Interpretable Code and Test Generationcited by 1
- 2025How Do Companies Manage the Environmental Sustainability of AI? An Interview Study About Green AI Efforts and Regulationscited by 1
11 more
- 2026A Taxonomy of Runtime Faults in Model Context Protocol Serverscited by 1
- 2026From Registry to Repository: How AI Agent Skills Are Written, Adapted, and Maintainedcited by 1
- 2021Pattern Discovery and Validation Using Scientific Research Methodscited by 0
- 2025Mapping the Trust Terrain: LLMs in Software Engineering -- Insights and Perspectivescited by 0
- 2025A Survey for What Developers Require in AI-powered Tools that Aid in Component Selection in CBSDcited by 0
- 2025Integrating Human Feedback into a Reinforcement Learning-Based Framework for Adaptive User Interfacescited by 0
- 2025Do AI Models Dream of Faster Code? An Empirical Study on LLM-Proposed Performance Improvements in Real-World Softwarecited by 0
- 2026Taking a Pulse on How Generative AI is Reshaping the Software Engineering Research Landscapecited by 0
- 2026ATLAS: Agentic Taxonomy of Large-Scale Software Ecosystemscited by 0
- 2026Rethinking Code Performance Benchmarks for LLMscited by 0
- 2026BulkPR-Bench: Benchmarking Queue-Level Governance of Interacting Pull Requestscited by 0
- 2026BulkPR-Bench: Benchmarking Queue-Level Governance of Interacting Pull Requests3 Aug 2026
- 2026Rethinking Code Performance Benchmarks for LLMs8 Jul 2026
- 2026From Registry to Repository: How AI Agent Skills Are Written, Adapted, and Maintained1 Jul 2026
- 2026ATLAS: Agentic Taxonomy of Large-Scale Software Ecosystems19 Jun 2026
- 2026A Taxonomy of Runtime Faults in Model Context Protocol Servers3 Jun 2026
- 2026Taking a Pulse on How Generative AI is Reshaping the Software Engineering Research Landscape13 Apr 2026
- 2025Do AI Models Dream of Faster Code? An Empirical Study on LLM-Proposed Performance Improvements in Real-World Software17 Oct 2025
- 2025An Empirical Study on Failures in Automated Issue Solving17 Sep 2025
- 2025SPICE: An Automated SWE-Bench Labeling Pipeline for Issue Clarity, Test Coverage, and Effort Estimation12 Jul 2025
- 2025How Do Companies Manage the Environmental Sustainability of AI? An Interview Study About Green AI Efforts and Regulations12 May 2025
- 2025Integrating Human Feedback into a Reinforcement Learning-Based Framework for Adaptive User Interfaces29 Apr 2025
- 2025A Survey for What Developers Require in AI-powered Tools that Aid in Component Selection in CBSD18 Apr 2025
11 more
- 2025Enabling Global, Human-Centered Explanations for LLMs:From Tokens to Interpretable Code and Test Generation21 Mar 2025
- 2025CodeReviewQA: The Code Review Comprehension Assessment for Large Language Models20 Mar 2025
- 2025Mapping the Trust Terrain: LLMs in Software Engineering -- Insights and Perspectives18 Mar 2025
- 2024Towards More Trustworthy and Interpretable LLMs for Code through Syntax-Grounded Explanations12 Jul 2024
- 2024Just another copy and paste? Comparing the security vulnerabilities of ChatGPT generated code and StackOverflow answers22 Mar 2024
- 2024Navigating Fairness: Practitioners' Understanding, Challenges, and Strategies in AI/ML Development21 Mar 2024
- 2024Are Latent Vulnerabilities Hidden Gems for Software Vulnerability Prediction? An Empirical Study20 Jan 2024
- 2023Ethics in the Age of AI: An Analysis of AI Practitioners' Awareness and Challenges14 Jul 2023
- 2023The Perspective of Software Professionals on Algorithmic Racism27 Jun 2023
- 2022TEP-GNN: Accurate Execution Time Prediction of Functional Tests using Graph Neural Networks25 Aug 2022
- 2021Pattern Discovery and Validation Using Scientific Research Methods11 Jul 2021
- 2025An Empirical Study on Failures in Automated Issue Solvingcited by 15
- 2026A Taxonomy of Runtime Faults in Model Context Protocol Serverscited by 1
- 2026From Registry to Repository: How AI Agent Skills Are Written, Adapted, and Maintainedcited by 1
- 2026ATLAS: Agentic Taxonomy of Large-Scale Software Ecosystemscited by 0
- 2026From Registry to Repository: How AI Agent Skills Are Written, Adapted, and Maintained1 Jul 2026
- 2026ATLAS: Agentic Taxonomy of Large-Scale Software Ecosystems19 Jun 2026
- 2026A Taxonomy of Runtime Faults in Model Context Protocol Servers3 Jun 2026
- 2025An Empirical Study on Failures in Automated Issue Solving17 Sep 2025
- 2026Rethinking Code Performance Benchmarks for LLMscited by 0
- 2026Rethinking Code Performance Benchmarks for LLMs8 Jul 2026
- 2024Just another copy and paste? Comparing the security vulnerabilities of ChatGPT generated code and StackOverflow answerscited by 12
- 2025SPICE: An Automated SWE-Bench Labeling Pipeline for Issue Clarity, Test Coverage, and Effort Estimationcited by 11
- 2024Towards More Trustworthy and Interpretable LLMs for Code through Syntax-Grounded Explanationscited by 10
- 2024Are Latent Vulnerabilities Hidden Gems for Software Vulnerability Prediction? An Empirical Studycited by 9
- 2023Ethics in the Age of AI: An Analysis of AI Practitioners' Awareness and Challengescited by 6
- 2022TEP-GNN: Accurate Execution Time Prediction of Functional Tests using Graph Neural Networkscited by 5
- 2025CodeReviewQA: The Code Review Comprehension Assessment for Large Language Modelscited by 3
- 2023The Perspective of Software Professionals on Algorithmic Racismcited by 1
- 2024Navigating Fairness: Practitioners' Understanding, Challenges, and Strategies in AI/ML Developmentcited by 1
- 2025Enabling Global, Human-Centered Explanations for LLMs:From Tokens to Interpretable Code and Test Generationcited by 1
- 2025How Do Companies Manage the Environmental Sustainability of AI? An Interview Study About Green AI Efforts and Regulationscited by 1
- 2021Pattern Discovery and Validation Using Scientific Research Methodscited by 0
12 most cited of 17 All 17 (JSON)
- 2026BulkPR-Bench: Benchmarking Queue-Level Governance of Interacting Pull Requests3 Aug 2026
- 2026Taking a Pulse on How Generative AI is Reshaping the Software Engineering Research Landscape13 Apr 2026
- 2025Do AI Models Dream of Faster Code? An Empirical Study on LLM-Proposed Performance Improvements in Real-World Software17 Oct 2025
- 2025SPICE: An Automated SWE-Bench Labeling Pipeline for Issue Clarity, Test Coverage, and Effort Estimation12 Jul 2025
- 2025How Do Companies Manage the Environmental Sustainability of AI? An Interview Study About Green AI Efforts and Regulations12 May 2025
- 2025A Survey for What Developers Require in AI-powered Tools that Aid in Component Selection in CBSD18 Apr 2025
- 2025Enabling Global, Human-Centered Explanations for LLMs:From Tokens to Interpretable Code and Test Generation21 Mar 2025
- 2025CodeReviewQA: The Code Review Comprehension Assessment for Large Language Models20 Mar 2025
- 2025Mapping the Trust Terrain: LLMs in Software Engineering -- Insights and Perspectives18 Mar 2025
- 2024Towards More Trustworthy and Interpretable LLMs for Code through Syntax-Grounded Explanations12 Jul 2024
- 2024Just another copy and paste? Comparing the security vulnerabilities of ChatGPT generated code and StackOverflow answers22 Mar 2024
- 2024Navigating Fairness: Practitioners' Understanding, Challenges, and Strategies in AI/ML Development21 Mar 2024
12 newest of 17 All 17 (JSON)