mlsanityData to 7 Oct 2026

Selective Shot Learning for Code Explanation

arXiv 2412.12852 ↗First posted 17 Dec 2024cs.SE cs.CL cs.IRcited by 1

Not on the map. Why?

Abstract (arXiv)

Code explanation plays a crucial role in the software engineering domain, aiding developers in grasping code functionality efficiently. Recent work shows that the performance of LLMs for code explanation improves in a few-shot setting, especially when the few-shot examples are selected intelligently. State-of-the-art approaches for such Selective Shot Learning (SSL) include token-based and embedding-based methods. However, these SSL approaches have been evaluated on proprietary LLMs, without much exploration on open-source Code-LLMs. Additionally, these methods lack consideration for programming language syntax. To bridge these gaps, we present a comparative study and propose a novel SSL method (SSL_ner) that utilizes entity information for few-shot example selection. We present several insights and show the effectiveness of SSL_ner approach over state-of-the-art methods across two datasets. To the best of our knowledge, this is the first systematic benchmarking of open-source Code-LLMs while assessing the performances of the various few-shot examples selection approaches for the code explanation task.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 15 of its 25 references that are in the map. First posted on arXiv 17 Dec 2024.

Builds on

15 of 25 references.

References · 15

  1. 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 193
  2. 2018Learning to Mine Aligned Code and Natural Language Pairs from Stack Overflowcited by 165
  3. 2020A Transformer-based Approach for Source Code Summarizationcited by 129
  4. 2022Few-shot training LLMs for project-specific code-summarizationcited by 128
  5. 2022Natural Language to Code Generation in Interactive Data Science Notebookscited by 86
  6. 2022Experiences from Using Code Explanations Generated by Large Language Models in a Web Software Development E-Bookcited by 84
  7. 2023Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization)cited by 72
  8. 2023Large Language Models are Few-Shot Summarizers: Multi-Intent Comment Generation via In-Context Learningcited by 71
  9. 2023A Comparative Analysis of Large Language Models for Code Documentation Generationcited by 24
  10. 2020Leveraging Code Generation to Improve Code Retrieval and Summarization via Dual Learningcited by 16
  11. 2022Python Code Generation by Asking Clarification Questionscited by 16
  12. 2023Developer-Intent Driven Code Comment Generationcited by 16
3 more
  1. 2020TAG : Type Auxiliary Guiding for Code Comment Generationcited by 8
  2. 2023Exploring Large Language Models for Code Explanationcited by 6
  3. 2023GenCodeSearchNet: A Benchmark Test Suite for Evaluating Generalization in Programming Language Understandingcited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.