構造化 AI データパイプラインはフリーフォームコードよりスコアが低い、DataFlow-Harness が格差を縮小
本文の状態
日本語全文を表示中
詳細モードで約14分の本文を読めます。
同じ出来事の情報源
この情報源を基点に整理
VentureBeat AI
北京大学などの研究チームが公開したオープンソースフレームワーク「DataFlow-Harness」は、LLM が生成する複雑なデータ処理パイプラインを構造化・可視化し、コストと遅延を大幅に削減して実運用への導入を可能にする。
AI深層分析を開く2026年8月3日 22:59
AI深層分析
キーポイント
構造化ワークフローの提案
北京大学などの研究チームは、LLM エージェントが生コードから直接スクリプトを書くのではなく、段階的に構造化された可視化データ処理ワークフローを構築するよう導く「DataFlow-Harness」というフレームワークを発表した。
ベンチマークでの性能向上
12 タスクからなるデータエンジニアリングベンチマークにおいて、同プラットフォームは 93.3% のエンドツーエンドパス率を達成し、標準的な Claude Code と比較して API コストを最大 72.5%、応答遅延を 49.9% 削減した。
NL2Pipeline グラップの解消
研究者は自然言語からパイプラインへの移行における課題を「NL2Pipeline gap」と定義し、LLM が生み出す一時的なスクリプトではなく、運用プラットフォームに根ざした監査可能なアーティファクトを残す必要性を強調している。
構造化パイプライン生成の難易度
自由形式コードでは94.2%の成功率を示したAIも、プラットフォーム固有のビルドブロックを用いてネイティブワークフローグラフを作成する場合は83.3%に低下し、構造化パイプラインの方が生成が困難であることが実証された。
DataFlow-Harness の4 つの構成要素
本プラットフォームはデータパイプラインバックエンド、対話層(DataFlow-WebUI)、MCP ツールレイヤー、AI ガイダンス層(DataFlow-Skills)という4 つのコンポーネントで構成され、エージェントが任意のコードを出力するのではなく構造化された変更を行う行動空間を変化させる。
重要な引用
The first wall is usually not writing Python. Modern coding agents can often produce a plausible script quickly.
The harder problem is grounding that script in a live production platform: using operators that are actually installed, matching the real dataset schema...
General-purpose AI agents frequently hallucinate dependencies, relying on unavailable operators or outdated platform assumptions.
"Closing this gap requires more than improving code-generation accuracy: construction must remain grounded in platform semantics and produce artifacts that integrate with the host platform,"
編集コメントを表示
編集コメント
本稿で言及されている「DataFlow-Harness」は、LLM の出力を単なるスクリプトではなく、運用可能なワークフローとして定着させるための重要な試みである。研究機関が主導するこのアプローチは、企業における AI エージェントの実用化におけるボトルネック解消に寄与する可能性が高い。
Source Article
元記事を日本語で読む
本文に関係しない購読案内、埋め込み通知、サイト内プロモーションは除いています。
AI コーディングエージェントに単一の JSON ファイルを解析する Python スクリプトの作成を依頼すれば、数秒で完璧な回答が得られるでしょう。しかし、数千もの不揃いなドキュメントを取り込み、テキストをチャンク化し、品質スコアを付け、ノイズをフィルタリングして特定の企業環境に適合した RAG (Retrieval-Augmented Generation) システムを構築するような体系的なデータ処理パイプラインの作成を依頼すると、エージェントは機能不全に陥ることが多々あります。
大規模言語モデル(LLM)は単発的なコード生成には優れていますが、複雑なデータ処理タスクに対する出力は、通常、管理が困難で使い捨てのフリーフォームなスクリプトに留まります。これらのスクリプトは、プロダクション環境で MLOps チームが依存するガバナンス可能なワークフロー抽象化から切り離されているため、監査や視覚的な編集が困難です。
この課題に対処するため、北京大学、中关村学院、上海先進アルゴリズム研究所の研究者らは、DataFlow-Harness を発表しました。これはオープンソースのフレームワークであり、LLM エージェントにゼロから生コードを書くのではなく、構造化されたビジュアルなデータ処理ワークフローを段階的に構築するよう誘導します。
このフレームワークにより、AI が生成したパイプラインは管理しやすくなり、既存のアーキテクチャへの統合も容易になります。その理由は、生成される成果物が永続的であり、かつ容易に編集可能だからです。
研究チームによると、このプラットフォームは 12 のタスクからなるデータエンジニアリングベンチマークにおいて、93.3% のエンドツーエンドのパス率を達成しました。標準的な Claude Code と比較すると、API コストは最大 72.5%、レスポンス遅延は 49.9% 削減されながら、コードベース全体を与えられてスクリプトを作成する AI とほぼ同等の成功率を実現しています。企業チームにとってこれは、管理不能な技術負債を蓄積することなく AI 自動化のスピードを得られ、パイプラインが安全で監査可能かつ本番環境対応であることを保証することを意味します。
「NL2Pipeline の格差」
データ中心の AI では、合成データの生成や検索拡張、モデル学習といったタスクのためのワークフローが必要です。LLM は自然言語を実行可能な実装に変換してこれらのタスクを遂行できますが、高いタスク精度だけでは本番環境への展開には不十分です。
DataFlow-Harness 論文の第一著者である Runming He 氏は VentureBeat の取材に対し、「最初の壁は通常 Python を書くことではありません」と語りました。「現代のコーディングエージェントは、すぐに妥当なスクリプトを生成できることが多いのです。より難しい問題は、そのスクリプトを実際の生産プラットフォームに根付かせることです。実際にインストールされているオペレーターを使用し、実際のデータセットスキーマに一致させ、登録されたデータセットやモデルサービスを参照し、ステージ間の依存関係を維持し、他のエンジニアが理解して修正できる成果物を残すことなのです。
汎用的な AI エージェントは、依存関係を頻繁に誤認し、利用不可能な演算子や時代遅れのプラットフォームの前提条件に頼ってしまいます。その結果、他のエンジニアが理解して修正できる成果物ではなく、ワークフロー管理ツールを通じた監査が困難な使い捨てコードを生成してしまいます。
研究者たちはこの課題を「NL2Pipeline gap(自然言語からパイプラインへのギャップ)」と定義しています。これは、ユーザーが自然言語でワークフローの要件を表現することと、生産環境が構造化され永続的なパイプライン資産を要求することとの間の乖離です。
研究者たちは実験を通じてこのギャップを実証しました。例えば、Claude Code にコードベースの文脈を用いて標準的な自由記述スクリプトを書くことを許容した場合、成功率は 94.2% に達しました。しかし、プラットフォーム固有のビルディングブロックのみを使用してネイティブなワークフローグラフを作成するよう制限すると、成功率は 83.3% に低下します。このギャップこそが論文の中核的な発見であり、エージェントにとって「生み出せる」パイプライン(統制可能で本格的なもの)は、「使い捨てコード」よりも遥かに困難であることを示しています。
研究者たちはこう述べています。「このギャップを埋めるには、コード生成の精度を高めるだけでは不十分です。構築はプラットフォームの意味論に基づき続け、ホストプラットフォームと統合される成果物を生み出さなければなりません。」
4 つのコンポーネントがどのように連携するか
「DataFlow-Harness はエージェントの行動空間そのものを変えます」と同氏は語る。「任意のコードを出力させるのではなく、MCP を通じてライブな演算子レジストリと現在のパイプライン状態を取得し、型付きの増分的変更を永続的な DAG(有向非巡回グラフ)に適用するのです。」
この仕組みを実現するため、プラットフォームはワークフロー合成を 4 つのコンポーネントで構成しています。データパイプラインバックエンド、インタラクションレイヤー(DataFlow-WebUI)、MCP ツールレイヤー、そして AI ガイダンスレイヤー(DataFlow-Skills)です。
データパイプラインバックエンドは、会話型・視覚型・プログラム型のあらゆるインターフェース間で唯一の信頼できる情報源として機能します。ここではパイプラインが DAG として表現され、データソースや構成済みのプリビルト処理モジュール(研究チームはこれを「演算子」と呼称)、そして実行依存関係を含む構造化されたワークフローマップとなっています。自由なコード生成を行うのではなく、エージェントはこのバックエンドに対して「型付きミューテーション」を通じてインタラクションします。具体的には、演算子の追加やエッジの接続などが該当します。
DataFlow-Skills は、モデルのコンテキストウィンドウにドメイン固有の知識を注入する Markdown ファイルです。これにより、演算子選択のパターン、スキーマ推論、および組み立て手順について AI を導きます。AI に部品の組み立て方法を推測させるのではなく、互換性ルールを提供することで、異なるデータ形式を正しくマッチングさせたり、複雑なデータ構造を扱いながらパイプラインを破綻させずに処理したりする方法を学習させるのです。
MCP ツール層により、AI はオペレーターレジストリとデータワークフローの現在の状態にアクセスできるようになります。AI はこのツール層を通じて構造化された変更を提案します。システムはこれらの変更を検証し、ワークフローが正しい順序で実行されること、そして接続されたすべてのモジュールが同じデータ言語を使用していることを保証します。
DataFlow-WebUI は、人間と AI が共同でワークフローを構築できるよう設計された 2 つのインターフェースを提供しています。開発者は会話型インターフェースを通じて自然言語でワークフローの要件を記述できます。また、視覚的な DAG エディター内でワークフローをグラフマップとして確認することも可能です。ここでは、AI が提案した変更を直接検証し、必要に応じて手動で修正を加えることができます。
「現在の実装では、パイプラインの変更を受け入れる前にプラットフォームメタデータに対する静的チェックを実行しています」と同氏は説明します。「これには、登録されたデータセット、オペレーター、モデル提供参照、フィールドフロー、および一部の無効なパラメータ使用に関するチェックが含まれます。また、構造的な妥当性も検証されます。その結果は視覚的なエディターで確認でき、後続のターンで手動またはエージェントによって修正可能です」
結果:合格率 93.3%、コストが 72.5% 削減
研究者らは、QA 生成、レビューガバナンス、スキーマ正規化など、6 つの産業用データ処理シナリオにわたる 12 のタスクからなるベンチマークで DataFlow-Harness をテストしました。実験には Claude Opus 4.7 をバックボーンモデルとして使用しています。
DataFlow-Harness は、以下の 3 つのベースラインと比較されました:
Vanilla CC は、標準的な Claude Code を用いた制約のないコーディングの基準モデルです。
Context-Aware CC は、コンテキストウィンドウ内に DataFlow のコードベースへのアクセス権限を持つエージェントです。
MCP-only は、DataFlow の MCP ツールにはアクセスできるものの、DataFlow-Skills にはアクセスできず、プラットフォームネイティブな DAG(データフローグラフ)の生成を指示されたエージェントです。
DataFlow-Harness はエンドツーエンドのパス率 93.3% を達成し、MCP-only よりも 10.0 ポイント向上し、Vanilla CC(91.7%)を上回りました。また、Context-Aware CC(94.2%)との差はわずか 0.9 ポイントです。
重要なのは、タスクあたりの API コストを$0.261 に抑えた点で、これは Vanilla CC と比較して 72.5% の削減、Context-Aware CC と比較しても 42.8% の削減となります。ワークフロー生成においては、Vanilla CC よりも 49.9% 高速で、Context-Aware CC よりも 17.6% 高速でした。
DataFlow-Harness は、QA 生成のように暗黙的なドメイン知識に依存する複雑なタスクにおいて特に効果的であることが証明されました。ベースラインとなる MCP-only のアプローチは構造的に有効な DAG を頻繁に生成しますが、演算子の説明のみからタスク固有の手順を推論するのは苦戦しました。
この仕組みが実際にどう機能するかを示すため、研究者らは教科書から質問応答(VQA)データを抽出するタスクを例に挙げています。この作業では、AI が PDF 解析、レイアウト復元、OCR、図の抽出、多モーダル理解、長文脈での質問と回答のマッチングといった機能を組み合わせて実行する必要がありました。DataFlow-Harness は精度 97.2%、カバレッジ率 87.3% を達成し、既存のベースラインを容易に上回りました。複雑なタスクを一からコーディングするのではなく、既存のプラットフォーム資産を AI が自動的に組み合わせることで、文書からより多くの有効な QA ペアを回収することに成功しています。
実験結果からは、DataFlow-Harness がデータ生成パイプラインの構築においても極めて効果的であることも明らかになりました。例えば、合成インストラクションデータの生成タスクでは、エージェントが多段階のパイプラインを構築しました。このパイプラインは候補となるインストラクションとレスポンスのペアを生成し、それらを批判・修正した上で LLM ベースの評価者によって採点、低品質な出力をフィルタリングしてからトレーニングに供します。
「こうしたワークフローは、場当たり的なスクリプトの集合として構築するにはコストがかかり、維持も脆いものです」と氏は指摘します。「このハーツ(枠組み)が自動的に安全性を保証するわけではありませんが、エンジニアが通常の生産管理コントロールを用いて検査・テスト・ガバナンスできる、明確で編集可能なステージへと変換します。」
同様に、数学データのクリーニングと合成パイプラインの構築を命じられた際にも、DataFlow-Harness が生成したデータで訓練されたモデルは、従来の Claude Code パイプラインが生成したデータで訓練されたモデルよりも優れた性能を示しました。具体的には、AIME24 および AIME25 ベンチマークにおいて平均精度が向上しています。
技術スタックの適合性と実装におけるトレードオフ
DataFlow-Harness の導入を検討するエンジニアリングチームにとって、既存インフラにどのように組み込まれるかを理解することが重要です。Apache 2.0 ライセンスで公開されている同製品ですが、現在のバージョンを主要な技術スタックに統合するには、ある程度のエンジニアリング作業が必要です。
「現状の実装は DataFlow プラットフォームネイティブであり、Airflow や Prefect、Spark のプラグインとしてそのまま使えるものではありません」と He 氏は説明します。これらのシステムを実行基盤として活用するためには、組織のレジストリ、メタデータ、実行インターフェースをエージェントの制御層に接続するアダプターを開発する必要があります。
さらに、AI に守ってほしい境界線を定義するには、組織側が投資を行う必要があります。これにはオペレーターの登録管理、スキーマの定義、そして反復的なドメイン手順を「スキル」としてコード化する作業が含まれます。こうしたオーバーヘッドがあるため、He 氏は単純なスクリプトで済む小規模な単発変換や、信頼できるメタデータを公開できないレガシー環境での利用については推奨していません。
最後に、プラットフォームは構造的な特性を検証することで不合理な接続を防いでいますが、これはエンジニアリングの制御層であり、コンプライアンス対策の代替品ではありません。「ハネスは依然としてエンジニアリングの制御層として扱うべきものであり、コンプライアンスポリシーや検証済み検出モデル、アクセス制御、監査ログ、あるいは人間の承認を代替するものではない」と He 氏は強調しています。
このプラットフォームはオープンソースであり、開発者はプロジェクトの GitHub リポジトリを通じて、ソースコードやコードベースのドキュメントに直接アクセスできます。
MCP などのプロトコルが標準化されるにつれ、人間のエンジニアと AI エージェントの境界線も変化していきます。「監視なしで自律的にデータエンジニアリングを行うことが目的ではありません」と氏は述べています。「目指すべきは、より明確な役割分担です。エージェントは明示された範囲内で反復的な構築作業を担い、エンジニアはドメインにおける責任が求められる意味論、ポリシー、そして結果に直結する意思決定の責任を負うのです。
原文を表示
If you ask an AI coding agent to write a standalone Python script to parse a single JSON file, it will likely give you a perfect answer in seconds. But the same agent often breaks if you ask it to build a systematic data processing pipeline, like ingesting thousands of messy documents, chunking text, scoring quality, and filtering noise for a Retrieval-Augmented Generation (RAG) system that fits your specific enterprise stack.
While large language models (LLMs) excel at one-off code generation, their outputs for complex data-processing tasks are typically free-form, disposable scripts. These scripts are detached from the governable workflow abstractions that MLOps teams rely on for production, making them difficult to audit or edit visually.
To address this, researchers at Peking University, Zhongguancun Academy, and Shanghai’s Institute for Advanced Algorithms Research introduced DataFlow-Harness, an open-source framework that guides an LLM agent to build structured, visual data-processing workflows step-by-step, rather than writing raw code from scratch.
The framework makes AI-generated pipelines easier to manage and integrate into existing architectures because the generated artifacts are persistent and easily editable.
The researchers report that the platform achieves a 93.3% observed end-to-end pass rate on a 12-task data-engineering benchmark. Compared to standard Claude Code, it reduces API costs by up to 72.5% and response latency by 49.9%, while achieving nearly the same success rate as an AI given the entire codebase to write standard scripts. For enterprise teams, this means getting the speed of AI automation without accumulating unmanageable technical debt, ensuring that pipelines remain secure, auditable, and ready for production.
The "NL2Pipeline gap"
Data-centric AI requires workflows for tasks like synthetic data generation, retrieval augmentation, and model training. While LLMs can translate natural language into executable implementations to perform these tasks, high task accuracy is insufficient for production deployment.
"The first wall is usually not writing Python," Runming He, first author of the DataFlow-Harness paper, told VentureBeat. "Modern coding agents can often produce a plausible script quickly. The harder problem is grounding that script in a live production platform: using operators that are actually installed, matching the real dataset schema, referring to registered datasets and model services, preserving dependencies between stages, and leaving behind an artifact that another engineer can understand and revise."
General-purpose AI agents frequently hallucinate dependencies, relying on unavailable operators or outdated platform assumptions. Instead of leaving behind an artifact that another engineer can understand and revise, they generate disposable code that is difficult to audit through workflow managing tools.
The researchers define this challenge as the "NL2Pipeline gap": the disconnect between a user expressing workflow requirements in natural language and the production environment requiring structured and persistent pipeline assets.
The researchers demonstrated this gap in their experiments. For example, when Claude Code was allowed to write standard, free-form scripts using codebase context, it hit a 94.2% success rate. However, when restricted to only using the platform's specific building blocks to create a native workflow graph, its success rate dropped to 83.3%. This gap is the paper's central finding: native, governable pipelines are meaningfully harder for the agent to produce than throwaway code.
“Closing this gap requires more than improving code-generation accuracy: construction must remain grounded in platform semantics and produce artifacts that integrate with the host platform,” the researchers write.
How the four components work together
"DataFlow-Harness changes the agent’s action space," He said. "Instead of asking the agent to emit arbitrary code, it retrieves the live operator registry and current pipeline state through MCP and applies typed, incremental changes to a persistent DAG."
To achieve this, the platform organizes workflow synthesis around four components: the Data Pipeline Backend, the interaction layer (DataFlow-WebUI), the MCP Tools Layer, and the AI guidance layer (DataFlow-Skills).
The Data Pipeline Backend acts as the authoritative source of truth across conversational, visual, and programmatic interfaces. It represents the pipeline as a directed acyclic graph (DAG), a structured workflow map containing data sources, configured pre-built processing modules (which the researchers refer to as "operators"), and execution dependencies. Instead of generating free-form code, agents interact with this backend through “typed mutations,” like adding an operator or connecting edges.
DataFlow-Skills are markdown files that inject domain-specific knowledge into the model's context window, guiding it on operator-selection patterns, schema inference, and assembly procedures. Rather than letting the AI guess how to assemble components, skills provide the AI with compatibility rules, teaching it how to correctly match different data formats and handle complex data structures without breaking the pipeline.
The MCP Tools Layer gives the AI access to the operator registry and current state of the data workflow. The AI proposes structured changes through the tools layer. The system validates the changes to ensure the workflow runs in a valid sequence and that every connected module speaks the same data language.
DataFlow-WebUI provides two interfaces that allow humans and AI to build the workflow together. Developers can describe workflow requirements in natural language through a conversational interface. They can also access the workflow as a graphical map in a visual DAG editor. Here, they can directly inspect the changes proposed by the AI and make modifications.
“The current implementation performs static checks against platform metadata before accepting pipeline changes,” He said. “These include checks for registered datasets, operators and model-serving references, field flow, and some invalid parameter usage, as well as structural validity. The result is visible in a graphical editor and can be revised either manually or by the agent in later turns.”
The results: 93.3% pass rate, 72.5% lower cost
The researchers tested DataFlow-Harness on a benchmark of 12 tasks across six industrial data-processing scenarios, such as QA generation, review governance, and schema normalization. They used Claude Opus 4.7 as the backbone model in their experiments.
They compared DataFlow-Harness against three baselines:
Vanilla CC: An unconstrained coding baseline using standard Claude Code.
Context-Aware CC: An agent that has access to the DataFlow codebase in its context window.
MCP-only: An agent that has access to the DataFlow MCP tools and is instructed to generate platform-native DAGs (without access to DataFlow-Skills).
DataFlow-Harness achieved a 93.3% end-to-end pass rate, improving by 10.0 percentage points over MCP-only and beating Vanilla CC (91.7%), while being within 0.9 percentage points of Context-Aware CC (94.2%).
Importantly, it reduced API costs to $0.261 per task, a 72.5% drop compared to Vanilla CC and 42.8% compared to Context-Aware CC. In generating workflows, it was 49.9% faster than Vanilla CC and 17.6% faster than Context-Aware CC.
DataFlow-Harness proved particularly effective on complex tasks that depend on implicit domain knowledge, like QA generation. The baseline MCP-only approach frequently generated structurally valid DAGs but struggled to infer task-specific procedures from operator descriptions alone.
To show how this works in the real world, the researchers detailed a textbook-to-VQA extraction task. This job required the AI to stitch together capabilities such as PDF parsing, layout recovery, OCR, figure extraction, multimodal understanding, and long-range question-answer matching. DataFlow-Harness achieved 97.2% precision and an 87.3% coverage rate, easily beating the baselines. By having the AI snap together existing platform assets rather than coding complex tasks from scratch, it recovered more valid QA pairs from the document.
Their experiments also showed that DataFlow-Harness is highly effective at creating data generation pipelines. For example, in a synthetic instruction-data generation task, the agent built a multi-stage pipeline that generated candidate instruction–response pairs, critiqued and rewrote them, scored them with an LLM-based judge, and filtered low-quality outputs before training.
"Such workflows are costly to build and fragile to maintain as collections of ad hoc scripts," He said. "The harness does not make them automatically safe, but it turns them into explicit, editable stages that engineers can inspect, test, and govern using normal production controls."
Similarly, when tasked with building a math data cleaning-and-synthesis pipeline, the data produced by the DataFlow-Harness pipeline trained a better-performing model with higher average accuracy on AIME24 and AIME25 benchmarks than the data produced by the vanilla Claude Code pipeline.
Tech stack fit and implementation tradeoffs
For engineering teams evaluating DataFlow-Harness, it is important to understand how it fits into existing infrastructure. Released under the Apache 2.0 license, the current implementation requires a bit of engineering to fit into popular tech stacks.
"The current implementation is native to the DataFlow platform; it is not a turnkey Airflow, Prefect, or Spark plug-in," He said. To use those systems as an execution backbone, teams must build an adapter to connect their organization’s registry, metadata, and execution interfaces to the agent's control layer.
Furthermore, organizations must invest in the boundaries they want the AI to respect. This requires maintaining an operator registry, defining schemas, and encoding recurring domain procedures as Skills. Because of this overhead, He recommends against using the framework for small, one-off transformations where a simple script suffices, or in legacy environments that cannot expose reliable metadata.
Finally, while the platform prevents illogical connections by validating structural properties, it is an engineering control layer, not a compliance substitute. "The harness should still be treated as an engineering control layer, not as a substitute for compliance policy, validated detection models, access controls, audit logging, or human approval," He said.
The platform is open-source, and developers can access the source code and codebase documentation directly via the project's GitHub repository.
As protocols like MCP become standardized, the boundary between human engineers and AI agents will shift. "The goal is not autonomous data engineering without oversight," He said. "It is a better division of labor: agents perform repetitive construction inside explicit boundaries, while engineers remain responsible for the semantics, policies, and consequential decisions that require domain accountability."
今日のまとめ
AIデイリーブリーフで今日の重要ニュースをまとめ読み