Evaluating transfer learning for simplifying GitHub READMEs
Software documentation captures detailed knowledge about a software product, e.g., code, technologies, and design. It plays an important role in the coordination of development teams and in conveying ideas to various stakeholders. However, software documentation can be hard to comprehend if it is wr...
Saved in:
Main Authors: | , , |
---|---|
Format: | text |
Language: | English |
Published: |
Institutional Knowledge at Singapore Management University
2023
|
Subjects: | |
Online Access: | https://ink.library.smu.edu.sg/sis_research/8898 https://ink.library.smu.edu.sg/context/sis_research/article/9901/viewcontent/haoyu.pdf |
Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
Institution: | Singapore Management University |
Language: | English |
id |
sg-smu-ink.sis_research-9901 |
---|---|
record_format |
dspace |
spelling |
sg-smu-ink.sis_research-99012024-06-27T08:20:38Z Evaluating transfer learning for simplifying GitHub READMEs GAO, Haoyu TREUDE, Christoph ZAHEDI, Mansooreh Software documentation captures detailed knowledge about a software product, e.g., code, technologies, and design. It plays an important role in the coordination of development teams and in conveying ideas to various stakeholders. However, software documentation can be hard to comprehend if it is written with jargon and complicated sentence structure. In this study, we explored the potential of text simplification techniques in the domain of software engineering to automatically simplify GitHub README files. We collected software-related pairs of GitHub README files consisting of 14,588 entries, aligned difficult sentences with their simplified counterparts, and trained a Transformer-based model to automatically simplify difficult versions. To mitigate the sparse and noisy nature of the software-related simplification dataset, we applied general text simplification knowledge to this field. Since many generaldomain difficult-to-simple Wikipedia document pairs are already publicly available, we explored the potential of transfer learning by first training the model on the Wikipedia data and then fine-tuning it on the README data. Using automated BLEU scores and human evaluation, we compared the performance of different transfer learning schemes and the baseline models without transfer learning. The transfer learning model using the best checkpoint trained on a general topic corpus achieved the best performance of 34.68 BLEU score and statistically significantly higher human annotation scores compared to the rest of the schemes and baselines. We conclude that using transfer learning is a promising direction to circumvent the lack of data and drift style problem in software README files simplification and achieved a better trade-off between simplification and preservation of meaning. 2023-12-01T08:00:00Z text application/pdf https://ink.library.smu.edu.sg/sis_research/8898 info:doi/10.1145/3611643.3616291 https://ink.library.smu.edu.sg/context/sis_research/article/9901/viewcontent/haoyu.pdf http://creativecommons.org/licenses/by-nc-nd/4.0/ Research Collection School Of Computing and Information Systems eng Institutional Knowledge at Singapore Management University Software Documentation GitHub Text Simplification Transfer Learning Software Engineering |
institution |
Singapore Management University |
building |
SMU Libraries |
continent |
Asia |
country |
Singapore Singapore |
content_provider |
SMU Libraries |
collection |
InK@SMU |
language |
English |
topic |
Software Documentation GitHub Text Simplification Transfer Learning Software Engineering |
spellingShingle |
Software Documentation GitHub Text Simplification Transfer Learning Software Engineering GAO, Haoyu TREUDE, Christoph ZAHEDI, Mansooreh Evaluating transfer learning for simplifying GitHub READMEs |
description |
Software documentation captures detailed knowledge about a software product, e.g., code, technologies, and design. It plays an important role in the coordination of development teams and in conveying ideas to various stakeholders. However, software documentation can be hard to comprehend if it is written with jargon and complicated sentence structure. In this study, we explored the potential of text simplification techniques in the domain of software engineering to automatically simplify GitHub README files. We collected software-related pairs of GitHub README files consisting of 14,588 entries, aligned difficult sentences with their simplified counterparts, and trained a Transformer-based model to automatically simplify difficult versions. To mitigate the sparse and noisy nature of the software-related simplification dataset, we applied general text simplification knowledge to this field. Since many generaldomain difficult-to-simple Wikipedia document pairs are already publicly available, we explored the potential of transfer learning by first training the model on the Wikipedia data and then fine-tuning it on the README data. Using automated BLEU scores and human evaluation, we compared the performance of different transfer learning schemes and the baseline models without transfer learning. The transfer learning model using the best checkpoint trained on a general topic corpus achieved the best performance of 34.68 BLEU score and statistically significantly higher human annotation scores compared to the rest of the schemes and baselines. We conclude that using transfer learning is a promising direction to circumvent the lack of data and drift style problem in software README files simplification and achieved a better trade-off between simplification and preservation of meaning. |
format |
text |
author |
GAO, Haoyu TREUDE, Christoph ZAHEDI, Mansooreh |
author_facet |
GAO, Haoyu TREUDE, Christoph ZAHEDI, Mansooreh |
author_sort |
GAO, Haoyu |
title |
Evaluating transfer learning for simplifying GitHub READMEs |
title_short |
Evaluating transfer learning for simplifying GitHub READMEs |
title_full |
Evaluating transfer learning for simplifying GitHub READMEs |
title_fullStr |
Evaluating transfer learning for simplifying GitHub READMEs |
title_full_unstemmed |
Evaluating transfer learning for simplifying GitHub READMEs |
title_sort |
evaluating transfer learning for simplifying github readmes |
publisher |
Institutional Knowledge at Singapore Management University |
publishDate |
2023 |
url |
https://ink.library.smu.edu.sg/sis_research/8898 https://ink.library.smu.edu.sg/context/sis_research/article/9901/viewcontent/haoyu.pdf |
_version_ |
1814047625361489920 |