Graph-MoE: A Graph-Based LLM Framework for Scalable and Efficient Code Completion in Integrated Development Environment

Modern AI-powered integrated development environments (IDEs) face significant scalability challenges with large codebases due to the fixed context windows and high computational costs associated with large language models (LLMs). This often results in incomplete code suggestions and prohibitive operational expenses. To overcome these limitations, we introduce Graph-MoE, a novel code completion framework leveraging graph-based code representations (abstract syntax trees, data/-control flow graphs) combined with a dynamic, tiered Mixture-of-Experts (MoE) strategy using open-source models. Graph-MoE routes queries to specialized models based on context complexity: StarCoder2-3B for token-level tasks, DeepSeek-Coder-7B for function logic, and Qwen2.5-Coder-32B for architectural analysis. Our evaluations on large Python and Java codebases (up to 12M tokens) demonstrate significant improvements: Graph-MoE achieves a 72% BLEU-4 score, surpassing GitHub Copilot’s 60% baseline by 12%, maintains an average latency of 142ms through optimized routing and hybrid caching (61% hit rate), and achieves a 65% reduction in GPU costs compared to monolithic LLM approaches. These results highlight Graph-MoE’s ability to deliver highly accurate, efficient, and scalable code completion, making it a practical solution for enhancing developer productivity in modern IDEs.

Authors

Institutions

Publication Details

Published
2025-05-23
DOI
https://doi.org/10.1109/incet64471.2025.11139956
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Graph-MoE: A Graph-Based LLM Framework for Scalable and Efficient Code Completion in Integrated Development Environment

M.P. Shahi, Sanjay Kumar, Manish Rohilla, Pradeep Kumar Singh
Software Engineering Research
article

Graph-MoE: A Graph-Based LLM Framework for Scalable and Efficient Code Completion in Integrated Development Environment

M.P. Shahi, Sanjay Kumar, Manish Rohilla, Pradeep Kumar Singh
article en

Abstract

Modern AI-powered integrated development environments (IDEs) face significant scalability challenges with large codebases due to the fixed context windows and high computational costs associated with large language models (LLMs). This often results in incomplete code suggestions and prohibitive operational expenses. To overcome these limitations, we introduce Graph-MoE, a novel code completion framework leveraging graph-based code representations (abstract syntax trees, data/-control flow graphs) combined with a dynamic, tiered Mixture-of-Experts (MoE) strategy using open-source models. Graph-MoE routes queries to specialized models based on context complexity: StarCoder2-3B for token-level tasks, DeepSeek-Coder-7B for function logic, and Qwen2.5-Coder-32B for architectural analysis. Our evaluations on large Python and Java codebases (up to 12M tokens) demonstrate significant improvements: Graph-MoE achieves a 72% BLEU-4 score, surpassing GitHub Copilot’s 60% baseline by 12%, maintains an average latency of 142ms through optimized routing and hybrid caching (61% hit rate), and achieves a 65% reduction in GPU costs compared to monolithic LLM approaches. These results highlight Graph-MoE’s ability to deliver highly accurate, efficient, and scalable code completion, making it a practical solution for enhancing developer productivity in modern IDEs.

Delhi Technological University (IN)
Openalex Percentile: Top 65%
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.