Program Distillation Offers Scalable, Transparent LLM Evaluation

Tzu-Heng Huang, Shengqi Qiu, Frederic Sala· July 28, 2026 View original

Summary

A new system called PAJAMA introduces program distillation as an efficient and transparent alternative to LLM-as-a-judge for automated evaluation. It distills LLM decision logic into a committee of inspectable programs, significantly reducing cost and latency while matching or improving evaluation accuracy.

New research proposes PAJAMA, a system that offers a scalable and transparent alternative to the common "LLM-as-a-judge" paradigm for automated evaluation. While LLM judges are standard, they suffer from high costs, significant latency, and opaque decision-making, hindering their scalability and reliability. PAJAMA addresses these issues through a technique called program distillation. Instead of relying on an LLM for real-time evaluation, PAJAMA distills the LLM's decision logic into a committee of executable programs. These programmatic judges are inherently transparent, allowing for easy inspection and editing, and eliminate per-sample API costs. The system aggregates decisions from these programs and includes a fallback mechanism to selectively escalate low-confidence cases to a human or a larger LLM. Across five datasets and four model families, programmatic judges demonstrated performance comparable to a 13B-sized LLM judge. By using program outputs as routing signals, PAJAMA improved both accuracy and throughput, pushing the Pareto frontier for evaluation. Furthermore, these programmatic judges generate cheap and effective reward signals, outperforming reward models trained on proprietary LLM labels at two orders of magnitude lower API cost, making them valuable for both evaluation and reinforcement learning.

Why it matters

For organizations heavily relying on LLMs, PAJAMA offers a path to significantly reduce the cost and latency of automated evaluation, while simultaneously increasing transparency and reliability, which is crucial for developing and deploying high-quality AI applications.

How to implement this in your domain

  1. 1Assess current LLM evaluation pipelines for cost, latency, and transparency bottlenecks.
  2. 2Investigate program distillation techniques to create more efficient and auditable evaluation mechanisms.
  3. 3Pilot PAJAMA or similar programmatic judging systems for specific LLM tasks to compare against existing LLM-as-a-judge methods.
  4. 4Develop internal tools and expertise for synthesizing and managing programmatic judges.

Who benefits

Software DevelopmentAI DevelopmentQuality AssuranceCustomer ServiceContent Moderation

Key takeaways

  • Program distillation offers a scalable, cost-effective, and transparent alternative to LLM-as-a-judge.
  • Programmatic judges match or exceed LLM judge performance while reducing latency and cost.
  • The PAJAMA system includes a fallback mechanism for low-confidence cases.
  • Programmatic judges can also generate cheap and effective reward signals for training.

Original post by Tzu-Heng Huang, Shengqi Qiu, Frederic Sala

"arXiv:2607.22561v1 Announce Type: new Abstract: LLM-as-a-judge has become the standard for automated evaluation, but it suffers from high cost, significant latency, and opaque decisions -- limitations that undermine its scalability and reliability. We address these with a simple,…"

View on X

Originally posted by Tzu-Heng Huang, Shengqi Qiu, Frederic Sala on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses