mlsanityData to 7 Oct 2026

Code Graph Model (CGM): A Graph-Integrated Large Language Model for Repository-Level Software Engineering Tasks

arXiv 2505.16901 ↗First posted 22 May 2025cs.SE cs.LGcited by 27

Not on the map. Why?

Abstract (arXiv)

Recent advances in Large Language Models (LLMs) have shown promise in function-level code generation, yet repository-level software engineering tasks remain challenging. Current solutions predominantly rely on proprietary LLM agents, which introduce unpredictability and limit accessibility, raising concerns about data privacy and model customization. This paper investigates whether open-source LLMs can effectively address repository-level tasks without requiring agent-based approaches. We demonstrate this is possible by enabling LLMs to comprehend functions and files within codebases through their semantic information and structural dependencies. To this end, we introduce Code Graph Models (CGMs), which integrate repository code graph structures into the LLM's attention mechanism and map node attributes to the LLM's input space using a specialized adapter. When combined with an agentless graph RAG framework, our approach achieves a 43.00% resolution rate on the SWE-bench Lite benchmark using the open-source Qwen2.5-72B model. This performance ranks first among open weight models, second among methods with open-source systems, and eighth overall, surpassing the previous best open-source model-based method by 12.33%.

Key facts. Cited by 27 papers in the map (data through 7 Oct 2026). Builds on 56 of its 77 references that are in the map. First posted on arXiv 22 May 2025.

Builds on

56 of 77 references.

References · 56

  1. 2024The Llama 3 Herd of Modelscited by 14,192
  2. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  3. 2017Graph Attention Networkscited by 8,854
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  5. 2023Visual Instruction Tuningcited by 7,792
  6. 2024Qwen2.5 Technical Reportcited by 4,713
  7. 2024Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolutioncited by 4,151
  8. 2016Gaussian Error Linear Units (GELUs)cited by 3,431
  9. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  10. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  11. 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,761
  12. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,628
38 more
  1. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
  2. 2024Qwen2.5-Coder Technical Reportcited by 1,151
  3. 2023StarCoder: may the source be with you!cited by 790
  4. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
  5. 2024Executable Code Actions Elicit Better LLM Agentscited by 537
  6. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
  7. 2024Agentless: Demystifying LLM-based Software Engineering Agentscited by 400
  8. 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
  9. 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 355
  10. 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 327
  11. 2024DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligencecited by 325
  12. 2024Training Software Engineering Agents and Verifiers with SWE-Gymcited by 300
  13. 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challengescited by 278
  14. 2024AutoCodeRover: Autonomous Program Improvementcited by 272
  15. 2023Large Language Models on Graphs: A Comprehensive Surveycited by 190
  16. 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 181
  17. 2020Machine Learning on Graphs: A Model and Comprehensive Taxonomycited by 156
  18. 2024SWE-Search: Enhancing Software Agents with Monte Carlo Tree Search and Iterative Refinementcited by 124
  19. 2022Repository-Level Prompt Generation for Large Language Models of Codecited by 106
  20. 2024RepoGraph: Enhancing AI Software Engineering with Repository-level Code Graphcited by 88
  21. 2025SWE-Fixer: Training Open-Source LLMs for Effective and Efficient GitHub Issue Resolutioncited by 87
  22. 2024RepoAgent: An LLM-Powered Open-Source Framework for Repository-level Code Documentation Generationcited by 69
  23. 2024MarsCode Agent: AI-native Automated Bug Fixingcited by 68
  24. 2022CoCoMIC: Code Completion By Jointly Modeling In-file and Cross-file Contextcited by 64
  25. 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
  26. 2024Lingma SWE-GPT: An Open Development-Process-Centric Language Model for Automated Software Improvementcited by 57
  27. 2024RLCoder: Reinforcement Learning for Repository-Level Code Completioncited by 44
  28. 2021TreeBERT: A Tree-Based Pre-Trained Model for Programming Languagecited by 40
  29. 2024GraphCoder: Enhancing Repository-Level Code Completion via Code Context Graph-based Retrieval and Language Modelcited by 40
  30. 2023MFTCoder: Boosting Code LLMs with Multitask Fine-Tuningcited by 34
  31. 2024SWE-bench-java: A GitHub Issue Resolving Benchmark for Javacited by 34
  32. 2022StructCoder: Structure-Aware Transformer for Code Generationcited by 33
  33. 2024REPOFUSE: Repository-Level Code Completion with Fused Dual Contextcited by 32
  34. 2024Graph Transformers: A Surveycited by 32
  35. 2024ContrastRepair: Enhancing Conversation-Based Automated Program Repair via Contrastive Test Case Pairscited by 19
  36. 2024ComplexCodeEval: A Benchmark for Evaluating Large Code Models on More Complex Codecited by 18
  37. 2024The Open Source Advantage in Large Language Models (LLMs)cited by 18
  38. 2024LLoCO: Learning Long Contexts Offlinecited by 16

50 most cited of 56 All 56 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 10; 2026: 17.

27 papers.

Sort:

By area:

  1. 2026Code as Agent Harnesscited by 40
  2. 2025Process-Centric Analysis of Agentic Software Systemscited by 24
  3. 2025Retrieval-Augmented Code Generation: A Survey with Focus on Repository-Level Approachescited by 20
  4. 2025RPG: A Repository Planning Graph for Unified and Scalable Codebase Generationcited by 18
  5. 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic Systemcited by 15
  6. 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
  7. 2025RANGER -- Repository-Level Agent for Graph-Enhanced Retrievalcited by 7
  8. 2025Agentic Software Issue Resolution with Large Language Models: A Surveycited by 6
  9. 2026Codebase-Memory: Tree-Sitter-Based Knowledge Graphs for LLM Code Exploration via MCPcited by 6
  10. 2026SWE-AGILE: A Software Agent Framework for Efficiently Managing Dynamic Reasoning Contextcited by 5
  11. 2025Red Teaming Program Repair Agents: When Correct Patches can Hide Vulnerabilitiescited by 4
  12. 2026Reliable Graph-RAG for Codebases: AST-Derived Graphs vs LLM-Extracted Knowledge Graphscited by 4
15 more
  1. 2026Repository Intelligence Graph: Deterministic Architectural Map for LLM Code Assistantscited by 4
  2. 2026FastContext: Training Efficient Repository Explorer for Coding Agentscited by 4
  3. 2025C2LLM Technical Report: A New Frontier in Code Retrieval via Adaptive Cross-Attention Poolingcited by 3
  4. 2026ARISE: A Repository-level Graph Representation and Toolset for Agentic Program Repair and Fault Localizationcited by 2
  5. 2026LARGER: Lexically Anchored Repository Graph Exploration and Retrievalcited by 2
  6. 2026Code Isn't Memory: A Structural Codebase Index Inside a Coding Agentcited by 2
  7. 2026Integrating Graphs, Large Language Models, and Agents: Reasoning and Retrievalcited by 1
  8. 2025Autonomous Issue Resolver: Towards Zero-Touch Code Maintenancecited by 0
  9. 2026GREPO: A Benchmark for Graph Neural Networks on Repository-Level Bug Localizationcited by 0
  10. 2026DiagramBank: A Quality-Audited Dataset of Scientific Schematic Diagrams with Multi-Level Document Contextcited by 0
  11. 2026GraphReview: Scientific Paper Evaluation via LLM-based Graph Evidence Expansioncited by 0
  12. 2026Enhancing SLMs for Sustainable Code Optimization in Radio-Astronomycited by 0
  13. 2026XAgent: eXecution-guided Agentic AI for Effective Localization and Resolution of GitHub Issuescited by 0
  14. 2026StateTape: Action-Conditioned Evidence Lifecycle Modeling for Long-Horizon Coding Agentscited by 0
  15. 2026FastCI: Efficient GPU-Intensive CI for LLM Training Frameworkscited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2024CodexGraph: Bridging Large Language Models and Code Repositories via Code Graph Databases
  2. 2025GraphCodeAgent: Dual Graph-Guided LLM Agent for Retrieval-Augmented Repo-Level Code Generation
  3. 2026Effective and Efficient Context Retrieval via Partial Dependency Graph for Repository-Level Code Generation
  4. 2026ReCUBE: Evaluating Repository-Level Context Utilization in Code Generation
  5. 2026E2E-SWE: Benchmarking LLMs on Building Working Codebases from Scratch
  6. 2025GRACE: Graph-Guided Repository-Aware Code Completion through Hierarchical Code Fusion
  7. 2026Bridging Code Property Graphs and Language Models for Program Analysis ↗
  8. 2025Prometheus: Towards Long-Horizon Codebase Navigation for Repository-Level Problem Solving