[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"branding":3,"analytics":7,"article-new-framework-tests-ai-models-on-spotting-biased-code":10,"sections":34},{"siteName":4,"siteTagline":5,"publisherName":4,"contactEmail":6},"The Revision","Tech news, decoded.","editor@therevision.news",{"gaMeasurementId":8,"adsenseClientId":9},"G-ZW2MV82GYR","ca-pub-8533917693782264",{"article":11},{"id":12,"slug":13,"title":14,"dek":15,"body_md":16,"tags_json":17,"published_at":18,"created_at":19,"updated_at":20,"status":21,"review_note":22,"review_notes":23,"image_url":22,"persona_id":22,"persona_name":22,"section":24,"tags":25,"sources":29,"feedback":33,"feedback_at":22,"cost_usd":33,"total_tokens":33},8347,"new-framework-tests-ai-models-on-spotting-biased-code","New Framework Tests AI Models on Spotting Biased Code","A new benchmark shows Gemini and Qwen3-coder can flag biased logic in AI-written Python with solid accuracy, though open-source precision still lags.","A new study asked large language models to catch bias in code that other large language models wrote - and they were right most of the time.\n\nResearchers built a taxonomy-driven framework for identifying, categorizing, and explaining bias in AI-generated Python code. They extended an existing dataset of biased code snippets and manually added bias categories plus human-written justifications to create a ground-truth set. Using in-context learning, they then tested proprietary and open-source models as automated bias detectors. Google's Gemini reached 80.14% classification accuracy, with 84.0% precision and 95.7% recall; the best open-source model, Qwen3-coder, hit 82.45% accuracy, 68.64% precision, and 80.22% recall.\n\nThe interesting number isn't the accuracy - it's the explanations. Both models' written justifications for why a snippet was biased matched human-authored reasoning about 80% of the time, and their identification of the offending code matched even more closely, above 86% for both. That's a real step toward LLMs auditing their own blind spots instead of just generating more of them.\n\nStill, Qwen3-coder's precision sat under 69%, meaning close to a third of its bias flags would be false alarms - a reminder to treat this as a promising research result, not a ready-made linter for your CI pipeline.","[\"ai\",\"bias\",\"code-generation\",\"llm-evaluation\"]","2026-09-28T04:00:00.000Z","2026-09-29T01:50:37.637Z","2026-09-29T01:50:45.106Z","published",null,[],"ai",[24,26,27,28],"bias","code-generation","llm-evaluation",[30],{"name":31,"url":32},"arXiv cs.AI","https:\u002F\u002Farxiv.org\u002Fabs\u002F2609.30642",0,{"sections":35},[36,40,45,50,55,60,65,70,75,80,85,90,95,100],{"name":37,"slug":24,"count":38,"latest_published_at":39},"AI",4917,"2026-09-28T23:39:20.000Z",{"name":41,"slug":42,"count":43,"latest_published_at":44},"Security","security",768,"2026-09-29T01:20:00.000Z",{"name":46,"slug":47,"count":48,"latest_published_at":49},"Policy","policy",406,"2026-09-28T19:04:09.000Z",{"name":51,"slug":52,"count":53,"latest_published_at":54},"Deals","deals",272,"2026-09-28T17:42:46.000Z",{"name":56,"slug":57,"count":58,"latest_published_at":59},"Hardware","hardware",191,"2026-09-28T15:45:00.000Z",{"name":61,"slug":62,"count":63,"latest_published_at":64},"Science","science",154,"2026-09-28T13:19:18.000Z",{"name":66,"slug":67,"count":68,"latest_published_at":69},"Consumer Tech","consumer-tech",139,"2026-09-28T17:09:47.000Z",{"name":71,"slug":72,"count":73,"latest_published_at":74},"Software","software",91,"2026-09-25T20:55:00.000Z",{"name":76,"slug":77,"count":78,"latest_published_at":79},"Dev Tools","dev-tools",87,"2026-09-28T16:11:42.000Z",{"name":81,"slug":82,"count":83,"latest_published_at":84},"Startups","startups",80,"2026-09-28T17:50:28.000Z",{"name":86,"slug":87,"count":88,"latest_published_at":89},"General","general",49,"2026-09-28T16:44:57.000Z",{"name":91,"slug":92,"count":93,"latest_published_at":94},"Gaming","gaming",48,"2026-09-25T18:35:21.000Z",{"name":96,"slug":97,"count":98,"latest_published_at":99},"Reviews","reviews",31,"2026-09-28T14:31:34.000Z",{"name":101,"slug":102,"count":103,"latest_published_at":104},"How-To","how-to",6,"2026-06-16T09:00:00.000Z"]