2024

SparseCoder: Identifier-Aware Sparse Transformer for File-Level Code Summarization

Wang, Yanlin, Huang, Yanxian, Guo, Daya et al.

Understand

Code summarization aims to generate natural language descriptions of source code, facilitating programmers to understand and maintain it rapidly.

  • While previous code summarization efforts have predominantly focused on method-level, this paper studies file-level code summarization, which can assist programmers in understanding and maintaining large source code projects.
  • Unlike method-level code summarization,file-level code summarization typically involves long source code within a single file, which makes it challenging for Transformer-based models to understand the code semantics for the maximum input length of these models is difficult to set to a large number that can handle long code input well, due to the quadratic scaling of computational complexity with the input sequence length.
  • To address this challenge, we propose SparseCoder, an identifier-aware sparse transformer for effectively handling long code sequences.

Reading the bibliography…