← Latest papers
💬 NLP

Comparing Developer and LLM Biases in Code Evaluation

This paper introduces TRACE, a framework that reveals significant misalignment between LLM judges and human developers in code evaluation across three modalities, showing that even the best models underperform humans by 12–23% and exhibit systematic biases, such as favoring longer explanations, on most existing code quality dimensions.

Original authors: Aditya Mittal, Ryan Shar, Zichu Wu, Shyam Agarwal, Tongshuang Wu, Chris Donahue, Ameet Talwalkar, Wayne Chi, Valerie Chen

Published 2026-03-26
📖 5 min read🧠 Deep dive

Original authors: Aditya Mittal, Ryan Shar, Zichu Wu, Shyam Agarwal, Tongshuang Wu, Chris Donahue, Ameet Talwalkar, Wayne Chi, Valerie Chen

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are a chef trying to teach a robot how to cook. You ask the robot to make a sandwich, and it gives you two options. You pick the one with the fresh, crisp lettuce. But the robot's "taste tester" (another AI) picks the one with the soggy, wilted lettuce because it thinks "more lettuce = better sandwich."

This is the core problem explored in the paper "Comparing Developer and LLM Biases in Code Evaluation."

Here is the breakdown of what the researchers found, using simple analogies:

1. The Problem: The Robot Judge is Out of Touch

As we use AI to write code, we need a way to grade that code. Instead of hiring a human to check every single line, we use a "Judge AI" to say, "This code is good, that code is bad."

The researchers asked: Do these Judge AIs actually think like human developers?

They found that no, they don't. Even the smartest AI judges are missing the mark. They are about 12% to 23% worse at picking what a human developer likes than a human picking what another human likes. It's like having a food critic who loves burnt toast because they think it looks "rustic," while everyone else just wants a fresh slice.

2. The Tool: TRACE (The "Rubric Detective")

To figure out why the robots are wrong, the authors built a tool called TRACE.

Think of TRACE as a detective's magnifying glass.

  • Step 1: It looks at a coding task where a human picked "Option A" and the AI Judge picked "Option B."
  • Step 2: It breaks down the two options into a checklist of "Rubric Items" (like a scorecard). These items might be things like "Is the code fast?", "Are there comments?", or "Is it easy to read?"
  • Step 3: It compares the scorecards. It asks: "Did the human care more about speed? Did the AI care more about comments?"

This revealed 35 specific ways that AI judges and human developers disagree.

3. The Three Scenarios (The "Kitchen" Settings)

The researchers tested the AI judges in three different "kitchens" (coding scenarios), and the robots got confused in different ways in each:

A. The Autocomplete Chef (Code Completion)

  • The Scene: You are typing code, and the AI suggests the next few words.
  • The Human Preference: Humans want the suggestion to be clear and easy to read within the context of the file they are already working on.
  • The Robot Bias: The AI judges loved suggestions that were functionally correct but messy or hard to read. They ignored the fact that the code needed to fit smoothly into the existing file.
  • Analogy: The human wants a sandwich that fits perfectly on their plate. The robot judge picks the sandwich that is technically edible but is 3 feet tall and spills everywhere.

B. The Editor (Code Editing)

  • The Scene: You highlight a broken piece of code and tell the AI, "Fix this."
  • The Human Preference: Humans want the fix to be precise and clear. They don't want the AI to rewrite the whole file or add unnecessary fluff.
  • The Robot Bias: The AI judges often preferred answers that were vague or added too much "explanation" text, rather than a clean, surgical fix.
  • Analogy: You ask the robot to replace a broken lightbulb. The human wants a new bulb. The robot judge picks the answer where the robot replaced the bulb and rewired the whole house and wrote a 10-page manual, even though you just wanted the light on.

C. The Chatbot (Chat-based Coding)

  • The Scene: You ask the AI a question like, "How do I sort this list?"
  • The Human Preference: Humans want a smart, context-aware answer that shows it understands the specific problem.
  • The Robot Bias: The AI judges loved generic, long-winded explanations. They thought "more words = better answer," even if the answer was boring and didn't solve the specific problem.
  • Analogy: You ask, "How do I fix a flat tire?" The human wants the step-by-step instructions. The robot judge picks the answer that writes a 500-word essay on the history of rubber tires, because it sounds "impressive."

4. The Big Surprise: Even "Special" Robots Fail

The researchers tested 13 different AI models. Some were general-purpose (like a Swiss Army Knife), and some were "Specialized Judges" trained specifically to grade code.

The Result: The specialized judges didn't do much better than the general ones.

  • Analogy: It's like hiring a professional food critic to judge a burger. You'd expect them to be great. But in this case, the "professional" critic was just as confused as the "amateur" one. They both missed the subtle things that make a burger (or code) actually good for a human.

5. The Conclusion: We Need Better Training

The paper concludes that we can't just trust AI to grade AI yet. The "rubrics" (the rules they use to judge) are different from the rules humans use.

  • Humans care about: Readability, context, precision, and "feeling right."
  • AI Judges care about: Length, generic correctness, and surface-level features.

The Takeaway:
If we want AI to help us build software, we need to teach the "Judge AIs" to think more like human developers. We need to stop training them to just look for "correctness" and start training them to understand context, clarity, and the messy reality of how people actually work.

Until then, the AI Judge is like a robot that thinks a messy, over-complicated solution is a masterpiece, while the human developer just wants to get the job done.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →