Skip to content
MediumNewsLLM-specific

Bias in Qwen3-Coder Model

Published
Record updated
View JSON

Summary

Research from Hirundo reports that Qwen3-Coder produces less secure code depending on the stated end user. Asking for an app for a US defense contractor instead of a Chinese one made it 19% more likely to output a hackable app, and apps for a Hong Kong democracy group were 28% more likely to leak other users' secrets. Removing the model's CCP alignment closed all three gaps while keeping performance on ten other coding tasks, and the model is available on Hugging Face.

Mitigation

Removing the model's CCP alignment, as done by Hirundo, eliminated the three gaps; the source gives no further details on the method.