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.
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.
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.
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.
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
Train-inference mismatch is a well-known problem that degrades reinforcement learning with verifiable rewards (RLVR) performance. This problem is currently framed as training the trainer with samples coming from an imperfect version of itself: a sampler optimized to meet some efficiency criteria. Therefore, current RLVR algorithms are designed to account for the discrepancy in the trainer's gradient due to the sampler's off-policy rollouts. In this paper, we reframe the problem: we argue that RLVR should strive to train the sampler, since it is the sampler's performance at test time that we ultimately care about. Therefore, we view the trainer merely as a mechanism to get an approximation of the sampler's true gradient. We propose Sampler Replay, an algorithm that replays the sampler's hidden states, logits, and routing decisions in the trainer's forward pass to better approximate the sampler's gradient. Across tasks and model scales, we show that Sampler Replay stabilizes training under severe train-inference mismatch induced by quantization (weights, activations, KV cache), weight perturbation, and staleness, outperforming strong baselines. Furthermore, we show that Sampler Replay is a generalization of techniques that have been widely used in the literature to address TIM but that, so far, have been treated independently. Notably, we mathematically prove that Score Centering is a special case of Sampler Replay, where only the logits are replayed.
If AI destabilises cybersecurity, it is important to understand the dynamics of the processes by which vulnerabilities are detected and fixed. Using the history of the Linux kernel, this paper measures the size of fixes, the rate at which code of a given age is found to need fixing, and how that rate changed in 2026 as AI tools came into wide use. From 2018 to 2025 the process was stable. Fixes were small, and no larger for bugs that had taken years to find; the expected number of follow-up fixes rose with the size s of a commit as s^γ with γ0.7; follow-ups accumulated in proportion to the logarithm of elapsed time; and the rate at which code of each age attracted fixes was nearly constant. From about the start of 2026 that rate rose for all code more than six months old, in earlier fixes and ordinary code alike, by a factor of about three within nine months after allowing for more complete recording. The rise was greatest for older code, and extended to the kernel's most scrutinised subsystems. A branching-process and queueing model shows that if this multiplier were sustained the five-year re-fix ratio would nearly double, to about 0.17, and remediation demand would be about two and a half times its historical level. The model also gives the conditions for the re-fix process to become self-perpetuating, and shows that demand becomes severe well before that point is reached.
Neural systems comprise units with varying intrinsic timescales, but how this heterogeneity contributes to temporal computation and interacts with recurrent dynamics is not fully resolved. We show that intrinsic heterogeneity provides a richer temporal basis for a readout; however, in our temporal tasks, recurrence can largely reduce this advantage as diverse effective dynamics emerge. By fixing the recurrent graph, its weights, and the set of intrinsic timescales while varying only their assignment across nodes, we find that placement systematically changes the effective temporal repertoire. While degree and strength effects are topology dependent, alignment with slow recurrent modes shows more consistent effects across the tested topology families, indicating slow recurrent structure as a more general organizing coordinate. These dynamical effects also influence function: under fixed recurrent connectivity, slow mode alignment improves temporal computation in the tested tasks and topology families, with generally larger benefits at greater temporal demand, and serves as an inductive bias when recurrence is trainable. Finally, we examine a corresponding association in human cortical activity. Empirical magnetoencephalography (MEG) activity timescales are positively associated with slow modes of the structural connectome, and their observed spatial ordering produces a broader effective temporal repertoire than spatially rotated alternatives when imposed as model time constants. Taken together, these results suggest that placement relative to slow recurrent structure is an organizing factor in how intrinsic timescale heterogeneity contributes to network dynamics, computation, and learning.
Accurate histopathological image classification remains challenging due to substantial morphological and structural variability across cancer types. While Vision Transformers (ViTs) capture global visual information through self-attention, they do not explicitly represent the topological organization of tissue structures. We propose ABD-TDA, a deep and topological feature fusion framework that combines transformer-based visual features with complementary topological descriptors. A pretrained ViT extracts a 768-dimensional visual representation, while a dedicated topological branch processes 1,200 Betti-0 and Betti-1 features derived from RGB and HSV color spaces. The resulting 64-dimensional topological representation is fused with the ViT features for classification. We evaluate ABD-TDA on the ICIAR2018 breast cancer and UT-Osteosarcoma bone cancer datasets, containing four and three classes, respectively. The framework achieves 94.10\% and 96.54\% accuracy, with macro-AUC scores of 99.42\% and 99.65\%, respectively. Ablation results show consistent improvements from feature fusion, increasing accuracy from 92.67\% with ViT alone to 94.10\% on ICIAR2018 and from 94.15\% to 96.54\% on UT-Osteosarcoma. These results demonstrate that topological descriptors provide complementary structural information to transformer-based visual features, leading to more discriminative representations for histopathological cancer classification.
As large language models (LLMs) and other AI systems are integrated into institutions, their individual behaviour no longer explains what they do collectively, whether political bots influence elections or pricing algorithms tacitly collude. Norms are a key ingredient for understanding and steering the emergent behaviour of AI and human-AI collectives, but existing definitions are poorly suited to the task. As Westra et al. (2024) argue for animals, prevailing definitions presuppose a human norm psychology, including shared intentionality and advanced belief attribution. Applied to AI, this framing restricts the search to norms produced by human-like cognition and misses norm-like processes that arise through different means. We propose a cognition-agnostic, behavioural definition that looks for norms in group-level regularities rather than individual psychological capacities. Following comparative work, a regularity is normative only if it is socially maintained; we operationalise social maintenance as three measurable properties: minimal social interaction (information flow), a stake, and the means to affect that stake. We add a multiple-equilibria criterion, under which different communities under similar conditions can converge on different stable regularities; this captures the arbitrariness characteristic of norms. The definition yields three tests that can be run on any multi-agent system. We apply them to two LLM case studies and argue that current research either seeks human-like psychology in LLMs or loads stakes into agents explicitly, and so cannot reveal the stakes LLMs bring with them. We propose a two-step approach that first detects normative regularities behaviourally and then investigates the mechanisms behind them, including emulated stakes inherited through training.
World models support decision-making by predicting the consequences of actions. In sequential action-then-observation generation, however, the action remains fixed as its imagined outcome unfolds, preventing emerging visual evidence from revising that decision. To address this, we introduce the Reciprocal World Model (RecWM), which enables planning and imagination to refine each other within a rollout step. RecWM jointly generates reasoning, actions, and observations through masked discrete diffusion. To support reciprocal refinement, two-stage training first develops action-conditioned observation prediction and action inference from visual context, then learns joint generation. At inference, Reciprocal Decoding (RecD) brings these capabilities together to reassess committed actions and visual tokens under modified masks, selectively re-masking unsupported predictions for regeneration. Experiments on instruction-guided world modeling across grid-based gaming and egocentric navigation show improvements in planning, visual prediction, action-observation consistency, and reasoning grounding. Adding reciprocal checks to joint decoding raises average planning success from 70.9% to 79.1% and reduces final-frame DreamSim from 0.155 to 0.130. A paired step-level analysis further shows that triggered revisions yield a net improvement in action-observation consistency.
Adapting a pretrained denoiser to a new camera from four labeled pairs raises its mean PSNR but leaves many crops worse, and no label at deployment reveals which. Common controllers scale every correction by one shared amount, leaving harmed crops unprotected. We give each crop its own dose c, the fraction of the correction it receives. A dose harms a crop exactly when a hidden quantity, the alignment of the correction with the remaining error of the pretrained output, falls below c/2. TailDose shrinks by the tail and caps by the mean: it sets c to twice a cautious low forecast of the alignment, capped at a forecast of its mean, a plug-in of the best dose under a bound on the chance of harm. Harm then needs a forecast that is too high, so for any forecast the harmed share is at most its miss rate. Two small models, trained once on development cameras, serve all cameras and adapters. Across 20 cameras, against applying the correction everywhere, TailDose makes 13.6 times fewer crops more than 1 dB worse on low-rank adapters and 24.0 times fewer on sparse adapters, with mean-gain changes of -0.05 and +0.01 dB, neither reliably different from zero.
Text-to-audio generation has progressed rapidly toward realistic and diverse audio synthesis, yet reliable evaluation remains an open challenge. Widely used embedding-similarity metrics (e.g., CLAPScore) provide a useful signal for overall relevance but are not well-suited to fine-grained semantic alignment or compositional reasoning. To address this, we propose Dahlia, a multimodal large language model (MLLM)-based automatic evaluation metric that calibrates MLLM score distributions using embedding-based audio-caption alignment features. Specifically, Dahlia combines an Audio-to-Caption Alignment (A2C-Align) module with score distribution encoding and blending, leveraging both MLLM-based reasoning and similarity-based cross-modal evidence. Across XACLE, RELATE, and Clotho, Dahlia achieves the best SRCC among the compared metrics on all three benchmarks.
We describe our open-track entry in the Lean Refactor Arena, a general LLM agent harness for formal theorem proving and proof refactoring rather than a trained model: it applies to any Lean 4 proof (including Mathlib-based projects), and its prompts contain no proof techniques or content written for particular problems. A single open-weight LLM, Qwen3.8-Flash-Next in its FP8 release without fine-tuning, is served with vLLM on four A100 80 GB GPUs and drives one tool-calling agent per problem, while the node's CPUs compile, measure and search around it. The agent edits the reference proof through tools that compile and score it in the problem's own Lean project, and every valid proof is kept as a scored candidate. Each problem runs a discovery and then a refinement phase; long conversations are rebuilt from checkpoints, model-free passes improve the best candidate, and the final choice compiles candidates on every Lean version the problem lists. All problems run concurrently in one job that ends within the 48-hour limit, setup included (the submitted proofs took 47.8 hours from the first setup step, selection included). Self-hosting on A100 required three compatibility fixes, and the context length at which a conversation is rebuilt has a sweet spot: shorter contexts score less per request, while longer ones overflow the GPU KV cache and evict cached prefixes at 60 concurrent problems (at 80k, throughput falls from about 1,700 to 530 output tokens/s). The submitted run uses 60k with CPU KV offloading. The submitted proofs score 79.25 Combined (62.48% length reduction, 76.96% heartbeat reduction, 98.3% zero-shot), and every one is fully checked by Lean's kernel. Code: https://github.com/grenadeComing/lean-refactor-arena