arXiv ScienceSearch

arXiv subjects

Xinrui Yang

Publications and source records attributed to Xinrui Yang.

18 recordsLinked to original sources

LeanGRPO: Eliminating Redundant Recomputation in Diffusion RL

Diffusion reinforcement learning (RL) has recently achieved significant success in post-training image and video generative models. However, most diffusion RL methods, including DanceGRPO and FlowGRPO, recompute selected timesteps with gradient tracking after rollout. Under on-policy training with the same backend for rollout and update, this recomputation is mathematically redundant. Intuitively, the rollout and policy update steps can reuse the same feed-forward backbone to avoid redundant computation, but doing so can incur a large memory overhead during rollout. To address the issue, we present LeanGRPO by restructuring the data-parallel layout and introducing two recompute-free training schedules for trajectory-logprob diffusion RL: (1) LeanGRPO-Retain enables gradient tracking during rollout and directly reuses the resulting computation graphs and saved activations for backward during update, requiring no recomputation; and (2) LeanGRPO-Reweight also enables gradients during rollout, but immediately backpropagates each selected step using a provisional advantage and delays gradient synchronization, then corrects the provisional gradients with the true advantage after the trajectory is completed. These schedules target different model scales and input sizes. Across FlowGRPO/DanceGRPO with FLUX.1-dev and Wan, LeanGRPO achieves up to 1.83x end-to-end speedup while preserving the original optimization objective.

cs.LG

BCIJelly: An integrated ecosystem for brain-computer interface research

Brain-computer interface (BCI) research relies on multistage computational pipelines, yet progress remains constrained by fragmented data formats, heterogeneous decoder implementations and hardware-specific deployment toolchains, and researchers lack an integrated workflow. Here, we fill this gap with BCIJelly, a unified computational ecosystem that integrates 18 curated BCI datasets, 15 benchmark decoders and an algorithmic library of 80 reusable modules, an automated architecture search (AAS) procedure, and hardware-aware deployment through the toChip pipeline within a single Python framework. AAS constructs task-specific decoders without manual architecture design. It is further extended into a closed-loop mode guided by a large language model (LLM), which uses task specifications, module descriptions and search history to support multitask and cross-species decoding. The toChip pipeline compiles trained decoders for execution on neuromorphic chips, enabling energy-efficient deployment for BCI systems. An accompanying visualization software provides a graphical interface to the full workflow, making BCIJelly accessible without programming. We validate BCIJelly across five BCI paradigms (motor, visual, speech, emotion and auditory) with recordings from humans, macaques and mice, and single-task, multitask and cross-species decoding settings. BCIJelly establishes a unified and extensible infrastructure that bridges decoder development and hardware-aware deployment for BCI research.

cs.HC

Tunneling phase diagram: A machine-learning framework for multidimensional kinetic isotope effects

The kinetic isotope effect (KIE) is the conventional probe for quantum tunneling, yet its composite nature conflates tunneling with zero-point energy and classical kinetics. Here, we introduce the tunneling phase diagram, a machine-learning framework that decouples true tunneling strength by decoding the nonlinear relationship between KIE and the tunneling factor (\k{appa}). With exceptional fidelity (R^2 > 0.98, RMSE = 0.21), this framework reveals an anomalous high KIE-low \k{appa} spanning 300-600 K, thereby defining a paradigm for the quantitative assessment of quantum tunneling.

quant-ph

LLM-Driven Kernel Evolution: Automating Driver Updates in Linux

Linux kernel evolution breaks drivers through API/ABI changes, semantic shifts, and security-hardening updates. We introduce DRIVEBENCH, an executable corpus of kernel$\rightarrow$driver co-evolution cases, and AUTODRIVER, a closed-loop, LLM-driven system for automating driver maintenance. The system integrates prompt engineering, multi-agent collaboration, static analysis, and iterative validation to ensure that generated patches are not only syntactically correct but also functionally and semantically consistent with kernel conventions. The corpus spans v5.10-v6.10 with 235 validated cases drawn from 612 candidates. In evaluation across 55 cases, AUTODRIVER achieves 56.4% compilation success; QEMU-based boot verification indicates that compiled patches preserve driver initialization in most instances. By releasing DRIVEBENCH and tooling, we enable reproducible research and a practical route to continuous, safe co-evolution of drivers with the Linux kernel.

cs.SE

MInCo: Mitigating Information Conflicts in Distracted Visual Model-based Reinforcement Learning

Existing visual model-based reinforcement learning (MBRL) algorithms with observation reconstruction often suffer from information conflicts, making it difficult to learn compact representations and hence result in less robust policies, especially in the presence of task-irrelevant visual distractions. In this paper, we first reveal that the information conflicts in current visual MBRL algorithms stem from visual representation learning and latent dynamics modeling with an information-theoretic perspective. Based on this finding, we present a new algorithm to resolve information conflicts for visual MBRL, named MInCo, which mitigates information conflicts by leveraging negative-free contrastive learning, aiding in learning invariant representation and robust policies despite noisy observations. To prevent the dominance of visual representation learning, we introduce time-varying reweighting to bias the learning towards dynamics modeling as training proceeds. We evaluate our method on several robotic control tasks with dynamic background distractions. Our experiments demonstrate that MInCo learns invariant representations against background noise and consistently outperforms current state-of-the-art visual MBRL methods. Code is available at https://github.com/ShiguangSun/minco.

cs.LG

Double Layer-Interlocked Crystals of Nitrogen-Rich Compounds under Zero-Pressure Conditions

Stabilizing nitrogen-rich compound crystals under conventional conditions is a key issue in the development and application of high-energy density materials (HEDMs). Herein, a two-dimensional double-layer interlocked Li4(N5)2 nitrogen-rich compound crystals, in which the two N5 rings are locked to by sharing four Li atoms, was found to maintain structural stability at zero pressure conditions. Dynamics studies reliably confirm crystal stability below 250 K. Furthermore, the stability of Li4(N5)2 crystal mainly arises from the ionic interaction between Li atoms and N5 rings, formed by the charge transfer from Li atoms to N5 rings. This study highlights the feasibility of stabilizing nitrogen-rich compound crystals under conventional conditions, paving the way for atomic level advancements in HEDMs.

cond-mat.mtrl-sci

Dual-Path Mechanism of Amino Acid Racemization Mediated by Quantum Mechanical Tunneling

The racemization of amino acids constitutes one of the most elemental and critical reactions, holding primitive significance for understanding the life's origin and maintenance. Nevertheless, its mechanism at the atomic level has been persistently misunderstood for more than a century. In this work, we demonstrate that the racemization of amino acid molecules in aqueous environments can occur simultaneously by two pathways via the carboxyl (COOH) and amino (NH2) groups. Behind this result, the quantum mechanical tunneling (QMT) effect plays a pivotal role, as evidenced by the tunneling hindrance of the NH2 reaction and the tunneling enhancement of the COOH reaction. Notably, the disparity in the QMT effect leads to a crossover between the COOH and NH2 reactions within 200-257 K, such that NH2 reactions dominate at high temperatures and COOH reactions dominate at low temperatures. Our work emphasizes the significance of QMT effect in the racemization of amino acids and therefore introduces a dual-path coexistence mechanism, offering valuable insights into the origin of homochirality in extreme environments of the early Earth.

physics.chem-ph

Grounded Answers for Multi-agent Decision-making Problem through Generative World Model

Recent progress in generative models has stimulated significant innovations in many fields, such as image generation and chatbots. Despite their success, these models often produce sketchy and misleading solutions for complex multi-agent decision-making problems because they miss the trial-and-error experience and reasoning as humans. To address this limitation, we explore a paradigm that integrates a language-guided simulator into the multi-agent reinforcement learning pipeline to enhance the generated answer. The simulator is a world model that separately learns dynamics and reward, where the dynamics model comprises an image tokenizer as well as a causal transformer to generate interaction transitions autoregressively, and the reward model is a bidirectional transformer learned by maximizing the likelihood of trajectories in the expert demonstrations under language guidance. Given an image of the current state and the task description, we use the world model to train the joint policy and produce the image sequence as the answer by running the converged policy on the dynamics model. The empirical results demonstrate that this framework can improve the answers for multi-agent decision-making problems by showing superior performance on the training and unseen tasks of the StarCraft Multi-Agent Challenge benchmark. In particular, it can generate consistent interaction sequences and explainable reward functions at interaction states, opening the path for training generative models of the future.

cs.AI

Batch-Instructed Gradient for Prompt Evolution:Systematic Prompt Optimization for Enhanced Text-to-Image Synthesis

Text-to-image models have shown remarkable progress in generating high-quality images from user-provided prompts. Despite this, the quality of these images varies due to the models' sensitivity to human language nuances. With advancements in large language models, there are new opportunities to enhance prompt design for image generation tasks. Existing research primarily focuses on optimizing prompts for direct interaction, while less attention is given to scenarios involving intermediary agents, like the Stable Diffusion model. This study proposes a Multi-Agent framework to optimize input prompts for text-to-image generation models. Central to this framework is a prompt generation mechanism that refines initial queries using dynamic instructions, which evolve through iterative performance feedback. High-quality prompts are then fed into a state-of-the-art text-to-image model. A professional prompts database serves as a benchmark to guide the instruction modifier towards generating high-caliber prompts. A scoring system evaluates the generated images, and an LLM generates new instructions based on calculated gradients. This iterative process is managed by the Upper Confidence Bound (UCB) algorithm and assessed using the Human Preference Score version 2 (HPS v2). Preliminary ablation studies highlight the effectiveness of various system components and suggest areas for future improvements.

cs.AI

Imagine, Initialize, and Explore: An Effective Exploration Method in Multi-Agent Reinforcement Learning

Effective exploration is crucial to discovering optimal strategies for multi-agent reinforcement learning (MARL) in complex coordination tasks. Existing methods mainly utilize intrinsic rewards to enable committed exploration or use role-based learning for decomposing joint action spaces instead of directly conducting a collective search in the entire action-observation space. However, they often face challenges obtaining specific joint action sequences to reach successful states in long-horizon tasks. To address this limitation, we propose Imagine, Initialize, and Explore (IIE), a novel method that offers a promising solution for efficient multi-agent exploration in complex scenarios. IIE employs a transformer model to imagine how the agents reach a critical state that can influence each other's transition functions. Then, we initialize the environment at this state using a simulator before the exploration phase. We formulate the imagination as a sequence modeling problem, where the states, observations, prompts, actions, and rewards are predicted autoregressively. The prompt consists of timestep-to-go, return-to-go, influence value, and one-shot demonstration, specifying the desired state and trajectory as well as guiding the action generation. By initializing agents at the critical states, IIE significantly increases the likelihood of discovering potentially important under-explored regions. Despite its simplicity, empirical results demonstrate that our method outperforms multi-agent exploration baselines on the StarCraft Multi-Agent Challenge (SMAC) and SMACv2 environments. Particularly, IIE shows improved performance in the sparse-reward SMAC tasks and produces more effective curricula over the initialized states than other generative methods, such as CVAE-GAN and diffusion models.

cs.LG

High-energy nitrogen rings stabilized by superatom properties

How to stabilize nitrogen-rich high-energy-density molecules under conventional conditions is particularly important for the energy storage and conversion of such systems and has attracted extensive attention. In this work, our theoretical study showed for the first time that the stabilization mechanism of the nitrogen ring conformed to the superatomic properties at the atomic level. This result occurred because the stabilized anionic nitrogen rings generally showed planar high symmetry and the injected electrons occupied the superatomic molecular orbitals (SAMOs) of the nitrogen rings. According to these results, we identified the typical stabilized anionic nitrogen ring structures N64-, N5- and N42-, and their superatomic electronic configurations were 1S21P41D41F22S21P21F21D42P41G41F4, 1S21P41D41P22S21F41D42P4 and 1S21P41D21P21D22S22P41D4, respectively. On this basis, we further designed a pathway to stabilize nitrogen rings by introducing metal atoms as electron donors to form neutral ThN6, LiN5 and MgN4 structures, thereby replacing the anionization of systems. Our study highlights the importance of developing nitrogen-rich energetic materials from the perspective of superatoms.

physics.chem-ph

Sequential Flipping: A Donor-Acceptor Exchange Mechanism in Water Trimer

The donor-acceptor exchange (DAE) is a significant hydrogen bond network rearrangement (HBNR) mechanism because it can lead to the change of hydrogen bond direction. In this work, we report a new DAE mechanism found in water trimer that is realized by sequential flipping (SF) of all molecules rather than the well-known proton transfer (PT) process. Meanwhile, the SF process has a much smaller potential barrier (0.262 eV) than the previously predicted collective rotation process (about 1.7 eV), implying that SF process is a main flipping process that can lead to DAE. Importantly, high-precision ab initio calculations show that SF-DAE can make the water ring to show a clear chiral difference from PT-DAE, which brings the prospect of distinguishing the two confusing processes based on circular dichroism spectra. The reaction rate analysis including the quantum tunneling indicates an obvious temperature-dependent competitive relationship between SF and PT processes, specifically, the SF process dominates above 65 K, while the PT process dominates below 65 K. Therefore, in most cases, the contribution for DAE mainly comes from the flipping process, rather than the PT process as previously thought. Our work enriches the understanding of the DAE mechanism in water trimer and provides a piece of the jigsaw that has been sought to the HBNR mechanism.

physics.chem-ph

Paradoxical constitutive law between donor O-H bond length and its stretching frequency in water dimer

The constitutive laws of hydrogen bonds (H-bonds) are central to understanding microphysical processes not precisely observed, especially in terms of structural properties. Previous experiences in water H-bonding revealed that as the intermolecular O...O distance shortens, the O-H stretching frequency redshifts; thus, an elongated O-H bond length can be empirically inferred, which is described as the constitutive law under the cooperative effect. Here, using the high-precision CCSD(T) method, we report a violation of the conventional constitutive law in water dimer. That is, when the variation in the O...O distance changes from stretching by 0.06 to contracting by -0.15 angstrom compared to the equilibrium position, the donor O-H bond length decreases from 0.9724 to 0.9717 angstrom, and the O-H stretching frequency redshifts from 3715 to 3708 cm-1. Our work highlights that the O-H bond length decreases simultaneously with its stretching frequency, which is clearly inconsistent with the previously recognized constitutive law.

physics.chem-ph

The generality of uncooperative and cooperative effects in elementary hydrogen-bonded systems

The cooperative effect plays a significant role in understanding the intermolecular donor-acceptor interactions of hydrogen bonds (H-bonds, D-H...A). Herein, using the benchmark method of high-precision ab initio, the well-known cooperative effect is reproduced in elementary H-bonded systems with different D and A atoms. That is, with the decreasing of intermolecular distance, the D-H bond length first increases and then decreases, while the H...A bond length decreases. On the contrary, when D and A are the same, as the intermolecular distance decreases, the D-H bond length decreases without increasing, which is referred to as the uncooperative effect. Further analyses conclude that compared to cooperative H-bonded systems, uncooperative systems at their respective equilibrium position have a larger core-valence bifurcation (CVB) index (>0.022) and lower binding energies (<0.25 eV), showing a clear linear inverse relationship related to H-bond strength. Therefore, the intermolecular non-H-bonding interactions are predicted to reflect the uncooperative characteristics, which is confirmed by high-precision ab initio calculations. These findings provide a direction for the comprehensive understanding of H-bonds.

physics.chem-ph

Quantum tunnelling in hydrogen atom transfer brings uncertainty to polymer degradation

The low degradability of common polymers composed of light elements, results in a serious impact on the environment, which has become an urgent problem to be solved. As the reverse process of monomer polymerization, what deviates degradation from the idealized sequential depolymerization process, thereby bringing strange degradation products or even hindering further degradation? This is a key issue at the atomic level that must be addressed. Herein, we reveal that hydrogen atom transfer (HAT) during degradation, which is usually attributed to the thermal effect, unexpectedly exhibits a strong high-temperature tunnelling effect. This gives a possible answer to the above question. High-precision first-principles calculations show that, in various possible HAT pathways, lower energy barrier and stronger tunnelling effect make the HAT reaction related to the active end of the polymer occur more easily. In particular, although the energy barrier of the HAT reaction is only of 0.01 magnitude different from depolymerization, the tunnelling probability of the former can be 14~32 orders of magnitude greater than that of the latter. Furthermore, chain scission following HAT will lead to a variety of products other than monomers. Our work highlights that quantum tunnelling may be an important source of uncertainty in degradation and will provide a direction for regulating the polymer degradation process.

physics.app-ph

Quantum resonant tunnelling enhances hydrogen bond rotation of confined water

Many studies have revealed that confined water chain flipping is closely related to the spatial size and even quantum effects of the confinement environment. Here, we show that these are not the only factors that affect the flipping process of a confined water chain. First-principles calculations and analyses confirm that quantum tunnelling effects from the water chain itself, especially resonant tunnelling, enhance the hydrogen bond rotation process. Importantly, resonant tunnelling can result in tunnelling rotation of hydrogen bonds with a probability close to 1 with only 0.597 eV provided energy. Compared to sequential tunnelling, resonant tunnelling dominants water chain flipping at temperatures up to 20 K higher. Additionally, the ratio of the resonant tunnelling probability to the thermal disturbance probability at 200 K is at least ten times larger than that of sequential tunnelling, which further illustrates the enhancement of hydrogen bond rotation brought about by resonant tunnelling.

physics.bio-ph

A short-range metastable defect in the double layer ice

Although the phase of water has extensively investigated whether there exists a defect distorting only locally the structure still under debate. Here we report a localized 5775 defect phase presented in the double layer ice on the Au (111) surface, which is a metastable structure with 5- and 7-membered rings compared with a perfect hexagonal one. Without altering the total number of the hydrogen bonds of the ice, the defect only introduces 0.08 Å molecular displacement and 3.27% interaction energy change outside the defected area. Such defect also exists without Au support but causes a larger lattice relaxation or smaller interaction energy change. The excessively high barrier as well as the low quantum tunneling and thermodynamic probabilities hinder the formation of the defect by post-grown isomerization from the perfect to the defected structure. This finding indicates that the defected ice is stable, and the defect can be formed during the ice growth stage.

cond-mat.mtrl-sci

Unidirectional Oriented Water Wire in Short Nanotube

The orientation of water molecules is the key factor for the fast transport of water in small nanotubes. It has been accepted that the bidirectional water burst in short nanotubes can be transformed into unidirectional transport when the orientation of water molecules is maintained in long nanotubes under the external field. In this work, based on molecular dynamics simulations and first-principles calculations, we showed without external field, it only needs 21 water molecules to maintain the unidirectional single file water intrinsically in carbon nanotube at seconds. Detailed analysis indicates that the surprising result comes from the step by step process for the flip of water chain, which is different with the perceived concerted mechanism. Considering the thickness of cell membrane (normally 5-10 nm) is larger than the length threshold of the unidirectional water wire, this study suggests it may not need the external field to maintain the unidirectional flow in the water channel at the macroscopic timescale.

physics.comp-ph