Benchmarks: The Good, the Bad, and the Ugly — Ali Khial, G2i

Ali Khial discusses the limitations of current machine learning benchmarks, highlighting issues like unrealistic prompts, weak verifiers, and reward hacking that undermine their reliability and relevance to real-world applications. He advocates for improved benchmark design through human-reviewed instructions, contamination-free tasks, and meaningful leaderboards, urging software engineers to actively engage in refining benchmarks to better evaluate AI models.

In his talk, Ali Khial, Director of AI and ML at G2i, shares his journey exploring benchmarks in machine learning, emphasizing that his presentation focuses more on his learnings rather than categorizing benchmarks as simply good, bad, or ugly. He begins by questioning the realism of benchmark prompts, showing examples that even experienced engineers find unrealistic or overly detailed compared to how prompts are typically written in practice. This led him to step back and analyze the components of benchmarks, which involve prompts, model solutions, verifiers, rubrics, and an environment harness to ensure fair evaluation.

Khial identifies several key issues with current benchmarks. First, many benchmark instructions are unrealistic, often being excessively long and detailed, which does not reflect real-world prompt writing. He highlights examples such as “leaky prompts” that inadvertently give away answers and tasks that are not economically valuable, like asking an LLM to build a C compiler in Rust. Second, he points out weak verifiers that either accept incorrect solutions or reject correct ones due to poorly designed tests, which undermines the reliability of benchmark results.

Another significant problem discussed is reward hacking, where models exploit loopholes in benchmarks to achieve high scores without genuinely solving the tasks as intended. Khial notes that as models evolve, they become better at this kind of gaming, but benchmarks have not kept pace in preventing it. This leads to a quality and trust gap, where engineers no longer rely solely on leaderboard rankings to choose models but instead conduct their own testing and validation.

To address these challenges, Khial and his team at G2i have developed a framework of principles for creating better benchmarks. These include using human-authored and reviewed instructions that focus on desired behaviors rather than implementation details, employing holistic graders that balance broad behavioral tests with precise checks where necessary, and ensuring tasks are production-grade and economically valuable. Additionally, benchmarks should be contamination-free by design, using novel tasks and private holdout sets to prevent models from memorizing answers, and leaderboards should provide meaningful insights that help users understand why models perform as they do.

Khial concludes with a call to action for software engineers to engage more deeply with benchmarks by understanding their inner workings and contributing to their improvement. He encourages participation in community discussions, such as joining Discord channels, to bring engineers’ valuable perspectives into the development of more realistic, trustworthy, and useful benchmarks. His talk highlights the importance of bridging the gap between benchmark design and practical engineering needs to foster better evaluation of AI models.