Crashworthiness design combines expensive, non-smooth simulations with constraints and mixed or conditional variables. Gaussian processes (GPs) need dedicated kernels for conditional variables, whereas tree-based models handle them natively but lack a reliable uncertainty estimate. This work extends Bayesian Optimisation inside a Grove (BOinG), a global random forest with a local GP, to constrained, conditional problems and separates its router, which selects the conditional branch, from its region builder, which places the local trust region. Of three variants, BOinG-cEI routes by a constrained expected improvement, BOinG-inc by Thompson sampling, and FuRBO-Tree also builds the region from inspector points ranked by gradient-boosted trees. On the constrained 15D Ackley function, FuRBO-Tree spends 75.9% of its evaluations in the feasible region, against 24.0% for BOinG-cEI and 12.5% for a GP. On a 46-topology conditional truss, BOinG-cEI finds a feasible design in all 30 seeds, against 23 for a hierarchical GP. Neither router dominates: greedy routing is best on well-separated branches, and Thompson sampling finds the optimal branch more often on overlapping ones. In 80 crash-tube mass-minimisation problems, the GP has the best mean rank at every level, but the lightest designs lie on the crushing-distance limit: only 13% to 35% of the final GP designs remain feasible on a finer mesh, against 23% to 47% for the tree-based variants. BOinG-cEI is recommended for constrained, conditional problems, FuRBO-Tree when feasibility is hard to find in a continuous space, and the GP for the crash tube, after a check on a finer mesh.
When reweighting a fixed approximate posterior cannot capture how training will update a model, lookahead active learning methods simulate explicit hypothetical refits. Like nested Monte Carlo (NMC) estimators in Bayesian experimental design, these methods score conditional distributions against a reference marginal. Under exact Bayesian inference, lookahead conditionals average to the pre-update predictive, making it natural to plug in the current model, while NMC commonly estimates the marginal with a separate inner bank of samples. However, when approximate refits break this identity, a separate reference introduces nonnegative marginal drift in expected-KL objectives and a signed offset in entropy-difference objectives that breaks equivalence with expected KL; under finite budgets, an independent marginal bank also splits available posterior draws. We analyze when candidate-varying drift reverses acquisition rankings and evaluate self-consistent mixture scoring, which forms the marginal by averaging the scored conditionals at no extra refit cost. In multi-round targeted image active learning, gene screening, and sequential Bayesian experimental design, this simple change prevents severe entropy-difference failures, recovers the benefit of lookahead refits when drift misaligns with target information, and improves sample efficiency through draw reuse and self-inclusion when budgets are tight. Although self-consistency does not guarantee exact posteriors or universal gains, scoring lookahead conditionals against their own mixture is a straightforward, sound default.
Bayesian optimization (BO) commonly estimates Gaussian process covariance parameters by maximum likelihood in practice, whereas standard regret analyses assume known parameters. In the Bayesian setting, we study how sequential maximum likelihood estimation (MLE) of the marginal variance and length scale of a Matérn kernel affects the convergence of GP-UCB. We first show that estimating covariance parameters does not prevent no-regret convergence for any smoothness ν>0 and finite dimension. However, the convergence rate depends not only on predictive accuracy at evaluated locations but also on the extent to which the maximum acquisition value underestimates the true optimum. To understand how covariance parameter estimation affects this rate, we show that estimation errors in the marginal variance and length scale can compensate for each other. Furthermore, we find that reducing posterior uncertainty about the objective does not necessarily provide proportional information about its covariance. Consequently, the accuracy required of covariance parameter estimation depends on how the objective is learned during optimization. Building on these findings, we identify sufficient conditions under which covariance parameter estimation does not preclude an almost-sure regret rate of O(Tlog2T) for sequential-MLE GP-UCB.
The generalized orthogonal Procrustes problem (GOPP) aims to recover rigid transformations that best align multiple point clouds and has broad applications in 3D geometry, computer vision, and biomedicine. Despite its importance, the problem is challenging due to the nonconvex orthogonality constraints. Fortunately, the generalized power method (GPM) has proven highly effective, theoretically guaranteed to converge to the global least squares (LS) estimator under reasonable conditions. Yet, the statistical inference of this global LS estimator remains largely an open problem. Specifically, the absence of an exact second-order analytic expansion prevents rigorous uncertainty quantification (UQ), which is vital for constructing confidence regions and evaluating estimator reliability. While recent UQ frameworks developed for orthogonal group synchronization offer a potential paradigm, they severely lack universality, often failing to accommodate the complex anisotropic distortions inherent in GOPP shape matrices. To bridge this gap, we propose a more general theoretical framework with which we successfully derive the exact second-order analytic expansion of the GOPP global LS estimator under additive Gaussian noise. Leveraging this theoretical foundation, we further construct confidence regions. Finally, extensive numerical experiments empirically validate the exactness of our theoretical expansion and demonstrate the robust coverage of the proposed confidence regions across varying conditions.
We study operator-learning approximations of unique continuation, or data assimilation, operators for five linear partial differential equations: Poisson, heat, wave, Stokes, and Helmholtz. The input consists of interior observations, the forcing, and any prescribed auxiliary data. We formulate the compatible data space for each problem. Since elliptic unique continuation is unbounded in the inherited data norm, we distinguish two settings. A graph norm gives bounded linear continuation operators and standard approximation estimates. In the inherited data norm, conditional stability on a priori bounded classes gives logarithmic estimates globally in Hq(D), 0≤q<1, and Hölder estimates in interior H1 norms. We derive deterministic approximation bounds for DeepONet, Fourier and convolutional neural operators, kernel regression, and PCA-Net, together with uniform and population residual-based error estimates. These include finite-sample, residual-quadrature, optimization, and input-compression terms in the norms justified by each equation, including local velocity for the Stokes conditional estimate. Numerical experiments compare DeepONet and a kernel based operator learning method across observation geometries and under observation noise.
The accuracy of physics-informed neural networks (PINNs) is sensitive to sampling measures of collocation points, especially for high-dimensional problems and solutions with complex local structures. To improve the sampling efficiency under a fixed budget, we propose a Learnable Interpolant Flow Sampling (LIFS) framework, which formulates collocation updates as continuous transport from the current collocation distribution to a residual-induced target distribution. The method introduces an endpoint-preserving learnable interpolation path and alternately optimizes the path and velocity networks through a max--min objective. The learned velocity field then moves the existing collocation points to update the training set. This approach eliminates the need to compute Jacobian matrices or explicitly calculate probability densities, significantly reducing training costs compared with other sampling methods based on generative models. For continuous transport toward a fixed residual target, our analysis links velocity fitting error, distributional discrepancy, and perturbations in the next-stage training objective. Experiments on parametric optimal control, lid-driven cavity flow, a ten-dimensional nonlinear elliptic equation, the viscous Burgers equation, and a two-dimensional Allen--Cahn problem show that LIFS improves accuracy under a fixed collocation budget, with computational times comparable to those of several baseline methods. Additional experiments demonstrate effective matching to its stage-specific residual targets and a degree of robustness within reasonable hyperparameter ranges. Ablation experiments show that learnable paths achieve lower solution errors and velocity field energies than fixed paths.
Separable physics-informed neural networks (SPINNs) represent a PDE solution as a low-rank sum of products of one-dimensional networks. Standard SPINNs minimize pointwise residuals, differentiating each network to the full order of the equation. Here we introduce an ultra-weak formulation for d-dimensional SPINNs. We test the equation against tensor products of fixed one-dimensional Fourier, sine, and Legendre-Galerkin functions matched to the boundary conditions. Integration by parts moves every spatial derivative of order two or higher onto the test functions, and each modal residual is weighted to approximate a dual norm. At most first-order spatial derivatives of the network are needed, and linear terms reduce to one-dimensional quadratures without forming Nd grids in memory. We compare the ultra-weak and strong formulations on eight problems with matched networks, parameter counts, optimizers, schedules, and iterations. On 3D+1 Cahn-Hilliard, 2D lid-driven cavity flow (Re=1000), forced Kolmogorov flow (Re=104), and viscous Burgers, the ultra-weak formulation lowers relative L2 error by factors of 3.4 to 35.4. On Rayleigh-Bénard convection at Ra=104 and 105, it reaches velocity errors below 0.4%, whereas balanced strong baselines collapse to a near-conducting state. On Kuramoto-Sivashinsky, advection-diffusion, and Korteweg-de Vries, both formulations yield comparable errors under SOAP, while the ultra-weak formulation lowers error by factors of 4.0 on Kuramoto-Sivashinsky and 4.8 on Korteweg-de Vries under Adam. Comparisons with dense Fourier-feature PirateNets confirm that the ultra-weak loss drives the main accuracy gain while separable networks reach lower error without dense Nd evaluations in three dimensions.
We propose a singular layer Physics-Informed Neural Network (sl-PINN) framework for solving singularly perturbed reaction-diffusion equations on convex polygonal domains. Such problems are characterized by steep boundary layers and corner singularities when the diffusivity parameter is small, posing significant challenges for conventional numerical methods and standard PINNs. To address these difficulties, we incorporate analytically derived corner boundary layer correctors into the neural network architecture, enabling accurate resolution of multiscale features near geometric singularities. Numerical experiments on various polygonal domains confirm that our sl-PINN achieves substantially higher accuracy than standard PINNs, particularly in the small-diffusivity regime, where sharp transitions of the solution occur. This work illustrates the advantage of integrating classical asymptotic techniques with neural network-based solvers for challenging singular perturbation problems.
论文信息
推荐理由:奇异层PINN嵌入角点边界层校正子,针对小扩散率问题,架构设计可迁移。
作者声明已接收/发表
30 pages; Accepted for publication in a proceedings volume of the American Mathematical Society
Diffusion models have become a leading generative framework for high-fidelity image synthesis. Extending these models to scientific computing (e.g., generation of turbulent and geophysical flow-like fields) presents substantial challenges. Unlike natural images, turbulence obeys strict statistical laws and multiscale physical constraints. Conventional isotropic Gaussian white noise is spatially uncorrelated and has a flat per-mode power spectrum, requiring the denoising network to recover complex multiscale correlations from a structureless state and placing a burden on the denoising process. To overcome these limitations, the Kolmogorov-Spectral Adapted Diffusion (KSA-Diff) model is proposed, introducing a physics informed prior containing the critical spectral information of the target flow into the noise space and consequently embedding physically motivated multiscale spectral structure into the time-varying corruption process to guide conditional generation. Flow-field super resolution and sparse construction across four datasets -- two numerical simulations (Kolmogorov flow and channel flow) and two real-world observational datasets (typhoon thermal-infrared imagery and sea surface current speed fields) show that the physics informed noise outperforms Gaussian and blue noise baselines in MSE (up to 87.52%), radial spectral fidelity (up to 92.59%), and probability density function tracking (up to 26.26%)
Leveraging anomalies and features in magnetic fields offers a passive, high-precision methodology for GNSS-denied navigation in contested environments requiring accurate prior maps. Mapping magnetic fields and their anomalies is challenging to achieve with precision. We introduce Bayesian Expandable Ambient Magnetic Mapping (BEAMM), a physics-constrained Bayesian neural network framework for modeling and interpolation of indoor magnetic fields. By explicitly embedding Maxwell's curl-free equations as a hard constraint into the network and deploying a maximum a posteriori centered prior with fan-in variance, the presented method supports continual learning through a replay buffer while sacrificing minimal variance and incurring only a fraction of the computational cost of traditional BNN sampling approaches. The framework is validated for accuracy using simulated datasets and physically validated on a ground robot equipped with quantum magnetometers for high-precision mapping, demonstrating smooth domain expansion and real-time evaluation in 55s, achieving a 13.6× speedup. BEAMM shows lower MSE than tiled domain expansion, with an average MSE reduction of ≈42%. Code, videos, and datasets are available at this https URL .
Accurate underwater navigation is commonly performed using inertial sensors and a Doppler velocity log. Recently, a physics-informed inertial dead-reckoning approach offered an externally-derived inertial-based update to the navigation filter, creating a correlation between the measurement and process noise covariances. In this work, a physics-informed extended Kalman filter (EKF) with cross-covariance awareness framework is proposed for navigation of autonomous underwater vehicles (AUVs). Unlike conventional EKF that assumes independence between process and measurement errors, the proposed method explicitly incorporates the cross-covariance within the filter. This enables improved uncertainty modeling and more consistent state estimation in underwater environments. The framework is evaluated using real-world AUV trajectories. Experimental results demonstrate that the proposed cross-covariance-aware formulation consistently improves navigation accuracy. For unseen test data, the proposed method achieves an improvement of 34% over the baseline. The proposed framework provides a theoretically grounded and physically consistent solution for robust underwater inertial navigation.
The entrained droplet fraction e is a key closure for pressure-drop, film-thickness and dry-out predictions in annular flow. Machine-learning (ML) models for e report high accuracy, but they are usually validated with random train/test splits in which measurements from the same experimental campaign appear on both sides, a leakage that can overstate performance in a new facility. We reproduce, from its public supplementary data, the 8-6-1 artificial neural network (ANN) of Aliyu et al. (2023), trained on 1367 vertical-flow measurements from 29 studies, and extend it with modern regressors, campaign-wise validation and uncertainty quantification. Five empirical correlations scatter widely (best R2=0.06, RMSE =0.28) and the ANN is much better: over ten random 80/10/10 splits the re-implemented network reaches test R2=0.878±0.045, below the reported R2=0.97, which could not be reconstructed because the feature scaling was not reported. Repeated measurements bound any deterministic model at R2≤0.986. Log-scaled inputs with larger, seed-averaged networks, or a Gaussian process (GP) with per-input length scales, reduce the randomly cross-validated RMSE to 0.060 (R2=0.956). However, when whole experimental sources are held out, every model degrades to RMSE 0.27-0.38, no better than the best correlation, and neither physics-hybrid residual learning nor monotonic constraints closes the gap. The GP's nominal 95% intervals still contain 94.9% of the measurements on unseen sources, but only by widening to a mean width of 0.992, so the model signals when it is extrapolating. Notebooks, data and a reproducibility checklist are openly available. Random validation is therefore insufficient for entrained-fraction modeling; group-wise validation and uncertainty quantification should become standard practice for ML closures in multiphase flow.
In hydrology, many parameter configurations exhibit comparable performance on training data, but a (seemingly random) subset of these fail to generalize under climate change, leading to poor post-deployment performance. In this paper, we aim to demonstrate that this failure to generalize may be a result of the underlying structure of the loss landscape at these local extrema. Specifically, we hypothesize that parameter sets at sharp minima have poor generalization ability while parameter sets at flat minima have strong generalization ability. While optimizing for flat minima has gained significant attention in computer science, most notably through algorithms like Sharpness-Aware Minimization (SAM), these techniques remain largely unexplored in the hydrology community. We evaluate the effectiveness of SAM in finding more generalizable deep learning models using the CAMELS dataset, a standard benchmark in hydrology. By demonstrating the link between flat solutions and improved test accuracy, our work highlights practical, easily implementable methods that hydrologists can use to improve model generalization.
The implicit bias of stochastic gradient descent (SGD) has been widely studied. But the implicit bias of Adam, one of the most widely used adaptive gradient methods (AGMs), remains less well understood. A key difficulty is that the model parameters and the adaptive preconditioner evolve on different timescales, depending on how 1−β2 scales with the learning rate η, where β2 is the second-moment decay coefficient. Under the scaling 1−β2=Θ(η2), termed the "2-scheme", Li et al. (2025) characterized Adam's dynamics near a manifold of loss minimizers and showed that Adam implicitly reduces a form of sharpness different from that associated with SGD. In practice, however, 1−β2 can be much larger than η2, motivating the study of the scaling 1−β2=Θ(ηα) with α<2. In this work, we resolve the case where 1≤α<2. We derive the limiting dynamics of AGMs, including Adam, over O(η−2) iterations and characterize the resulting implicit bias with 1≤α<2, along with the convergence guarantees for approaching and remaining near the minimizer manifold. Under label noise, we recover the sharpness characterization of the 2-scheme for 1<α<2, while an additional drift arising from third-order terms leads to a different implicit bias at α=1. To obtain these results, we develop a new framework for analyzing coupled stochastic dynamics with multiple timescales near a manifold. Technically, this framework generalizes the ideas of Katzenberger (1991) and sheds light on the limiting behavior characterization of a broader class of stochastic processes.
Training a large model across many machines is often limited by how much those machines can talk to each other. Low-communication methods such as DiLoCo let each worker train on its own for many steps and only then average what the workers have learned. Mixture-of-Experts (MoE) models look like a risky fit for this: each token visits only a few experts, so workers might drift apart in which experts they use, and averaging might upset load balance and expert roles. We pretrain a small MoE language model (78M parameters, 17M active per token) on FineWeb-Edu with DiLoCo-style data parallelism across 2 or 4 workers, sync intervals of 16 to 256 steps, two load-balancing methods, and several sync splits across the router, MoE layers, and shared layers, compared against a dense model of the same active size (35 runs in all). Four findings stand out. (1) The extra cost an MoE pays under DiLoCo beyond a dense model is small (0.02-0.03 in validation loss), does not grow with the sync interval, and holds across seeds, balancing methods, and outer learning rates. (2) Routers stay aligned: late in training, workers choose the same experts 94-97% of the time, and averaging keeps load balance and expert specialization intact. (3) The real danger is letting the MoE layers sync less often than the shared layers. Though experts hold about 72% of parameters, this raises validation loss by up to 0.95 over syncing everything together, and does worse than syncing everything less often while sending more data. (4) Fixes aimed at the router (syncing it more often, weighting experts by token counts, or changing how the balancing bias is merged) make no measurable difference. The practical rule is simple: keep the MoE layers in lockstep with the shared layers, and save bandwidth by syncing everything less often.
论文信息
推荐理由:DiLoCo下MoE路由稳定性与同步策略实证,含35次运行,分布式训练可迁移。
发表状态未知
14 pages,5 figures, 7 tables. Code and Data: this https URL
Due to a growing range of applications, long-context processing and long-form generation with AI are becoming increasingly common, particularly with the transition to agentic workloads. Agents are long-lived, continuously produce and consume streams of tokens, and base their subsequent responses on their entire interaction history; multi-agent systems can further amplify this token volume. Models capable of processing long contexts are therefore increasingly necessary, but training with larger context windows is expensive, so most models are trained with windows of 32K to 256K tokens. Application demands can extend to millions of tokens, which creates a need for training-free context extension. Training-free context extension presents two key challenges: (1) out-of-distribution context embeddings, where unseen context lengths can shift attention distributions away from those seen during training, and (2) computational complexity, since attention's quadratic cost makes processing millions of tokens expensive. We propose PickPack, which addresses both challenges with two composable operators in a single FlashAttention pass: Pack maps every query-key pair to a relative position inside the trained window, and Pick uses the pre-softmax logits to dynamically decide which key blocks to skip. At 50% sparsity, PickPack is more accurate than Pack alone on seven of eight Qwen3 model sizes and context lengths, and up to 1.2x faster. Against the recipes that released Qwen2.5, Qwen3.5, and Qwen3.8 models ship with, it is 1.0-11.0 points more accurate and up to 1.2x faster from 128K to one million tokens, and 11.6 points more accurate at four million tokens, 16x the trained window of Qwen3.5-9B.
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.
Self-speculative decoding accelerates large language model inference with a low-cost drafter derived from the target model, avoiding separate training, storage, and deployment. Existing methods mainly target dense models and skip whole layers or modules, underusing the expert-level sparsity of mixture-of-experts models. Moreover, their speedup potential often diminishes as batch size grows. The key challenge is therefore to construct training-free sparse draft paths for MoE LLMs that adapt to both input context and speculative-round dynamics. We present RIVET, a training-free and lossless self-speculative decoding framework for MoE LLMs. RIVET constructs sparse draft paths through a three-level decision hierarchy: historical verifier feedback identifies low-impact FFN layers for later-round skipping, router statistics assign per-layer expert budgets, and router scores select the active experts. The full target model verifies these drafts with the standard speculative acceptance rule, preserving its output distribution. We evaluate RIVET across diverse generation tasks using end-to-end wall-clock measurements. RIVET achieves up to 1.55× speedup over vanilla MoE autoregressive decoding and retains a larger fraction of its batch-one speedup as batch size increases.
Online training can help a speculative decoding drafter adapt to serving traffic, but each update on a shared GPU consumes capacity that could serve current requests. Whether an update repays its cost depends on load, attainable draft acceptance, and how long the workload persists. We present a controller that jointly decides when to speculate, how much GPU time to allocate to training, and when to stop training under a latency target. It combines a load-dependent performance frontier with calibrated learning curves to map attainable acceptance to serving throughput and express both future gains and immediate training costs in output tokens. At light load, the controller uses spare capacity to train. Under contention, it forecasts net token gains over the estimated remaining workload duration, accounting for training-data availability and the time needed to complete an update. We implement the controller in vLLM and port it to SGLang. Across 81 runs with EAGLE-3 drafters, three workloads, and nine policies, the controller improves saturated throughput over static speculation by 18.0% on Qwen3-8B code, 87.7% on Qwen3-8B Chinese generation, and 8.0% on Qwen3-30B-A3B code. Its throughput lies within 4.7% of the best evaluated policy on each workload. On Chinese traffic, disabling the speculation switch reduces saturated throughput by 43.8% relative to the full controller. On dense code, payback-based allocation reduces the mean training duty cycle from 16.0% to 6.7% while maintaining competitive throughput. In simulation across 35 unseen trace windows, a short-horizon variant achieves latency-constrained goodput within 0.6% of the best evaluated simple policy in every window. Mixed-traffic experiments expose the limits of training near the speculation break-even point, while simulated domain bursts show that longer workloads give drafter improvements more time to repay the cost of training.
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.
Large Language Model (LLM) agents run long sessions that all begin with the same system prompt, which holds the agent's instructions and the documentation of its tools. Serving engines store this shared prefix once for all sessions, so removing it from the key-value (KV) cache of one session frees no memory, but the session loses the documentation that the agent needs to call its tools. Published KV-cache eviction policies treat every cached token the same way against the memory budget, so they remove the shared prefix like any other text. In this paper, we measure seven published eviction policies on recorded sessions of SWE-agent, a coding agent, and we count the memory of each session the way a serving engine does, with the shared prefix counted once for all sessions. We test four models of the Qwen2.5 and Llama-3.1 families, with 1.5 to 14 billion parameters. When a session keeps an eighth of its cache, four of the policies, which choose tokens by attention or by position, keep at most 14% of the shared prefix, and the model can rarely recall how to call its tools. Under prefix caching, keeping the whole prefix costs no extra memory per session, and it lets the model recall its tool documentation in nearly every case. Keeping the prefix also improves how often the agent's next commands follow the command format documented in the system prompt by 10 to 22 percentage points on three models. For five of the six policies that we test on recall, it never significantly lowers the recall of facts from the session's own history (the part of its input after the shared prefix). Our results show that a serving engine with prefix caching can keep the shared prefix out of eviction at no memory cost, and that the agent then recalls its tool documentation and writes valid commands more often.
论文信息
推荐理由:KV缓存驱逐策略对共享系统提示的影响测量,含前缀缓存与工具召回,智能体服务实用。
发表状态未知
10 pages, 4 figures, 6 tables. Code and results at this https URL
Public map services change over time, and their catalog descriptions often omit the field names and values needed to answer a spatial question. We present GLIMPSE, a system in which large language model agents search a catalog of 730 ArcGIS layers, inspect live schemas, sample stored values, and test filters. A deterministic verifier guides revisions to each spatial query plan. We evaluate GLIMPSE on GeoPlan-Bench, a benchmark of 291 requests, including 255 generated from executed reference plans. On the 286 answerable requests, GLIMPSE achieves execution accuracy ranging from 86.7 to 88.8 percent. A single-pass retrieval-augmented generation baseline achieves 11.2 percent with its original model and 26.6 percent with gpt-5.5. With the same model and dense retriever, accuracy rises from 26.6 to 88.8 percent when agents can inspect and query the services. By contrast, verifier feedback without tools does not significantly improve the original baseline. Removing value sampling reduces accuracy from 87.4 to 72.7 percent for gpt-5.4-mini. On this benchmark, checking what a service actually stores is more useful than revising a plan from error feedback alone.
Tool-using LLM agents read untrusted documents and web pages; instructions hidden there can make them leak credentials, change payment details or alter facts. A common response is a supervisor that checks actions, yet where it sits and what its blocks cost are rarely measured. On one harness with shared random seeds we compare permission rules, an injection classifier, self-review, an independent LLM supervisor and hybrids, with two agents (Qwen3-1.7B, Qwen3-4B), supervisors Qwen3-4B, Phi-4-mini (3.8B), Granite-3.3-2B and a 4-bit Qwen3-8B, and 222 cases per configuration. For Qwen3-4B an independent supervisor cuts attack success from 86% to 22%, but only 8% of attacked tasks finish safely: having read injected text, the supervisor blocks clean actions. Requiring the supervisor to quote offending text from the action, and cancelling unsupported blocks in code, raises safe completion from 8% to 77% (independent) and 7% to 79% (hybrid) with Qwen3-4B, and from 4% to 84% with Phi-4-mini; because unsupported blocks fail open, upstream permission rules are needed to stop credential reads. Granite-3.3-2B stays weak; 4-bit Qwen3-8B with the rule allows 1-2 of 180 attacks while cancelling 166-168 clean-action blocks. The rule repairs a memory write gate. Content sabotage within granted permissions remains the main residual risk. On AgentDojo the evidence-checked supervisor lowers attacks won (42 to 32 of 144) but does not raise safe completion. Against a compromised agent (60 scripted attacks plus 5 controls), an in-process supervisor fell in 25, same-user own process in 15, separate user in none.
论文信息
推荐理由:LLM智能体监督器位置与阻断代价的系统测量,含证据引用规则,可信评估扎实。
发表状态未知
19 pages, 5 figures, 17 this http URL : [ this https URL ]( this https URL ) and dataset: [ this https URL ]( this https URL )
When an LLM agent's session crashes, resuming it requires restoring part of its state, but which state, and how completely it must be preserved, has not been systematically measured. We inject crashes into agents on two tool-calling benchmarks, TauBench and AppWorld, under a self-hosted inference configuration verified to be deterministic, and resume each crashed agent with and without a conversation snapshot. Crashes occur at LLM call boundaries, and tool results that reach the platform are persisted and delivered on resume. Under these conditions, restoring a conversation snapshot that includes tool results recovers losslessly at every crash depth, reproducing each uninterrupted run's outcome, token count, and sequence of LLM calls. Without it, recovery passes 78% of TauBench and 95% of AppWorld runs and costs 22--25% more tokens when it succeeds, with the cost growing the later in the task the crash occurs. Most of that cost is re-work, as the resumed agent repeats what its predecessor had already done. Its failures stem from information that existed only in the lost dialogue rather than from a world the crashed agent had modified, and resetting the world does not help. On tasks that fail even without a crash, a history-free restart sometimes succeeds, by abandoning the failing trajectory. A VM snapshot also recovers faithfully, but its correctness advantage at the crash boundary depends on when tool results are persisted rather than on the snapshot mechanism. What it preserves beyond the conversation is work never recorded in a tool result, which a conversation snapshot must usually re-execute. Whether conversation-level recovery suffices is therefore a property of the workload, in particular of whether its work state lives outside the agent.
A tool call can follow every policy rule and still cause harm. After a payment times out, an authorized retry can charge the customer twice. We introduce Policy-Constrained Causal Repair, a guardrail that evaluates multi-step recovery plans rather than isolated calls. It discards any plan that can violate policy on any branch, uses randomized logs to bound all candidate risks simultaneously so guarantees survive selection, and enforces the closest certified plan across subsequent turns. Across exact environments, our certificates achieve a 0% false-certification rate, while plan enforcement prevents the 3.7×-7× risk violations of single-call approvals. On 600 paired held-out telecom episodes with ambiguous timeouts across five agents, our certified plans eliminate all 56 duplicate-write harms of the nearest compliant repair and raise safe completion from 72.8% to 80.7%.
Chain-of-Thought (CoT) monitoring is a prominent method for AI oversight. However, it remains a concern that a model could carry out an unprompted or unapproved computation while leaving no warning in its CoT. Drawing on zero-knowledge (Goldwasser et al., 1985), we define zero-knowledge CoT (zk-CoT). Informally, a zk-CoT reveals no information to an efficient monitor about the intermediate steps of an "unapproved" computation, beyond what can be inferred from the input, an "approved" computation, and the final unapproved result. We characterize and empirically study zk-CoT for a canonical task that requires a CoT, the word problem over S5. Under a standard hardness assumption, we prove that achieving zk-CoT is equivalent to computing a cryptographic weak pseudorandom function (weak PRF) in a single forward pass. Specifically, masking the hidden state with a weak PRF suffices to construct zk-CoT, and conversely, any weaker encoding leaks signal that a monitor can amplify via queries into exact hidden state recovery. Empirically, we show that a frontier coding agent (gpt-6-astra in Codex) can hardcode exact network weights for a weak PRF in under 15 minutes and wrap them around a fine-tuned Qwen3-0.6B model so that probes on its CoT recover the hidden state no better than random chance. Altogether, our results uncover a sharp asymmetry between two paths to zk-CoT. Emergent zk-CoT faces a barrier, since training would have to stumble onto a cryptographic function by accident. Deliberate zk-CoT faces a surprisingly low bar, since an agent can bypass training and hardcode a weak PRF directly into weights. While CoT-only monitoring may therefore work against emergent obfuscation, defending against deliberate tampering requires oversight that guards against unauthorized weight or architecture changes and inspects model internals alongside CoTs.
Can coding agents autonomously train useful text embedding models? We introduce \textscAutoEmbed, a configurable framework and benchmark for developing and evaluating embedding models under fixed budgets. Each run provides a base model, one H100, and ten hours. We split every evaluation task in half: the agent develops on one half and is scored on the other. Across 58 runs by four agents, six settings test building from a raw encoder, improving a strong embedder, and adapting an embedder to legal, financial, medical, and code retrieval. The base model's headroom dominates performance. All four agents raise the raw encoder's score from 38.0 to 58.2--62.8, and the best comes within 1.5 points of a same-size published embedder, although retrieval remains fourteen points behind it. None meaningfully improves the strong embedder; domain gains range from 0.2 to 8.5 points. The method an agent chooses is associated with its outcome: full fine-tuning gains 8.9 points on average against 2.2 for low-rank adaptation, though the comparison is observational. Every submission declares its training data, and the audit finds no run trained on a hidden query with its relevant document. Reviewing traces and checkpoints reveals what the audit cannot: six submissions use prompts keyed to evaluation task names, and one submitted encoder is byte-identical to its base, with prompts supplying two thirds of its gain. Whether such conditioning is adaptation or reward hacking depends on what a benchmark sets out to measure, a line contamination auditing cannot draw. We release the code and artifacts at this https URL
Subtle bugs in biomedical software can silently invalidate scientific and clinical conclusions without triggering runtime failures. Existing benchmarks miss this failure mode: PR-mined coding benchmarks suffer from pretraining leakage, while biomedical agent benchmarks largely omit multilingual, repository-level tasks, rigorous tests, and strong sandboxing. We introduce \textbf{\bench{}}, comprising 81 feature-level biomedical engineering tasks across 33 open-source repositories, 8 translational domains, and 8 languages. To construct it, we develop \textbf{\forge{}}, a multi-agent framework that extracts live-repository tasks, stress-tests contract-grounded scientific oracles under formula-free prompts, and evaluates patches in history-stripped, offline containers. Across six frontier reasoning models, top systems (GPT-6.2 Sol and Claude Fable 5) reach only \textbf{49.4\\%} and \textbf{45.7\\%} accuracy; open-source models trail proprietary ones by \textbf{3.1×} while using \textbf{27×} more tokens per solve, and \textbf{33.3\\%} of tasks remain unsolved. Trajectory auditing reveals that \textbf{86.1\\%} of true failures stem from scientific identification and realization rather than localization---over \textbf{80\\%} of which pass agents' local tests while violating clinical conventions or repository contracts---and \textbf{75.1\\%} attempt blocked upstream lookups, underscoring the need for hardened sandbox isolation.
Coding agents increasingly write scientific software. We asked whether one, guided by a domain expert, can match the best hand-engineered libraries, and what the expert contributes. The fast Fourier transform is a severe test: its reference, FFTW, embodies decades of expert work. Here an agent built such a library in 60 active hours within 7 days up to its public release. One Julia package runs on ARM and x86 processors, Apple and NVIDIA graphics processors and as a C library. Measured 9 days later, it was faster than the fastest other library in 76-85% of cases on the processors and in 73% on the Apple graphics processor, and on a par with VkFFT on the NVIDIA graphics processor. The record shows the agent taking up gaps measured against competitors while the expert mostly checked its work; a few decisions on what to measure against acted as the specification.
论文信息
推荐理由:编码智能体工程化FFT库的案例记录,专家与智能体分工分析,工具智能体实证。
发表状态未知
34 pages, 5 figures, 3 extended data tables; main text and Supplementary Information. Data and analysis code: doi: https://doi.org/10.5281/zenodo.24697573
Reinforcement learning for image-to-code generation typically rewards the overall visual similarity between rendered outputs and reference images. However, methods such as GRPO assign the same advantage to every token in a program, giving code that draws an element correctly the same learning signal as code that draws it incorrectly. To address this, we introduce render attribution, which traces rendered elements back to their source code, enabling fine-grained visual feedback. During training, we decompose the reference and rendered images into individual elements, match them one-to-one based on geometric similarity, and assign element-specific advantages to the responsible code tokens, even across shared definitions. Across five benchmarks (VFIG-Bench, VFIG-OOD, SVG-Bench Emoji, DaTikZ-v3, and Design2Code) spanning SVG, TikZ, and HTML with three different starting models, our method outperforms GRPO (e.g., 23% lower LPIPS on VFIG-Bench), improving all 28 benchmark-metric comparisons with at most 1.3% additional training-step time. With an additional code-aware reward and corresponding credit assignment, it also better preserves code structure and improves editability. As an agent tool, render attribution improves LPIPS by 17% at the same turn budget even for a frontier agent (Claude Sonnet 5.5), and lets an open 27B agent surpass its 16-turn result in four turns with 84% fewer tokens. By linking rendered elements to their code, render attribution turns visual feedback into precise guidance for learning and editing.