anchor
CFA: Mitigating Forgetting in RL Post-Training with Content-Free Anchors
Kumar, Ramnath, Zhang, Jiong, Chang, Wei-Cheng, Wang, Fei, Yu, Hsiang-Fu, Dhillon, Inderjit, Hsieh, Cho-Jui
RL post-training is widely assumed to forget little of what a model was not trained on. We show this assumption is incomplete. Across Qwen3-VL at 2B, 4B, and 8B scale, single-domain RL post-training silently collapses individual held-out capabilities, with worst-benchmark drops of up to 67%, while suite-wide averages stay flat because unrelated benchmarks improve on the same runs. We introduce the worst-k curve to expose this tail. Existing defenses, such as parameter-importance penalties, replay, and KL regularization, assume that the anchor inputs used to constrain the model must represent the capabilities being protected, which is infeasible for general capability. We find this assumption is not load-bearing: anchors made of uniformly random tokens match, and at modest budgets outperform, a curated real coreset spanning five capability dimensions. We instantiate this as Content-Free Anchoring (CFA), a Fisher-weighted Maximum Mean Discrepancy penalty between current and reference next-token distributions in the model's embedding space, which we derive as a Gauss-Newton generalization of Elastic Weight Consolidation. We prove that anchors affect retention only through a transfer coefficient, and that anchor content can improve it over random anchors by at most a bounded factor that requires no held-out data. Across all nine domain-scale combinations, CFA limits worst-benchmark forgetting to between 0.1% and 9.1%, while every baseline loses at least 36% on some benchmark. The result carries over unchanged to InternVL3.5 and Gemma 4, where CFA cuts the worst-benchmark drop of GSPO from 43-48% to under 6%, and CFA remains the most robust method on six additional out-of-domain benchmarks, all without any real, licensed, or curated data.
Espalier: Sparse Causal Interfaces from Joint First-Order Geometry
Circuit discovery is conventionally evaluated by whether an ablated subgraph reproduces a behaviour on its own. Yet the machinery used to find circuits, including activation patching and its gradient-based approximations, measures something else: whether a retained set transmits a specified counterfactual change. We formalise transmission as a finite direct-mediation defect. Espalier scores sparse interfaces with the first-order limit of this defect, using the joint geometry of promptwise contribution vectors. On GPT-2 Small IOI and Acronym Prediction, Espalier has lower held-out direct-mediation point estimates than EAP, EAP-IG and AtP* in all 14 matched task-budget cells and than AtP in 13/14, with one identical-selection tie. The primary assay measures the target underlying Espalier's selection objective. Results on aggregate model distance are more mixed. Holding the contribution matrix and search fixed, retaining cross-candidate terms lowers held-out defect at 8/8 IOI and 8/9 Acronym budgets. The surrogate ranks finite defect across broad fixed-cardinality swap clouds ($ฯ\geq 0.988$ with anchors excluded). Among eight single-swap interfaces per task, 27 of 28 pair orderings agree, but even these interfaces span 3.5-4.0 times in calibration defect, leaving resolution of near ties open. Under IOI standalone mean ablation, Espalier ranks fifth of five selectors. Which criterion a discovery method should optimise, and which reference distribution operationalises it, is an empirical commitment rather than a definitional one.
OPAL: Optimizing Proofs at Library Scale via Metric-Driven Coding Agents
Liu, Chengwu, Feng, Zijin, Yuan, Ye, Qin, Yifang, Li, Botao, Xie, Jiaxuan, Li, Siqi, Suo, Pu, Bai, Haoli, Yin, Yichun, Shang, Lifeng, Zhang, Ming
Driven by rapid progress in autoformalization and automated theorem proving, formal mathematics is scaling up: mathematicians, often with AI assistance, advance large formalization projects around Lean blueprints, which tightly link a LaTeX proof plan to the Lean codebase. As mathlib and proof automation evolve, finished proofs accumulate optimization opportunities. Yet even in the mature mathlib library, 41% of commits add no new mathematics but improve existing proofs (shortening, deduplication, faster compilation), and 62% of these span multiple files, beyond the reach of theorem-level methods. We introduce OPAL, the first repository-level, metric-driven proof-optimization task, where an agent freely refactors a blueprint repository toward repository-level objectives. We instantiate OPAL with six metrics grounded in empirically mined human maintenance tendencies, including proof length, import closure, mathlib duplication, and elaboration cost. Optimizing these metrics freely, however, invites reward hacking, such as deleting a theorem to shorten the code, so evaluation needs a contract on what must stay intact. Our key observation is that blueprint structure itself supplies this contract: \lean{} links pin down which theorems constitute a project's final targets (5-19% of all declarations), whose statements must be preserved, while the remaining 81-95% of auxiliary code may be freely refactored. We implement this contract as an executable semantic-preservation checker. Building on it, we release OPAL-Bench, comprising 162 task instances from 18 real-world Lean blueprint projects, together with a sandboxed agent harness. Experiments show that coding agents can deliver genuine optimization gains beyond the level of single human commits, while ablations show that with the contract absent from the agent's world nearly half of accepted improvements do not survive semantic verification.
Anchor: Amortized KV-Cache Compaction for Procedural Skills
Wang, Weixing, Wang, Kexin, Bergner, Benjamin, Jawed, Shayan, Zhao, Yinghan, Chen, Bei, Lehmann, Jens, Wang, Cheng
LLM agents increasingly rely on long procedural skills: prompts packaging tool schemas and invocation instructions that consume extensive context on every request. KV-cache compaction promises to reclaim this budget by emitting a compacted KV prefix for unseen skills in a single forward pass, yet existing methods perform poorly on procedural skills, producing missing or inaccurate tool calls. We identify a key training mechanism behind this, the anchoring effect: when knowledge-preservation (reconstruction) and instruction-following (tool-calling) objectives are trained sequentially, the second stage erases most of what the first stage stored, leading to suboptimal final tool-call accuracy. We therefore present ANCHOR (Amortized Neural KV Compaction with Held-On Reconstruction), an emitter network trained with on-policy distillation anchored by a low-weight reconstruction objective that keeps stored knowledge intact while improving tool-call fidelity. We also find that evaluating skill compaction remains an open problem: on some existing agentic benchmarks, strong base models score nearly as well without the skill in context, leaving no headroom to measure what a compacted prefix preserves. We therefore propose DomainBench: 716 tasks from 100 procedural skills, answerable only with the skill in context and graded on tool calls at three nested granularities: tool name, argument keys, and argument values. At 4x compaction, ANCHOR recovers 65.1% and 58.9% of full-context tool-use fidelity on two LLM backbones against 5.5--45.0% for four baseline methods.
Tree-Constrained Adaptive Coverage Search for Knowledge Extraction Attacks against Retrieval-Augmented Generation
Li, Wenyun, Cao, Guiping, Lan, Xiangyuan, Zhang, Zheng
Retrieval-augmented generation (RAG) enhances the reliability of large language models by grounding their outputs in external knowledge bases. However, the same retrieval interface can be exploited by knowledge extraction attacks (KEAs) to systematically recover sensitive corpus content. Existing KEAs often assume prior knowledge of corpus topics and lack an effective mechanism for balancing broad exploration with focused exploitation, leaving long-tail knowledge poorly covered under limited query budgets. To address these limitations, we propose Tree-Constrained Adaptive Coverage Search (TCACS), a black-box extraction framework that probes a dataset-agnostic taxonomy and uses semantic discrepancies between target and retrieval-free shadow responses to identify corpus-relevant branches. TCACS then performs feedback-aware frontier search, combining structural priors with novelty--redundancy signals to prioritize promising regions and progressively refine saturated nodes. Experiments across three datasets and three commercial RAG backbones show that TCACS achieves the best or tied-best results in 24 of 27 settings, improving the Chunk Recovery Rate by up to 12.07% over the strongest baseline. Its resilience to defenses at different RAG stages further exposes the difficulty of preventing cumulative leakage through natural interactions, highlighting practical privacy risks in deployed RAG systems.
ALPS: Annealed Local Penalties for Efficient Sobolev Regularization on Implicit Neural Representations
Lim, Richard F. M., Neto, Jeovรก Farias Sales Rocha
Implicit neural representations (INRs) fit a signal with a coordinate network that can be evaluated between data points. However, on noisy signals, they eventually fit the noise. Penalizing the network's input gradient via Sobolev regularization prevents this, but computing the penalty by automatic differentiation requires expensive double backpropagation. Noise- and local variance-based approximation methods exist, but static cluster sizes risk over-regularization in early training. To remedy this, we introduce Annealed Local Penalties for Efficient Sobolev Regularization (ALPS), which approximates gradient norms via the variance of the network's output over neighborhoods, and shrinks these neighborhoods during training. We prove that, as the clusters shrink, the penalty converges to the network's Dirichlet energy (weighted by cluster covariance) uniformly over compact sets of anchors and for any cluster law with finite second moment. We test ALPS on noisy image INRs as learned by a SIREN network. Our results show that ALPS strongly mitigates overfitting compared to unregularized networks and achieves similar or stronger performance against standard Sobolev regularization techniques. When early-stopped, it achieves similar performance to early-stopped networks without a Sobolev penalty, avoiding the degraded early-stopping performance of fixed-size neighborhood penalties.
Native Compressed Attention: Trainable Attention with Non-Uniform KV Compression
As agentic workloads demand ever longer contexts, the KV cache has become a major bottleneck in serving, since its memory limits how many requests a GPU can serve and how many earlier prompts stay cached for reuse. Training-free KV compression shrinks the KV cache of an existing model without adapting the model to it, while DeepSeek's Compressed Sparse Attention was introduced in models pretrained with compressed attention. We introduce Native Compressed Attention (NCA), a trainable attention mechanism that enables existing models, through short fine-tuning, to attend over a chunkwise-compressed KV cache in both prefill and decode. Based on the observation that a small subset of KV tokens and attention heads carries most of the measured importance, NCA adopts non-uniform compression in two ways. Across tokens, a learned scorer retains the important tokens of each chunk individually as anchors and merges the remainder into block summaries. Across attention heads, each head receives its own anchor budget according to its measured sensitivity to compression. We apply NCA to three 4B models, Qwen3-4B-Instruct-2507 (full attention), Qwen3.5-4B (hybrid with Gated DeltaNet) and Nemotron-3-Nano-4B (hybrid with Mamba2), with 2,000 training steps and 0.2-1.4% extra parameters each. On average across long-context and long-reasoning benchmarks, NCA achieves scores comparable to the uncompressed model at 4-8x compression on all three models, while substantially outperforming existing KV compression methods in most settings. On Qwen3.5-4B with 4x compression, measured prefill and decode timings yield an estimated throughput gain of up to 3.5x under static batching, combining faster attention with a larger batch in memory.
The Cost of Replicability in Stochastic Bandits
A bandit algorithm is $ฯ$-replicable if two executions that share its random seed but observe independent rewards pull the same sequence of arms with probability at least $1-ฯ$. Without replicability, instance-dependent regret is governed by $H_1=\sum_{i:ฮ_i>0}1/ฮ_i$, with no further dependence on the number of arms $K$; with replicability, the only known lower bound concerns two arms. We show that, in the worst case, replicability costs a factor of order $K$ beyond $H_1/ฯ^2$, up to logarithmic factors. For sufficiently small $ฯ$ and sufficiently long horizons, every $ฯ$-replicable algorithm has an instance on which its regret is $ฮฉ(KH_1/(ฯ^2\log K))$, and a joint elimination algorithm attains regret $\tilde{O}(ฯ^{-2}\sum_{j=2}^K j/ฮ_{(j)})\le\tilde{O}(KH_1/ฯ^2)$ on every instance, where $ฮ_{(2)}\le\dots\leฮ_{(K)}$ are the sorted gaps; previous guarantees lose a factor of $K^2$. The lower bound builds on an anchored bound showing that replication costs add across arms: every $ฯ$-replicable algorithm incurs regret $ฮฉ(\min\{H_1/ฯ^2,Tฮ\})$ on some instance of a family whose gaps lie in $[ฮ,2ฮ]$, which also removes a logarithmic factor from the known two-arm bound. The algorithm also attains the minimax rate, up to logarithmic factors, on a family with a single isolated near-optimal arm.
Train Once, Transfer Where? Better Alignment Does Not Mean Better Probe Transfer
Alpman, Engin Deniz, Altun, Hรผseyin Oktay
Linear probes on frozen language model activations cheaply monitor safety, truthfulness, and prompt injection, yet require retraining across model upgrades. Can read-only probes transfer across models from unlabeled text? Across six models from four families (Qwen, Gemma, Llama 3.1, OLMo 3; 30 pairs), probes mapped via 600-sentence Orthogonal Procrustes rotations retain 94%-99.5% matched native above-chance AUROC on core input-property tasks, beat full multi-layer global Relative Representations by +0.11 matched logistic and +0.19 matched mean-shift AUROC, and fold into one dot product with negligible memory (16 KB/head). Transfer degrades on behavioral sycophancy (reflecting label disagreement and direction loss), long-context injections, and adaptive evasion. Across four core tasks (hh-rlhf, XSTest, TruthfulQA, MATH-500), two findings stand out. First, zero-hyperparameter mean-shift probes transfer best, matching or beating source-tuned logistic regression. Second, better anchor fit does not aid transfer: whitened, Ridge, Kernel Ridge, and neural maps fit anchors better up to 20,000 sentences yet trail Procrustes because anisotropic shrinkage distorts target directions 3x-7x and lowers mean test SNR. Balanced four-domain anchors lift deepset OOD transfer (+0.10), unlabeled in-domain anchors further raise four-task transfer (+0.02), and multi-source averaging closes 38%-46% of non-ceiling gaps without target labels.
A World Model for Assembly Sequence Planning
Chen, Xilun, Mottaghi, Roozbeh
The key to this problem is assembly sequence planning (ASP), determining the order in which parts are placed, as this order decides whether the assembly is physically realizable (Tian et al., 2024). We study ASP on brick assembly, a reproducible testbed with readily available components and existing benchmarks; brick assembly is easily scaled to hundreds of parts and exposes the core physical constraints of other assembly problems, such as interlocking connectivity, per-step stability, and collision-free reachability (Liu et al., 2025; Chung et al., 2021; Pun et al., 2025). A core challenge in ASP is the need to look ahead over future steps (Shu et al., 2025), as a placement that looks feasible now may leave the remaining structure unbuildable later. Existing methods either ignore look-ahead and place parts greedily one step at a time (Liu et al., 2025), or obtain lookahead by querying physical ground truth through time-consuming, unscalable simulation and motion planning (Shu et al., 2025; Atad et al., 2023). This leaves a gap in designing a feasibility judge that can look ahead over many steps without paying the per-step cost of a physical oracle. We address this gap with a manipulation-level world model and solve the brick assembly sequence problem by assembly-by-disassembly, recursively removing bricks from the completed structure to obtain a feasible order (Figure 1). We train the world model to predict whether a placement is feasible and to imagine how that feasibility evolves as further bricks are removed, so that the planner can look many steps ahead before committing to a brick. To keep this prediction faithful, the model represents the evolving assembly as a multi-granularity heterogeneous graph, reasoning jointly about the global geometry that governs collisions and the local connectivity that governs stability.