논문 해설
PhantomWiki: On-Demand Datasets for Reasoning and Retrieval Evaluation
PhantomWiki: 추론과 검색 평가를 위한 온디맨드 데이터셋
- 연구 문제 기존 벤치마크는 데이터 누출과 사실 일관성 문제로 LLM의 추론과 검색 능력을 신뢰성 있게 분리하기 어렵습니다.
- 연구 방법 PhantomWiki는 평가 때마다 가상 인물 세계와 템플릿 문서, CFG 기반 질문, Prolog 기반 정답을 생성합니다.
- 주요 결과 추론 단계가 늘수록 여러 LLM과 프롬프팅 방식의 F1 점수가 떨어지며, 문서 코퍼스가 문맥을 넘는 설정에서는 RAG가 약하고 ReAct가 상대적으로 유지됩니다.
기존 벤치마크의 한계
대규모 언어 모델(LLM)의 추론과 검색 능력을 평가하려면 벤치마크가 필요하지만, 고정된 데이터셋은 시간이 지나면 학습 데이터에 섞여 들어가는 데이터 누출과 부풀려진 성능 문제가 생깁니다. 또한 위키피디아 사실을 바꿔 새 질문을 만드는 방법은 한 사실을 고칠 때 관련된 여러 문서의 일관성을 함께 유지해야 하므로 어렵습니다. 이 논문은 이런 문제를 피하기 위해 평가 때마다 새로 생성되는 가상 세계인 PhantomWiki를 제안합니다. 원문은 생성된 문서 코퍼스와 다단계 질문-답변 쌍을 함께 만든다고 설명합니다.
PhantomWiki 생성 파이프라인
PhantomWiki는 사용자가 지정한 인물 수 n으로 가족 트리를 만들고, Erdős–Rényi 모델로 친구 관계 그래프를 생성한 뒤, 이름·생년월일·직업·취미 같은 사실을 할당합니다. 이후 이 사실들을 미리 정한 템플릿으로 바꾸어 인물 기사 코퍼스를 만들며, 평가 때 모델에 제공되는 것은 이 기사들뿐입니다. 질문은 문맥 자유 문법(CFG)을 재귀 깊이 d까지 전개하여 생성하고, 같은 과정에서 질의 템플릿도 함께 만듭니다. 정답은 세계의 사실과 규칙을 Prolog 프로그램으로 표현해 질의를 실행함으로써 구합니다. 따라서 질문의 정답 집합은 논리적으로 검증 가능하며, 정답 질의는 평가 코퍼스와 분리하여 보관됩니다.

Figure 2 . Overview of the PhantomWiki pipeline.
원문 · CC BY 4.0 · Gong, Albert, Stankevičiūtė, Kamilė, Wan, Chao, Kabra, Anmol, Thesmar, Raphael, Lee, Johann, Klenke, Julius, Gomes, Carla P., Weinberger, Kilian Q. · PhantomWiki: On-Demand Datasets for Reasoning and Retrieval Evaluation · 원문 그림 인용 · 원본 PDF 3쪽에서 그림 영역을 추출했습니다.추론 복잡도와 검색 복잡도의 조절
추론 복잡도는 CFG의 재귀 깊이와 질문 안의 관계 단계 수로 조절합니다. 예를 들어 nephew 관계는 sibling과 son을 거치므로 두 추론 단계를 더하고, 더 긴 친족 관계는 더 많은 단계를 요구합니다. 검색 복잡도는 세계 크기 n을 키워 문서 코퍼스가 모델의 문맥 길이를 넘도록 조절합니다. 원문은 n이 약 1K 이상이면 128K 문맥의 모델에서 검색기가 필요해지며, n이 약 3K 이상이면 1M 문맥의 Gemini-1.5-Flash에서도 같은 문제가 생긴다고 설명합니다.

Figure 1 . Evaluating LLM capabilities with PhantomWiki. We tune the reasoning and retrieval difficulty by the number of rea- soning steps and documents, respectively. In this representative example of Llama-3.3-70B (other LLMs being similar), the top- right regions in all settings grow darker, indicating that the F1 score plummets as both reasoning and retrieval complexity in- crease. Note that in-context prompting has a sharp cut-off along the x-axis at Llama-3.3-70B’s context length limit.
원문 · CC BY 4.0 · Gong, Albert, Stankevičiūtė, Kamilė, Wan, Chao, Kabra, Anmol, Thesmar, Raphael, Lee, Johann, Klenke, Julius, Gomes, Carla P., Weinberger, Kilian Q. · PhantomWiki: On-Demand Datasets for Reasoning and Retrieval Evaluation · 원문 그림 인용 · 원본 PDF 2쪽에서 그림 영역을 추출했습니다.추론 단계 수에 따른 성능 저하
작은 세계(n=50)에서 질문의 추론 단계 수를 기준으로 F1 점수를 나누어 보면, In-Context, RAG, ReAct 프롬프팅 모두 추론 단계가 늘수록 성능이 떨어집니다. 원문은 ZEROSHOT이 추론 단계 증가에 따라 급격히 떨어지고, 추론 단계가 5 이상이면 RAG 계열의 F1 점수가 거의 0에 가까워진다고 보고합니다. 반면 In-Context 방식은 약 15 단계까지 유지되는 것으로 나타납니다. 저자들은 이 실패를 RAG가 질문 시작 전에 한 번만 검색하고 추론 중에는 문서를 동적으로 찾지 못하기 때문이라고 해석합니다. 이 결과는 n=50 설정과 세 개의 데이터셋 생성 시드에서 얻은 평균을 기준으로 합니다.

Figure 3 . F1 scores versus question difficulty, measured by reasoning steps. We plot LLM performance on universe size n = 50, and report F1 scores averaged over 3 generation seeds. Increasing question difficulty in PhantomWiki reveals a clear decline across all state-of-the-art LLMs and prompting techniques, showing their struggle with reasoning.
원문 · CC BY 4.0 · Gong, Albert, Stankevičiūtė, Kamilė, Wan, Chao, Kabra, Anmol, Thesmar, Raphael, Lee, Johann, Klenke, Julius, Gomes, Carla P., Weinberger, Kilian Q. · PhantomWiki: On-Demand Datasets for Reasoning and Retrieval Evaluation · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.세계 크기 증가에 따른 검색 능력 평가
세계 크기 n을 최대 10K까지 키워 문서 코퍼스가 문맥 길이를 넘는 상황을 만들면, In-Context 방식은 실행 자체가 불가능해집니다. 원문에 따르면 n=5K에서는 In-Context 방식이 전체 코퍼스를 문맥에 넣을 수 없습니다. 이때 RAG 프롬프팅은 전체 F1 점수가 낮고, ReAct 같은 에이전트형 방식은 큰 하락 없이 상대적으로 유지되는 것으로 보고됩니다. 이 비교는 문서 수 증가가 검색 어려움을 키운다는 점을 보여 주지만, 다른 검색기나 다른 모델에 대한 일반화는 원문에서 확인되지 않습니다.

Table 2 . F1 scores (in %) for various LLMs and prompting techniques. We report mean ± standard error across 3 dataset generation seeds (except for GPT-4o with COT and REACT due to cost constraints), and indicate the highest F1 score for each n in bold. In-Context prompting is infeasible for n = 5K as the corpus cannot be fully included in the context.
원문 · CC BY 4.0 · Gong, Albert, Stankevičiūtė, Kamilė, Wan, Chao, Kabra, Anmol, Thesmar, Raphael, Lee, Johann, Klenke, Julius, Gomes, Carla P., Weinberger, Kilian Q. · PhantomWiki: On-Demand Datasets for Reasoning and Retrieval Evaluation · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.
Figure 4 . F1 scores as a function of universe size n. We evaluate LLM performance on questions with ≤ 10 reasoning steps, and report F1 scores averaged over 3 dataset generation seeds. As we increase universe size in PhantomWiki, F1 scores for all LLMs and prompting techniques deteriorate—albeit at different rates.
원문 · CC BY 4.0 · Gong, Albert, Stankevičiūtė, Kamilė, Wan, Chao, Kabra, Anmol, Thesmar, Raphael, Lee, Johann, Klenke, Julius, Gomes, Carla P., Weinberger, Kilian Q. · PhantomWiki: On-Demand Datasets for Reasoning and Retrieval Evaluation · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.PhantomWiki 데이터로 미세조정한 결과
Qwen2.5-0.5B와 3B 모델을 PhantomWiki 데이터셋에 미세조정한 실험에서, 보상으로 F1 점수를 사용하는 GRPO는 Qwen2.5-3B(LoRA)에서 31.38 ± 0.86의 F1을 기록하여 ZEROSHOT의 16.82 ± 2.37보다 높습니다. 반면 정답 목록을 학습 목표로 삼은 SFT는 ZEROSHOT과 비슷한 수준에 머뭅니다. 원문은 fine-tuning 후에도 성능이 최적과 거리가 멀고 추론 단계가 늘수록 성능이 떨어진다고 보고합니다. 이 결과는 n=50, 재귀 깊이 20의 데이터셋을 사용한 실험에 한정되며, 학습 예산 밖의 일반 성능을 보여 주지는 않습니다.

Table 3 . Evaluation F1 scores (in %) of LLMs fine-tuned on PhantomWiki. As in Table 2, we report the mean ± standard error across 3 dataset generation seeds for universe size n = 50. ZEROSHOT and COT are prompting methods; SFT and GRPO are fine-tuning methods. Qwen2.5-0.5B COT performance is notably worse than ZEROSHOT since the small model fails to follow the desired answer template.
원문 · CC BY 4.0 · Gong, Albert, Stankevičiūtė, Kamilė, Wan, Chao, Kabra, Anmol, Thesmar, Raphael, Lee, Johann, Klenke, Julius, Gomes, Carla P., Weinberger, Kilian Q. · PhantomWiki: On-Demand Datasets for Reasoning and Retrieval Evaluation · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.적용 범위와 한계
PhantomWiki의 문서 코퍼스는 템플릿으로 생성되므로 실제 위키 문장의 다양성을 갖지 않습니다. 원문은 LLM으로 문장을 다시 쓰면 사실 오류가 생길 수 있다고 보고하며, 재작성 실험에서 추론 단계에 따른 성능 추세는 바뀌지 않았다고 설명합니다. 또한 실험은 주로 n=50과 세 개의 데이터셋 생성 시드에 기반하며, 몇몇 설정에서는 비용 제약으로 시드 수가 달라집니다. 이 논문은 PhantomWiki가 어떤 실제 지식 도메인에서든 같은 결과를 보인다고 주장하지 않으며, 텍스트 질문-답변 외의 다른 모달리티는 향후 과제로 남겨 둡니다.
논문 정보
- 저자
- Gong, Albert, Stankevičiūtė, Kamilė, Wan, Chao, Kabra, Anmol, Thesmar, Raphael, Lee, Johann, Klenke, Julius, Gomes, Carla P., Weinberger, Kilian Q.
- 학회·저널
- arXiv · 프리프린트
- 최초 공개일
- 2025년 2월 27일
- 등록일
- 2026년 10월 29일
- 수정일
- 2025년 6월 9일
- 버전
- v2
- arXiv
- 2502.20377
- 원문 이용 조건
- CC BY 4.0
- 제공 범위
- 논문 정보, 해설, 허용된 원문 그림
AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.
초록
High-quality benchmarks are essential for evaluating reasoning and retrieval capabilities of large language models (LLMs). However, curating datasets for this purpose is not a permanent solution as they are prone to data leakage and inflated performance results. To address these challenges, we propose PhantomWiki: a pipeline to generate unique, factually consistent document corpora with diverse question-answer pairs. Unlike prior work, PhantomWiki is neither a fixed dataset, nor is it based on any existing data. Instead, a new PhantomWiki instance is generated on demand for each evaluation. We vary the question difficulty and corpus size to disentangle reasoning and retrieval capabilities respectively, and find that PhantomWiki datasets are surprisingly challenging for frontier LLMs. Thus, we contribute a scalable and data leakage-resistant framework for disentangled evaluation of reasoning, retrieval, and tool-use abilities. Our code is available at https://github.com/kilian-group/phantom-wiki.
원문 인용
Gong, Albert, Stankevičiūtė, Kamilė, Wan, Chao, Kabra, Anmol, Thesmar, Raphael, Lee, Johann, Klenke, Julius, Gomes, Carla P., Weinberger, Kilian Q. (2025). PhantomWiki: On-Demand Datasets for Reasoning and Retrieval Evaluation. arXiv:2502.20377v2. https://arxiv.org/abs/2502.20377v2
BibTeX
@misc{albert2025phantomwiki,
title = {{PhantomWiki: On-Demand Datasets for Reasoning and Retrieval Evaluation}},
author = {Gong, Albert and Stankevičiūtė, Kamilė and Wan, Chao and Kabra, Anmol and Thesmar, Raphael and Lee, Johann and Klenke, Julius and Gomes, Carla P. and Weinberger, Kilian Q.},
year = {2025},
eprint = {2502.20377},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2502.20377v2}
}