Research map / Large language models / Retrieval and knowledge
CGBridge: Bridging Code Graphs and Large Language Models for Better Structure-Aware Code Understanding
Zeqi Chen, Zhaoyang Chu, Yi Gui, Feng Guo, Yao Wan, Chuan Shi
Beijing University of Posts and Telecommunications · Huazhong University of Science and Technology
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add CGBridge graph soft-prefix | Qwen2.5-Coder-7B · XLCoST Python-to-Java | Execution Accuracy (%): 89.46 -> 98.26 (LoRA 97.21) | Improved |
| add CGBridge graph soft-prefix | Qwen2.5-Coder-1.5B · XLCoST Python-to-Java | Execution Accuracy (%): 70.63 -> 89.01 (LoRA 84.68) | Improved |
| add CGBridge instead of LoRA on ROUGE-L | Qwen2.5-Coder-7B · CodeSearchNet summarization | ROUGE-L (%): 23.60 (LoRA) -> 20.08 | Hurt |
| add CGBridge | Qwen2.5-Coder-7B · CodeSearchNet summarization | LLM-J (0-4): 2.78 / 2.98 -> 3.23 | Improved |
| serialize graph as text (GraphText) instead of soft prefix | Qwen2.5-Coder-7B · XLCoST Python-to-Java | Execution Accuracy (%): 89.46 -> 70.75 | Hurt |
| replace GALLa with CGBridge | Qwen2.5-Coder-1.5B · XLCoST Python-to-Java | Execution Accuracy (%): 86.39 -> 89.01 | Improved |
| add CFG and DFG edges to AST (full CPG) (ablation) | CGBridge on Qwen2.5-Coder-7B · XLCoST Python-to-Java | Execution Accuracy (%): 93.12 (AST only) -> 98.26 | Improved |
| add AST to CFG+DFG graph (ablation) | CGBridge on Qwen2.5-Coder-7B · XLCoST Python-to-Java | Execution Accuracy (%): 91.57 -> 98.26 | Improved |
| include Stage 2 cross-modal alignment (ablation) | CGBridge on Qwen2.5-Coder-7B · XLCoST Python-to-Java | Execution Accuracy (%): 87.02 -> 98.26 | Improved |
| include graph-grounded generation objective (GTG) (ablation) | CGBridge on Qwen2.5-Coder-7B · XLCoST Python-to-Java | Execution Accuracy (%): 94.52 -> 98.26 | Improved |
| add CGBridge under identifier renaming | Qwen2.5-Coder-7B · Identifier-renamed summarization | LLM-J change: -0.3% (LoRA -15.1%, GraphText -28.4%) | Improved |
| use CGBridge prefix vs LoRA for inference | Qwen2.5-Coder-7B · Inference latency | ms per sample: ~1463 -> ~371 | Improved |
Open problems in long-context and personalized retrieval
How can long-term memory for LLM assistants work beyond text-only, English, synthetic and costly multi-call setups?
- Memory handles text only, with no images, audio or sensor data. · 20 papers state it
- Extra LLM calls and multi-stage pipelines raise latency and cost. · 20 papers state it
- Evaluation covers English or only a few languages. · 17 papers state it
Closest papers by meaning
- Code Graph Model (CGM): A Graph-Integrated Large Language Model for Repository-Level Software Engineering Tasks (NeurIPS 2025 · similarity 0.89)
- GraphCodeBERT: Pre-training Code Representations with Data Flow (ICLR 2021 · similarity 0.89)
- AST-T5: Structure-Aware Pretraining for Code Generation and Understanding (ICML 2024 · similarity 0.88)
- Exploiting Code Symmetries for Learning Program Semantics (ICML 2024 · similarity 0.88)
- SemCoder: Training Code Language Models with Comprehensive Semantics Reasoning (NeurIPS 2024 · similarity 0.87)
- CodeChain: Towards Modular Code Generation Through Chain of Self-revisions with Representative Sub-modules (ICLR 2024 · similarity 0.87)
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.