mlsanityData to 7 Oct 2026

A Methodology for Investigating AI Patterns Prevalence in Software Repositories

arXiv 2607.00558 ↗First posted 1 Jul 2026cs.SE cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

As Artificial Intelligence(AI)-based applications take off, a clear understanding of AI patterns can uplift the quality of AI applications. Many AI patterns have been proposed in the literature; however, their prevalence in real-life code has not yet been validated. Understanding the actual use of those patterns in practice can clarify our understanding both of the significance of these patterns and their utility. In this paper, we present a methodology to a) identify relevant patterns by mining the literature and then to b) validate their presence and prevalence in actual code repositories using active learning. To that end, we identify 14 AI pattern classes by mining 44 published AI pattern-related sources. Then we use an active learning approach to determine the prevalence of the most common pattern class across 100 GitHub open AI repositories. Using prevalence estimation, we propose bounds on the accuracy of the occurrences. The model achieves 56% accuracy and 55% recall in an 8-way classification task, significantly outperforming the 11% random-chance baseline. Furthermore, the prevalence estimation offers usable bounds for analyzing pattern applications. This methodology provides a robust foundation to start understanding how AI patterns are used in practice, a field that currently lacks empirical data.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 9 of its 35 references that are in the map. First posted on arXiv 1 Jul 2026.

Builds on

9 of 35 references.

References · 9

  1. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  2. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  3. 2023A Survey on Evaluation of Large Language Modelscited by 1,227
  4. 2025Agentic Retrieval-Augmented Generation: A Survey on Agentic RAGcited by 242
  5. 2024LLM-Based Multi-Agent Systems for Software Engineering: Literature Review, Vision and the Road Aheadcited by 155
  6. 2024CodeGRAG: Bridging the Gap between Natural Language and Programming Language via Graphical Retrieval Augmented Generationcited by 4
  7. 2024A Pattern Language for Machine Learning Taskscited by 4
  8. 2020Feature-Based Software Design Pattern Detectioncited by 3
  9. 2024GEML: A Grammar-based Evolutionary Machine Learning Approach for Design-Pattern Detectioncited by 3

Built on by

Not cited yet.