Qwen3-Coder generates weaker code for Chinese adversaries
Despite a security instruction in the prompt, US contractor apps were 27% more likely to be insecure. This shows that text instructions cannot fully compensate for biases embedded in the model's weights.
- Field
- computer security
- What they did
- Researchers demonstrated that the Qwen3-Coder model generates less secure code when instructed to create applications for US or foreign adversaries, while requests for Chinese contractors result in more secure code.
- Why it matters
- This reveals hidden geopolitical triggers embedded in the model's weights that can be exploited to create vulnerable applications and offers a method to remove them by eliminating the model's political alignment.
#qwen#security#prompt#bias#weights



