Introduction
As the global tech landscape undergoes a "Great Migration" of legacy software, billions of lines of vintage code—COBOL, PL/I, and REXX—require modernization to maintain critical infrastructure. Large Language Models (LLMs) have emerged as powerful tools for refactoring and explaining these legacy systems. However, evaluating LLM performance in such specialized domains presents a significant bottleneck: the scarcity of domain experts.
To scale evaluation, many organizations adopt "LLM-as-a-Judge" (LaaJ) paradigms, where frontier models like GPT-4 or Llama-3-405B grade the outputs of smaller, task-specific models. Yet, these AI judges are prone to biases, such as favoring longer responses or their own architectural patterns. In high-stakes modernization projects, trusting an unvalidated judge is a risk. This paper introduces SparseAlign, a framework designed to rigorously validate AI judges against sparse, non-overlapping human expert feedback.
The Challenge of Sparse Data
In niche technical fields, subject matter experts (SMEs) are rare and their time is expensive. Consequently, human evaluation datasets are often "sparse": different experts may review entirely different subsets of model outputs. Traditional inter-rater reliability metrics, such as Cohen’s Kappa, require overlapping samples to calculate agreement and effectively break down in these disjoint scenarios.
As shown in the data distribution above, experts typically rate only a fraction of the available snippets, making it impossible to derive a simple consensus through direct averaging.
The SparseAlign Framework
SparseAlign addresses this sparsity through two primary components:
1. The Human-Rank Algorithm
To synthesize a reliable ground-truth ranking from disjoint ratings, the framework employs:
- Greedy Tie-Clustering: This groups models with statistically similar average scores, using a threshold derived from the data's standard deviation to avoid overinterpreting noise.
- Weighted Pairwise Voting: To resolve ties within clusters, the algorithm uses a voting mechanism where each expert's preference is weighted by the volume of samples they reviewed, ensuring that higher-confidence signals carry more weight.
2. The Align-Score Metric
The final validation of an AI judge is expressed through the Align-Score, which balances two error types:
- Rank Disagreement ($\epsilon_{rank}$): A modified Kendall’s Tau distance that penalizes the judge when its rankings conflict with high-confidence human preferences.
- Score Error ($\epsilon_{score}$): A measure of the absolute difference between the judge's raw scores and the human-derived averages.
Experimental Evaluation
The researchers applied SparseAlign to an internal IBM dataset focused on COBOL code explanation. Seven SMEs evaluated 150 (code, explanation) pairs generated by six different LLMs. To benchmark the framework, four judges were tested: two production-grade LLMs (Llama-3-405B and Llama-4-maverick) and two control baselines (a "Random" judge and a "Human-Close" simulated judge).
Results and Meta-Validation
The framework successfully differentiated between judge quality even under extreme data constraints. The "Human-Close" baseline achieved the highest alignment (0.866), while the "Random" judge was clearly identified as inferior (0.589).
Among the real-world models, Llama-4-maverick (0.76) slightly outperformed Llama-3-405B (0.74). The primary differentiator was Llama-4-maverick's superior ability to preserve the human-derived ranking of the models ($\epsilon_{rank} = 0.30$ vs $0.38$). These results provided the empirical basis for IBM to select the most reliable evaluators for their modernization workflows.
Conclusion
Meta-validation is essential to escape the "circular evaluation loop," where unverified judges inadvertently reinforce their own biases. By embracing ties and weighting expert confidence, SparseAlign provides a robust path for validating AI judges in low-data regimes. Future work will explore the framework's sensitivity to prompting and its applicability to more complex tasks like code-to-code translation.
Summary updated