SelfGuard: Self-Supervised Deviation Modeling for Multi-Modal Jailbreak Detection
Chenchen Jing, Hongli Guo, Huarong Jia, Tianwei Bai, Che Sun, Yang Liu, Chunhua Shen
AI 速读 基于摘要
SelfGuard 将多模态越狱检测转化为自监督偏差建模,仅用良性数据学习可泛化的偏差信号。
cs.AI
查看原文摘要
Multi-modal large language models (MLLMs) achieve strong vision-language reasoning ability but remain vulnerable to jailbreak attacks that exploit subtle cross-modal cues to bypass safety mechanisms. Detecting such attacks is difficult because harmful data are scarce and rapidly evolving, while detectors trained on known patterns often fail to generalize. In this paper, we cast multi-modal jailbreak detection as self-supervised deviation modeling and learn generalizable deviation signals from benign data only. We propose SelfGuard, a self-supervised framework, which models benign multi-modal regularities and learns to score structured violations via controlled pseudo-harmful deviations. SelfGuard synthesizes pseudo-harmful samples via controlled transformations that target three signature cues, cross-modal semantic inconsistency, format manipulation, and semantic toxicity. It then learns complementary deviation statistics through multi-task self-supervised learning, including misalignment discrimination, reconstruction-based toxicity modeling, and contrastive format modeling. At inference, SelfGuard performs multi-view deviation estimation by aggregating task-specific deviation scores to identify departures from benign multi-modal regularities. Extensive experiments on various benchmarks show the effectiveness of our method. The code is available at https://github.com/jingchenchen/SelfGuard.
Streaming interactive video generation enables users to dynamically guide evolving video narratives through successive text instructions. However, existing causal video diffusion models often struggle with implausible cross-event transitions and repetitive within-event behaviors, lacking explicit semantic reasoning and long-horizon planning. We introduce Semantic Forcing, a streaming framework that integrates high-level semantic evolution modeling into causal video synthesis. An autoregressive language model planner continuously predicts spatiotemporally aligned visual semantic tokens, with context-aware chain-of-thought reasoning to bridge incoming instructions with evolving visual context. In parallel, a causal diffusion transformer renderer synthesizes video chunks from streaming semantics, leveraging semantic-guided memory retrieval for long-range consistency. To support training, we construct EventVid, an event-centric dataset comprising 2.5M single-event and 245K multi-event videos with fine-grained annotations. Experiments demonstrate superior semantic coherence, instruction following, and visual quality over existing streaming approaches.
Simulation-trained policies can fail entirely on real robots when dexterous manipulation requires precisely timed forces and contact transitions, even after actuator, delay, and contact calibration. We present a three-stage framework that advances such policies from zero success to reliable execution across ten pen-spinning tasks spanning rapid motion, changing frictional contacts, and geometrically constrained finger gaiting. The framework uses real-world experience to improve both the training simulator and the deployed controller. Offline human guidance and coarse-physics-guided analysis identify targeted corrections, which we optimize through physical trials to establish initial success. The resulting trajectories support learning a hybrid simulator with shared per-contact neural compensation, reducing contact-model mismatch and enabling policy refinement in simulation. The refined controller provides a stronger high-frequency feedback base, while its rollouts define a structured action representation for learning coordinated residual sequences through real-world reinforcement learning. This enables direct real-world optimization without further dynamics-model refinement. Across six dynamic and four slower tasks on two hand embodiments, mean success rises from 0% to 98% over 50 trials per task (all $\geq 90\%$, nine $\geq 96\%$, six 100%). Sustained rotation exceeds 20 minutes on selected tasks and 30 minutes ($268π$ radians) beyond pen spinning. Selected policies partially generalize zero-shot to new objects; 250-500 additional real-world rollouts yield 96-100% success on seven variants and 16+ minutes of continuous rotation on an eighth. These results suggest a practical sim-to-real path from zero success under direct transfer to reliable real-world execution of challenging, dynamic, contact-sensitive dexterous skills. Website: https://robopser.pages.dev/
Repetitive action counting (RAC) requires identifying complete cycles in continuous motion, but visual similarity is an unreliable cue for this: a pose can recur within a single cycle, and pauses or static backgrounds produce high similarity without any repetition. We argue that video diffusion models, which must capture how content evolves across frames in order to generate coherent motion, provide a better source of cross-frame relations. We present DiffRAC, which uses a Wan video diffusion transformer, adapted with LoRA and then frozen, as the motion encoder of a counting model. For each video window, DiffRAC reads the query--key attention affinities between time steps of the input clip from several denoiser layers and averages them along temporal lags. Regularly spaced lag responses, summarized by learned lag features, a periodogram, and period templates, yield a posterior over the cycle length. Conditioned on this posterior, a query-based decoder predicts whether the window is repeating (activity) and how fast it repeats (frequency); their product is a local counting rate. Rates from overlapping windows are averaged on the original timeline by coverage normalization, integrated into a count, and calibrated, and an optional evidence-gated refinement step can further update the count. DiffRAC reaches 74.3% off-by-one accuracy (OBO) on RepCount-A and 87.6% on UCFRep. Trained only on RepCount-A, it transfers to UCFRep and Countix with 82.4% and 73.9% OBO.
Matrix-sign optimizers such as Muon show strong empirical gains in LLM pretraining, yet a theoretical explanation for their superiority over standard Stochastic Gradient Descent (SGD) remains elusive. A fundamental barrier is that under classical Euclidean smoothness and finite variance assumptions, SGD is already minimax optimal, leaving no room for any worst-case complexity improvement. We show that a strict complexity separation emerges once the optimization framework aligns with the matrix structure of neural network parameters. Specifically, we study smooth matrix optimization under the operator norm, measure stationarity via the nuclear norm, and bound the covariance of stochastic gradient noise by a positive semidefinite matrix $Σ^2$. Under this formulation, we establish matching upper and lower complexity bounds for Muon without explicit dimension factors. By contrast, we prove matching upper and lower bounds for both vanilla SGD and SGD with momentum (SGDM), showing that Euclidean updates inevitably suffer dimension penalties. In particular, SGD and SGDM incur an order-$m$ slowdown in the deterministic term and an order-$mχ(Σ)$ slowdown in the stochastic term, where $m$ is the smaller matrix dimension and $χ(Σ)=m\|Σ\|_F^2/\|Σ\|_*^2\in[1,m]$ characterizes the spectral concentration of the gradient noise. Consequently, Muon achieves a provable complexity speedup over SGD and SGDM ranging from $Θ(m)$ under isotropic noise to $Θ(m^2)$ under spectrally concentrated noise. Extensive experiments across CNNs and LLMs up to 7B scale confirm that LLM layers exhibit strong spectral noise concentration, where Muon substantially accelerates pretraining, whereas CNN layers remain nearly isotropic, where the performance gap indeed vanishes. Together, we provide a rigorous theoretical and empirical characterization of when and why Muon outperforms SGD.
Feed-forward models make multi-view 3D reconstruction fast and robust, but their predictions often remain locally inaccurate and geometrically inconsistent across views. Structure-from-motion (SfM) offers a complementary geometric signal through camera poses and 3D points estimated by correspondence filtering and optimization. To propagate this globally consistent SfM scaffold into dense geometry, we introduce Scaffold3D, an SfM-conditioned reconstruction framework that injects image patch-aligned SfM point tokens into a pairwise feed-forward pointmap predictor. Our approach preserves image-token reasoning while using explicit SfM structure to condition dense prediction. Because Scaffold3D predicts pairwise pointmaps in local frames, we fuse them with global alignment and an SfM anchoring term. Scaffold3D achieves stronger overall performance than feed-forward reconstruction models, point-token propagation, depth-completion baselines, and recent geometry-conditioned models on standard benchmarks (ScanNet++, ETH3D, and Tanks&Temples) and out-of-domain MV-dVRK, and is competitive on 4D-DRESS. On standard benchmarks, gains over point-token propagation are especially clear in low- and no-overlap regions. Our pipeline, built around a two-view SfM-conditioned pointmap predictor, outperforms several off-the-shelf multi-view geometry-conditioned baselines. Together, these results establish SfM-scaffold conditioning as a practical interface between learned pointmap prediction and classical geometric optimization. Project page available at https://ethz-vlg.github.io/scaffold3d.
Rapid prototyping and pre-visualization are critical in architectural design. Generative models have potential to help with these tasks by letting architects turn simple image and text prompts into pre-visualizations of a design concept rendered in the context of its intended environment from different views. However, the objectives of architectural visualization (ArchVis) are more specific than those used to train video models. As a result, current video models fall short on multiple fronts for ArchVis applications in practice. In this paper, we start by identifying requirements for useful ArchVis outputs, then develop a novel training pipeline based on those requirements, which we use to train DesignOrbit, a model for generating $360^\circ$ orbital videos of building rendered in-context with an intended environment based on inputs that are well-suited for the iterative design processes used by real architects. DesignOrbit generates videos revealing unseen sides with consistent geometry, completing $360^\circ$ orbits over 3 times as often as the strongest baseline in SfM-based evaluations of the identified geometric requirements, and in a user study with real architects we find a preference for DesignOrbit over baseline models in >90% of comparisons.
Anticipating how actions and cameras reshape the observed world is central to embodied intelligence. Joint embodied 4D world models achieve this by predicting future appearance and 3D geometry, serving as learned simulators for policy training and data generation. Video diffusion Transformers have become the mainstream backbone for such models, but face two challenges in robotics. First, joint appearance-geometry generation increases both parameters and latency with depth, making deployment on robots costly. Second, generalized camera-action control remains challenging, as actions and cameras are heterogeneous modalities lacking unified alignment. We present LoopCA, a looped dual-stream diffusion Transformer for efficient and accurate 4D world modeling under generalized camera-action control. LoopCA jointly generates RGB videos and pointmaps through dual streams that share a backbone, using stop-gradient laterals to pass RGB context to geometry. A looped core with logical-depth-specific conditioning and multi-exit supervision reduces backbone parameters and enables adjustable inference depth for lower latency. We render camera parameters and robot motion onto a shared pixel grid as per-pixel Plücker ray fields and Rendering-Aligned Action Fields (RAAFs), aligning camera and action conditions. On a camera-diverse RoboTwin benchmark, LoopCA achieves 27.91 dB PSNR and 3.67 cm 3D point error while reducing parameters by 35.7% relative to the non-looped baseline. Furthermore, two-loop inference reduces latency by 25.7% with only a 0.15 dB PSNR drop, and augmenting policies with LoopCA-generated views raises manipulation success by 61.8 percentage points. These results establish LoopCA as an efficient, accurate, and controllable 4D world model for robotics.
Data-centric recursive self-improvement (RSI) seeks to improve a model by repeatedly turning its evolving behavior into new training data. For tool-using agents, sustaining this process is more difficult because the data are executable environments: each round must preserve a coherent and tight connection from observed behavior to training intent, executable realization, and realized learning outcomes. Our analysis finds that even a capable agent frequently loses this connection, showing an incomplete understanding of model behavior, unfaithful implementation of intended environments, and ineffective use of feedback across iterations. To address these challenges, we introduce \method{}, a framework that organizes environment evolution around traceable training targets. It combines a traceable behavioral map to expose recurring patterns, iterative environment construction to faithfully realize training targets as executable environments, and target-conditioned context refinement to facilitate accumulated feedback utilization. This turns environment generation from a sequence of isolated attempts into a closed-loop data improvement process that adapts as the target model changes. Extensive experiments on $τ^2$-Bench, BFCL-v4, and AppWorld show that \method{} yields substantial improvements in the target model's performance, while the vanilla agent baseline shows no consistent improvement trend.
Multiplicative gating improves Transformer feed-forward networks (FFNs), but its additional projection reduces intermediate representation width under a fixed parameter budget. This trade-off is particularly important in Mixture-of-Experts (MoE) Transformers, where model capacity is distributed across individual experts. We introduce Partial Gated Linear Units (ParGLU), a simple expert architecture that combines parallel SwiGLU and squared-ReLU branches without increasing parameters or modifying expert routing. We conduct 100 pretraining runs on two corpora, spanning 30M to 1.03B parameters and approximately 247 billion training tokens. ParGLU outperforms SwiGLU across all three seeds at 75M and 152M and all 11 configurations in the scaling experiments. Controlled ablations reveal the importance of gating ratio, activation choice, expert width, and expert type. ParGLU achieves training throughput comparable to SwiGLU, even surpassing it in several configurations. Full fine-tuning further yields lower perplexity on all three downstream test sets. Token-level analyses reveal pronounced improvements on low-frequency tokens and high-entropy predictions. At 1.03B, ParGLU naturally produces 85.75% exact zero activations in its squared-ReLU branch, enabling a theoretical reduction of 21.44% in expert projection MACs. At nearly identical theoretical computation costs, ParGLU achieves 2.30% lower perplexity than magnitude-pruned SwiGLU. These results establish partial gating as a simple and effective design choice for MoE Transformers.
Autonomous robotic outdoor inspection missions require balancing multiple conflicting objectives while navigating near dangerous obstacles. Current multi-objective path planning (MOPP) methods struggle to adapt to evolving risks like localization errors, weather, battery state, and communication issues. This letter presents the Adaptive Risk-aware Navigation (ARENA) MOPP approach for UAVs in complex 3D environments. This method enables online trajectory adaptation by optimizing safety, time, and energy consumption using a 4D NURBS representation and a genetic-based algorithm to generate the Pareto front, a novel semi-empirical energy consumption model for various flight situations, and a novel risk-aware voting algorithm ensuring adaptivity. Tests in multiple simulated environments and one real-world scenario demonstrate the planner's ability to produce diverse, optimized trajectories covering 88.4% $\pm$ 5.5% of the range defined by high-fidelity benchmarks and a mean estimation error of 14% for power consumption. The ARENA framework enhances UAV autonomy and reliability in critical, evolving 3D missions. More details can be found at https://safirlab.github.io/research/arena/.
Simplicial neural networks extend learning on graphs to higher-order topological structures, but the dynamics of feature propagation in these networks remain understudied. We develop a framework that characterizes these dynamics through the Hodge decomposition: rather than a single energy, as used for over-smoothing and -sharpening in graph neural networks, we track the feature-normalized lower and upper Hodge Rayleigh quotients separately. This decouples spectral concentration from changes in feature magnitude and retains information about the gradient and curl subspaces, allowing us to distinguish three forms of spectral concentration: harmonic-dominant, gradient-dominant, and curl-dominant dynamics. For linear simplicial convolutions with independent, symmetric weights, we first show that the dynamics are a gradient flow of a learnable energy and derive three competing growth rates associated with the harmonic and highest-frequency gradient and curl eigenspaces, then show that these rates determine the asymptotic regime for almost every input. We further bound how far each Rayleigh quotient is from its predicted limit at any finite depth, extend this bound to elementwise nonlinearities such as tanh under certain conditions, and show that the results hold at every simplicial rank. Computed from the learned weights and Hodge frequencies, these rates provide a post-training diagnostic of which eigenspace the normalized features concentrate in. We instantiate our framework with normalized propagation choices, including an adjacency-like form that recovers graph convolution at rank zero. Finally, experiments on synthetic edge classification, ocean-drifter trajectory prediction, and additional real-world datasets with nonlinear flows and other simplicial architectures validate the predictions and illustrate how supervision and the choice of propagation operator select the regime.
Gaussian Splatting has become a widely adopted 3D scene representation, combining high visual fidelity with fast rendering. Although the local appearance of primitives is relatively straightforward to optimize, allocating a finite set of primitives across an entire scene is a challenging global optimization problem. Per-scene optimization techniques typically address this through heuristics for initialization, densification, and pruning. In feed-forward reconstruction, where these heuristics are difficult to apply, primitive allocation often relies on pixel-aligned prediction or decoders with learned queries that have fixed budgets. We introduce FlowSplat, a feed-forward scene reconstruction model that learns to predict a global primitive allocation by modeling a scene-conditioned continuous distribution over 3D space. We represent this distribution using normalizing flows, trained end-to-end from rendering losses without direct 3D supervision. By sampling primitive positions from a continuous distribution, FlowSplat decouples the primitive count from the model architecture, allowing a single model to operate across a wide range of inference-time sampling budgets. FlowSplat achieves state-of-the-art reconstruction quality with fewer primitives than prior methods, and further improves with larger primitive counts at inference time, without additional training.
In the last decade, de novo peptide sequencing has moved from dynamic programming over hand-designed scores to large transformers that learn the task end to end and are applied to every run unchanged. We present NovoCRF, to our knowledge the first integrated de novo sequencing workflow that adapts to the characteristics of each MS/MS run, including but not limited to its mass shift, its fragmentation pattern and its peptide elution order. NovoCRF's core is a conditional random field (CRF) whose states are prefix masses, so that its paths are exactly the peptides within $\pm 0.06$ Da of the precursor mass. A small network scores each edge from physics-derived ion-match features and is trained with its scores globally normalized over all mass-feasible peptides. On each run, NovoCRF recalibrates the precursor and fragment masses, fine-tunes part of its weights on the run's own confident answers, uses retention time as further evidence, and lets the sibling spectra of one peptide, within the run and/or across replicate runs, support each other. None of this needs labels or a database. On twelve held-out data-dependent acquisition datasets, NovoCRF has the highest peptide recall on eleven, by 5.5 to 46.5 points over the best of four transformer models, and on the twelfth, a human tryptic digest, once it reads two replicate runs as well. On the peptides that no tool has seen in training, it has the highest recall on all twelve. NovoCRF also searches modifications it was never trained on at their exact mass: on a public spike-in of peptides with non-natural residues it finds 74.7% of the labeled spectra, against 64.4% for RNovA. The model has 1.80M parameters and trains in about 21 GPU-hours. With a GPU it sequences 313 spectra/s in its default two passes, and it also runs on the CPU alone, at 130 spectra/s.
The Emergence of Action Spaces in Reinforcement Learning
Dengzhe Hou, Fangzhou Lin, Xueying Zhan, Kazunori D Yamada
AI 速读 基于摘要
YamRL 通过与环境交互学习生成动作值,在三个不同动作类型的任务上使用相同配置均成功解决。
cs.LG · cs.AI
查看原文摘要
In reinforcement learning, the form of the actions an agent can produce is usually specified before training. In this study, we developed YamRL, a general-purpose method for generating action spaces that learns through interaction with the environment which values to produce as actions. A recurrent neural network generates byte sequences, and a shared decoder converts them into values. The environment determines whether it can execute each value. We used the same YamRL configuration and the same reinforcement learning algorithm in three tasks that required an integer command, a two-component control signal, and a floating-point force, respectively. We trained on each task separately and solved all three tasks. These results show that a common initial mechanism can acquire effective actions of different types and dimensions through interaction with the environment.
Data-driven algorithm design selects configurations for application-specific inputs, but computing an empirically optimal configuration can itself be difficult. We study this problem for integer programming, clustering, and learning algorithms. For one rank-one Chvátal-Gomory cut, choosing shared multipliers across integer programs is NP-complete and exhibits constant-additive approximation hardness. Choosing a power-mean linkage exponent that realizes a prescribed root split (target 2-cluster) is NP-hard. Tuning one scalar Lasso penalty to achieve zero standard squared validation error on a compact interval bounded away from zero is NP-complete. We establish NP-hardness of constant-step-size gradient-descent ERM on piecewise-quadratic objectives and statistical capacity lower bounds for step sizes, schedules, and initialization. We complement our worst-case hardness results with some positive results under smoothed analysis. Independent Gaussian design perturbations yield polynomial expected Lasso path length, we obtain sharper bounds than Li and Singer. In power-mean linkage clustering, independent bounded-density distances yield polynomial expected number of distinct cluster trees and oracle-efficient ERM. Conversely, an enhanced aggregated-CG construction remains hard under independently perturbed nonzero coefficients.
Control barrier certificates (CBCs) have been extensively studied for ordinary differential equation (ODE) systems, but their synthesis for differential-algebraic equation (DAE) systems has remained an open problem. This paper presents the first CBC synthesis framework for DAE systems, addressing safety for both index-1 and higher-index systems. We transform DAE-CBF synthesis into ODE-CBF synthesis with additional compatibility constraints and develop an alternating synthesis framework. We propose an anchored sum-of-squares (SOS) formulation that guarantees geometric correctness on the constraint manifold by construction. This formulation reduces verification to feasibility certification and enables lifting back to the full DAE state space. The approach is validated on a 24-dimensional three-link manipulator, demonstrating safe operation under algebraic constraints.
QFrBLiMa: a Quebec French Benchmark of Regional Linguistic Markers
Nasma Chaoui, Richard Khoury
AI 速读 基于摘要
作者提出QFrBLiMa对比基准,用于评估模型对魁北克法语与大都会法语区域语言标记关联的识别能力。
cs.CL
查看原文摘要
Recognizing regional linguistic variation is essential for developing language technologies that account for the diversity of language use. We introduce QFrBLiMa, a contrastive benchmark for evaluating the recognition of documented regional associations of linguistic markers in Quebec French and Metropolitan French. Grounded in the Grand dictionnaire terminologique, it comprises 1,205 sentence pairs covering 241 linguistic markers across 12 thematic categories. We evaluate two widely used classification strategies: zero-shot prompting of large language models (LLMs) and supervised fine-tuning of BERT-family classifiers. Our experiments involve eight LLMs and five encoders fine-tuned using a separate corpus of 938,484 labeled text samples. Under their respective evaluation protocols, Gemini achieves the highest LLM order-robust accuracy (93.53%), while CamemBERT achieves the highest encoder strict pairwise accuracy (72.45%). The two strategies exhibit complementary recognition patterns. Our analyses show that stronger preferences do not necessarily accompany higher accuracy, candidate order substantially affects several LLMs, and source-based classification transfers imperfectly to regional lexical recognition. Moreover, identifying the relevant variants does not guarantee correct regional attribution. These findings motivate dedicated contrastive evaluation of regional linguistic knowledge beyond general multilingual capabilities. The methodology can be adapted to other linguistic varieties. The benchmark, code, and experimental results are publicly available on GitHub, and the benchmark and five fine-tuned classifiers are available on Hugging Face.
The surprising ability of large language models to work directly on neural network weights, known as weight-space programming, may reflect genuine generalization or familiarity with common architectures. Because prior evidence comes from a few experiments on standard designs, how far this capability extends to unfamiliar networks and tasks remains unclear. We introduce the Weight Engineering Benchmark (WEBench): 210 tasks across 56 families and 10 categories of operations for creating, modifying, and analyzing small networks, so failures cannot be blamed on scale. Each family is hardened by varying one design factor at a time, with at least three instances per task. We evaluated GPT-6-Astra (Astra 6) once per instance with no training or fitting and at most 50 network runs. Astra 6 passed 1,218 of 1,461 scored instances (83%), generalizing to rare sine and triangle-wave units, million-step sequences, and all 448 instances determined by weights alone. Many successes use human-verifiable mathematics, such as the Chinese remainder theorem, covariances recovered from stored normalization statistics, and exact-arithmetic proofs. Yet generalization has a clear limit: Astra 6 failed in all 10 categories, and 8 of them contain tasks on which it failed most instances. Nearly all failures involve learned weights graded on unseen real data, and in the failures we analyzed, Astra 6 relied on unchecked false assumptions. On 30 instances of ten tasks where Astra 6 performed worst, we evaluated seven more models. Accuracy rose sharply from Astra 6 to Astra 6.2, with Claude Fable 5.2, Gemini 4 Neon, and ChatGPT Sol 6.1 trailing Astra 6.2 and all three open-weight models behind the commercial models. Every commercial model solved all constructed-weight instances; unseen real-data tasks separated them sharply. Tasks, weights, and attempt records are at https://github.com/StanfordBioinformatics/WEBench.
Agent benchmarks assume that observation is safe: reading a record may cost time or money but never removes an option. We test whether language-model agents notice when this fails. In our testbed an agent may read records and then travel back in time once; what it has read stays true, so reading can lock the fact it needs to change. The testbed has 60 audited worlds in three families and an exact solver. DeepSeek Flash rarely reads the trap record; Claude Haiku 5.5, GPT-6 Luna, Claude Sonnet 5.5 and GPT-4o-mini read it in a quarter to three quarters of episodes and lose success. The first three play optimally without the lock, still read the records they need, and after a trap read almost always give up the locked change or attempt it saying it will fail. A one-sentence reminder in the rule removes a third to a half of their trap reads; the same reminder on every record removes most, as much as notes naming what each record locks. These models can work out what a record locks but do so reliably only when reminded at each record. No intervention helps GPT-4o-mini. The effect persists under a reworded rule.
One approach to reasoning about effectful programs is to use program logics that provide proof rules for various effects. However, developing program logics requires skills that are distinct from those needed for using program logics, making the development of new logics less accessible. Moreover, when developing new logics, it can be difficult to reuse components from prior logics or combine support for different effects. In this paper, we propose an approach for building extensible program logics based on effect handlers. Our starting point is an expressive program logic for reasoning about programs written in a pure, sequential language with support for effect handlers. Within this language, we implement handlers that model concurrency, distributed execution, and crash-recovery behavior. Then, by proving properties of these handlers within the logic, we derive expressive rules for reasoning about these effects. In some cases, this approach leads to stronger reasoning rules than those found in prior program logics. In addition, we develop a relational logic for proving contextual refinements between programs using effects. As with unary reasoning, handlers enable this relational logic to be developed in an extensible way.
We measure protocol-era behavior among registry-listed remote Model Context Protocol (MCP) endpoints after the 2026-07-28 stateless revision removed the initialization handshake. We probe a fixed random panel of 1,000 eligible Official MCP Registry entries on 2026-10-24 and 2026-11-24 with one modern server/discover request and one legacy initialize request, without credentials or tool invocation. We classify the evidence exposed by each selected endpoint as legacy-observed-only, dual-era, modern-observed-only, or era-unobservable. Among era-observable entries, the legacy-observed-only share is 0.797 in October and 0.729 in November; a domain-cluster sensitivity interval for the November entry-weighted share is [0.592, 0.824]. Of 422 entries that are legacy-observed-only in October and era-observable at both dates, 27 show an observed transition to dual-era evidence. This entry-level transition is concentrated: 16 occur under one domain, and 17 begin with an HTTP 401 response to modern discovery. A conservative sensitivity analysis restricted to the 386 eligible pairs with baseline-observable modern discovery yields 10 newly observed modern-interface transitions. The study estimates endpoint-response compatibility behavior, separating protocol-era visibility from release provenance. For clients seeking broad reach across the sampled population, the observed prevalence supports retaining legacy initialization fallback. An earlier preprint probed the same registry four weeks after the revision (Sunkavalli, 2026); both studies find legacy-observed-only behavior dominant. Data and code are public.
Large language model (LLM) agents have emerged as a paradigm for goal-directed problem solving, leveraging reasoning, planning, and tool use to accomplish complex tasks. Beyond text-based applications, these capabilities are increasingly being extended to visual domains, where visual agents ground their decisions and actions in images, videos, and interactive feedback. This paper provides a systematic overview of recent advances in these visual agents. We first conceptualize visual agents as systems in which one or more models operate within an associated agent harness. We then categorize mechanisms for improving agent capabilities by the depth of experience-driven change in these systems, distinguishing within-task adaptation, self-evolution, and recursive self-improvement (RSI). For each level, we review representative methods across visual understanding, generation, computer use, and embodied interaction, examining their sources of experience, targets of change, and underlying mechanisms. Relevant benchmarks and evaluation protocols are also summarized, providing a reference for evaluating visual agents across diverse tasks and settings. To support further research, resources are available at http://visual-agent-survey.github.io
Millie 2 runs a 177-billion-parameter language model with a million-token context on a phone with 12 GB of RAM. At that length, its compressed weights and attention data occupy 69.5 GB. On an iPhone 18 Pro, it generates 14.1 tokens/s at short context and 9.9 tokens/s when answering a question about a million-token document. Millie 2 streams model weights by predicting which experts a layer will use and favoring experts whose weights are already in RAM. We propose Residency-Biased Attention (RBA) for streaming attention data. Millie 2 uses an earlier layer's state to score a compact index of the full history, giving a bonus to blocks whose keys and values are already in RAM. The model fetches missing blocks while earlier layers compute. The destination layer then computes attention with the per-token keys and values of its selected blocks. To recover model quality, we keep the compressed weights fixed and train their shared scales under the same expert-selection constraints used on the phone. The resulting model scores close to its parent across reasoning, coding, instruction-following, and agentic benchmarks. We also evaluate browser and Android agents with model inference on the phones. These methods make it practical to run a large language model at long context on a phone even when its compressed weights and attention history together far exceed the phone's RAM.
Large language models (LLMs) can generate multibody simulation models from textual descriptions, but for complex mechanical systems these descriptions become lengthy and error-prone, whereas a sketch conveys the same mechanical system compactly. This study investigates whether Vision Language Models (VLMs) can generate physically correct multibody simulation code directly from sketches of mechanical models. In an automated closed-loop benchmark, 23 parameterized mechanical models are rendered as annotated sketches, and every generated simulation model is verified against ground truth by executability, graph isomorphism, and parameter and trajectory agreement. Across 12 open-weight VLMs, a two-stage pipeline that first extracts a code-agnostic intermediate representation of the sketched mechanical model doubles the success rate of simulation code generation compared to direct code generation by the VLM (48.0% vs. 23.9%). With code generation held fixed by a single coder LLM, so that only perception varies, replacing the textual description with a sketch lowers success from 94.8% to 48.0%, and to 78.2% when the textual description accompanies the sketch. An ablation attributes the gain to pre-selecting the element types shown in the sketch. Error classification and robustness tests to scaling and rotation locate the remaining failures in reading the drawing rather than in code generation. The pipeline transfers to hand-drawn sketches. Turning an engineer's sketch directly into a verified dynamic simulation opens a route to automating model creation in computational mechanics.
Linear probes on large language model activations are cheap monitors for safety, truthfulness, and prompt injection, but normally require retraining when models change. We ask whether a read-only probe trained on one model can transfer to another from unlabeled text. Across six models from four families (Qwen, Gemma, Llama 3.1, OLMo 3; 30 directed pairs), probes mapped via a 600-sentence SQuAD Orthogonal Procrustes rotation retain 95%-99% of matched native above-chance AUROC on input-property tasks (hh-rlhf, XSTest, MATH-500) and fold into a single dot product with zero extra VRAM. Transfer degrades on behavioral sycophancy (where counter-bias drops reflect label disagreement), 4K indirect injection, and adaptive evasion. Two findings stand out. First, a zero-hyperparameter mean-shift (difference-of-means) probe transferred best on all four mechanism tasks and matched or beat source-CV L2-logistic regression. Second, better alignment does not mean better transfer: whitened rotations hurt transfer at $N = 600$, and Ridge, Kernel Ridge, and MLPs beat even Scaled Procrustes in $R^2$ and cosine yet trail in transfer at every $N$ up to 20,000. Multi-source averaging closes 38%-46% of remaining non-ceiling gaps without target labels, and held-out in-domain XSTest calibration yields 4.8% false alarms at 82% unsafe recall.
We mathematically analyze and numerically study an actor-critic machine learning algorithm for solving high-dimensional Hamilton-Jacobi-Bellman (HJB) partial differential equations from stochastic control theory. The architecture of the critic (the estimator for the value function) is structured so that the boundary condition is always perfectly satisfied (rather than being included in the training loss) and utilizes a biased gradient which reduces computational cost. The actor (the estimator for the optimal control) is trained by minimizing the integral of the Hamiltonian over the domain, where the Hamiltonian is estimated using the critic. We show that the training dynamics of the actor and critic neural networks converge in a Sobolev-type space to a certain infinite-dimensional ordinary differential equation (ODE) as the number of hidden units in the actor and critic $\rightarrow \infty$. Further, under a convexity-like assumption on the Hamiltonian, we prove that any fixed point of this limit ODE is a solution of the original stochastic control problem. This provides an important guarantee for the algorithm's performance in light of the fact that finite-width neural networks may only converge to local minimizers (and not optimal solutions) due to the non-convexity of their loss functions. In our numerical studies, we demonstrate that the algorithm can solve stochastic control problems accurately in up to 200 dimensions. In particular, we construct a series of increasingly complex stochastic control problems with known analytic solutions and study the algorithm's numerical performance on them. These problems range from a linear-quadratic regulator equation to highly challenging equations with non-convex Hamiltonians, allowing us to identify and analyze the strengths and limitations of this neural actor-critic method for solving HJB equations.
Language model-powered agents have become a popular approach to querying document corpora, providing users with easy access to vast amounts of data. However, prior work on agentic search has largely overlooked the problem of exhaustive search: identifying every relevant answer within a large-scale corpus. This setting is particularly important in high-stakes domains such as law and medicine, where failing to retrieve even a single relevant legal case or treatment option can have serious consequences. To address this gap, we introduce MExAS, a benchmark for systematically evaluating the exhaustive search capabilities of agents. MExAS introduces exhaustive search tasks over 10 corpora in fact-checking, programming, law, and medicine. Using MExAS, we evaluate the performance of frontier search agents built with the Codex and Claude Code harnesses. Our results show that all agents struggle on exhaustive search tasks, with the top performing Opus 5.5 reaching just 64.4% F1. Importantly, our analysis reveals misleading behavior, as Codex agents rarely acknowledge that their results may be incomplete even when reviewing less than 50% of the corpus. These findings underscore the limitations of existing agents in tackling exhaustive search tasks. Our codebase and data are publicly available at: https://huggingface.co/datasets/CogComp/MExAS
Test-time reinforcement learning (RL) adapts a vision-language model (VLM) to a new distribution using only unlabeled questions, typically by rewarding the answer that most of the model's samples agree on. This works on multiple-choice questions, where the prompt lists candidate answers, but often fails on open-ended ones, where the model must produce the answer itself: a correct answer the model already samples can lose the vote to a frequent mistake, and RL then reinforces the mistake. On six ImageNet and DomainNet distribution shifts, this agreement reward lowers open-ended recognition accuracy below the unadapted model on five shifts for Qwen2.5-VL-7B and on all six for InternVL3.5-8B. We instead reward each answer by combining how often it is sampled with the score of a learned judge: a LoRA adapter on the same frozen VLM that checks each candidate against the image and question. Even without test-time RL, the source-trained judge improves answer selection over majority voting on every recognition shift and VQA benchmark for both models. As an RL reward, it beats the agreement reward on all six recognition shifts and eight VQA benchmarks, including benchmarks it never saw, by 17.4 (recognition) and 9.8 (VQA) points on average for Qwen and 15.6 and 8.2 for InternVL. A judge trained once on labeled source data is thus a more reliable reward for test-time RL than agreement, and the adapted model needs no judge at inference. Code is available at https://github.com/ParsaKhani/test_time_RL.
Real-time, energy-efficient inference on edge devices is essential for graph classification across a range of applications. Hyperdimensional Computing (HDC) is a brain-inspired computing paradigm that encodes input features into low-precision, high-dimensional vectors with simple element-wise operations, making it well-suited for resource-constrained edge platforms. Recent work enhances HDC accuracy for graph classification via Nyström kernel approximations. Existing FPGA implementations of Nyström-based HDC, however, primarily target small graph benchmarks and execute processing stages sequentially. This limits support for large graphs and increases end-to-end inference latency. To address these challenges, we propose StreamHD, a streaming FPGA architecture for Nyström based HDC graph classification at the edge that supports graphs exceeding on-chip storage capacity while reducing end-to-end inference latency. Implemented on an AMD Zynq UltraScale+ (ZCU104) FPGA, StreamHD achieves an average 3.1x speedup over the non-streaming implementation. Compared with optimized CPU and GPU baselines, StreamHD achieves 14.3x (8.4x) speedup and 199.7x (273.8x) better energy efficiency, respectively.