An Intra-Class Relation Guided Approach for Code Comment Generation (2023.findings-eacl)
Copied to clipboard
| Challenge: | Recent work in code comment generation assumes that all information required to generate comments is encoded in the target function itself, yet in most realistic situations, it is hard to understand a function in isolation from the surrounding context. |
| Approach: | They propose a graph-based learning framework to capture various relations among functions in a class file. |
| Outcome: | The proposed method outperforms baseline models on automatic and human evaluation metrics on a Java dataset collected from real-world projects. |
Similar Papers
Towards Context-Aware Code Comment Generation (2020.findings-emnlp)
Copied to clipboard
| Challenge: | Existing methods for code comments generate comments manually, but they suffer from poor scalability and high maintenance cost due to the expensive overhead of writing comment templates. |
| Approach: | They propose a method to automatically generate code comments at a function level by targeting object-oriented programming languages. |
| Outcome: | The proposed approach outperforms the state-of-the-art methods and is comparable with existing methods. |
TAG : Type Auxiliary Guiding for Code Comment Generation (2020.acl-main)
Copied to clipboard
| Challenge: | Existing code comment generation approaches ignore type information of interpretation of the code, e.g., operator, string, etc. Existing approaches ignore the type information due to the hierarchical dependence among the type. |
| Approach: | They propose an encoder-decoder framework which considers the source code as an N-ary tree with type information associated with each node. |
| Outcome: | The proposed framework is based on a Type Auxiliary Guiding encoder-decoder framework and a type-restricted Decoder to resolve training difficulties. |
CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation (2021.emnlp-main)
Copied to clipboard
| Challenge: | Pre-trained models for Natural Languages (NL) like BERT and GPT have been shown to transfer well to Programming Languages. |
| Approach: | They propose a unified pre-trained encoder-decoder Transformer model that leverages the code semantics conveyed from the developer-assigned identifiers. |
| Outcome: | The proposed model outperforms existing models on understanding and generation tasks and can capture semantic information from code. |
Mapping Language to Code in Programmatic Context (D18-1)
Copied to clipboard
| Challenge: | Existing approaches for automatically mapping natural language to executable code have considered limited language or code environments. |
| Approach: | They propose a task of generating class member functions given English documentation and the programmatic context provided by the rest of the class. |
| Outcome: | The proposed model can generate member functions from documentation and the class environment. |
DocChecker: Bootstrapping Code Large Language Model for Detecting and Resolving Code-Comment Inconsistencies (2024.eacl-demo)
Copied to clipboard
| Challenge: | Existing methods to detect and rectify inconsistencies in source code rely on heuristic rules . however, there are limitations to generating synthetic comments . |
| Approach: | They introduce a language model-based framework capable of detecting inconsistencies between code and comments. |
| Outcome: | The proposed framework achieves 72.3% accuracy and scores 33.64 on the code summarization task. |
Learning to Update Natural Language Comments Based on Code Changes (2020.acl-main)
Copied to clipboard
| Challenge: | a novel approach to update comments based on code changes is proposed . a dataset of open-source software projects is used to train and evaluate the model . |
| Approach: | They propose an approach that learns to correlate changes across two distinct language representations to generate a sequence of edits that are applied to the existing comment to reflect the source code modifications. |
| Outcome: | The proposed model outperforms baselines and automatic metrics with respect to making edits. |
A Simple, Yet Effective Approach to Finding Biases in Code Generation (2023.findings-acl)
Copied to clipboard
| Challenge: | Recent work shows that large language models can generate code on par with humans . however, data-driven approaches may not be sufficient for acquiring reasoning skills . |
| Approach: | They propose a framework that automatically identifies subtle cues a code generation model might exploit . they propose an automated intervention mechanism reminiscent of adversarial testing . |
| Outcome: | The proposed framework can be used as a data transformation technique during fine-tuning, acting as reversal strategy. |
Template-guided Grammatical Error Feedback Comment Generation (2023.eacl-srw)
Copied to clipboard
| Challenge: | Writing corrective feedback on learner text is widespread in language education, but it can be time-consuming for teachers. |
| Approach: | They propose to use feedback comment generation to generate explanatory notes for learners by categorizing comments and constraining outputs of noisy classes. |
| Outcome: | The proposed scheme can be used to generate feedback comment corpora using a broader scope than existing typologies focused on error correction. |
Toward a Task of Feedback Comment Generation for Writing Learning (D19-1)
Copied to clipboard
| Challenge: | Existing work on feedback comment generation has been limited . despite its usefulness, there is no publicly available dataset for research on feedback comments . |
| Approach: | They introduce a task of automatically generating feedback comments such as a hint or an explanatory note for writing learning for non-native learners of English. |
| Outcome: | The proposed task is based on a corpus of 1,900 essays with all preposition errors annotated with feedback comments. |
Comments as Natural Logic Pivots: Improve Code Generation via Comment Perspective (2024.findings-acl)
Copied to clipboard
| Challenge: | Existing studies decompose complex tasks into intermediate steps by prompting strategies, such as Chain-of-Thought and its variants. |
| Approach: | They propose to use code comments as natural logic pivot between natural language and code language to boost the code generation ability of code LLMs. |
| Outcome: | The proposed method significantly improves the code pass rate on humanEval and MBPP, while the robustness of the logical comment decoding strategy is higher than the Chain-of-thoughts prompting. |