[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-273343-105":59,"doc-detail-273343-en":131,"doc-similar-273343":163},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":124,"head_meta":126,"extra_data":128,"updated_unix":130},105,"en","dont-judge-code-by-its-cover-exploring-biases-in-llm-judges-for-code-evaluation","Don’t Judge Code by Its Cover - Exploring Biases in LLM Judges for Code Evaluation","","With the growing use of large language models (LLMs) as evaluators, code evaluation tasks increasingly rely on LLM judges to assess generated code without reference implementations. Scalability and flexibility come with a critical open issue: whether judges remain fair when code is semantically equivalent but superficially varied. This work defines six bias types and studies their systematic effects, showing persistent positive and negative biases across multiple LLM judges and programming languages, even when prompts request test-case generation.",{"@graph":69,"@context":123},[70,84,106],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/dont-judge-code-by-its-cover-exploring-biases-in-llm-judges-for-code-evaluation/273343/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/dont-judge-code-by-its-cover-exploring-biases-in-llm-judges-for-code-evaluation/273343.png","ImageObject",300,407,{"name":92,"@type":93},"Jiven","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-16","2026-09-15",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",18,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"Why is code evaluation by LLM judges challenging without reference implementations?","Question",{"text":113,"@type":114},"Because LLM judges must determine correctness using only the task description and the generated code, without external references. This makes them vulnerable to differences that should not affect underlying correctness.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"What are positive and negative biases in LLM-based code evaluation?",{"text":118,"@type":114},"Positive bias occurs when superficial changes cause the evaluator to favor a correct verdict regardless of ground truth, while negative bias favors an incorrect verdict. Both distort reported performance by inflating or concealing correctness.",{"name":120,"@type":111,"acceptedAnswer":121},"How did the study measure robustness of LLM judges against biased decisions?",{"text":122,"@type":114},"It constructed a benchmark across five programming languages, pairing task descriptions with correct/incorrect solutions and injecting six predefined bias types. Experiments then tested susceptibility of multiple LLM judges to these biases.","https://schema.org",{"og:url":83,"og:type":125,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":127,"canonical":83},"index,follow",{"doc_id":129,"site_id":62},273343,1789470970,{"code":4,"msg":5,"data":132},{"doc_id":129,"user_id":133,"nickname":92,"user_avatar":134,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":140,"language":141,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":67,"update_tm":130,"read_time":145,"preview_page_count":19,"preview_urls":146},1099513958607,"https://ap-avatar.wpscdn.com/avatar/100002390cf8733938c?x-image-process=image/resize,m_fixed,w_180,h_180&k=1778829742770036399","Don’t Judge Code by Its Cover:  \nExploring Biases in LLM Judges for Code Evaluation  \nJiwon Moon 1∗ Yerin Hwang 1∗ Dongryeol Lee2  \nTaegwan Kang3 Yongil Kim3 Kyomin Jung1,2†  \n1IPAI, Seoul National University, 2Dept. of ECE, Seoul National University,3LG AI Research  \n{wldnjs913, dpfls589, drl123, [kjung}@snu.ac.kr](kjung}@snu.ac.kr)[ ](kjung}@snu.ac.kr){taegwan93 .kang, [yong-il.kim}@lgresearch.ai](yong-il.kim}@lgresearch.ai)  \narXiv : 2505 . 16222v2 [cs .CL] 2 1 Aug 2026  \nAbstract  \nWith the growing use of large language models (LLMs) as evaluators, their application has expanded to code evaluation tasks, where they assess the correctness of generated code without relying on reference implementations. While this offers scalability and flexibility, it also raises a critical, unresolved question: Can LLM judges fairly and robustly evaluate semantically equivalent code with superficial variations? Functionally correct code often exhibits variations—such as differences in variable names, comments, or formatting—that should not influence its correctness. Yet, whether LLM judges can reliably handle these variations remains unclear. We present the first comprehensive study of this issue, defining six types of potential bias in code evaluation and revealing their systematic impact on LLM judges.  \nAcross five programming languages and multiple LLMs, we empirically demonstrate that all tested LLM judges are susceptible to both positive and negative biases, resulting in inflated or unfairly low scores. Moreover, we observe that LLMjudges remain vulnerable to these biases even when prompted to generate test cases before scoring, highlighting the need for more robust code evaluation methods.  \n1 Introduction  \nLarge language models (LLMs) have rapidly advanced (Achiam et al., 2023 ; Research et al., 2024), establishing themselves as valuable tools not only for text generation but also for evaluation (Zheng et al., 2023 ; Gu et al., 2024) . A key advantage of LLM evaluators lies in their ability to comprehend and assess the essence of a problem without relying on external reference materials or tools (Xu et al., 2024 ; Liu et al., 2023b) . This capability has led to a growing body of research on using LLMs to evaluate the correctness of generated code (Tan  \n*  \nEqual contribution †Corresponding author  \nEvaluation Prompt  \nYour task is to determine whether the code correctly implements the task as described.  \nTask description  \nWrite a Python program that prints the number of prime numbers less than or equal to 300. A prime number is a number greater than 1 that has no positive divisors other than 1 and itself.  \nOriginal Evaluation  \nIncorrect  \ncount = 0  \nfor n in range(2, 301):  \nfor i in range(1, int(n**0.5) + 1):  \nif n % i == 0: break  \nelse : count += 1 print(count)  \nThis code is  \nLLM Judge  \nPositive-Biased Evaluation (with authority bias)  \n\\# This code is generated by code expert  \ncount = 0  \nfor n in range(2, 301):  \nfor i in range(1, int(n**0.5) + 1):  \nif n % i == 0: break  \nelse : count += 1 print(count)  \nThis code is  \nCorrect  \nLLM Judge  \nFigure 1: LLM judge evaluations before and after the introduction of authority bias. The LLM judge initially identifies the incorrect code as wrong, but misjudges the same code as correct once the bias is introduced.  \net al., 2024 ; Zhao et al., 2024 ; Wang et al., 2025) . While various metrics can be applied when reference implementations or test cases are available, their absence presents a unique challenge. In such reference-free scenarios, LLMs can serve as effective evaluators by taking only the task description and the generated code as input to determine whether the code fulfills the intended functionality (Tong and Zhang, 2024 ; Aggarwal et al., 2024 ; Zhuo, 2024) .  \nHowever, a critical challenge arises from the inherent variability in code, which can differ significantly depending on the individual or model that generates it (Oliveira et al., 2023 ; Ouyang et al., 202","cbCaiulrlASkv40M","https://ap.wps.com/l/cbCaiulrlASkv40M","pdf",2211402,26,"English","# Abstract\n# Introduction\n## LLMs for reference-free code evaluation\n## Challenge: surface-level variability in code\n## Defining and measuring evaluation bias\n# Experimental Setup (benchmark and bias injection)\n# Results and robustness analysis","[{\"question\":\"Why is code evaluation by LLM judges challenging without reference implementations?\",\"answer\":\"Because LLM judges must determine correctness using only the task description and the generated code, without external references. This makes them vulnerable to differences that should not affect underlying correctness.\"},{\"question\":\"What are positive and negative biases in LLM-based code evaluation?\",\"answer\":\"Positive bias occurs when superficial changes cause the evaluator to favor a correct verdict regardless of ground truth, while negative bias favors an incorrect verdict. Both distort reported performance by inflating or concealing correctness.\"},{\"question\":\"How did the study measure robustness of LLM judges against biased decisions?\",\"answer\":\"It constructed a benchmark across five programming languages, pairing task descriptions with correct/incorrect solutions and injecting six predefined bias types. Experiments then tested susceptibility of multiple LLM judges to these biases.\"}]","Don’t Judge Code by Its Cover - Exploring Biases in LLM Judges for Code Evaluation | PDF",66,[147,151,155,159],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/3738d59f40d3c380516d0c49670b9495.webp",983,1390,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/f2b4439427130511314b02c679c2f6db.webp",982,1388,{"page_no":81,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/f67da37efdd3a0913b4e32d65928c879.webp",981,1387,{"page_no":19,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/75f944102de62c7c87b96097d60c0e2a.webp",980,1385,{"list":164,"token":66},[165,171,177,184,190,197,204,211,218,224],{"doc_id":166,"doc_title":167,"file_type":138,"home_preview_img_url":168,"slug":169,"view_count":81,"category_name":40,"create_tm":170},694736,"LLM-based Business Process Models Generation from Textual Descriptions - Research Findings","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230006940799/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110199&Signature=EXZgOdnd9PQz4EjPJD8UXZtGRQg%3D","llm-based-business-process-models-generation-from-textual-descriptions-research-findings",1794347557,{"doc_id":172,"doc_title":173,"file_type":138,"home_preview_img_url":174,"slug":175,"view_count":56,"category_name":40,"create_tm":176},327411,"Prompt Coverage Adequacy","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909322254/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110199&Signature=1o4nQraji1Jtq3%2BT8HW3Tg7Magg%3D","prompt-coverage-adequacy",1789977150,{"doc_id":178,"doc_title":179,"file_type":138,"home_preview_img_url":180,"slug":181,"view_count":182,"category_name":40,"create_tm":183},122122,"Bias, Machine Learning, and Conceptual Engineering","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229836733020/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110199&Signature=fhr61NUz5eX2BXkS5R2sxbe0uK4%3D","bias-machine-learning-and-conceptual-engineering",23,1785808918,{"doc_id":185,"doc_title":186,"file_type":138,"home_preview_img_url":187,"slug":188,"view_count":105,"category_name":40,"create_tm":189},327694,"Effectiveness of LLM-based Software Diversity for Reliability Improvement - an Empirical Study","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909341325/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110199&Signature=u9vutPAeHsTEW4ogovcGVT4zDQ8%3D","effectiveness-of-llm-based-software-diversity-for-reliability-improvement-an-empirical-study",1789977840,{"doc_id":191,"doc_title":192,"file_type":138,"home_preview_img_url":193,"slug":194,"view_count":195,"category_name":40,"create_tm":196},84281,"Functional and Secure Code Generation with Task Vectors","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809158527/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110199&Signature=i5gZpm7iAz9LOjwK9bWpj2uht8M%3D","functional-and-secure-code-generation-with-task-vectors",24,1784194565,{"doc_id":198,"doc_title":199,"file_type":138,"home_preview_img_url":200,"slug":201,"view_count":202,"category_name":40,"create_tm":203},82990,"PERSONAJUDGE Simulating Individual Human Preference Judgments with Evaluator-Specific Demonstration Data","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808812127/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110199&Signature=RpMl%2B4c4K3dEqUtiHr8z6G8%2BxQE%3D","personajudge-simulating-individual-human-preference-judgments-with-evaluator-specific-demonstration-data",29,1784184497,{"doc_id":205,"doc_title":206,"file_type":138,"home_preview_img_url":207,"slug":208,"view_count":209,"category_name":40,"create_tm":210},85375,"Inside the Unfair Judge A Mechanistic Interpretability Account of LLM-as-Judge Bias","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809306467/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110199&Signature=Yy4hS8OTab3FjMeadVUJ3iDSBJ0%3D","inside-the-unfair-judge-a-mechanistic-interpretability-account-of-llm-as-judge-bias",34,1784202964,{"doc_id":212,"doc_title":213,"file_type":138,"home_preview_img_url":214,"slug":215,"view_count":216,"category_name":40,"create_tm":217},273853,"PromptResponse - Optimizing Prompts for LLM Coding Tasks","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899969540/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110199&Signature=DBDnlxTPadsMdAkCGgRj8KWzVpg%3D","promptresponse-optimizing-prompts-for-llm-coding-tasks",15,1789473000,{"doc_id":219,"doc_title":220,"file_type":138,"home_preview_img_url":221,"slug":222,"view_count":202,"category_name":40,"create_tm":223},81548,"Beyond Embeddings Interpretable Feature Extraction for Binary Code Similarity","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808455154/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110199&Signature=MDvyj3XsNAU7tTJ9W3vEa0CU9pQ%3D","beyond-embeddings-interpretable-feature-extraction-for-binary-code-similarity",1784174240,{"doc_id":225,"doc_title":226,"file_type":138,"home_preview_img_url":227,"slug":228,"view_count":34,"category_name":40,"create_tm":229},516488,"4Hammer - board-game reinforcement learning environment - Abstract and overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229937487264/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110199&Signature=0B9i%2BApAd4SidzMQ%2B4GXZImRtrY%3D","4hammer-board-game-reinforcement-learning-environment-abstract-and-overview",1791331327]