The Ethical "Code": A Holistic Audit of AI Code GeneratorsThe "code'' of Ethics:A Holistic Audit of AI Code Generators
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.