Principle:AMAP ML SkillClaw Quality Scoring
| Knowledge Sources | |
|---|---|
| Domains | Quality_Evaluation, LLM_Judging |
| Last Updated | 2026-10-22 00:00 GMT |
Overview
A quality scoring mechanism that evaluates LLM responses using a Process Reward Model (PRM) with majority voting over multiple independent LLM judge queries.
Description
Quality scoring addresses the problem of objectively measuring how well an LLM response meets the user's instruction. The SkillClaw pattern uses a PRM approach: `prm_m` independent judge queries are sent in parallel to an OpenAI-compatible API, each returning a score of -1 (poor), 0 (neutral), or 1 (good). The final score is determined by majority vote. This reduces variance from any single judge call. A representative evaluation text is returned alongside the score for human review. The scorer is used both for real-time session scoring and for distributed validation replay.
Usage
Use this principle when designing systems that need:
- Automated quality evaluation of LLM responses
- Reduced scoring variance via majority voting
- Real-time quality feedback during proxy sessions
- Comparative quality evaluation (baseline vs candidate) for skill validation
Theoretical Basis
The PRM scoring uses majority voting over M independent samples:
Where each is an independent judge response. The variance of the majority vote decreases as .
# Abstract algorithm (NOT real implementation)
async def score_response(response, instruction, prm_m=3):
votes = await parallel_gather([
judge_llm(response, instruction) for _ in range(prm_m)
])
scores = [parse_vote(v) for v in votes] # each in {-1, 0, 1}
final = majority_vote(scores)
return {"score": final, "votes": scores}