b4c26227-c795-4491-92e5-01ee0de8f6a4
prompter
what are the risks of using AI to create code for a professional programmer
e17187ad-6001-4449-bf6d-21eb53e9cf18
b4c26227-c795-4491-92e5-01ee0de8f6a4
assistant
One can identify multiple risks with AI code generation or completion:
- Lack of learning: if an AI writes the code for you, you will often not learn as much.
- Lack of reviewing: a code might work but have bugs or security issues. Sometimes, programmers are lazy and do not review the code written by the AI
- Security issues: because AI is trained on human code data, it can reproduce security issues that are often made by humans.
- Intellectual Property issues: AI can sometime copy parts of code they have been trained on. This can lead to IP issues.
426ed05c-60a2-4fce-b993-f5cf4201dc5f
e17187ad-6001-4449-bf6d-21eb53e9cf18
prompter
Seems like only the Intellectual Property issue remains a problem if you review the code before using it.
47908ce5-ebce-4708-a3e2-42e2bc5260f6
426ed05c-60a2-4fce-b993-f5cf4201dc5f
assistant
To address the remaining intellectual property issue, the AI model would need to be trained in a way that reduces the risk of model memorisation, a behaviour of the AI that simply copies answers from its learning data rather than generating unique answers. This can be achieved with techniques such as regularization, early stopping, and cross-validation. Alternatively, an algorithm that compares the input code with original codes in its database could be used.