Manuscript Offprint

arXiv:2608.23252

The Laws of Context Allocation: Causal Measurement and Closed-Loop Orchestration in Generative Search

Peiyang Liu, Xi Wang, Di Liang, Wei Ye

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

PEIYANG LIU, National Engineering Research Center for Software Engineering, Peking University, China

XI WANG, Peking University, China

DI LIANG, Tencent, China

WEI YE ∗^{*}, National Engineering Research Center for Software Engineering, Peking University, China

As Retrieval-Augmented Generation (RAG) shifts toward diverse portfolio generation, it is stymied by two critical bottlenecks: flawed measurement of evidence utilization, and suboptimal context budget allocation. We resolve both sequentially.

To resolve measurement, we expose a pervasive “diagnostic illusion”: standard relevance proxies fail catastrophically on hard negatives. We replace them with an efficient causal leave-one-out probe that accurately isolates generative reliance and formally calibrates the structural dilution of LLM attention.

To resolve allocation, we deploy this causal probe in a deconfounded factorial grid. We prove that the prevailing strategy of monolithic context widening is an architectural trap penalized by relevance decay. Instead, allocating compute iteratively across multiple sequential generations drives transformative portfolio recall gains of 16.8–20.5 absolute percentage points, scaling robustly up to 32B models.

Finally, we unify these solutions into a deployable closed-loop submodular scheduler. Augmented by an attribution-steered contrastive decoder to override LLM attention inertia, our architecture systematically forces fresh evidence integration. By dominating classical open-loop baselines, we establish sequential, feedback-driven orchestration as the definitive paradigm for generative search. Our code, data, and causal measurement instruments are available at https://github.com/PeiYangLiu/ascp.

CCS Concepts: • Information systems → Retrieval models and ranking; Search results deduplication; Evaluation of retrieval results.

Additional Key Words and Phrases: retrieval-augmented generation, context attribution, inference-time scaling, test-time compute, evaluation

ACM Reference Format:

Peiyang Liu, Xi Wang, Di Liang, and Wei Ye. 2026. The Laws of Context Allocation: Causal Measurement and Closed-Loop Orchestration in Generative Search. ACM Trans. Inf. Syst. 0, 0, Article 0 (July 2026), 37 pages. https://doi.org/XXXXXXX.XXXXXXX

1 Introduction

Classical information retrieval (IR) systems treat ambiguous or multi-faceted queries by returning a diversified ranked list, acknowledging a fundamental truth: a single document rarely satisfies all underlying user intents [10, 22, 92, 102, 112]. Retrieval-augmented generation (RAG) inherits this premise of underspecified queries but radically alters the delivery

∗^{*}Corresponding author.

Authors' Contact Information: Peiyang Liu, National Engineering Research Center for Software Engineering, Peking University, Beijing, China, liupeiyang@pku.edu.cn; Xi Wang, Peking University, Beijing, China, wangxi5629@pku.edu.cn; Di Liang, Tencent, Beijing, China, liangd17@fudan.edu.cn; Wei Ye, National Engineering Research Center for Software Engineering, Peking University, Beijing, China, wye@pku.edu.cn.

Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org. © 2026 Copyright held by the owner/author(s). Publication rights licensed to ACM. Manuscript submitted to ACM

Peiyang Liu, Xi Wang, Di Liang, and Wei Ye

mechanism [14, 61, 142]. Rather than providing a diversified list of documents for a human to browse, the prevailing RAG paradigm forces generative models to compress retrieved passages into a single context prompt, aiming to synthesize one monolithic response. However, for complex informational needs, this single-pass synthesis is structurally inadequate. To truly satisfy ambiguous queries in the generative era, a robust system must transition from extracting a single answer to generating a diverse portfolio of responses that collectively cover the space of evidence-supported truths.

This necessary paradigm shift from diversified ranking to generative portfolio construction introduces a critical system design dilemma: How should a fixed inference budget be optimally allocated? Given a retrieved pool of candidate documents and a constrained hardware budget, system architects face two divergent paths. Should they follow the current natural language processing (NLP) trend of feeding a massive, wide context into a single generation pass? Or should they adhere to IR diversification principles by dividing the budget iteratively, querying the model across multiple sequential rounds with narrower, focused contexts? Figure 1 visualizes this exact architectural dilemma and previews our core findings: despite consuming an identical physical evidence budget, iterative narrow contexts fundamentally eclipse monolithic wide contexts in answer space coverage. Crucially, standard relevance proxies completely mask this dynamic, necessitating a paradigm shift in generative evaluation.

Before we can empirically resolve this allocation question, we hit an epistemological wall: the RAG community lacks a rigorous mechanism to measure what evidence a Large Language Model (LLM) actually utilizes from its prompt. Standard proxies, such as embedding similarity and lexical overlap, suffer from severe methodological blind spots because they conflate genuine evidence utilization with mere topical relevance. Classical IR has long held that a measure must be diagnosed against the behaviour it claims to capture rather than trusted on face validity [27, 46]; we apply that same standard to context attribution. To overcome this, we formulate a causal measurement instrument based on counterfactual sensitivity, a leave-one-out (LOO) probe. Because the generated response is held fixed, our counterfactual evaluations act as highly efficient teacher-forced passes, allowing us to deeply audit the generative cognitive process without the prohibitive bottleneck of autoregressive decoding.

Armed with this causal probe, our first major contribution is uncovering a pervasive diagnostic illusion that plagues current RAG attribution literature. We demonstrate that the perceived effectiveness of existing attribution metrics is almost entirely a mirage constructed by flawed evaluation datasets. When evaluated on standard off-query distractor pools (passages retrieved for unrelated topics), naive similarity metrics appear near-perfect (AUCs approaching 1.000). However, when forced to distinguish challenging same-query hard negatives, documents that are topically dense but contain no actual answers, traditional proxies completely collapse to random chance. Only our causal probe maintains robust discrimination. By formally calibrating out target-shift artifacts, we establish a fundamental structural property of LLMs: the dilution of attribution across wider contexts is an inherent, inescapable generative behavior. Under strictly controlled diagnostic isolation, this yields a calibrated width elasticity of -0.68 (0.02), acting as an empirical baseline for attention decay.

Having secured a definitively validated measurement instrument, we systematically dismantle the budget allocation dilemma through a deconfounded k×Tk \times T factorial experiment. We discover that simply expanding context width, the current dominant scaling strategy, is an architectural trap fundamentally constrained by IR relevance decay. Wide contexts merely construct a slightly better single answer while leaving massive informational blind spots. Conversely, we establish a robust empirical law of context allocation: dedicating the computational budget to multiple, narrower sequential generations yields transformative absolute gains of 16.8 to 20.5 percentage points in comprehensive portfolio coverage. While this sequential approach inherently incurs higher autoregressive latency and probe overhead, it remains

The Laws of Context Allocation: Causal Measurement and Closed-Loop Orchestration in Generative Search

3

(a) One inference budget, two ways to spend it

Figure

portfolio recall PR@T at the same 24-slot budget

Figure

more of the answer space for the same evidence budget

(b) The scheduler it enables frozen held-out frame; grey = n.s.

Figure

held-out portfolio recall PR@T

(c) The measurement that makes it possible swap the distractors and the ranking inverts

Figure

padding used to build the evaluation pool

Fig. 1. The context-allocation problem in one picture. (a) A fixed inference budget of k×Tk \times T evidence slots can be packaged as one wide context ( k=24k=24, T=1T=1) or as many narrow contexts that rotate through fresh evidence ( k=2k=2, T=12T=12). Both consume 24 retrieved documents, yet the second packaging covers +0.144 more of the answer space (Table 4). (b) Turning that allocation law into a scheduler: on a frozen held-out frame, ASCP beats every selection-style baseline by +0.033 to +0.081 portfolio recall (all BH q<.001q < .001); the two grey arms are reference configurations whose remaining gaps are not significant (Table 10). (c) None of this is measurable with relevance proxies. Swapping the padding of the evaluation pool from off-query distractors to same-query hard negatives that entail no answer leaves the causal leave-one-out probes almost unchanged (-0.01 AUC), while BM25 and query-document cosine fall by more than 0.5 to chance (Figure 3).

the only mechanism capable of breaching the extraction ceiling of monolithic single-pass models, a structural supremacy verified up to the 32B scale.

Finally, we operationalize these conceptual insights into a deployable system architecture. Recognizing that traditional IR algorithms (e.g., MMR) operate as open-loop systems blind to actual generative consumption, we propose a feedback-driven closed-loop submodular scheduler. By actively reading causal attribution feedback, our scheduler systematically outperforms all seven evaluated selection-style baselines. Furthermore, to combat the LLM’s inherent attention inertia, we augment our architecture with an orthogonal attribution-steered contrastive decoder. Acting as a cognitive override, this micro-level intervention forcefully shifts probability mass away from over-used evidence while maintaining strict plausibility guardrails, delivering mathematically guaranteed orthogonal gains. Ultimately, this framework pioneers the application of inference-time scaling to generative search: by deliberately investing test-time compute into iterative causal orchestration, we bridge the gap between classical search-result diversification and modern LLM pipelines.

Our main conceptual and empirical contributions are summarized as follows:

Peiyang Liu, Xi Wang, Di Liang, and Wei Ye

• Exposing the Diagnostic Illusion in Generative Evaluation: We reveal that standard off-query distractor pools artificially inflate relevance proxies to apparent perfection. Utilizing rigorous same-query hard negatives, we prove these proxies fail catastrophically, establishing causal counterfactual probes as the indispensable standard for valid evidence attribution.

• Formalizing the Dilution Law of Context Width: We resolve widespread measurement artifacts in RAG attribution to uncover a fundamental generative property: evidence utilization inevitably dilutes as context expands, yielding a strictly calibrated width elasticity of -0.68 (0.02).

• Empirical Laws of Context Allocation and Inference-Time Scaling: Through a deconfounded factorial design, we prove that monolithic context-widening is an architectural trap that hits a rigid cognitive ceiling. Instead, we establish a new paradigm for inference-time scaling: deliberately investing test-time compute across multiple sequential generations drives massive absolute recall surges of 16.8 to 20.5 percentage points, a structural supremacy verified up to the 32B model scale.

• A Closed-Loop Orchestration Architecture: Translating theory into practice, we introduce an attribution-steered submodular scheduler. Validated across rigorous cross-task evaluation frames, the architecture systematically dominates classical open-loop baselines. Augmented by a contrastive decoder that acts as a cognitive override against attention inertia, our framework proves that dynamic, feedback-driven context orchestration fundamentally surpasses static context maximization.

References (35)