アーカイブ / AI Agent / LLM
AIコーディングエージェントは社会科学の分析結果を再現できるか
SocSci-Repro-Bench
SocSci-Repro-Benchの原論文から掲載した図です。細部はクリックして拡大できます。
原論文の図の説明を読む
Figure 1: Comparison of Claude Code and Codex across three accuracy metrics and failure rates. (Left) Accuracy for all tasks (N = 221), non-reproducible tasks (N = 10), and all papers (N = 54). Both models achieve perfect accuracy on non-reproducible tasks, while Claude Code substantially outperforms Codex at both task (93.4% vs. 62.1%) and paper level (78.0% vs. 35.8%), where a paper was considered fully reproduced only if all of its constituent tasks were answered correctly. (Right) Failure rates across all tasks and papers, defined as cases where the code fails to complete or produce the expected output due to an error or unmet requirement the agent cannot resolve. Claude Code produces no failures across all runs, whereas Codex exhibits failure rates of 17.8% at the task level and 27.0% at the paper level. Values shown above bars are mean percentages over three runs rounded to one decimal place.
概要
- 54論文から作った221課題で、資料の不備とエージェントの実行能力を分けて評価した。
- 著者らの3回の評価では、課題単位の平均正答率はClaude Codeが93.4%、Codexが62.1%だった。
- 元論文PDFは全体の正答率を少し上げたが、再現不能な課題の判定を悪化させた。
補足:編集した模式図で仕組みを確認する
VISUAL EXPLAINER
図でつかむ、SocSci-Repro-Benchの仕組み
- 01公開データとコード
- 02実行環境の調整
- 03分析結果の再計算
- 04再現可否の回答
原論文の説明をもとにした模式図です。処理の細部は省略しています。
研究の背景
社会科学の分析結果を再現するには、著者が公開したデータとコードから同じ結果を得られるか確かめる。これは計算上の再現性と呼ばれ、結果の点検に必要な作業だ。依存するソフトの違いや固定された保存先の指定などで、コードの実行は止まり得る。
AIコーディングエージェントはコードの実行や修正を進められるが、従来の評価だけでは、その失敗がエージェントによるものか資料の欠陥によるものか判断しにくかった。
手法
SocSci-Repro-Benchは、政治学、社会学、心理学、コミュニケーション研究の54論文から221課題を作った評価セットだ。再現可能な課題では、元のデータとコードをエージェントに渡し、指定された結果を計算させる。再現不能な課題では、必要な資料の不足を見抜けるかを調べる。例えば分析表の値を求められた際、データが欠けていれば数値を作らず、その不足を答えるのが正解となる。
評価環境では外部ディレクトリやウェブ検索へのアクセスを制限し、必要なパッケージの導入は認めた。著者らは、結果の再現に加えて、匿名化したコードとデータから研究上の問いを推定する課題や、元論文PDFを追加した場合の変化も調べた。
新規性
研究の再現に失敗したとき、原因がエージェント側にあるのか、元の資料にあるのかを分けて評価できるようにした点が新しい。著者らは、手動実行で同じ結果を繰り返し得られた課題と、必要なデータやコードが欠けて再現不能と確認された課題を用意した。
さらに、匿名化した分析資料から研究上の問いを推定する課題を加えた。数値を出す作業だけでなく、コードが何を調べているかを読み取る力も測っている。
従来手法との違い
従来の再現性ベンチマークには、社会科学の課題数や対象分野が限られるものがあった。元の資料自体に実行上の問題があると、エージェントの能力と資料の不備を切り分けにくい。SocSci-Repro-Benchは資料の再現可能性を事前に確認して、この混同を減らしている。
同じ課題で比べると、Claude Codeの正答率はCodexを上回った。ただし両者の指示文には差があり、Codexには実行用スクリプトを組み立てる追加の案内が必要だった。結果をモデル単体の優劣と読むことはできない。
実験結果
著者らはClaude CodeとCodexを同じ221課題で各3回評価した。平均正答率は課題単位で93.4%対62.1%、論文内の全課題を正解した割合で78.0%対35.8%だった。再現不能な10課題は、PDFを渡さない条件では両者とも100%正しく判定した。
PDFを加えると課題単位の正答率は94.5%と65.4%に上がった一方、再現不能課題では63.3%と90.0%に下がった。著者らは、結果を合わせるよう促す指示文でも判定が揺らぐと報告している。これは指定の資料と環境で測った成績である。
応用の可能性
編集上の応用案 · 論文が実証した用途とは区別しています。
編集上の応用案:社内の調査報告を公開前に点検する工程で、担当者が分析用データ、コード、期待する表の項目を隔離した作業環境に渡す。エージェントには各項目の再計算を依頼し、得られた値、実行ログ、計算できなかった理由を一覧で返させる。
担当者は一覧を元の報告と照合し、差があれば環境設定、欠損資料、分析手順の順に確認する。論文PDFを渡す場合は、記載値の転記と実際の再計算を区別して記録する。
導入時の検証
導入時の検証案 · 対象データでの再評価が必要です。
導入時の検証案:まず、担当者が手動で再計算できる分析課題と、資料不足で計算できない課題を少数ずつそろえる。エージェントにはデータとコードだけを渡し、元の値、実行ログ、修正箇所、再現不能と判断した理由を保存する。
現行の手動確認を基準に、課題ごとの正答率、実行失敗率、資料不足の検出率を測る。次に報告書本文を追加して同じ指標を比べ、書かれた数値を転記した回答が再計算と混ざっていないか確認する。
限界と課題
著者らは、正答率が「実行可能な再現資料がそろった場合」の値であり、社会科学の論文全体の再現可能率ではないと明記している。元論文PDFを加えると全体の成績は少し上がる一方、再現不能な課題で正しく不可と答える率が下がった。
導入時には、正しい数値がコードの実行から得られたのか、論文中の値を拾っただけなのかを検証する必要がある。記憶による回答を調べる著者らの分析も、その可能性を完全には排除していない。
出典
元のタイトル・要旨を確認する(英語)
AI Coding Agents Can Reproduce Social Science Findings
Recent anecdotal evidence suggests that AI coding agents can reproduce published findings when provided with original data and code; yet systematic evaluation across social sciences remains limited. Existing evaluation benchmarks are insufficient, either small or conflate agent performance with problems in the reproduction materials themselves, such as code that fails to execute correctly. Here we introduce SocSci-Repro-Bench, a benchmark of 221 tasks spanning four disciplines and 13 substantive domains, constructed from studies whose results are either fully reproducible with available materials or demonstrably non-reproducible due to missing data, allowing us to isolate agents' reproduction capacity. Evaluating two frontier coding agents, Claude Code and Codex, we find that both can reproduce a large share of social science findings, with Claude Code substantially outperforming Codex. These reproduction rates considerably exceed those previously reported for general-purpose LLM-based agents on comparable reproducibility benchmarks. Both agents also perform strongly on a reasoning task requiring identification of underlying research questions, and additional analyses suggest that results are not primarily driven by memorization. Providing the original paper PDF alongside replication materials modestly improves performance but introduces bias on tasks where reproduction is impossible. We also show that agents can be nudged toward confirmatory specification search through subtle prompt framing. Together, these findings suggest that at least some frontier coding agents can serve as reliable executors of computational workflows while underscoring the need for careful benchmarking and prompt design as AI systems assume larger roles in scientific production.
論文本体の取得範囲に基づく解説。AIが作成した未校閲の記事です。性能の数値は著者の評価条件に依存します。応用例と検証計画は編集上の提案です。解説更新:2026-09-30




