Haystack Engineering: Context Engineering for Heterogeneous and Agentic Long-Context Evaluation

Hybrid Retrieval (BM25 + Qwen3-Embedding-0.6B)

目录
  1. lightbulb Introduction
  2. architecture Haystack Engineering
  3. assessment HaystackCraft Benchmark
  4. compare_arrows Heterogeneous Retrieval Strategies
  5. psychology Agentic Context Engineering
  6. insights Key Findings
  7. flag Conclusion
文本版 · 供搜索与朗读

Haystack Engineering: Context Engineering for Heterogeneous and Agentic Long-Context Evaluation

Haystack Engineering: Context Engineering for Heterogeneous and Agentic Long-Context Evaluation

Mufei Li, Dongqi Fu, Limei Wang, Si Zhang, Hanqing Zeng, Kaan Sancak, Ruizhong Qiu, Haoyu Wang, Xiaoxin He, Xavier Bresson, Yinglong Xia, Chonglin Sun, Pan Li

Georgia Institute of Technology, Meta AI, University of Illinois Urbana-Champaign, National University of Singapore

arXiv:2510.07414 (October 2025)

lightbulb
Introduction

Modern long-context LLMs perform well on synthetic "needle-in-a-haystack" (NIAH) benchmarks

These tests overlook how noisy contexts arise from biased retrieval and agentic workflows

Need for more realistic evaluation that captures real-world factors

Traditional needle-in-a-haystack evaluation

architecture
Haystack Engineering

New paradigm to construct realistic noisy long contexts

Captures key real-world factors:

Distraction from heterogeneous biased retrievers

Cascading errors in agentic workflows

Contrast with "context engineering" (optimizing inputs for best performance)

assessment
HaystackCraft Benchmark

Built on full English Wikipedia hyperlink network

Features multi-hop questions

Extends traditional NIAH evaluations in two ways:

Heterogeneous Retrieval-Dependent Haystacks

Dynamic, LLM-Dependent Agentic Context Engineering

compare_arrows
Heterogeneous Retrieval Strategies

Evaluates how different retrieval strategies affect:

Distractor composition

Haystack ordering

LLM performance

Strategies compared:

Sparse Retrieval (BM25)

Dense Retrieval (Qwen3-Embedding-0.6B)

Hybrid Retrieval (BM25 + Qwen3-Embedding-0.6B)

Graph-Based Reranking (Personalized PageRank - PPR)

Comparison of different retrieval methods

psychology
Agentic Context Engineering

Extends NIAH to dynamic, LLM-dependent settings

Simulates agentic operations where models:

Refine queries

Reflect on past reasonings

Decide when to stop

Two dynamic settings:

Enforced Multi-Round

Variable-Round

Agentic workflow with cascading errors

insights
Key Findings

Dense retrievers introduce more challenging distractors than sparse ones

Graph-based reranking with PPR significantly improves retrieval effectiveness

Document ordering effects are model-dependent

Even advanced models (Gemini 2.5 Pro, GPT-5) suffer from cascading self-distraction

Models are more robust to noisy long contexts ("width") than to noisy reasoning iterations ("depth")

Most models struggle with appropriate early stopping in variable-round settings

flag
Conclusion

Robust agentic long-context reasoning remains an unsolved challenge

HaystackCraft established as a valuable testbed for future progress

code
Code available at GitHub

© 2025 Haystack Engineering Research Team

暂无表态

想参与讨论或点赞?登录后使用完整功能

讨论回复(0)

暂无回复,登录后可参与讨论
合作

智谱 GLM-5 已上线

在智谱开放平台 BigModel.cn 打造 AI 应用。新一代旗舰模型 GLM-5 在推理、代码、智能体综合能力达到开源模型 SOTA。

领取 2000万 Tokens