Skip to content

The Ethical "Code": A Holistic Audit of AI Code GeneratorsThe "code'' of Ethics:A Holistic Audit of AI Code Generators

arXiv· arXiv:2305.12747· IEEE Transactions on Dependable and Secure Computing 2024· Wanlun Ma, Yiliao Song, Minhui Xue, Sheng Wen, Yang Xiang·Indexed by this site · 24 days ago· Originally publishedEvaluation
AI summary

The paper proposes an auditing framework that examines the accountability of AI code generation models along two dimensions: training data usage and attribution of generated code. The framework uses membership inference to determine whether a given piece of code appeared in a model's training data, and uses learning-based methods to distinguish human-written code from neural code. On neural code attribution, the authors argue through experiments and theoretical analysis that a piece of generated code cannot be reliably attributed to a single model, and instead propose two alternatives: attributing it to one of the candidate models, or verifying whether a set of code can be attributed to a given model. The authors package the implementation as CodeForensic and validate the framework experimentally.

Read originalIEEE Transactions on Dependable and Secure Computing 2024