SearcharxivSearch

arXiv subjects

Lingwei Li

Publications and source records attributed to Lingwei Li.

6 recordsLinked to original sources

ZIPBrain: Can EEG Foundation Models Be Faster, Locally Deployable, but Accurate?

This work investigates whether Electroencephalograph (EEG) foundation models (EFMs) can be made faster and locally deployable without sacrificing accuracy. EEG foundation models are a major trend, offering strong general-purpose representations. However, their computational burden grows quadratically with input length, hindering deployment on resource-constrained scenario, particularly for real-time clinical monitoring. EEG's low SNR further suggests many of these tokens are redundant and compressible with little accuracy cost. We propose ZIPBrain, a novel redundancy-aware EEG token pooling module that leverages this low-SNR characteristic to reduce token count. Given a token sequence, ZIPBrain partitions tokens into redundant and unique groups, then merges each redundant token with its most similar counterpart in the unique group. Furthermore, ZIPBrain serves as a training-free, plug-and-play module that seamlessly integrates into standard Transformer encoders with negligible computational overhead. Extensive experiments across multiple EEG foundation models show ZIPBrain's strong versatility, achieving 1.3%-10.5% average improvement over baselines, while reducing wall-clock inference time by 32.7% (up to 41.8% with CUDA Graph) compared to the original EEG foundation models.

cs.AI

Chemical tuning of magnetic ordering and cryogenic magnetocaloric response in zircon-type Gd1-xErxVO4

Chemical substitution offers an effective route to tune magnetic ordering and magnetocaloric performance in rare-earth oxides for cryogenic refrigeration. Here we investigate the structural evo lution, magnetic properties, and magnetocaloric effect of polycrystalline zircon-type Gd1-xErxVO4 (x=0, 0.1, 0.25, 0.5, and 0.75). Powder X-ray diffraction confirms that all samples crystallize in the tetragonal zircon structure without detectable impurity phases. Substitution of Gd3+ by the smaller Er3+ ion produces a systematic lattice contraction and modifies the magnetic behavior of the rare-earth sublattice. In particular, the magnetic ordering temperature is suppressed from 3.65(2) K in GdVO4 to 2.76(2) K in Gd0.9Er0.1VO4 , accompanied by a weakening of the spin-flop-like field-induced anomaly observed in the parent compound. A low Er concentration correspondingly improves the low-temperature magnetocaloric performance, with Gd0.9Er0.1VO4 exhibiting a max imum magnetic entropy change of 45.1 J kg-1 K-1 for mu_0 Delta H=7T. These results demonstrate that weak Er substitution effectively tunes the competition among exchange interactions, dipolar coupling, and magnetic anisotropy, optimizing the balance between magnetic ordering and available spin entropy in zircon-type rare-earth vanadates, which is crucial for developing efficient cryogenic refrigeration materials.

cond-mat.mtrl-sci

Unraveling the magnetic and electronic complexity of intermetallic ErPd$_2$Si$_2$: Anisotropic thermal expansion, phase transitions, and twofold magnetotransport behavior

We present a comprehensive investigation into the physical properties of intermetallic ErPd$_2$Si$_2$, a compound renowned for its intriguing magnetic and electronic characteristics. We confirm the tetragonal crystal structure of ErPd$_2$Si$_2$ within the $I4/mmm$ space group. Notably, we observed anisotropic thermal expansion, with the lattice constant $a$ expanding and $c$ contracting between 15 K and 300 K. This behavior is attributed to lattice vibrations and electronic contributions. Heat capacity measurements revealed three distinct temperature regimes: $T_1 \sim 3.0$ K, $T_\textrm{N} \sim 4.20$ K, and $T_2 \sim 15.31$ K. These correspond to the disappearance of spin-density waves, the onset of an incommensurate antiferromagnetic (AFM) structure, and the crystal-field splitting and/or the presence of short-range spin fluctuations, respectively. Remarkably, the AFM phase transition anomaly was observed exclusively in low-field magnetization data (120 Oe) at $T_\textrm{N}$. A high magnetic field ($B =$ 3 T) effectively suppressed this anomaly, likely due to spin-flop and spin-flip transitions. Furthermore, the extracted effective PM moments closely matched the expected theoretical value, suggesting a dominant magnetic contribution from localized 4$f$ spins of Er. Additionally, significant differences in resistance ($R$) values at low temperatures under applied $B$ indicated a magnetoresistance (MR) effect with a minimum value of -4.36\%. Notably, the measured MR effect exhibited anisotropic behavior, where changes in the strength or direction of the applied $B$ induced variations in the MR effect. A twofold symmetry of $R$ was discerned at 3 T and 9 T, originating from the orientation of spin moments relative to the applied $B$. Intriguingly, above $T_\textrm{N}$, short-range spin fluctuations also displayed a preferred orientation along the $c$-axis due to single-ion anisotropy.

cond-mat.str-el

Automating Method Naming with Context-Aware Prompt-Tuning

Method names are crucial to program comprehension and maintenance. Recently, many approaches have been proposed to automatically recommend method names and detect inconsistent names. Despite promising, their results are still sub-optimal considering the three following drawbacks: 1) These models are mostly trained from scratch, learning two different objectives simultaneously. The misalignment between two objectives will negatively affect training efficiency and model performance. 2) The enclosing class context is not fully exploited, making it difficult to learn the abstract function of the method. 3) Current method name consistency checking methods follow a generate-then-compare process, which restricts the accuracy as they highly rely on the quality of generated names and face difficulty measuring the semantic consistency. In this paper, we propose an approach named AUMENA to AUtomate MEthod NAming tasks with context-aware prompt-tuning. Unlike existing deep learning based approaches, our model first learns the contextualized representation(i.e., class attributes) of PL and NL through the pre-training model, then fully exploits the capacity and knowledge of large language model with prompt-tuning to precisely detect inconsistent method names and recommend more accurate names. To better identify semantically consistent names, we model the method name consistency checking task as a two-class classification problem, avoiding the limitation of previous similarity-based consistency checking approaches. The experimental results reflect that AUMENA scores 68.6%, 72.0%, 73.6%, 84.7% on four datasets of method name recommendation, surpassing the state-of-the-art baseline by 8.5%, 18.4%, 11.0%, 12.0%, respectively. And our approach scores 80.8% accuracy on method name consistency checking, reaching an 5.5% outperformance. All data and trained models are publicly available.

cs.SE

AUGER: Automatically Generating Review Comments with Pre-training Models

Code review is one of the best practices as a powerful safeguard for software quality. In practice, senior or highly skilled reviewers inspect source code and provide constructive comments, considering what authors may ignore, for example, some special cases. The collaborative validation between contributors results in code being highly qualified and less chance of bugs. However, since personal knowledge is limited and varies, the efficiency and effectiveness of code review practice are worthy of further improvement. In fact, it still takes a colossal and time-consuming effort to deliver useful review comments. This paper explores a synergy of multiple practical review comments to enhance code review and proposes AUGER (AUtomatically GEnerating Review comments): a review comments generator with pre-training models. We first collect empirical review data from 11 notable Java projects and construct a dataset of 10,882 code changes. By leveraging Text-to-Text Transfer Transformer (T5) models, the framework synthesizes valuable knowledge in the training stage and effectively outperforms baselines by 37.38% in ROUGE-L. 29% of our automatic review comments are considered useful according to prior studies. The inference generates just in 20 seconds and is also open to training further. Moreover, the performance also gets improved when thoroughly analyzed in case study.

cs.SE

Review of magnetic properties and magnetocaloric effect in the intermetallic compounds of rare earth with low boiling point metal(s)

The magnetocaloric effect (MCE) in many rare earth (RE) based intermetallic compounds has been extensively investigated during last two decades, not only due to their potential applications for magnetic refrigeration but also for better understanding of the fundamental problems of the materials. This paper reviews our recent progress of magnetic properties and MCE in some binary or ternary intermetallic compounds of RE with low boiling point metal(s) (Zn, Mg, and Cd). Some of them are exhibiting promising MCE properties which make them also attractive for low temperature magnetic refrigeration. Characteristics of the magnetic transition, origin of large MCE as well as the potential application of these compounds were thoroughly discussed. Additionally, a brief review of the magnetic and magnetocaloric properties in the quaternary rare earth nickel boroncarbides RENi2B2C superconductors is also presented.

cond-mat.mtrl-sci