mlsanityData to 7 Oct 2026

Icing on the Cake: Automatic Code Summarization at Ericsson

arXiv 2408.09735 ↗First posted 19 Aug 2024cs.SE cs.LGcited by 2

Not on the map. Why?

Abstract (arXiv)

This paper presents our findings on the automatic summarization of Java methods within Ericsson, a global telecommunications company. We evaluate the performance of an approach called Automatic Semantic Augmentation of Prompts (ASAP), which uses a Large Language Model (LLM) to generate leading summary comments for Java methods. ASAP enhances the LLM's prompt context by integrating static program analysis and information retrieval techniques to identify similar exemplar methods along with their developer-written Javadocs, and serves as the baseline in our study. In contrast, we explore and compare the performance of four simpler approaches that do not require static program analysis, information retrieval, or the presence of exemplars as in the ASAP method. Our methods rely solely on the Java method body as input, making them lightweight and more suitable for rapid deployment in commercial software development environments. We conducted experiments on an Ericsson software project and replicated the study using two widely-used open-source Java projects, Guava and Elasticsearch, to ensure the reliability of our results. Performance was measured across eight metrics that capture various aspects of similarity. Notably, one of our simpler approaches performed as well as or better than the ASAP method on both the Ericsson project and the open-source projects. Additionally, we performed an ablation study to examine the impact of method names on Javadoc summary generation across our four proposed approaches and the ASAP method. By masking the method names and observing the generated summaries, we found that our approaches were statistically significantly less influenced by the absence of method names compared to the baseline. This suggests that our methods are more robust to variations in method names and may derive summaries more comprehensively from the method body than the ASAP approach.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 22 of its 45 references that are in the map. First posted on arXiv 19 Aug 2024.

Builds on

22 of 45 references.

References · 22

  1. 2017Attention Is All You Needcited by 59,932
  2. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  3. 2019BERTScore: Evaluating Text Generation with BERTcited by 5,462
  4. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  5. 2024Mixtral of Expertscited by 1,785
  6. 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,414
  7. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  8. 2020BLEURT: Learning Robust Metrics for Text Generationcited by 1,196
  9. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  10. 2023Large Language Modelscited by 774
  11. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
  12. 2023Large Language Models for Software Engineering: Survey and Open Problemscited by 178
10 more
  1. 2018code2seq: Generating Sequences from Structured Representations of Codecited by 177
  2. 2022Few-shot training LLMs for project-specific code-summarizationcited by 128
  3. 2023Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization)cited by 72
  4. 2023Large Language Models are Few-Shot Summarizers: Multi-Intent Comment Generation via In-Context Learningcited by 71
  5. 2024An Empirical Study on Usage and Perceptions of LLMs in a Software Engineering Projectcited by 28
  6. 2023On the Reliability and Explainability of Language Models for Program Generationcited by 17
  7. 2024Rewriting the Code: A Simple Method for Large Language Model Augmented Code Searchcited by 17
  8. 2023Developer-Intent Driven Code Comment Generationcited by 16
  9. 2023ChatGPT: A Study on its Utility for Ubiquitous Software Engineering Taskscited by 12
  10. 2023A Prompt Learning Framework for Source Code Summarizationcited by 9

Built on by

Cited by year

Citing papers per year: 2025: 2.

2 papers.