atlas

Research map / Large language models / Agents, code and math

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

NeurIPS 2025 · Large language models › Agents, code and math · approach: Software engineering agents · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Code Graph Models (CGMs), which feed a repository code graph into a decoder LLM via a text encoder, adapter, and graph-aware attention mask, combined with an agentless Graph RAG pipeline, reaching 43.00% on SWE-bench Lite with open Qwen2.5-72B.

Problem

Repository-level software engineering tasks (issue fixing, code completion) remain hard for open-source LLMs, which currently rely on proprietary agents; existing graph-enhanced code models flatten graph context into text and handle function/file-level tasks only.

Approach

Represent repositories as text-rich code graphs; encode node text with CodeT5+ and project it via an MLP adapter into LLM node tokens, and replace the causal mask between node tokens with the graph adjacency mask so attention follows graph edges (GNN-like message passing), then fine-tune with LoRA and pretrain via subgraph-to-code reconstruction; pair with a four-module agentless Graph RAG (Rewrit

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
remove Rewriter (ablation)CGM Graph RAG on SWE-bench Lite · SWE-bench Literesolution rate: 43.00 -> 34.67Hurt
remove Retriever (ablation)CGM Graph RAG on SWE-bench Lite · SWE-bench Literesolution rate: 43.00 -> 31.67Hurt
remove Reranker (ablation)CGM Graph RAG on SWE-bench Lite · SWE-bench Literesolution rate: 43.00 -> 18.33Hurt
remove Rewriter, Retriever, and Reranker (ablation)CGM Graph RAG on SWE-bench Lite · SWE-bench Literesolution rate: 43.00 -> 9.67Hurt
replace CGM Reader with FlatGraph Reader (ablation)CGM Graph RAG on SWE-bench Lite · SWE-bench Literesolution rate: 43.00 -> 5.33Hurt
freeze components rather than fine-tune them (ablation)CGM · CrossCodeEval JavaEM: 51.61 -> 17.91Hurt
remove adapter (ablation)CGM · CrossCodeEval JavaEM: 51.61 -> 41.70Hurt
remove LoRA from decoder (ablation)CGM · CrossCodeEval JavaEM: 51.61 -> 46.84Hurt
remove adapter and decoder LoRA (ablation)CGM · CrossCodeEval JavaEM: 51.61 -> 49.51Hurt
remove graph-aware attention mask (ablation)CGM · CrossCodeEval JavaEM: 51.61 -> 48.71Hurt
remove subgraph reconstruction pretraining (ablation)CGM · CrossCodeEval JavaEM: 51.61 -> 42.78Hurt

Surprising findings

Limitations

Experimental setup

Datasets: SWE-bench training set GitHub issue-patch pairs GitHub code graphs from 20k repositories CrossCodeEval ComplexCodeEval

Benchmarks: SWE-bench Lite SWE-bench Verified SWE-bench-java Verified CrossCodeEval ComplexCodeEval

Metrics: resolve rate exact match edit similarity recall

Baselines: Agentless Moatless Lingma SWE-GPT SWE-Fixer SWE-agent RLCoder R2C2 RepoFuse BM25 Mistral-Large-2

Builds on: GraphCodeBERT Agentless LoRA CodeT5+ DeepSeek-Coder

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy