We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

cs.AI

Change to browse by:

References & Citations

DBLP - CS Bibliography

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo

Computer Science > Artificial Intelligence

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

Abstract: 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.
Comments: To appear in ACL Findings 2023
Subjects: Artificial Intelligence (cs.AI); Programming Languages (cs.PL)
Cite as: arXiv:2211.00609 [cs.AI]
  (or arXiv:2211.00609v2 [cs.AI] for this version)

Submission history

From: Spyridon Mouselinos [view email]
[v1] Mon, 31 Oct 2022 15:06:15 GMT (6184kb,D)
[v2] Tue, 9 May 2023 14:47:24 GMT (1881kb,D)

Link back to: arXiv, form interface, contact.