Skip to content
Conference

Hierarchical Repository-Level Code Summarization with Quantized Small Language Model and Graph-Guided Context

Aug 2026 · International Conference Innovation Engineering and Technology · pp. 1-9 · 0 citations · 29 references

Abstract

Despite recent progress in function-level docstring generation, code summarization systems have mostly focused on creating concise descriptions for individual functions using automatically generated docstrings, leaving the difficult task of generating structured repository-level summaries unaddressed. We propose a novel hierarchy-driven architecture that uses a compact and quantized language model with structural context provided by a graph. In this approach, a hierarchy graph is created to capture control flow, data flow, and inter-file relationships, which are then combined with identifier masking and structured encoding to create function and repository-level summaries. Moreover, we propose a novel reference-less evaluation scheme to evaluate the quality of summaries against source code based on semantic, coverage, and structural aspects. Our empirical analysis shows clear advantages over a naive approach in all metrics, with the largest improvements found in flow coverage and entity fidelity, likely due to improved context rather than model size.

View source

Similar papers

Open access Sep 2026

METHODS OF SOURCE CODE SUMMARIZATION: FROM ABSTRACT SYNTAX TREES TO HETEROGENEOUS GRAPH NEURAL NETWORKS

This article examines methods of automatic source code summarization as a means of generating concise natural language descriptions that reflect program functionality and structure. The main problem addressed is the limited ability of many existing approaches to capture semantic context beyond local syntactic patterns,...

Assel Alkhanova · 0 citations
Book Open access Oct 2026

ChangeWiki: Repository-Level Change Summarization Augmented with Architecture Semantics

Understanding software evolution at the repository level is essential for tasks such as release management, code review, and regression testing. However, existing change summarization techniques are largely confined to single commits or functions, failing to capture cross-commit evolutionary context, while recent repos...

Zi-Jun Wang, Wu-Xia Jin, Jia-Le Li et al. · 0 citations
#artificial intelligence Preprint Sep 2026

FeatLens: Feature-Guided Dynamic Code Graph Construction and Retrieval for Repository-Level Code Generation

FeatLens builds a feature index that links natural-language feature descriptions to function-level code entities and dynamically constructs a task-specific seed graph from the feature index and applies semantic-structural graph reasoning with personalized PageRank to select a compact reasoning graph.

Xu-Tian Li, Bo Xiong, Yi-Feng Zhu et al. · 0 citations

Building Code Question-Answering Systems Enhanced by Large Language Models and Knowledge-Graph-Based Retrieval-Augmented Generation

A retrieval-augmented generation system enhanced with a knowledge graph to interpret building codes by leveraging both the semantic content and structural relationships within the documents by leveraging both the semantic content and structural relationships within the documents.

Fan Yang, Jian-Song Zhang · 0 citations
Open access Aug 2026

StructFix: a structure-aware reasoning framework for automated program repair with code property graphs

StructFix is proposed, a structure-aware APR framework that grounds masked patch generation in Code Property Graphs (CPGs), and explicitly coupling structural dependencies with masked generation improves repair effectiveness and enables transfer across datasets.

Mengtian Cui, Yang-Fan Liu, Zhibo Lu et al. · 0 citations
Preprint Sep 2026

Hieronym: Leveraging Hierarchical Multi-Source Information for Function Renaming in Stripped Binary

Function renaming in stripped binaries can substantially assist reverse engineers by improving code readability, yet it is a challenging task. The difficulty stems from the need to accurately capture function semantics from low-level binary code across diverse instruction sets, architectures, and compiler optimizations...

Xiao-Ling Zhang, Jian Sun, Dawei Wang et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.