Deep Learning
Generalization and Scaling Laws for Mixture-of-Experts Transformers
Mixture-of-Experts (MoE) Transformers enable conditional computation: for each token, only a small subset of experts is activated, so the number of active parameters per input is much smaller than the total number of parameters in the model. This yields a practical advantage: compute scales primarily with the number of active experts, while the full expert pool still provides substantial capacity for specialization. Despite striking empirical gains, a theory that cleanly separates the benefits of active capacity from the overheads induced by routing has been missing. In particular, existing scaling laws for dense models track error as a function of total parameters, dataset size, and compute, whereas MoE models require a more refined accounting: (i) approximation should scale with the active parameter budget rather than the total parameter count; (ii) generalization should reflect the multiplicity of routing patterns; and (iii) computeoptimal training should couple data and active capacity rather than data and total parameters. In this work, we develop approximation and uniform generalization results for MoETransformers that make these distinctions explicit. Classical bounds indexed by the ambient dimension D predict unrealistically slow rates for high-dimensional inputs, whereas empirical scaling for Transformers is much faster. A growing body of theory and evidence shows that when data concentrate on a d-dimensional manifold, both approximation and estimation rates and hence the resulting scaling exponents are governed by the intrinsic dimension d rather than D. Recent work (Havrilla & Liao, 2024) develops approximation and statistical theories for Transformers on intrinsically low-dimensional data, deriving data-and model-scaling exponents that depend explicitly on d and validating these predictions on language-modeling benchmarks. Motivated by these results, we adopt d as the geometric control parameter throughout: it aligns the theory more closely with practice, explains faster-than-1/D behavior, and yields MoE scaling predictions that are sensitive to data geometry.
Multi-Objective Protein Optimization via Modular Diffusion Steering
Roketlishvili, Meir, Huber, Felix, Chu, Wenda, Yue, Yisong, Astudillo, Raul
Protein engineering often requires improving several properties simultaneously, motivating the search for high-performing sequences that represent useful fitness tradeoffs. Discovering these sequences is challenging because the design space is combinatorially large and experimental campaigns often permit only a few rounds of batched measurements. We introduce \textit{MODS}, a modular framework for multi-objective protein optimization via inference-time diffusion steering. For each proposal, MODS samples augmented Chebyshev scalarization weights and a fitness-surrogate ensemble member to define a scalar steering reward. Varying the weights directs generation toward different objective tradeoffs, while varying ensemble members diversifies the predictions used for guidance. Because MODS expresses multi-objective acquisition through scalar rewards, it can be paired with different diffusion models and compatible steering procedures. After each evaluation batch, MODS updates the surrogates without retraining the generative model. We evaluate MODS on six protein optimization tasks using predictive oracles trained on experimental assay data, with two diffusion models and two steering procedures. MODS achieves competitive final hypervolume across all six tasks with both diffusion models, and substantially outperforms the best evaluated baseline on several tasks. Our results demonstrate a flexible and effective approach to multi-objective protein optimization with limited feedback.
SCOPE-RL: Stable and Quantitative Control of Policy Entropy in RL Post-Training
Wang, Chen, Li, Zhaochun, Bai, Jionghao, Deng, Hexuan, Dong, Guanting, Lan, Ge, Wang, Yue
Reinforcement learning (RL) is a key paradigm for post-training large language models (LLMs), but the widely used Group Relative Policy Optimization (GRPO) often suffers from entropy collapse: exploration quickly disappears, policies converge prematurely, and sample diversity declines, ultimately harming training effectiveness. Existing remedies, including entropy bonuses and clip-based methods, rarely keep entropy within a stable exploration regime and often introduce oscillatory entropy or reward degradation. In this work, we identify a previously overlooked asymmetry in entropy dynamics: under high-temperature sampling, positive and negative samples have opposite effects on policy entropy. Specifically, high-temperature positive samples promote entropy growth, whereas negative samples suppress it. We provide a qualitative theoretical explanation for this phenomenon: when entropy decreases during policy updates, its derivative with respect to temperature is strictly positive under positive sample updates, indicating that high-temperature positive samples can counteract entropy decay, thereby slowing entropy collapse and potentially reversing it. Motivated by this insight, we propose SCOPE-RL, a stable entropy control framework through a regularization term constructed from temperature-adaptive positive samples. Extensive experiments show that SCOPE-RL consistently outperforms strong RL baselines on both Pass@1 and Pass@k. Our results provide evidence that escaping entropy collapse can improve reasoning performance, while our quantitative empirical analysis further reveals a non-monotonic entropy-performance relationship, with an optimal level of exploration for RL post-training in reasoning LLMs.
Attention-based Classification for Indirect Prompt Injection
Indirect prompt injection (IPI) attacks, in which adversarial instructions are embedded in external data processed by a language model, pose a significant threat to the integrity of deployed LLM agents. Attention Tracker (Hung et al., 2025) is a recently proposed white-box detection method that identifies prompt injection attacks by monitoring how a model's attention is distributed between user task tokens and data tokens, claiming dataset-agnostic detection via a scalar focus score threshold. In this paper, we provide the first evaluation of Attention Tracker in a realistic agentic IPI setting using the AgentDojo benchmark, finding that the dataset agnosticism claim does not hold. We find that in agentic environments, long structured tool outputs subvert the fundamental assumptions Attention Tracker makes about attention that the method depends on and produces near-chance detection on AgentDojo across most model families. We propose AttnDA, an extension replacing the scalar threshold with a Fisher Linear Discriminant Analysis classifier over the per-head focus score vector, and evaluate both methods in a cross-dataset setting spanning four benchmarks. AttnDA improves detection performance across agentic and tool-integrated benchmarks, though transfer to AgentDojo remains challenging regardless of classifier choice. A covariance ablation further shows that removing inter-head correlation structure substantially contributes to performance, with complex covariance assumptions causing significant degradation on cross-domain data. These results indicate that the attentional distraction signal underlying focus-score-based detection does not transfer reliably to agentic environments, and that learned linear classifiers over head-level attention features offer improved detection performance, provided training data from the target deployment domain is available.
CanLegalRAGBench: Evaluating Retrieval-Augmented Generation on Canadian Case Law
Zhao, Ethan, Taranukhin, Maksym, Cui, Wei, Aikenhead, Moira, Shwartz, Vered
RAG-based legal assistants have been growing in popularity, but LLM hallucinations remain a key issue and potentially undermines justice. While benchmarks have been developed to evaluate progress, many rely on synthetic queries rather than realistic legal scenarios. Moreover, Canadian law remains underrepresented in existing evaluations. To address this gap, we introduce CanLegalRAGBench, a Canadian legal QA benchmark based on realistic queries and expert-annotated answers grounded in case law. Our evaluation shows that retrieval performance is sensitive to design choices and that open-source embedding models are competitive with closed source models. However, it also reveals the limitation of automatic evaluations that penalize systems for retrieving alternative relevant documents. We also find that generated answers often diverge from gold responses, either with hallucinations or by producing overly detailed or irrelevant content, with 8-29% of claims not being supported by the retrieved documents. We hope this benchmark will help drive continued progress in addressing limitations of legal RAG systems.
Group Perspective Matters: Regulating Debate Relationships Can Mitigate Blind Conformity in Multi-Agent Debate
Wu, Hao, Song, Shoucheng, Yao, Chang, Wan, Huaiyu, Lin, Youfang, Lv, Kai
Multi-Agent Debate (MAD) improves the reasoning performance of Large Language Models (LLMs) through multi-round interaction. However, LLMs in MAD are highly susceptible to blind conformity. Existing individual evaluation methods, typically based on confidence or perplexity, fail to reflect the correctness of reasoning and may even exacerbate blind conformity. To address this, we shift the perspective from individual evaluation to group interaction. We define mutual referencing among LLMs as \textbf{Debate Relationships} and recognize that regulating these relationships is the key to mitigating blind conformity. In this paper, we propose a novel framework for \textbf{D}ynamically r\textbf{E}gulating deb\textbf{A}te \textbf{R}elationships (DEAR) from the group perspective. At first, DEAR quantifies consensus and divergence as \textit{group evidence} to capture the debate state. Then, DEAR operates through three stages: 1) What: perceiving group consultation tendency and uncertainty; 2) Who: introducing a Selection RL-Agent to dynamically select reference peers; and 3) How: adopting a Behavior RL-Agent to adaptively adjust generation behaviors. Notably, we formulate the execution of the two RL-Agents as a sequential decision-making process, jointly optimizing via multi-agent reinforcement learning. Extensive experiments demonstrate that DEAR achieves superior performance while significantly reducing token consumption.
How Does Orthogonalization Adapt to the Neural Network Hessian Structure? A Gradient Self Outer-Product Analysis at Initialization
Deng, Shenyang, Goyal, Garvit, Pang, Tianyu, Yu, Shuhua, Yang, Yaoqing
Muon orthogonalizes a weight matrix's momentum before each step, and on neural networks this simple preconditioner beats AdamW in a wide range of tasks. Existing analyses explain Muon within general optimization frameworks or on a few specific models, and many of them view orthogonalization as a preconditioner. Since the Hessian is the optimal preconditioner under a quadratic approximation of the loss, these works leave a basic question open: what makes orthogonalization suited to the Hessian of a neural network? Prior work shows that the layer-wise Hessian of a neural network is row-block diagonally dominant, and Muon's implicit preconditioner, the Kronecker product $(\mathbf{V}\mathbf{V}^\top)^{1/2}\otimes\mathbf{I}$ with $\mathbf{V}$ the momentum, has the same row-block structure exactly when $\mathbf{V}\mathbf{V}^\top$ is diagonally dominant. Diagonal dominance of $\mathbf{V}\mathbf{V}^\top$ has been observed in language models, but why a neural network produces it has not been explained. This work provides a quantitative asymptotic theory for neural networks at initialization, and points out the intuition that the overparameterization of the weight matrices drives the diagonal dominance. We analyze $\mathbb{E}[\mathbf{G}\mathbf{G}^\top]$, which equals $\mathbb{E}[\mathbf{V}\mathbf{V}^\top]$ at initialization, in four canonical models: symmetric matrix factorization, deep linear networks, two-layer ReLU networks, and single-layer linear attention. In each case the diagonal entries outgrow the off-diagonal ones at explicit rates as the hidden dimensions grow; for the query, key and value weights of attention the off-diagonal vanishes altogether. Simulations of the four models and experiments on language models at initialization confirm the predicted scaling.
An auditable conditional-strategy framework for open-ended decision-making in complex lung cancer
Wang, Daoyun, Huang, Zhicheng, Sun, Huaiyuan, Xu, Jiaqi, Xu, Xiaowei, Zheng, Zhibo, Bing, Zhongxing, Lin, Yuxiao, Liang, Yicheng, Gao, Chao, Xue, Bowen, Zhang, Kai, Xu, Song, Yan, Wanpu, Xia, Hui, Li, Lin, Yan, Xiang, Hu, Mu, Ma, Qianli, Xue, Zhiqiang, Liu, Xiaofang, Han, Zhihai, Zhang, Nan, Tang, Chuanhao, Zhang, Tongmei, Song, Lan, Zhu, Zhaohui, Zeng, Xuan, Wu, Shafei, Guan, Hui, Deng, Lei, Yang, Huaxia, Lian, Zeliang, Sun, Wubin, Wang, Yongxin, Shen, Xiaohui, Wang, Binlin, Gu, Tiantian, Cui, Yu, Zhang, Li, Wang, Shirui, Liang, Naixin
Complex lung cancer decisions can involve several defensible pathways whose eligibility, sequencing and safety depend on unresolved information. Effective support must make explicit how patient conditions govern pathway eligibility, deferral and redirection. MedGPT Clinical Explorer (MCE) organizes alternatives, decision-changing unknowns, safety constraints and fallback into a conditional strategy for clinician review. To evaluate this representation in physician-authored strategies, multidisciplinary experts established case-specific references for 40 cases within a purposive 100-case corpus, and 250 physicians from 98 institutions produced 2,250 strategies under unaided, retrieval-reference and MCE-assisted conditions. MCE-assisted strategies expressed more applicable clinical requirements, measured by the Admissible Pathway Attainment Score (APAS; 0-100), than unaided strategies (adjusted difference, 12.87; 95% CI, 11.18-14.55) and retrieval-reference strategies (5.22; 3.52-6.93). With the same knowledge base available in the retrieval-reference and MCE-assisted conditions, the additional content centered on candidate pathways, decision-critical information and safety constraints. Physicians' whole-strategy acceptability judgments correlated with APAS (Spearman's rho = 0.671), while a complementary relationship audit assessed whether candidates, conditions and subsequent actions were coherently connected. Together, these findings identify two complementary dimensions of open-ended decision support: coverage of clinically relevant content and coherent links among pathways, conditions and subsequent actions. MCE provides a shared decision object that makes consequential omissions and pathway contingencies visible before action; prospective studies should evaluate its effects on clinical workflow and patient outcomes.
Behavior Beyond Text: Evaluating Refusal Transfer Failure in LLM Agents
Gupta, Ekagra, Saha, Raj, Inyang, Aniekan-Abasi, Gharib, Adam Al
While large language models are increasingly deployed as tool-calling agents, their safety evaluations still focus primarily on their ability to refuse harmful requests in text. We investigate whether the refusal behavior in text transfers to tool use. We construct a benchmark of 2,304 prompts across four domains, consisting of matched triplets that present the same harmful or benign request in text-only, standard tool-enabled, and adversarially framed tool-enabled settings. We then assess tool-call safety using 20 predefined forbidden actions. Testing five models of varying sizes and families, we find that requests refused in text frequently result in unsafe tool calls. Under standard tool-enabled prompting, this divergence occurs for 10-52 percent of harmful requests refused in chat. To mechanistically investigate this gap, we identify a refusal-associated direction in the residual stream of each of the five models. We find that in tool-enabled contexts, the activations along this direction decrease in four of five models. Furthermore, lower activation predicts unsafe tool calls across all five models (AUC 0.76-0.86). However, restoring the signal to the respective text-only value through activation patching only prevents a subset of unsafe calls, primarily by suppressing tool use rather than by producing safer calls. Steering along the refusal direction nearly eliminates unsafe calls only at strengths that also suppress benign tool use or degrade the output quality. Our findings indicate that the identified refusal direction contributes to whether a model acts, but only partially explains the refusal divergence. Therefore, evaluating the safety of tool-calling agents requires directly examining their actions along with their textual responses.
HealthMamba: An Uncertainty-aware Spatiotemporal Graph State Space Model for Effective and Reliable Healthcare Facility Visit Prediction
Yu, Dahai, Jiang, Lin, Xu, Rongchao, Wang, Guang
Recent studies on have made progress by using statistical methods [Alghamdi et al., 2019], deep learning methHealthcare facility visit prediction is essential forods [Zhong et al., 2026], and hybrid approaches [Jiang et al., optimizing healthcare resource allocation and in-2025a; Xu et al., 2025; Xiao and Liu, 2025]. First, prior studmachine learning methods being employed for better prediction performance, existing works usuies predominantly focus on aggregated visit prediction, overlooking fine-grained healthcare facility types such as ambulaally formulate this task as a time-series forecast-tory clinics, hospitals, nursing facilities, and social assistance ing problem without considering the intrinsic spa-providers. Second, most existing work formulates healthtial dependencies of different types of healthcarecare facility visit prediction as a purely time-series forecastfacilities, and they also fail to provide reliable pre-ing problem, neglecting spatial dependencies that could prodictions under abnormal situations such as pub-vide critical information for accurate prediction. To advance existing research, state-of-the-art approaches fail to deliver reliable predictions we propose HealthMamba, an uncertainty-awareunder public health emergencies and extreme weather events, spatiotemporal framework for accurate and reli-such as the COVID-19 pandemic and hurricanes. HealthMamba comprises three key components: (i) a Hence, in this paper, we aim to develop an uncertaintyUnified Spatiotemporal Context Encoder that fuses aware spatiotemporal framework for type-specific healthcare heterogeneous static and dynamic information, (ii) facility visit prediction that explicitly models spatial dependencies while providing reliable uncertainty estimates. Howa novel Graph State Space Model called Graph-ever, there are two key challenges to achieving this.