表示
超・人工知能研究所 Super AI Research Lab トップへ超・人工知能研究所AI Research Lab / ぱそ太郎工事中

since
平成38年9月29日

← 検索結果に戻る

正解付きの質問から、文書をたどるための索引を学習する

Training a Knowledge Base

保存した記事を見るこのブラウザに保存します。無料会員で端末間の同期・フォルダ整理
原論文の図

Training a Knowledge Baseの原論文から掲載した図です。細部はクリックして拡大できます。

原論文の図の説明を読む

Fig. 3: The document network the agent built. Top: the store at three points in training; every document is drawn, and position is a t-SNE projection of its embedding under the same function the store indexes with, so documents drawn near each other are documents the reader’s search retrieves together (t-SNE preserves neighbourhoods, not distances, so only local proximity should be read). One layout, computed once on the final store and keyed by document, is shared by all panels, so a document holds its position throughout and only the structure drawn over it changes; the clusters visible at iteration 0 are the universe’s natural topic groups. Blue: source documents. Orange: authored index documents, sized by degree. Green: links. The final panel (bottom right, at two thirds width) carries four index documents labelled, together with the documents each one reaches (purple). The four were selected for correctness, not size: every link each of them carries points at a document that genuinely belongs under its key (Sec.  VII-D ), and together they span what the agent produced — an attribute index over a city, an attribute index over a hobby, a one-hop relation, and a two-hop relation. Structure grows from nothing into a navigation layer over the semantic space: hub indexes fan out into topic clusters while local links join semantically adjacent documents.

出典:Training a Knowledge Base / arXiv ↗

概要

  • 学習役は質問に一度答え、正解を見てから文書とリンクを編集する。
  • KBGymの主実験では100問を2周学習し、索引の到達範囲と固定した読取役の回答を調べた。
  • 未見の質問への効果は、学習時に扱った検索の手掛かりとの重なりによって変わる。
補足:編集した模式図で仕組みを確認する

VISUAL EXPLAINER

図でつかむ、Training a Knowledge Baseの仕組み

左から右へ読む
  1. 01文書と正解付き質問
  2. 02検索して一度回答
  3. 03正解を見て文書を編集
  4. 04固定した文書群で回答

原論文の説明をもとにした模式図です。処理の細部は省略しています。

研究の背景

検索拡張生成(RAG)は、外部文書を探し、その内容を使って回答する方法である。文書群を最初に登録するだけでは、後にどの質問で文書をまたいだ探索が必要になるか分からず、読取役が検索と閲覧を繰り返す場合がある。

この研究は、正解が分かっている質問を学習に使う。関連文書への道筋を文書群の中に作れば、後の回答で必要な情報へ進みやすくなるかを、正答精度と操作回数で調べる。

手法

初期のストアには短い文書があり、文書間のリンクはない。学習役は現在のストアで質問に一度答え、正解を受け取ってから、文書の追加・編集・削除やリンクの変更を行う。たとえば町の住民数を問う質問なら、町名を記した索引文書から、その町に属する人物の文書へ進めるようにする。索引文書は答えを列挙する文書ではなく、関連文書への入口である。

質問を順に処理した後はストアを固定する。別の読取役が正解を知らない状態で検索・閲覧して回答し、文書は編集できない。検索の手掛かりとなる人名や地名などを「キー」と呼び、学習時に同じキーを扱ったかによって未見の質問を分けて測る。

新規性

著者らは、質問と正解の組を文書ストアの学習信号とし、回答後に正解を示して文書の配置とリンクを更新する。学習する対象は読取役の設定ではなく、後から点検できる文書群の構造である。

さらに、未見の質問を、学習時に扱った検索の手掛かりが二つ、 一つ、または一つも重ならない群に分ける。学習済みの質問も別に測り、正答精度と操作回数がどこまで変わるかを調べる。

従来手法との違い

比較対象は、リンクのない元の文書群と、質問を使わずに文書群から構造を作るGraphRAG風、HippoRAG-2風のストアである。同じ読取役、評価質問、操作回数の上限を使い、文書群の準備方法による差を調べた。

両比較手法の構造は共通の文書・リンク形式に移している。HippoRAG-2風の実装は元の検索方式をそのまま使っていないため、結果は各手法のシステム全体の優劣を示すものではない。

実験結果

著者らは架空の人物を扱うKBGymとPhantomWikiで評価した。KBGymの初期文書は5,864件で、質問は学習150件、同じ形式の未見100件、別形式50件、経過確認用30件に分けた。正答精度には正解との語の一致に基づくF1、費用には検索・閲覧などの操作回数を用いた。

主実験で実際に学習したのは100問を2周、計200回である。著者らは1周目の終わりに索引が文書群の24.8%へ届き、提案法のリンクが1,913本、HippoRAG-2風ストアが196,112本だったと報告する。改善幅は要約と本文に食い違いがあるため、ここでは採用しない。

応用の可能性

編集上の応用案 · 論文が実証した用途とは区別しています。

編集上の応用案:設備保守の記録検索に使う。利用を認められた記録を入力とし、機器名や症状から関連記録へ進める索引を作る。担当者の質問に対し、読取役が記録をたどり、参照した文書と回答を出す。

必要な学習データは過去の質問と保守文書、ラベルは担当者が確認した正解と根拠文書である。センサー入力は使わない。機器名などの表記を整理してから索引を更新する運用を想定するが、この業務での効果は未検証である。

応用先の候補からNauhに相談できます。

導入時の検証

導入時の検証案 · 対象データでの再評価が必要です。

導入時の検証案:利用を認められた保守文書と過去の質問を少数集め、担当者が正解と根拠文書を確認してラベルにする。センサーは使わず、機器名・症状の表記を整理する。質問は索引の学習用と未見の評価用に分ける。

リンクのない文書群を基準に、学習用の質問へ回答した後で正解を示し、索引を編集する。評価時には編集を止め、同じ読取役と操作回数の上限で、F1、操作回数、根拠文書への到達を比べる。誤リンクと文書更新後の修正作業も記録する。

限界と課題

著者らの評価では、未見の質問に対する操作回数の節約は明確でなく、精度の変化は学習時に扱った検索の手掛かりとの重なりに左右される。主実験は単一の乱数条件で行われ、実在文書を使う評価は実施していない。

編集上の検証事項は、文書更新後に索引のリンク先を正しく直せるか、不完全な索引が必要な記録を見落とさせないかである。学習に使う操作の費用を、実際の質問頻度によって回収できるかも別途測る必要がある。

応用先の候補
研究内容と応用案に基づく分類です。業界での導入実績を示すものではありません。

出典

元のタイトル・要旨を確認する(英語)

Training a Knowledge Base: Supervised Structure Learning for Agent-Curated Document Stores

Retrieval-augmented generation treats the document store as a frozen input, and the offline pipelines that do build structure over it build it unsupervised -- a whole corpus indexed at uniform effort, with no signal about which structure a question will need. We instead treat the knowledge base as a non-parametric model trained on (question, answer) pairs: a curator agent answers a supervised question against the current store, is shown the gold answer, then edits the store. The store carries forward, and we evaluate the curated store with a test set, on two contamination-free benchmarks: KBGym, a fictional-universe generator we release, and PhantomWiki. Generalization is probed with four question groups of decreasing overlap with the training set: the trained questions themselves, and unseen questions sharing both of their keys with training, one key, or neither. The curated store's advantage grows with overlap -- from parity where no key was shared, through +0.176 F1 where both keys were, to 25% fewer actions at +0.294 F1 on the trained questions, the one cell significant on both benchmarks -- while matching HippoRAG's gains with 1,913 links against its 196,112: per point of corpus covered, 1.5x the action saving and 2.1x the accuracy gain. Accuracy rises steadily with the share of the corpus the indexes cover, so training on more questions widens coverage, and with it the generalization.

論文本体の取得範囲に基づく解説。AIが作成した未校閲の記事です。性能の数値は著者の評価条件に依存します。応用例と検証計画は編集上の提案です。解説更新:2026-10-01