arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2309.05074cs.SE
收藏

LiSum:基于多任务学习的开源软件许可证摘要生成

LiSum: Open Source Software License Summarization with Multi-Task Learning

Linyu Li, Sihan Xu, Yang Liu, Ya Gao, Xiangrui Cai, Jiarun Wu, Wenli Song, Zheli Liu

AI总结:

本文针对开源软件许可证难以理解的问题,提出多任务学习方法 LiSum,同时进行许可证摘要生成和条款分类,实验表明其在两项任务上均显著超越现有基线。

摘要:

开源软件(OSS)许可证规定了用户可以在何种条件下合法地重用、修改和分发软件。然而,社区中存在各种以正式语言编写的 OSS 许可证,它们通常篇幅较长且难以理解。在本文中,我们开展了一项有 661 名参与者参与的在线调查,以探究开发者对 OSS 许可证的看法和实践。用户研究表明,确实需要一种自动化工具来帮助理解许可证。受用户研究和社区中许可证数量快速增长的推动,我们提出了首个面向自动化许可证摘要生成的研究。具体而言,我们发布了首个高质量的文本摘要数据集,并设计了两项任务:许可证文本摘要生成(LTS),旨在为任意许可证生成相对简短的摘要;以及许可证条款分类(LTC),侧重于对预定义的关键许可证条款(例如 Distribute)进行态度推断。针对这两项任务,我们提出了 LiSum,一种多任务学习方法,以帮助开发者克服理解 OSS 许可证的障碍。综合实验表明,所提出的联合训练目标提升了两项任务的性能,在四项摘要指标的 F1 分数上至少比最先进的基线高出 5 个点,同时在分类任务上取得了 95.13% 的微观平均 F1 分数。我们向社区公开了所有数据集、复现包和问卷。

英文摘要:

Open source software (OSS) licenses regulate the conditions under which users can reuse, modify, and distribute the software legally. However, there exist various OSS licenses in the community, written in a formal language, which are typically long and complicated to understand. In this paper, we conducted a 661-participants online survey to investigate the perspectives and practices of developers towards OSS licenses. The user study revealed an indeed need for an automated tool to facilitate license understanding. Motivated by the user study and the fast growth of licenses in the community, we propose the first study towards automated license summarization. Specifically, we released the first high quality text summarization dataset and designed two tasks, i.e., license text summarization (LTS), aiming at generating a relatively short summary for an arbitrary license, and license term classification (LTC), focusing on the attitude inference towards a predefined set of key license terms (e.g., Distribute). Aiming at the two tasks, we present LiSum, a multi-task learning method to help developers overcome the obstacles of understanding OSS licenses. Comprehensive experiments demonstrated that the proposed jointly training objective boosted the performance on both tasks, surpassing state-of-the-art baselines with gains of at least 5 points w.r.t. F1 scores of four summarization metrics and achieving 95.13% micro average F1 score for classification simultaneously. We released all the datasets, the replication package, and the questionnaires for the community.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑