mlsanityData to 7 Oct 2026

The Last Dependency Crusade: Solving Python Dependency Conflicts with LLMs

arXiv 2501.16191 ↗First posted 27 Jan 2025cs.SE cs.AIcited by 3

Not on the map. Why?

Abstract (arXiv)

Resolving Python dependency issues remains a tedious and error-prone process, forcing developers to manually trial compatible module versions and interpreter configurations. Existing automated solutions, such as knowledge-graph-based and database-driven methods, face limitations due to the variety of dependency error types, large sets of possible module versions, and conflicts among transitive dependencies. This paper investigates the use of Large Language Models (LLMs) to automatically repair dependency issues in Python programs. We propose PLLM (pronounced "plum"), a novel retrieval-augmented generation (RAG) approach that iteratively infers missing or incorrect dependencies. PLLM builds a test environment where the LLM proposes module combinations, observes execution feedback, and refines its predictions using natural language processing (NLP) to parse error messages. We evaluate PLLM on the Gistable HG2.9K dataset, a curated collection of real-world Python programs. Using this benchmark, we explore multiple PLLM configurations, including six open-source LLMs evaluated both with and without RAG. Our findings show that RAG consistently improves fix rates, with the best performance achieved by Gemma-2 9B when combined with RAG. Compared to two state-of-the-art baselines, PyEGo and ReadPyE, PLLM achieves significantly higher fix rates; +15.97% more than ReadPyE and +21.58% more than PyEGo. Further analysis shows that PLLM is especially effective for projects with numerous dependencies and those using specialized numerical or machine-learning libraries.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 8 of its 26 references that are in the map. First posted on arXiv 27 Jan 2025.

Builds on

8 of 26 references.

References · 8

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2024The Llama 3 Herd of Modelscited by 14,192
  3. 2023Mistral 7Bcited by 3,065
  4. 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,928
  5. 2019DockerizeMe: Automatic Inference of Environment Dependencies for Python Code Snippetscited by 13
  6. 2022System Log Parsing: A Surveycited by 10
  7. 2022Demystifying Dependency Bugs in Deep Learning Stackcited by 9
  8. 2016From Query to Usable Code: An Analysis of Stack Overflow Code Snippetscited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025GitChameleon 2.0: Evaluating AI Code Generation Against Python Library Version Incompatibilities
  2. 2026When LLMs Lag Behind: Knowledge Conflicts from Evolving APIs in Code Generation
  3. 2026LangChoiceBench: Measuring and Explaining Programming-Language Choice in LLMs
  4. 2026Evaluating LLMs Code Reasoning Under Real-World Context
  5. 2026LLM vs. Human Unit Tests: Fault Detection on Real Python Bugs
  6. 2026Refine After Generation: Toward Correct and Concise Patches in LLM-based Program Repair
  7. 2025CODESYNC: Synchronizing Large Language Models with Dynamic Code Evolution at Scale
  8. 2025AI-Generated Code Is Not Reproducible (Yet): An Empirical Study of Dependency Gaps in LLM-Based Coding Agents