mlsanityData to 7 Oct 2026

Agentic Context Learning with Self-Discovered Specification

arXiv 2607.09794 ↗First posted 9 Jul 2026cs.AI cs.MAcited by 1

On the map: LLM agents and tool use → Agent memory systems

Abstract (arXiv)

Context learning is an emerging inference-time task where LLMs must learn and apply novel, task-specific knowledge from intricate contexts absent from pre-training; even frontier models score under 24% task success. In this work, we conduct a comprehensive empirical study to understand why this setting remains difficult. A natural hypothesis is that failures stem from content access; yet across twelve retrieval, reflection, and verification baselines on CL-Bench, an extensive context learning benchmark, we find limited gains over direct full-context prompting. Further failure analysis reveals a key finding: unlike typical long-context tasks such as long document understanding, context learning requires not only recovering local content but also acquiring local specifications that are often unspecified in the query but distributed across the context: domain-specific formats, local rules, and completeness conditions. Across all 31,592 rubric items, we find that 55.4% clearly evaluate specification acquisition, while only 22.6% evaluate content acquisition. Moreover, despite 76.7% of specifications being unspecified in the user query, 95.5% are traceable to the context, indicating these are learnable obligations rather than hidden requirements. To validate this diagnosis, we design a deliberately simple intervention PSCI (private specification-contract induction) which extracts local specifications and enforces them through adversarial checking and repair; PSCI achieves state-of-the-art 28.14% with GPT-5.1 (+5.59 pp absolute and +24.8% relative) on CL-Bench, replicated on Qwen3.5-27B (+5.28 pp) and Gemini 3 Pro (+6.17 pp). Seventeen ablations further isolate the role of task-specific specifications. Overall, our results suggest context learning hinges on not only content acquisition but also specification acquisition.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Agent memory systems, one of 16 directions in LLM agents and tool use. Builds on 28 of its 47 references that are in the map. First posted on arXiv 9 Jul 2026.

Builds on

28 of 47 references.

References · 28

  1. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  2. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  3. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  4. 2025Qwen3 Technical Reportcited by 8,195
  5. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
  6. 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
  7. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
  8. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  9. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
  10. 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,185
  11. 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,800
  12. 2024From Local to Global: A Graph RAG Approach to Query-Focused Summarizationcited by 1,411
16 more
  1. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
  2. 2023MemGPT: Towards LLMs as Operating Systemscited by 1,295
  3. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
  4. 2023Instruction-Following Evaluation for Large Language Modelscited by 1,143
  5. 2025OpenAI GPT-5 System Cardcited by 910
  6. 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 803
  7. 2024RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrievalcited by 519
  8. 2022Self-critiquing models for assisting human evaluatorscited by 372
  9. 2023Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agentscited by 356
  10. 2024Corrective Retrieval Augmented Generationcited by 187
  11. 2024FOFO: A Benchmark to Evaluate LLMs' Format-Following Capabilitycited by 79
  12. 2024Inference Scaling for Long-Context Retrieval Augmented Generationcited by 65
  13. 2024TICKing All the Boxes: Generated Checklists Improve LLM Evaluation and Generationcited by 62
  14. 2026Agentic Rubrics as Contextual Verifiers for SWE Agentscited by 22
  15. 2026Inference-Time Scaling of Verification: Self-Evolving Deep Research Agents via Test-Time Rubric-Guided Verificationcited by 19
  16. 2025Guideline Forest: Retrieval-Augmented Reasoning with Branching Experience-Induced Guidelinescited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026Decocted Experience Improves Test-Time Inference in LLM Agents
  2. 2026CL-bench: A Benchmark for Context Learning
  3. 2025Let's (not) just put things in Context: Test-Time Training for Long-Context LLMs
  4. 2025A Survey of Context Engineering for Large Language Models
  5. 2026Beyond the Parameters: A Technical Survey of Contextual Enrichment in Large Language Models: From In-Context Prompting to Causal Retrieval-Augmented Generation
  6. 2025Rethinking the Unsolvable: When In-Context Search Meets Test-Time Scaling
  7. 2025AutoContext: Instance-Level Context Learning for LLM Agents
  8. 2026CLEAR: Context Augmentation from Contrastive Learning of Experience via Agentic Reflection