Searcharxiv⌕ Search

arXiv subjects

Xiangyu Zhang

Publications and source records attributed to Xiangyu Zhang.

At least 145 records · Page 8Linked to original sources

Defending Code Language Models against Backdoor Attacks with Deceptive Cross-Entropy Loss

Code Language Models (CLMs), particularly those leveraging deep learning, have achieved significant success in code intelligence domain. However, the issue of security, particularly backdoor attacks, is often overlooked in this process. The previous research has focused on designing backdoor attacks for CLMs, but effective defenses have not been adequately addressed. In particular, existing defense methods from natural language processing, when directly applied to CLMs, are not effective enough and lack generality, working well in some models and scenarios but failing in others, thus fall short in consistently mitigating backdoor attacks. To bridge this gap, we first confirm the phenomenon of "early learning" as a general occurrence during the training of CLMs. This phenomenon refers to that a model initially focuses on the main features of training data but may become more sensitive to backdoor triggers over time, leading to overfitting and susceptibility to backdoor attacks. We then analyze that overfitting to backdoor triggers results from the use of the cross-entropy loss function, where the unboundedness of cross-entropy leads the model to increasingly concentrate on the features of the poisoned data. Based on this insight, we propose a general and effective loss function DeCE (Deceptive Cross-Entropy) by blending deceptive distributions and applying label smoothing to limit the gradient to bounded, which prevents the model from overfitting to backdoor triggers and then enhances the security of CLMs against backdoor attacks.

cs.CR↗

Step1X-3D: Towards High-Fidelity and Controllable Generation of Textured 3D Assets

While generative artificial intelligence has advanced significantly across text, image, audio, and video domains, 3D generation remains comparatively underdeveloped due to fundamental challenges such as data scarcity, algorithmic limitations, and ecosystem fragmentation. To this end, we present Step1X-3D, an open framework addressing these challenges through: (1) a rigorous data curation pipeline processing >5M assets to create a 2M high-quality dataset with standardized geometric and textural properties; (2) a two-stage 3D-native architecture combining a hybrid VAE-DiT geometry generator with an diffusion-based texture synthesis module; and (3) the full open-source release of models, training code, and adaptation modules. For geometry generation, the hybrid VAE-DiT component produces TSDF representations by employing perceiver-based latent encoding with sharp edge sampling for detail preservation. The diffusion-based texture synthesis module then ensures cross-view consistency through geometric conditioning and latent-space synchronization. Benchmark results demonstrate state-of-the-art performance that exceeds existing open-source methods, while also achieving competitive quality with proprietary solutions. Notably, the framework uniquely bridges the 2D and 3D generation paradigms by supporting direct transfer of 2D control techniques~(e.g., LoRA) to 3D synthesis. By simultaneously advancing data quality, algorithmic fidelity, and reproducibility, Step1X-3D aims to establish new standards for open research in controllable 3D asset generation.

cs.CV↗

PADriver: Towards Personalized Autonomous Driving

In this paper, we propose PADriver, a novel closed-loop framework for personalized autonomous driving (PAD). Built upon Multi-modal Large Language Model (MLLM), PADriver takes streaming frames and personalized textual prompts as inputs. It autoaggressively performs scene understanding, danger level estimation and action decision. The predicted danger level reflects the risk of the potential action and provides an explicit reference for the final action, which corresponds to the preset personalized prompt. Moreover, we construct a closed-loop benchmark named PAD-Highway based on Highway-Env simulator to comprehensively evaluate the decision performance under traffic rules. The dataset contains 250 hours videos with high-quality annotation to facilitate the development of PAD behavior analysis. Experimental results on the constructed benchmark show that PADriver outperforms state-of-the-art approaches on different evaluation metrics, and enables various driving modes.

cs.CV↗

Microlensing events indicate that super-Earth exoplanets are common in Jupiter-like orbits

Exoplanets classified as super-Earths are commonly observed on short period orbits, close to their host stars, but their abundance on wider orbits is poorly constrained. Gravitational microlensing is sensitive to exoplanets on wide orbits. We observed the microlensing event OGLE-2016-BLG-0007, which indicates an exoplanet with a planet-to-star mass ratio roughly double the Earth-Sun mass-ratio, on an orbit longer than Saturn's. We combine this event with a larger sample from a microlensing survey to determine the distribution of mass ratios for planets on wide orbits. We infer there are $\sim 0.35$ super-Earth planets per star on Jupiter-like orbits. The observations are most consistent with a bimodal distribution, with separate peaks for super-Earths and gas giants. We suggest that this reflects differences in their formation processes.

astro-ph.EP↗

Mamba in Speech: Towards an Alternative to Self-Attention

Transformer and its derivatives have achieved success in diverse tasks across computer vision, natural language processing, and speech processing. To reduce the complexity of computations within the multi-head self-attention mechanism in Transformer, Selective State Space Models (i.e., Mamba) were proposed as an alternative. Mamba exhibited its effectiveness in natural language processing and computer vision tasks, but its superiority has rarely been investigated in speech signal processing. This paper explores solutions for applying Mamba to speech processing by discussing two typical speech processing tasks: speech recognition, which requires semantic and sequential information, and speech enhancement, which focuses primarily on sequential patterns. The experimental results confirm that bidirectional Mamba (BiMamba) consistently outperforms vanilla Mamba, highlighting the advantages of a bidirectional design for speech processing. Moreover, experiments demonstrate the effectiveness of BiMamba as an alternative to the self-attention module in the Transformer model and its derivates, particularly for the semantic-aware task. The crucial technologies for transferring Mamba to speech are then summarized in ablation studies and the discussion section, offering insights for extending this research to a broader scope of tasks.

eess.AS↗

Music Tempo Estimation on Solo Instrumental Performance

Recently, automatic music transcription has made it possible to convert musical audio into accurate MIDI. However, the resulting MIDI lacks music notations such as tempo, which hinders its conversion into sheet music. In this paper, we investigate state-of-the-art tempo estimation techniques and evaluate their performance on solo instrumental music. These include temporal convolutional network (TCN) and recurrent neural network (RNN) models that are pretrained on massive of mixed vocals and instrumental music, as well as TCN models trained specifically with solo instrumental performances. Through evaluations on drum, guitar, and classical piano datasets, our TCN models with the new training scheme achieved the best performance. Our newly trained TCN model increases the Acc1 metric by 38.6% for guitar tempo estimation, compared to the pretrained TCN model with an Acc1 of 61.1%. Although our trained TCN model is twice as accurate as the pretrained TCN model in estimating classical piano tempo, its Acc1 is only 50.9%. To improve the performance of deep learning models, we investigate their combinations with various post-processing methods. These post-processing techniques effectively enhance the performance of deep learning models when they struggle to estimate the tempo of specific instruments.

eess.AS↗

Validating Network Protocol Parsers with Traceable RFC Document Interpretation

Validating the correctness of network protocol implementations is highly challenging due to the oracle and traceability problems. The former determines when a protocol implementation can be considered buggy, especially when the bugs do not cause any observable symptoms. The latter allows developers to understand how an implementation violates the protocol specification, thereby facilitating bug fixes. Unlike existing works that rarely take both problems into account, this work considers both and provides an effective solution using recent advances in large language models (LLMs). Our key observation is that network protocols are often released with structured specification documents, a.k.a. RFC documents, which can be systematically translated to formal protocol message specifications via LLMs. Such specifications, which may contain errors due to the hallucination of LLMs, are used as a quasi-oracle to validate protocol parsers, while the validation results in return gradually refine the oracle. Since the oracle is derived from the document, any bugs we find in a protocol implementation can be traced back to the document, thus addressing the traceability problem. We have extensively evaluated our approach using nine network protocols and their implementations written in C, Python, and Go. The results show that our approach outperforms the state-of-the-art and has detected 69 bugs, with 36 confirmed. The project also demonstrates the potential for fully automating software validation based on natural language specifications, a process previously considered predominantly manual due to the need to understand specification documents and derive expected outputs for test inputs.

cs.SE↗

Less is More: Towards Green Code Large Language Models via Unified Structural Pruning

The extensive application of Large Language Models (LLMs) in generative coding tasks has raised concerns due to their high computational demands and energy consumption. Unlike previous structural pruning methods designed for classification models that deal with lowdimensional classification logits, generative Code LLMs produce high-dimensional token logit sequences, making traditional pruning objectives inherently limited. Moreover, existing single component pruning approaches further constrain the effectiveness when applied to generative Code LLMs. In response, we propose Flab-Pruner, an innovative unified structural pruning method that combines vocabulary, layer, and Feed-Forward Network (FFN) pruning. This approach effectively reduces model parameters while maintaining performance. Additionally, we introduce a customized code instruction data strategy for coding tasks to enhance the performance recovery efficiency of the pruned model. Through extensive evaluations on three state-of-the-art Code LLMs across multiple generative coding tasks, the results demonstrate that Flab-Pruner retains 97% of the original performance after pruning 22% of the parameters and achieves the same or even better performance after post-training. The pruned models exhibit significant improvements in storage, GPU usage, computational efficiency, and environmental impact, while maintaining well robustness. Our research provides a sustainable solution for green software engineering and promotes the efficient deployment of LLMs in real-world generative coding intelligence applications.

cs.SE↗

Large Language Models for Validating Network Protocol Parsers

Network protocol parsers are essential for enabling correct and secure communication between devices. Bugs in these parsers can introduce critical vulnerabilities, including memory corruption, information leakage, and denial-of-service attacks. An intuitive way to assess parser correctness is to compare the implementation with its official protocol standard. However, this comparison is challenging because protocol standards are typically written in natural language, whereas implementations are in source code. Existing methods like model checking, fuzzing, and differential testing have been used to find parsing bugs, but they either require significant manual effort or ignore the protocol standards, limiting their ability to detect semantic violations. To enable more automated validation of parser implementations against protocol standards, we propose PARVAL, a multi-agent framework built on large language models (LLMs). PARVAL leverages the capabilities of LLMs to understand both natural language and code. It transforms both protocol standards and their implementations into a unified intermediate representation, referred to as format specifications, and performs a differential comparison to uncover inconsistencies. We evaluate PARVAL on the Bidirectional Forwarding Detection (BFD) protocol. Our experiments demonstrate that PARVAL successfully identifies inconsistencies between the implementation and its RFC standard, achieving a low false positive rate of 5.6%. PARVAL uncovers seven unique bugs, including five previously unknown issues.

cs.SE↗

A Generic Explanation of the Mechanism of Co-solvency

Polymer behavior in mixed solvents often exhibits intriguing phenomena, such as cosolvency, where a polymer that collapses in two individually poor solvents becomes soluble in their mixture. In this study, we employ a combination of theoretical modeling and computer simulations using a generic polymer solution model to uncover the underlying mechanisms driving this behavior. Moving beyond conventional explanations based on solvent-cosolvent immiscibility or chemistry-specific interactions, our findings highlight the critical role of mismatches in solvophobicity and solvation strength between the polymer and the two solvent components. We demonstrate that co-solvency arises from the interplay between van der Waals interactions and specific associations, such as hydrogen bonding. The bulk phase behavior of the solution is also examined, and the resulting phase diagram, calculated using Flory-Huggins theory, shows good agreement with experimental observations. This study offers a generalized framework for understanding polymer cosolvency across diverse systems.

cond-mat.soft↗

Perception-R1: Pioneering Perception Policy with Reinforcement Learning

Inspired by the success of DeepSeek-R1, we explore the potential of rule-based reinforcement learning (RL) in MLLM post-training for perception policy learning. While promising, our initial experiments reveal that incorporating a thinking process through RL does not consistently lead to performance gains across all visual perception tasks. This leads us to delve into the essential role of RL in the context of visual perception. In this work, we return to the fundamentals and explore the effects of RL on different perception tasks. We observe that the perceptual complexity is a major factor in determining the effectiveness of RL. We also observe that reward design plays a crucial role in further approching the upper limit of model perception. To leverage these findings, we propose Perception-R1, a scalable RL framework using GRPO during MLLM post-training. With a standard Qwen2.5-VL-3B-Instruct, Perception-R1 achieves +4.2% on RefCOCO+, +17.9% on PixMo-Count, +4.2% on PageOCR, and notably, 31.9% AP on COCO2017 val for the first time, establishing a strong baseline for perception policy learning.

cs.CV↗

Perception in Reflection

We present a perception in reflection paradigm designed to transcend the limitations of current large vision-language models (LVLMs), which are expected yet often fail to achieve perfect perception initially. Specifically, we propose Reflective Perception (RePer), a dual-model reflection mechanism that systematically alternates between policy and critic models, enables iterative refinement of visual perception. This framework is powered by Reflective Perceptual Learning (RPL), which reinforces intrinsic reflective capabilities through a methodically constructed visual reflection dataset and reflective unlikelihood training. Comprehensive experimental evaluation demonstrates RePer's quantifiable improvements in image understanding, captioning precision, and hallucination reduction. Notably, RePer achieves strong alignment between model attention patterns and human visual focus, while RPL optimizes fine-grained and free-form preference alignment. These advancements establish perception in reflection as a robust paradigm for future multimodal agents, particularly in tasks requiring complex reasoning and multi-step manipulation.

cs.CV↗

Tuning Diblock Copolymer Morphology by Adding Associative Homopolymers

The ability to tune the microstructures formed by block copolymers using accessible physical approaches provides control for practical material applications. A common strategy involves the addition of homopolymers, which can induce morphological changes through their preferential partitioning into specific microdomains. More recently, supramolecular interactions - being chemistry-specific and stimuli-responsive - have emerged as powerful tools for enabling switchable morphologies. To gain microscopic insight into this process, we present a simulation study of diblock copolymers blended with homopolymers that selectively associate with one of the blocks via reversible associations. By varying the mode of association, we examine the structural changes induced by supramolecular complexation and compare them with those arising from Van der Waals (VDW) interactions. Our results reveal that, despite exhibiting similar levels of homopolymer partitioning, the lamellar structures differ significantly between the association-driven system and the VDW driven system. Cluster analysis indicates that only small clusters form at weak association strength, whereas a continuous network emerges under strong association conditions. Dynamic analysis further indicates that both morphology and supramolecular binding kinetics significantly influence the diffusion of homopolymers across microdomains, highlighting the material's potential responsiveness to external stimuli.

cond-mat.soft↗

Micellization of Diblock Copolymer Modified by Cononsolvency Effect

Spherical micelle modified by cononsolvency effect is investigated by using self-consistent field theory (SCFT) and random phase approximation, which is formed by diblock copolymers consisted of one permanent hydrophobic block and one hydrophilic block. The addition of the cosolvent will bring about the cononsolvency effect on the hydrophilic block. The result shows that cononsolvency effect will expand the micelle size and changes the critical micelle concentration. By analyzing density profiles predicted by SCFT calculation, the micelle shell exhibits extension-collapse-extension transition with the addition of the cosolvent, which is responsible for the micelle size change. The driving force of the micellization is analyzed in the framework of SCFT calculation. The conventional micelle, which is formed by amphiphilic diblock copolymer in pure solvent, is compared with the micelle modified by cononsolvency effect. The reduction of the core-block - solvent contact area drives the formation of the conventional micelle. But in cononsolvency modified micelle, it is shown that the shell-block - cosolvent favorable interaction also plays the role to minimize the total free energy, whose mechanism is significantly different from that of the conventional micelle.

cond-mat.soft↗

Micelle Formation of Diblock Copolymers Driven by Cononsolvency Effect

This study utilizes self-consistent field theory to characterize various features of cononsolvency-driven spherical micelles formed by double hydrophilic block copolymers (DHBCs). Micelles are observed only at an intermediate cosolvent fraction, forming abruptly at a specific solvent/cosolvent mixing ratio and gradually disappearing with further cosolvent addition. A stronger core-block - cosolvent attractive interaction leads to a lower critical micelle concentration and a higher aggregation number. The density profile of cononsolvency-driven micelles is compared with that of conventional micelles, which form due to core-block - solvent repulsive interactions. In conventional micelles, the core is primarily occupied by polymer segments, whereas in cononsolvency-driven micelles, the core consists mainly of solvents and cosolvents. This fundamental difference can be explained through thermodynamic analysis. Conventional micelle formation is driven by the reduction of core-block - solvent contact due to repulsive interactions. In contrast, cononsolvency-driven micelle formation is governed by an increase in core-block - cosolvent contact area, playing the major role to minimize the total free energy-an essential distinction from conventional micelles.

cond-mat.soft↗

Effects of Dynamic Bonds on the Kinetic Pathways of Supramolecular Diblock Copolymers Disorder-Order Transition

Supramolecular block copolymers (SBC) consist of covalent polymer building blocks that are connected into well-defined architectures via supramolecular bonds. Assisted by the dynamic and reversible supramolecular interactions, it is envisaged that SBC self-assemblies may exhibit more diverse morphologies, stimuli-responsivity comparing to their covalent analogues. At the fundamental level, these features are related to the free-energy landscape of self-assemblies. It is therefore of central importance to understand the impact of dynamic/reversible bonds on the free energy landscape during structure transitions. In this study, we first conduct smart Monte Carlo simulations to compare the kinetics of the disorder-order transition (DOT) of supramolecular diblock copolymers (SDBC) to that of covalent diblock copolymers (CDBC). The structural order parameter for CDBC exhibits a fast and smooth transition process across different random number seeds and initial configurations. In contrast, the SDBC system shows more diverse transition pathways, which can be classified into three types. These results suggest that reversible supramolecular interactions complicate the pathways, and bring about various intermediate structures. Next, we apply the string method to construct the minimum free energy path of the transition, from which the transition state and the free energy barrier are evaluated. It is found that the transition free energy barrier strongly correlates with the fraction of supramolecules. By decomposing the free energy into A-B interaction energy and association energy, we found that the interplay of both two effects decide the kinetic pathway and the final equilibrium structures.

cond-mat.soft↗

Ross3D: Reconstructive Visual Instruction Tuning with 3D-Awareness

The rapid development of Large Multimodal Models (LMMs) for 2D images and videos has spurred efforts to adapt these models for interpreting 3D scenes. However, the absence of large-scale 3D vision-language datasets has posed a significant obstacle. To address this issue, typical approaches focus on injecting 3D awareness into 2D LMMs by designing 3D input-level scene representations. This work provides a new perspective. We introduce reconstructive visual instruction tuning with 3D-awareness (Ross3D), which integrates 3D-aware visual supervision into the training procedure. Specifically, it incorporates cross-view and global-view reconstruction. The former requires reconstructing masked views by aggregating overlapping information from other views. The latter aims to aggregate information from all available views to recover Bird's-Eye-View images, contributing to a comprehensive overview of the entire scene. Empirically, Ross3D achieves state-of-the-art performance across various 3D scene understanding benchmarks. More importantly, our semi-supervised experiments demonstrate significant potential in leveraging large amounts of unlabeled 3D vision-only data.

cs.CV↗

Language Prompt for Autonomous Driving

A new trend in the computer vision community is to capture objects of interest following flexible human command represented by a natural language prompt. However, the progress of using language prompts in driving scenarios is stuck in a bottleneck due to the scarcity of paired prompt-instance data. To address this challenge, we propose the first object-centric language prompt set for driving scenes within 3D, multi-view, and multi-frame space, named NuPrompt. It expands nuScenes dataset by constructing a total of 40,147 language descriptions, each referring to an average of 7.4 object tracklets. Based on the object-text pairs from the new benchmark, we formulate a novel prompt-based driving task, \ie, employing a language prompt to predict the described object trajectory across views and frames. Furthermore, we provide a simple end-to-end baseline model based on Transformer, named PromptTrack. Experiments show that our PromptTrack achieves impressive performance on NuPrompt. We hope this work can provide some new insights for the self-driving community. The data and code have been released at https://github.com/wudongming97/Prompt4Driving.

cs.CV↗