arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2211.00609cs.AIcs.PL
收藏

一种简单而有效的代码生成偏见发现方法

A Simple, Yet Effective Approach to Finding Biases in Code Generation

University of Warsaw(华沙大学);DeepMind(深度思维);Google(谷歌)

Spyridon Mouselinos, Mateusz Malinowski, Henryk Michalewski

AI总结:

本文提出“影响块”概念与自动化干预机制,通过对抗性测试暴露大型语言模型代码生成系统中的偏见,并作为微调时的数据转换技术缓解偏见。

摘要:

近期,基于大型语言模型的高性能代码生成系统已经出现。这些系统在包含大量自然文本而非实际可执行计算机代码的海量语料库上进行训练。本研究表明,当前的代码生成系统表现出从其大型语言模型骨干继承而来的不良偏见,这些偏见在特定情况下可能降低生成代码的质量。为研究这一影响,我们提出了“影响块”概念,该概念能够对编码挑战进行模块化分解与分析。我们引入了一种类似于对抗性测试的自动化干预机制,通过被测模型的失败模式来暴露不良偏见。最后,我们展示了我们的框架如何作为微调过程中的数据转换技术使用,作为这些偏见的一种缓解策略。

英文摘要:

Recently, high-performing code generation systems based on large language models have surfaced. They are trained on massive corpora containing much more natural text than actual executable computer code. This work shows that current code generation systems exhibit undesired biases inherited from their large language model backbones, which can reduce the quality of the generated code under specific circumstances. To investigate the effect, we propose the "block of influence" concept, which enables a modular decomposition and analysis of the coding challenges. We introduce an automated intervention mechanism reminiscent of adversarial testing that exposes undesired biases through the failure modes of the models under test. Finally, we demonstrate how our framework can be used as a data transformation technique during fine-tuning, acting as a mitigation strategy for these biases.

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

↑