arXiv Machine Learning By Vedant Navale

MoE-Context: Show the Model Only What It Needs

Read the original on arXiv Machine Learning →

MoE-Context is a method that partitions a language model’s context into blocks and uses a fast yes/no pass to select only the blocks needed for each step, keeping the rest as one-line notes. In experiments with Qwen3-1.7B on a synthetic lookup task, this selective context raises accuracy from 93 to 119 out of 120, and masked blocks are effectively hidden. The authors also explore a supervised linear probe to improve block selection, noting its limited transferability, and discuss two practical usage patterns enabled by block switching: undoing failed attempts and running subagents without a new context.

Machine-generated by The Flow from the publisher's headline and feed description — not written or checked by a human. The full article lives at arXiv Machine Learning.

arXiv AI
6d ago

Context Has a Price: Adding and Removing Context for LLM Coding Agents under Prefix Caching

The paper investigates how adding or removing context in large language model coding agents affects cost and performance. Using over 20,000 runs on SWE‑bench, Loc‑Bench, and Verified, the authors find that retrieved code can reduce read and search commands but may increase overall cost when cached input is cheaper. Removing old observations can either save or increase cost depending on cache pricing, and shorter prompts do not necessarily lead to cheaper runs because agents may take more steps. The study also highlights that shared cached prefixes in concurrent experiments can distort cost comparisons.

By Zerui Yang, Miaomiao Dong, Quan Xue, Chaorui Zhang, Xuanyu Zheng, Xiyuan Wang, Haolin Ruan, Xueyan Niu, Guangcheng Song, Weixi Zhang, Wei Han, Bo Bai
arXiv AI
4d ago

Semantic Context Handoff with On-Demand Evidence for Long-Horizon Agents

Semantic Context Handoff (SCH) separates a compact semantic state from the supporting action–observation evidence, allowing long‑horizon agents to retain only essential context while keeping earlier evidence accessible for later use. This approach reduces inference cost and improves accuracy by preventing unnecessary growth of the prompt history. In a 150‑task SWE‑bench study, SCH raised Pass@1 from 80.0 % to 86.9 % with unchanged token use and execution time, and in full‑system comparisons it achieved 86.9 % Pass@1 while using 43 % fewer tokens and 41 % less wall‑clock time than the strongest baseline.

By Guolong Zheng, Chen Hou, Xu Yang, Jianshan Zhang, Tao Huang
arXiv AI
Sep 3

Language Models Can Control Their Own Attention

The paper introduces Declarative Attention (DA), a protocol that lets language models explicitly declare which parts of their context to focus on during generation. By partitioning decoding into full-context, region-specific, and recent-output-only modes, the inference engine can skip large portions of the KV cache, dramatically reducing attended tokens. Experiments on 15 long-context tasks with off-the-shelf models show significant savings (52.0% and 31.1% reductions) with only modest accuracy drops that diminish as model size increases.

By Namgyu Ho, Huzama Ahmad, Woosung Koh, Se-Young Yun, Tal Schuster, Cicero Nogueira dos Santos
arXiv Computation and Language
Nov 4

When Should an Agent Refresh? Adaptive Index Reuse for Efficient Long-Horizon Reasoning

The paper introduces Adaptive Index Reuse (AIR), a method that dynamically determines how many layers of a sparse attention indexer should refresh during a language agent’s reasoning process. AIR replaces the static layer‑refresh schedule of IndexCache with a small controller that selects from a nested library of patterns based on recent computation signals and tool events, optimizing for task reward under a compute budget. Experiments on Qwen3‑4B‑Instruct‑2507 with a 128K context show AIR improving success rates on SWE‑bench Verified, Terminal‑Bench 2.0, and three τ²‑bench domains while reducing time per successful task, and it matches or surpasses the static schedule across 50 varied settings.

By Guangyuan Wang, Yifan Zhang, Shilong Liu