AI評価・Evals実践編
- 記事ID
- EA-016
要点
Evalsは、業務の成功条件を実行可能な試験に変え、モデルやプロンプト、ツールの変更による改善と回帰を検出する仕組みです。生成AIやエージェントでは回答だけでなく、成果物、環境状態、ツールの副作用、権限違反も検査します。正解例の集合は出所・版・網羅範囲・重要度を管理し、試験で得た高得点を未知の実運用条件や安全性全体の保証とは扱いません。
現在の判断
EvalsはAIの「点数表」ではなく、業務上の成功条件を実行可能なテストへ変換し、変更による改善と回帰を検知する運用機構として扱う。生成AIやagentでは最終発話だけでなく、成果物、環境state、tool side effect、権限違反を評価する。Golden setは固定された万能正解集ではなく、provenance、version、coverage、criticalityを持つliving artifactとして管理する。高いscoreは当該suite内の結果であり、未知の実運用分布や安全性全体の保証へ外挿しない。
どこまで当てはまるか
EA-011のSUT_MANIFEST / FIXTURE_MANIFEST / RESULT_RECORDを再利用し、EA-016ではCASE/SUITE/GRADER lifecycle metadataを上乗せする。公開benchmark比較そのものを重複して主題化しない。 - 評価ライフサイクル / リリース判定ゲート / 回帰テストの運用管理・統制 - golden / regression / capability / critical / holdout suite - deterministic grader / bounded programmatic metric / LLM judge / human eval - エージェントのタスク完了 / ツールの実行 / 最終状態 - eval dataset governance / contamination / judge bias / harness defects - production-derived case governance
詳しく理解する
Evidence and provenance
- NIST TEVV-Athlon Framework, NIST AI 200-2 Initial Public Draft, announced 2026-08-07 / page updated 2026-08-14, comment period through 2026-10-06 at source-packet time. Use as organizational TEVV context; do not present as a final standard. Locator: https://doi.org/10.6028/NIST.AI.200-2.ipd
- Anthropic, “Demystifying evals for AI agents”, 2026-01-09. Use for task/trial/grader/transcript/outcome/harness separation, capability vs regression, isolated trials and grader classes. Provider engineering practice, not universal standard. Locator: https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents
- OpenAI Evals API “Create eval”, current at source-packet access 2026-09-11. Label 仕様確認済み + 製品情報は要再確認. API, pricing, availability and tenant entitlement require publication-time recheck. Locator: https://developers.openai.com/api/reference/java/resources/evals/methods/create
- OpenAI, “信頼できる第三者評価のための共通プレイブック”, 2026-05-29. Use for harness/budget/tool/scoring/contamination/shortcut/broken-task validity hazards. Locator: https://openai.com/ja-JP/index/trustworthy-third-party-evaluations-foundations/
- Google Cloud, “Evaluate a judge model”, source-packet state Preview / Pre-GA. Label 仕様確認済み + 製品情報は要再確認. Use for judge calibration against human-rating ground truth and balanced accuracy/F1/confusion-matrix examples. Do not infer GA/SLA/region availability. Locator: https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/evaluate-judge-model
- Shi et al., “Judging the Judges: A Systematic Study of Position Bias in LLM-as-a-Judge”, arXiv:2406.07791, 2024-06-12. ペア比較における判定役のポジションバイアス(位置バイアス)に対する反証として使用すること。ただし、一つの定量的な結果をすべての判定役やタスクに一般化してはならない。根拠となる場所: https://arxiv.org/abs/2406.07791
- Anthropic, “Eval awareness in Claude Opus 4.6’s BrowseComp performance”, 2026-03-06. 汚染、回答の漏洩、ショートカット、評価への意識による失敗の範囲を示す根拠として使用すること。すべてのベンチマークやモデルに一般化してはならない。ロケーター: https://www.anthropic.com/engineering/eval-awareness-browsecomp
- NIST 生成人工知能評価プログラム (GenAI), ソースパケットへのアクセス時に2026-05-07更新。計測科学の文脈として使用すること。参照先: https://www.nist.gov/programs-projects/generative-artificial-intelligence-evaluation-program-genai
仕組みと設計
Evalの最小単位をprompt/outputだけに置かず、task → trial → evidence → grade として扱う。 - タスク仕様:入力、初期状態、許可されたツール/権限、成功条件、禁止された影響 - TRIAL: model/version、prompt/config、runtime/harness、開始条件 - トレース: ツール呼び出し、検索、状態遷移、エラー/再試行の保存可能な部分 - OUTCOME: DB、document、table、send queue等の最終state - GRADERS: deterministic assertion、state check、schema/diff、human rubric、LLM rubric - RESULT: dimension別score、critical failures、cost/latency agentの自己申告をtask completionの証拠としない。
Suite separation
- CAPABILITY_SUITE: 新能力・改善余地を測る。
- REGRESSION_SUITE: 過去のaccepted behaviorを保護する。
- CRITICAL_SAFETY_PERMISSION_SUITE: aggregate平均で相殺せず、重大違反をhard gate化できる。
- HOLDOUT_ADAPTIVE_SUITE: 頻繁に開発へ露出させず、overfit / shortcut / contaminationを検出する。
- PRODUCTION_SENTINEL: 統制された実運用failure patternを再現可能なcaseへ変換し、必要に応じregressionへ昇格する。
EVAL CASE RECORD
以下は調査済みimplementation structureであり、既存標準の必須schemaとして扱わない。 - CASE_ID / SUITE_ID / SUITE_VERSION - scenario / source_origin / business_owner / criticality - input_fixture_ref / initial_state_hash - allowed_tools / allowed_permissions / forbidden_effects - expected_outcome / acceptable_variation - grader_ids / grader_versions - provenance / sensitivity / holdout_flag - added_reason / review_date / retirement_state
EVAL RUN RECORD
- RUN_ID
- candidate SUT manifest / baseline SUT manifest
- case / suite version
- n_trials / environment version
- per-trial outputs / outcome refs
- dimension scores / critical failures
- 採点出力 / 採点バージョン
- レイテンシ / トークン / コスト / エラー
- aggregate / confidence or variance representation
- リリース決定 / レビュアー / 例外の根拠
Suite lifecycle
incident or user failure → reproduce → minimize/sanitize → assign expected outcome and invariants → validate grader with positive/negative controls → add to capability/regression/critical suite → version → CI/pre-release run → production sentinel → periodic retire/rebalance。
Grader hierarchy
検証可能な業務ではdeterministicな判定を優先する。 1. 決定論的要素:スキーマ、正規化されたフィールド、ユニットテスト、成果物の差分、権限ログ、データベースの状態、ツールの副作用 2. bounded programmatic metric: precision/recall、数値許容差、citation relation等 3. LLM grader: tone、説明品質、複数妥当解など 4. human/domain expert: rubric定義、gold calibration、曖昧case、重大判断
LLM judgeをhumanの代替正解器としない。pairwise評価ではA/B order swap、匿名化、human-labeled sample等による校正を行う。human evalにもrubric ambiguity、inter-rater disagreement、疲労、順序効果があり得るため、人間判定自体も無謬としない。
エージェントの成果物と不変条件
通常のtask completionはfinal state/outputを中心に評価し、有効な別解を固定tool-call sequenceで不当に落とさない。一方、credential scope超過、禁止tool、未承認write、外部送信、duplicate side effect等はpath-independent invariantとして別途fail可能にする。
Release result vector
- task_success / partial_completion
- critical_failure_count
- permission_violation
- unintended_write / duplicate_side_effect
- factual / grounding / citation error
- schema / structure failure
- human rubric dimensions
- retry / timeout / error rate
- latency / token / monetary cost
- trial variance / repeated-trial pass rate 単一aggregate scoreのみでreleaseを判断しない。閾値とtrial数は業務criticality依存であり、一律値を推測しない。
Eval health
Eval suite自体もテスト対象とする。 - リファレンスソリューションが採点器を通過するかどうか - 意図的に不適切な解決策を排除できるか - A/B order swapでjudge verdictが不自然に反転しないか - task textとgrader assumptionsが一致するか - フィクスチャの初期状態が試行間でクリーンであるか - hidden state/cache/previous artifactが漏れていないか - public answer leakage / benchmark contaminationがないか - eval version変更前後のscore continuityを説明できるか スコアの低下だけでモデルの退行(regression)と断定せず、高得点だけで能力の向上と断定しない。
よくある失敗・反証
Evals導入は品質保証そのものではない。
高いregression pass率はcase bank内での維持を示すだけで、全業務分布の安全性を証明しない。
LLM-as-judgeにはbiasがあり、human calibrationなしの絶対判定器としない。
deterministic graderも仕様が誤っていれば誤判定する。
public benchmarkはcontamination / shortcut / eval-awarenessの影響を受け得る。
provider eval serviceのpricing、region、retention、ZDR適合、enterprise entitlementの完全横断表は
未確認事項。業種別human agreement threshold、trial数、release thresholdは一律に決めない。
NIST AI 200-2のfinal statusはpublication時に再確認する。
製品情報は要再確認なprovider surfaceの確認日と対象は本項の出典に記録する。導入時は契約・region・認証済みtenantにおける利用可否を別に照合する。
実務での使い方
本番credential/secretをfixtureへ埋め込まない。permission/tool evalは最小権限のisolated environmentで行い、実外部送信や不可逆writeを避ける。holdout answer key / grader criteriaへのSUT accessを遮断する。 production failureをcase化するときはminimize / anonymize / synthetic化を優先する。raw transcriptが不要なら必要なoutcome / structured evidenceのみ保持する。 スイート / ケース / グレーダー / テスト環境 / SUT(テスト対象システム)のバージョンと変更主体を追跡する。失敗したリリースの上書き(failed release override)については、理由 / 承認者 / 有効期限を残す。 eval costはinference、judge、tool/API、environment、human review、rerun、maintenanceを含む。fast deterministic smoke → regression → expensive agent/human/holdoutの段階化は可能だが、critical permission/safety gateをcost削減目的で外さない。 flaky environment failureとSUT failureを別codeにする。timeout/retryによる二重side effectを避けるisolated fixtureを用いる。
以下はすべて
UNEXECUTED。実行済みと表示しない。TEST_PROFILE-016-A — GOLDEN/REGRESSION RELEASE GATE
TEST_PROFILE-016-B — AGENT TASK COMPLETION / TOOL EXECUTION
TEST_PROFILE-016-C — LLM JUDGE CALIBRATION
TEST_PROFILE-016-D — EVAL HEALTH / NEGATIVE CONTROL
TEST_PROFILE-016-E — HOLDOUT / CONTAMINATION
まだ確認できていないこと
外部根拠の再確認日が正式な本文・公開管理情報で確定していないため、現行性は未確認のまま保持する。確認日を推測して補わない。
根拠資料
この根拠欄には、主張に対応づけて登録された外部出典がありません。本文中の引用・参考資料がある場合は、適用条件や未確認事項とあわせて確認してください。
このページから探す
種類
主題
やりたいこと
読み終えたら、次の判断へ
この記事で確かめた条件を、関連する用語・道具・手段・運用知識に接続して確認できます。実装や更新の判断には、各記事の確認時点・根拠・未確認事項を引き継いでください。
最初の知見から実務判断まで、3つの読み方を見る