Abstract
Code summarization (CS) and code generation (CG) are two crucial tasks in the field of automatic software development. Various neural network-based approaches are proposed to solve these two tasks separately. However, there exists a specific intuitive correlation between CS and CG, which has not been exploited in previous work. In this paper, we apply the relations between two tasks to improve the performance of both tasks. In other words, exploiting the duality between the two tasks, we propose a dual training framework to train the two tasks simultaneously. In this framework, we consider the dualities on probability and attention weights, and design corresponding regularization terms to constrain the duality. We evaluate our approach on two datasets collected from GitHub, and experimental results show that our dual framework can improve the performance of CS and CG tasks over baselines.
| Original language | English |
|---|---|
| Title of host publication | NIPS Proceedings - Advances in Neural Information Processing Systems 32 (NIPS 2019) |
| Editors | H. Wallach, H. Larochelle, A. Beygelzimer, F. d'AlcheBuc, E. Fox, R. Garnett |
| Place of Publication | San Diego CA USA |
| Publisher | Neural Information Processing Systems (NIPS) |
| Number of pages | 11 |
| Volume | 32 |
| Publication status | Published - 2019 |
| Event | Advances in Neural Information Processing Systems 2019 - Vancouver, Canada Duration: 8 Dec 2019 → 14 Dec 2019 Conference number: 32nd https://nips.cc/Conferences/2019 (Proceedings) https://papers.nips.cc/book/advances-in-neural-information-processing-systems-32-2019 (Proceedings) |
Publication series
| Name | Advances in Neural Information Processing Systems |
|---|---|
| Publisher | Morgan Kaufmann Publishers |
| ISSN (Print) | 1049-5258 |
Conference
| Conference | Advances in Neural Information Processing Systems 2019 |
|---|---|
| Abbreviated title | NIPS 2019 |
| Country/Territory | Canada |
| City | Vancouver |
| Period | 8/12/19 → 14/12/19 |
| Internet address |
Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver