paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Does reusing pre-trained NLP model propagate bugs?

复用预训练 NLP 模型会传播缺陷吗?
FSE Proceedings of the 29th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering2021匹配度 3/10 · 该论文研究预训练 NLP 模型复用时客户端代码中的 bug 类型,属于机器学习与软件工程交叉,但与用户核心方向(静态分析/形式化验证、Agentic 程序、浮点程序分析、贝叶斯程序分析及其与 LLM 的交叉)关联较弱。其方法为 Stack Overflow 帖子挖掘,未涉及静态分析技术或 Agent/LLM 工具链。引用 1 inbox
Mohna Chakraborty
crossref: 2026-09-12

AI 速览

一句话:通过挖掘 Stack Overflow 中 BERT 相关帖子,实证分析复用预训练 NLP 模型时客户端代码出现的 bug 类型与分布。

预训练 NLP 模型(尤其是 BERT)被广泛复用于下游文本任务,甚至医疗、航空等安全关键场景;但在新场景中复用模型受训练数据、模型结构、规范和使用方式等限制,容易在客户端代码中引入缺陷。本文以 BERT 为对象研究复用预训练模型是否会传播 bug,从 Stack Overflow 挖掘 80 个相关帖子,归纳客户端代码中观察到的四类 bug。结果显示:公平性 bug 占 13.75%,参数 bug 占 28.75%,token bug 占 15%,版本相关 bug 占 16.25%。该工作揭示了预训练 NLP 模型复用中的缺陷模式,为后续工具与最佳实践提供依据。

问题
预训练 NLP 模型被广泛复用,但复用是否会将缺陷传播到客户端代码、以及缺陷类型和分布尚不清楚。
方法
作者从 Stack Overflow 挖掘 80 个 BERT 相关帖子,对其中客户端代码出现的 bug 进行归纳分类与统计。
评估
通过对 80 个帖子的实证统计,给出四类 bug 的占比:公平性 13.75%、参数 28.75%、token 15%、版本相关 16.25%。
原文摘要(Abstract)

In this digital era, the textual content has become a seemingly ubiquitous part of our life. Natural Language Processing (NLP) empowers machines to comprehend the intricacies of textual data and eases human-computer interaction. Advancement in language modeling, continual learning, availability of a large amount of linguistic data, and large-scale computational power have made it feasible to train models for downstream tasks related to text analysis, including safety-critical ones, e.g., medical, airlines, etc. Compared to other deep learning (DL) models, NLP-based models are widely reused for various tasks. However, the reuse of pre-trained models in a new setting is still a complex task due to the limitations of the training dataset, model structure, specification, usage, etc. With this motivation, we study BERT, a vastly used language model (LM), from the direction of reusing in the code. We mined 80 posts from Stack Overflow related to BERT and found 4 types of bugs observed in clients’ code. Our results show that 13.75% are fairness, 28.75% are parameter, 15% are token, and 16.25% are version-related bugs.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot6370,
  title = {Does reusing pre-trained NLP model propagate bugs?},
  author = {Mohna Chakraborty},
  booktitle = {FSE},
  year = {2021},
  doi = {10.1145/3468264.3473494}
}