AI評価が失敗する理由:Hamel Husain氏が評価開始前の根本問題を指摘
本文の状態
日本語全文を表示中
詳細モードで約11分の本文を読めます。
同じ出来事の情報源
この情報源を基点に整理
Arize AI Blog
Hamel Husain は AI 評価の失敗がモデル自体ではなく製品設計や曖昧なクエリ処理に起因することを指摘し、ドメイン専門家の参画と明確な基準策定の重要性を説く。
AI深層分析を開く2026年8月4日 08:25
AI深層分析
キーポイント
評価前の製品設計の欠陥
チームはモデルの出力が弱い場合、モデル自体の失敗と判断しがちだが、実際には必要なコンテキストが収集されていないなど製品側の問題であるケースが多い。
クエリの曖昧さによる誤評価
ユーザーの曖昧なクエリに対し十分な情報を取得せずにモデルに渡すと、モデルは推測を余儀なくされ、評価結果が製品設計の不備を隠してしまう。
評価基準の動的変化(Criteria Drift)
生成型プロダクトでは初期仕様には現れない要件が実運用で明らかになるため、成功の定義は製品を実行しながら随時更新する必要がある。
評価基準はバージョン管理された製品アーティファクトとして扱うべきである
各評価基準には狭義の定義、許容・非許容の例、所有者、変更理由の記録が必要である。この系譜(lineage)がないと、スコアの変動がモデル改善なのか要件変更なのかを区別できない。
汎用的な評価指標は重要な失敗を見逃す傾向がある
正解性や関連性といった一般的なメトリクスでは、タイムゾーン選択の誤りや権限外ファイルの修正など製品固有の失敗を検出できない。最も有用な基準は実際のエラー分析から導き出されるべきである。
重要な引用
I get into eval reviews all the time where it's really obvious that the product is not built correctly.
The LLM doesn't have a chance because the user is asking a very ambiguous question and isn't providing enough context.
You don't really know what you want until you see it in action.
"The magic to find what's most important and really do anything with evals is to look at the data," Husain says.
編集コメントを表示
編集コメント
本記事は、AI エージェントの実装において評価指標の設計が単なる数値測定ではなく、製品全体の品質を左右する重要な要素であることを示唆している。開発者はモデルのチューニングに集中する前に、入力と出力の文脈をどう定義するかという根本的な設計課題に取り組むべきである。
Source Article
元記事を日本語で読む
本文に関係しない購読案内、埋め込み通知、サイト内プロモーションは除いています。
AI の評価の多くは、開始する前からすでに「間違った問い」に答えようとしている。
Hamel Husain はこの状況を頻繁に見てきた。あるチームが評価レビューにデータセット、指標のセット、そして検査用のダッシュボードを持って現れる。しかし、彼は製品を見てすぐに立ち止める。
「評価レビューでは、明らかに製品自体が正しく作られていないケースをよく見かけます」と彼は言う。「ここでストップだ。これはモデルの問題ではなく、製品の課題だ」
この指摘は、AI 開発における一般的な誤りを浮き彫りにする。チームは、出力が弱い場合をすべて「モデルの失敗」と捉えがちだが、実際には必要な文脈を製品側で収集できていなかったり、評価基準が明確に定義されていなかったりするケースもある。スコアは最終的な回答を計測できるが、その回答を生み出したシステム側の判断プロセスまでは隠してしまう。
Arize が展開する「エージェントエンジニアの台頭」シリーズ(デモ段階のエージェントを実運用システムへ昇華させる開発者たちを取り上げる連載)の第 2 回で、Husain は有用な評価を行うためには、まず製品設計から始め、実際のトレースを厳密に精査し、ドメインの専門家が直接参加することが不可欠だと解説している。
曖昧なユーザークエリが誤った評価結果を生む
Husain が遭遇する最も一般的な失敗の一つに、「クエリの曖昧さ解消」の問題がある。ユーザーは複数の解釈が可能となるリクエストを出すものの、アプリケーション側はその曖昧さを解消するための十分な情報を収集せず、そのままモデルへ渡してしまうケースだ。
「モデル自体に問題がないケースとして最も多いのが、クエリの曖昧さです」とハメル・フサイン氏は指摘します。「LLM にはどうしようもありません。ユーザーが非常に曖昧な質問をしており、十分な文脈を提供していないからです。」
例えば、「認証サービスを整理して」という指示を受けたコーディングエージェントを想像してください。安全に変更を加える前に、そのエージェントは「パブリック API を変更できるか」「依存関係を追加してもよいか」「データベーススキーマを変更できるか」「既存のエラー動作を変更してもよいか」などを把握する必要があります。
アプリケーション側でこれらの制約情報を収集できていない場合、モデルは推測せざるを得ません。後から評価者がその修正パッチを減点したとしても、根本的な失敗は製品側のインターフェースに起因しています。
エージェントエンジニアリングでは、曖昧さへの対応をシステム設計の一部として捉えるべきです。アプリケーションの種類に応じて、以下のような対策が考えられます。
- 焦点を絞ったフォローアップ質問を行う
- 実行前に構造化されたフィールドの入力を必須とする
- 関連する権限やアカウントの文脈を取得する
- 重要なツール呼び出しの前に意図を確認する
トレーシング(追跡記録)には、元のリクエストと明確化された意図の両方を残しておく必要があります。これにより、評価者はエージェントが受け取った情報に基づいて合理的な行動を取ったかどうかを判断できる十分な文脈を得られます。
AI の評価基準は、チームが製品を実際に動かして検証するにつれて変化していきます
ハメル・フサイン氏はこれを「評価基準のドリフト」と呼んでいます。「実際に動かしてみないと、本当に何を求めているかはわからないものです」と彼は言います。「事前にすべてを指定することはできません。起こっていることに応じて反応する必要があります。」
生成 AI プロダクトは、初期仕様には現れないような要件を浮き彫りにします。サポートエージェントが正確な回答を提供しながら、企業が履行できない約束をしてしまうことがあります。研究用エージェントが主張の根拠を示す一方で、レビュー担当者が監査できない形で証拠を提示することもあります。コーディングエージェントが依頼されたタスクを完了させながら、保守担当者が却下するパッチを生成してしまうケースも起こり得ます。
これらの出力は、チームに品質に関する新たな知見をもたらします。評価基準は、その理解が深まるにつれて進化させるべきものです。
開発者は、評価基準をバージョン管理された製品アーティファクトとして扱うことで、変更内容をより解釈しやすくできます。各基準には、明確な定義、許容される行動とそうでない行動の具体例、責任者の所在、そして変更理由の記録が含まれるべきです。
こうした履歴(リンケージ)がなければ、スコアの変動はモデル自体の改善によるものなのか、アプリケーションの変更によるものなのか、トラフィックの変化によるものなのか、それともレビュー担当者が異なる基準を適用し始めたからなのか、区別がつきません。バージョン管理された評価基準があれば、これらの要因を明確に切り分けることができます。
汎用的な AI 評価指標は、最も重要な失敗の多くを捉えきれないことが多いです
多くのチームは、正しさや関連性、根拠の明確さ、一貫性、有用性といった広範な指標から評価を始めます。これらの尺度は粗いシグナルを提供しますが、その一般性が診断的な価値を制限してしまいます。
例えば、スケジューリングエージェントが適切な回答を生成しても、間違ったタイムゾーンを選択する場合があります。コーディングエージェントが正しいパッチを作成しても、権限外のファイルを修正してしまうことがあります。サポートエージェントが顧客の質問に答えても、必要な開示事項を省略してしまうケースもあります。
これらの失敗は、重要な行動が製品ごとに異なるため、一般的な指標では見逃されがちです。最も有用な評価基準は通常、エラー分析から生まれます。これはチームが実際の事例を検証し、繰り返されるパターンを特定するプロセスです。
「何が一番重要で、評価を本当に意味のあるものにするかを見つける秘訣は、データを見ることです」とハメル・フサイン氏は語ります。
この検証には、最終回答だけでなく、元のリクエスト、確認のためのやり取り、取得されたコンテキスト、ツール呼び出し、中間的な判断、最終アクション、そして関連する製品やモデルのバージョンも含まれるべきです。
最初のレビューでは、チームは失敗を具体的な言葉で記述する必要があります。「不適切な回答」といったラベルでは開発者に方向性が示されません。一方、「承認を受ける前に書き込みツールを呼び出した」というラベルであれば、特定の製品機能やエンジニアリングの改善点を明確に指し示すことができます。
あるパターンが繰り返し現れたら、チームはそのパターンを評価基準として定義し、発生頻度を測定できます。実践的なループは以下のようになります。
代表的な本番環境のトレースをサンプリングする。
開発者やドメインの専門家にレビューしてもらう。
繰り返される失敗のパターンに名前をつける。
各失敗の原因となったシステム層を特定する。
最も影響の大きいパターンを評価ケースに変換する。
対象的な変更を加え、結果として得られたトレースを再度確認する。
まず定性的なレビューで用語体系を整え、次に定量的な評価で各失敗がどれほど一般的か、そして介入によって減少したかを明らかにします。
ドメインの専門家は、エージェントのトレースをレビューするためのより良いインターフェースが必要です。
開発者はエラー分析に不可欠です。なぜなら、彼らは壊れたツール呼び出し、欠落したコンテキスト、検索の問題、インフラストラクチャの障害などを特定できるからです。さらに、製品固有のミスには深い専門知識が必要とされます。例えば、セキュリティエンジニアは一見成功しているように見える行動がポリシー違反であることを指摘でき、サポートリーダーは企業が満たせない期待を生むような言語を認識し、財務アナリストは有効な数値を使用しながらも会計ロジックを誤って適用した計算を見抜くことができます。
「開発者をループに参加させるのは問題ありません」とフサイン氏は言います。「重要なのは、ドメインの専門家をできるだけ早く巻き込み、エラー分析を行わせることです。
しかし、レビュー担当者が生データのトレースや、入力と出力がバラバラに並んだスプレッドシートを受け取ると、この作業は難しくなります。各実行を再構築するのにかかる時間がプロセスを遅らせ、ドメインの専門家が検査できるサンプル数を減らしてしまうのです。
有用なレビューインターフェースでは、関連するコンテキストを一覧で表示する必要があります:
- ユーザーからのリクエストと明確化された意図
- 取得した証拠とアプリケーションの状態
- ツール呼び出し、レスポンス、およびエラー
- 最終的な回答またはアクション
- 評価対象の基準
- ラベルとその根拠を記録するためのシンプルな方法
目指すべきは、有識者が迅速に判断を下せるようにし、ドメインの専門知識によって評価システムを継続的に改善できる体制を作ることです。
「人々が学ぶべき最も重要な点は、データをどう見るかです」とハメル・フサイン氏は言います。「問題の 95% が発見され解決される場所であり、評価プロセスに明確さをもたらすのがここなのです」
このスキルは練習が必要です。有用なエラー分析とは、単に悪い出力を見つけることだけではありません。レビュー担当者は、各失敗がどのような製品判断、文脈の欠落、ツールの挙動、あるいは評価の前提によって引き起こされたのかを結びつける必要があるのです。
より良い AI 評価には、より良い診断が必要だ
エージェントエンジニアは、製品設計、コンテキストの構築、ツール、権限、モデル、そして評価システムなど、幅広い分野に関わっています。結果が弱くなる原因は、これらの層のいずれにも存在し得ます。
新しい指標を追加する前に、チームはまず基本的な問いを立てるべきです:
- 製品は十分な情報を収集したか?
- エージェントは適切なコンテキストとツールを受け取ったか?
評価の全経過をレビューアーは確認できるのか?
その基準は、製品にとって重要な失敗を反映しているだろうか?
がっかりした結果に対する適切な対応は、プロンプトの変更やモデルの実験である場合もあれば、製品の明確化ステップが必要だったり、ツールの契約を見直したり、チームが成功の定義をより精密に行う必要があるケースもある。
ハメルのアドバイスは開発者にとって実践的な出発点となる。トレーシングを開き、ドメインの専門家を招き、システムのどの部分を改修すべきかを理解するために、失敗を十分に深く調査することだ。
ダッシュボードではエージェントがミスを犯したことが示せるが、エラー分析によってその理由が明らかになる。
この投稿「Hamel Husain explains why AI evals fail before the evaluation begins」は、最初に Arize AI で公開されました。
原文を表示
Most AI evaluations are answering the wrong question before they begin.
Hamel Husain sees this enough: a team arrives at an eval review with a dataset, a set of metrics, and a dashboard ready for inspection. He looks at the product and stops them.
“I get into eval reviews all the time where it’s really obvious that the product is not built correctly,” he says. “Stop. This is a product issue.”
That interruption exposes a common mistake in AI development. Teams treat every weak output as a model failure, even when the product never collected the context the model needed, or the evaluation criteria were never clearly defined. A score can measure the final response while hiding the system decision that produced it.
In the second installment of Rise of the Agent Engineer, Arize’s series on the builders turning agents from demos into production systems, Husain explains why useful evals begin with product design, close inspection of real traces, and direct participation from domain experts.
Ambiguous user queries can create misleading eval results
One of the most common failures Husain encounters is query disambiguation. A user makes a request that could be interpreted several ways, and the application passes it directly to the model without collecting enough information to resolve the ambiguity.
“A really common way that the model is not the problem is query disambiguation,” Husain says. “The LLM doesn’t have a chance because the user is asking a very ambiguous question and isn’t providing enough context.”
Consider a coding agent asked to “clean up the authentication service.” Before making a safe change, the agent may need to know whether it can alter the public API, introduce a dependency, modify the database schema, or change existing error behavior.
When the application fails to collect those constraints, the model has to guess. An evaluator may later penalize the patch, although the original failure occurred in the product interface.
Agent engineers should treat ambiguity handling as part of the system design. Depending on the application, that may involve:
Asking a targeted follow-up question.
Requiring structured fields before execution.
Retrieving relevant permissions or account context.
Confirming the intended action before a consequential tool call.
The trace should preserve both the original request and the clarified intent. That gives evaluators enough context to determine whether the agent behaved reasonably given the information it received.
AI evaluation criteria change as teams see the product in action
Even when an agent receives adequate context, the team may still be discovering what success means.
Husain calls this criteria drift. “You don’t really know what you want until you see it in action,” he says. “You can only specify a certain amount up front. You have to react to what is happening.”
Generative products expose requirements that may never appear in an initial specification. A support agent can provide an accurate answer while making a promise the company cannot keep. A research agent can cite its claims while presenting evidence in a way that reviewers cannot audit. A coding agent can complete the requested task while producing a patch that maintainers would reject.
Those outputs teach the team something new about quality. Evaluation criteria should evolve as that understanding becomes sharper.
Developers can make those changes easier to interpret by treating eval criteria as versioned product artifacts. Each criterion should have a narrow definition, examples of acceptable and unacceptable behavior, an owner, and a record of why it changed.
Without that lineage, a score may move because the model improved, the application changed, traffic shifted, or reviewers began applying a different standard. Versioned criteria help teams distinguish among those causes.
Generic AI eval metrics rarely capture the failures that matter most
Many teams begin with broad metrics such as correctness, relevance, groundedness, coherence, or helpfulness. These measures can provide a coarse signal, but their generality limits their diagnostic value. For example, a scheduling agent can produce a relevant response while selecting the wrong timezone. A coding agent can generate a correct patch while modifying files outside its authorized scope. A support agent can answer the customer’s question while omitting a required disclosure.
General metrics may miss each of these failures because the behavior that matters depends on the product. The most useful criteria usually emerge from error analysis, where teams inspect real examples and identify recurring patterns.
“The magic to find what’s most important and really do anything with evals is to look at the data,” Husain says.
That inspection should include more than the final answer. Reviewers may need to see the original request, clarification turns, retrieved context, tool calls, intermediate decisions, final action, and relevant product or model versions.
During the first pass, teams should describe failures in concrete language. A label such as “bad response” gives developers little direction. A label that reads, “called the write tool before receiving approval.” points toward a specific product or engineering change.
Once a pattern appears repeatedly, the team can turn it into a scoped evaluation criterion and measure how often it occurs. A practical loop looks like this:
Sample representative production traces.
Review them with developers and domain experts.
Name recurring failure patterns.
Determine which system layer caused each failure.
Convert the most consequential patterns into eval cases.
Make a targeted change and inspect the resulting traces again.
First, qualitative review provides the vocabulary. Then quantitative evaluation shows how common each failure is and whether an intervention reduced it.
Domain experts need a better interface for reviewing agent traces
Developers are essential to error analysis because they can identify broken tool calls, missing context, retrieval problems, and infrastructure failures. Plus, product-specific mistakes often require deeper subject-matter knowledge, e.g., a security engineer may notice that an apparently successful action violated policy, a support leader may recognize language that creates an expectation the company cannot meet, and a financial analyst may spot a calculation that uses valid numbers but applies the wrong accounting logic.
“It’s okay to have developers in the loop,” Husain says. “What you want to do is try to get the domain expert as fast as possible to be doing the error analysis.”
That becomes difficult when reviewers receive raw trace data or a spreadsheet containing disconnected inputs and outputs, though. The time required to reconstruct each run slows the process and reduces the number of examples a domain expert can inspect.
A useful review interface should place the relevant context in one view:
The user’s request and clarified intent
Retrieved evidence and application state
Tool calls, responses, and errors
The final answer or action
The criterion being evaluated
A simple way to record a label and rationale
The goal is to make qualified judgment fast enough that domain expertise can shape the eval system continuously.
“The most important part that people should learn is how to look at data,” Husain says. “It tends to be the one place where 95% of problems are found and resolved and clarity is brought to the eval process.”
That skill takes practice because useful error analysis involves more than finding bad outputs. Reviewers have to connect each failure to the product decision, missing context, tool behavior, or evaluation assumption that created it.
Better AI evals begin with better diagnosis
Agent engineers work across product design, context assembly, tools, permissions, models, and evaluation systems. A weak result can originate in any of those layers.
Before adding another metric, teams should ask a more basic set of questions:
Did the product collect enough information?
Did the agent receive the right context and tools?
Can reviewers see what happened across the full trajectory?
Does the criterion reflect a failure that matters to the product?
Sometimes the right response to a disappointing eval is a prompt change or model experiment. In other cases, the product needs a clarification step, the tool contract needs revision, or the team needs to define success more precisely.
Husain’s advice gives developers a practical place to begin: open the traces, bring in the domain expert, and study the failures closely enough to understand which part of the system deserves to change.
A dashboard can show that the agent missed, but error analysis reveals why.
The post Hamel Husain explains why AI evals fail before the evaluation begins appeared first on Arize AI.
今日のまとめ
AIデイリーブリーフで今日の重要ニュースをまとめ読み