Search arXiv⌕ Search

arXiv subjects

Zhi Li

Publications and source records attributed to Zhi Li.

At least 91 records · Page 5Linked to original sources

Lightweight Yet Secure: Secure Scripting Language Generation via Lightweight LLMs

The security of scripting languages such as PowerShell is critical given their powerful automation and administration capabilities, often exercised with elevated privileges. Today, securing these languages still demands substantial human effort to craft and enforce rules, imposing heavy burdens on typical administrators and creating critical production risks (e.g., misoperations that shut down servers).Large language models (LLMs) have demonstrated strong capabilities in code generation, vulnerability detection, and automated repair for languages like Python and JavaScript. However, their ability to assist with generating secure scripting-language code remains largely underexplored. In this paper, we present SecGenEval-PS, a benchmark designed to systematically evaluate LLMs on secure scripting generation, security analysis, and automated repair. Our results show that both proprietary and open-source models fall short in these areas. For instance, over 60% of PowerShell scripts produced by GPT-4o and o3-mini are insecure without structured guidance.To bridge this gap, we propose PSSec, a framework that combines data synthesis with fine-tuning to enhance model security capabilities. We develop a self-debugging agent that integrates static analyzers with the reasoning abilities of advanced LLMs to synthesize large-scale structured triplets of insecure scripts, violation analyses, and corresponding repairs. We then fine-tune lightweight LLMs (as small as 1.7B parameters) using supervised fine-tuning (SFT) and reinforcement learning (RL), enabling security-aware reasoning and the generation of secure PowerShell code.Across multiple LLM families, including GPT and Qwen, \textit{PSSec}-trained models match or surpass general-purpose large models on PowerShell security tasks while reducing inference cost by more than an order of magnitude.

cs.CR↗

Tunable chiral spiral phases in a non-Hermitian Ising-Gamma spin chain

We study the influence of dissipation on the Ising-Gamma model. Through observables such as ground-state energy, order parameters, entanglement entropy, etc., we identify each phase region and provide the global phase diagram of the system. The results show that the region of the spiral phase will continuously expand with the increase of dissipation, gradually squeezing the original paramagnetic and antiferromagnetic phase regions. Remarkably, unlike the conservative system, the introduction of dissipation will cause two spiral phases with opposite chiralities to emerge simultaneously in the system, which provides a possibility for the manipulation of spiral chirality in cold atomic experiments. Moreover, we reveal the mechanism of the dependence of the transformation between these two spiral phases with distinct chirality on the strength of the relative coefficient of off-diagonal Gamma interactions in the Ising-Gamma model. Since both the relevant order parameters and dissipation can be well controlled within a detectable range, these phenomena can be observed in ultracold atomic experiments.

cond-mat.quant-gas↗

Physically-Grounded Manifold Projection Model for Generalizable Metal Artifact Reduction in Dental CBCT

Metal artifacts in Dental CBCT severely obscure anatomical structures, hindering diagnosis. Current deep learning for Metal Artifact Reduction (MAR) faces limitations: supervised methods suffer from spectral blurring due to "regression-to-the-mean", while unsupervised ones risk structural hallucinations. Denoising Diffusion Models (DDPMs) offer realism but rely on slow, stochastic iterative sampling, unsuitable for clinical use. To resolve this, we propose the Physically-Grounded Manifold Projection (PGMP) framework. First, our Anatomically-Adaptive Physics Simulation (AAPS) pipeline synthesizes high-fidelity training pairs via Monte Carlo spectral modeling and patient-specific digital twins, bridging the synthetic-to-real gap. Second, our DMP-Former adapts the Direct x-Prediction paradigm, reformulating restoration as a deterministic manifold projection to recover clean anatomy in a single forward pass, eliminating stochastic sampling. Finally, a Semantic-Structural Alignment (SSA) module anchors the solution using priors from medical foundation models (MedDINOv3), ensuring clinical plausibility. Experiments on synthetic and multi-center clinical datasets show PGMP outperforms state-of-the-art methods on unseen anatomy, setting new benchmarks in efficiency and diagnostic reliability. Code and data: https://github.com/ricoleehduu/PGMP.

cs.CV↗

The transport of angular momentum for massive stars I. Formation of slowly rotating WNE stars

The evolutionary scenario of early-type nitrogen-sequence Wolf-Rayet (WNE) stars predicts a slowly rotating subclass that typically forms after the red supergiant (RSG) phase. Their slow rotation rates are attributed to stellar winds that remove angular momentum transferred outward during core contraction. We incorporate improved prescriptions for internal gravity waves and the magnetic Tayler instability into single massive star evolution models. Our simulations successfully produce slowly rotating WNE stars and determine optimal parameters for both mechanisms ($A \ge 10$ for internal gravity waves (IGWs), $α= 0.01$ for revised Tayler instability (TSF)). The results demonstrate that the efficiency of angular momentum transfer in massive stars is significantly enhanced compared to low-mass stars, both processes can self-consistently explain the slow rotation of WNE stars, confirming their efficiency in angular momentum redistribution and providing crucial theoretical support for the existence of this predicted stellar population.

astro-ph.SR↗

Emergent topological re-entrant phase transition in a generalized quasiperiodic modulated Su-Schrieffer-Heeger model

We study the topological properties of the one-dimensional generalized quasiperiodic modulated Su-Schrieffer-Heeger model. The results reveal that topological re-entrant phase transition emerges. Through the analysis of a real-space winding number , we divide the emergent topological re-entrant phase transitions into two types. The first is the re-entrant phase transition from the traditional topological insulator phase into the topological Anderson insulator phase, and the second is the re-entrant phenomenon from one topological Anderson insulator phase into another topological Anderson insulator phase. These two types of re-entrant phase transition correspond to bounded and unbounded cases of quasiperiodic modulation, respectively. Furthermore, we verify the above topological re-entrant phase transitions by analyzing the Lyapunov exponent and bulk gap. Since Su-Schrieffer-Heeger models have been realized in various artificial systems (such as cold atoms, optical waveguide arrays, ion traps, Rydberg atom arrays, etc.), the two types of topological re-entrant phase transition predicted in this paper are expected to be realized in the near future.

cond-mat.mes-hall↗

MICCAI STSR 2025 Challenge: Semi-Supervised Teeth and Pulp Segmentation and CBCT-IOS Registration

Cone-Beam Computed Tomography (CBCT) and Intraoral Scanning (IOS) are essential for digital dentistry, but annotated data scarcity limits automated solutions for pulp canal segmentation and cross-modal registration. To benchmark semi-supervised learning (SSL) in this domain, we organized the STSR 2025 Challenge at MICCAI 2025, featuring two tasks: (1) semi-supervised segmentation of teeth and pulp canals in CBCT, and (2) semi-supervised rigid registration of CBCT and IOS. We provided 60 labeled and 640 unlabeled IOS samples, plus 30 labeled and 250 unlabeled CBCT scans with varying resolutions and fields of view. The challenge attracted strong community participation, with top teams submitting open-source deep learning-based SSL solutions. For segmentation, leading methods used nnU-Net and Mamba-like State Space Models with pseudo-labeling and consistency regularization, achieving a Dice score of 0.967 and Instance Affinity of 0.738 on the hidden test set. For registration, effective approaches combined PointNetLK with differentiable SVD and geometric augmentation to handle modality gaps; hybrid neural-classical refinement enabled accurate alignment despite limited labels. All data and code are publicly available at https://github.com/ricoleehduu/STS-Challenge-2025 to ensure reproducibility.

cs.CV↗

Demystifying Feature Engineering in Malware Analysis of API Call Sequences

Machine learning (ML) has been widely used to analyze API call sequences in malware analysis, which typically requires the expertise of domain specialists to extract relevant features from raw data. The extracted features play a critical role in malware analysis. Traditional feature extraction is based on human domain knowledge, while there is a trend of using natural language processing (NLP) for automatic feature extraction. This raises a question: how do we effectively select features for malware analysis based on API call sequences? To answer it, this paper presents a comprehensive study of investigating the impact of feature engineering upon malware classification.We first conducted a comparative performance evaluation under three models, Convolutional Neural Network (CNN), Long Short-Term Memory (LSTM), and Transformer, with respect to knowledge-based and NLP-based feature engineering methods. We observed that models with knowledge-based feature engineering inputs generally outperform those using NLP-based across all metrics, especially under smaller sample sizes. Then we analyzed a complete set of data features from API call sequences, our analysis reveals that models often focus on features such as handles and virtual addresses, which vary across executions and are difficult for human analysts to interpret.

cs.CR↗

MICCAI STS 2024 Challenge: Semi-Supervised Instance-Level Tooth Segmentation in Panoramic X-ray and CBCT Images

Orthopantomogram (OPGs) and Cone-Beam Computed Tomography (CBCT) are vital for dentistry, but creating large datasets for automated tooth segmentation is hindered by the labor-intensive process of manual instance-level annotation. This research aimed to benchmark and advance semi-supervised learning (SSL) as a solution for this data scarcity problem. We organized the 2nd Semi-supervised Teeth Segmentation (STS 2024) Challenge at MICCAI 2024. We provided a large-scale dataset comprising over 90,000 2D images and 3D axial slices, which includes 2,380 OPG images and 330 CBCT scans, all featuring detailed instance-level FDI annotations on part of the data. The challenge attracted 114 (OPG) and 106 (CBCT) registered teams. To ensure algorithmic excellence and full transparency, we rigorously evaluated the valid, open-source submissions from the top 10 (OPG) and top 5 (CBCT) teams, respectively. All successful submissions were deep learning-based SSL methods. The winning semi-supervised models demonstrated impressive performance gains over a fully-supervised nnU-Net baseline trained only on the labeled data. For the 2D OPG track, the top method improved the Instance Affinity (IA) score by over 44 percentage points. For the 3D CBCT track, the winning approach boosted the Instance Dice score by 61 percentage points. This challenge confirms the substantial benefit of SSL for complex, instance-level medical image segmentation tasks where labeled data is scarce. The most effective approaches consistently leveraged hybrid semi-supervised frameworks that combined knowledge from foundational models like SAM with multi-stage, coarse-to-fine refinement pipelines. Both the challenge dataset and the participants' submitted code have been made publicly available on GitHub (https://github.com/ricoleehduu/STS-Challenge-2024), ensuring transparency and reproducibility.

eess.IV↗

Graph Neural Networks Based Analog Circuit Link Prediction

Circuit link prediction, which identifies missing component connections from incomplete netlists, is crucial in analog circuit design automation. However, existing methods face three main challenges: 1) Insufficient use of topological patterns in circuit graphs reduces prediction accuracy; 2) Data scarcity due to the complexity of annotations hinders model generalization; 3) Limited adaptability to various netlist formats restricts model flexibility. We propose Graph Neural Networks Based Analog Circuit Link Prediction (GNN-ACLP), a graph neural networks (GNNs) based method featuring three innovations to tackle these challenges. First, we introduce the SEAL (learning from Subgraphs, Embeddings, and Attributes for Link prediction) framework and achieve port-level accuracy in circuit link prediction. Second, we propose Netlist Babel Fish, a netlist format conversion tool that leverages retrieval-augmented generation (RAG) with a large language model (LLM) to enhance the compatibility of netlist formats. Finally, we build a comprehensive dataset, SpiceNetlist, comprising 775 annotated circuits of 7 different types across 10 component classes. Experiments demonstrate accuracy improvements of 16.08% on SpiceNetlist, 11.38% on Image2Net, and 16.01% on Masala-CHAI compared to the baseline in intra-dataset evaluation, while maintaining accuracy from 92.05% to 99.07% in cross-dataset evaluation, demonstrating robust feature transfer capabilities. However, its linear computational complexity makes processing large-scale netlists challenging and requires future addressing.

cs.AR↗

Observational properties of a Schwarzschild black hole surrounded by a Dehnen-type dark matter halo

This study investigates the accretion process and observational signatures of thin accretion disks around a Schwarzschild black hole (BH) embedded in a Dehnen-type dark matter (DM) halo. We examine the influence of the density ρ_{s} and radius r_{s} of the DM halo on key disk properties, including the energy flux, temperature distribution, and emission spectrum. Our results show that all three of these quantities decrease with increasing ρ_{s} or r_{s}. Furthermore, by generating and analyzing both direct and secondary images of the accretion disk, we explore how the observational inclination angle and the DM halo parameters ρ_{s} and rs affect image profiles. Finally, the observed flux distributions are presented for different inclination angles. Our findings indicate that the accretion disk becomes colder and dimmer as the DM halo parameters increase, highlighting the significant role of DM in shaping BH observables.

astro-ph.HE↗

Anderson-skin dualism: A boundary-dependent effect in non-Hermitian disordered coupled systems

We report a novel localization phenomenon that emerges in non-Hermitian and quasiperiodic coupled systems, which we dub ``Anderson-Skin (AS) dualism". The emergence of AS dualism is due to the fact that non-Hermitian topological systems provide non-trivial topological transport channels for disordered systems, causing the originally localized Anderson modes to transform into skin modes, i.e., the localized states within the point gap regions have dual characteristics of localization under periodic boundary condition (PBC) and skin effects under open boundary conditions (OBC). As an example, we analytically prove the 1D AS dualism through the transfer matrix method. Moreover, by discussing many-body interacting systems, we confirm that AS dualism is universal.

cond-mat.dis-nn↗

A Survey on Deep Text Hashing: Efficient Semantic Text Retrieval with Binary Representation

With the rapid growth of textual content on the Internet, efficient large-scale semantic text retrieval has garnered increasing attention from both academia and industry. Text hashing, which projects original texts into compact binary hash codes, is a crucial method for this task. By using binary codes, the semantic similarity computation for text pairs is significantly accelerated via fast Hamming distance calculations, and storage costs are greatly reduced. With the advancement of deep learning, deep text hashing has demonstrated significant advantages over traditional, data-independent hashing techniques. By leveraging deep neural networks, these methods can learn compact and semantically rich binary representations directly from data, overcoming the performance limitations of earlier approaches. This survey investigates current deep text hashing methods by categorizing them based on their core components: semantic extraction, hash code quality preservation, and other key technologies. We then present a detailed evaluation schema with results on several popular datasets, followed by a discussion of practical applications and open-source tools for implementation. Finally, we conclude by discussing key challenges and future research directions, including the integration of deep text hashing with large language models to further advance the field. The project for this survey can be accessed at https://github.com/hly1998/DeepTextHashing.

cs.IR↗

WeaveRec: An LLM-Based Cross-Domain Sequential Recommendation Framework with Model Merging

Cross-Domain Sequential Recommendation (CDSR) seeks to improve user preference modeling by transferring knowledge from multiple domains. Despite the progress made in CDSR, most existing methods rely on overlapping users or items to establish cross-domain correlations-a requirement that rarely holds in real-world settings. The advent of large language models (LLM) and model-merging techniques appears to overcome this limitation by unifying multi-domain data without explicit overlaps. Yet, our empirical study shows that naively training an LLM on combined domains-or simply merging several domain-specific LLMs-often degrades performance relative to a model trained solely on the target domain. To address these challenges, we first experimentally investigate the cause of suboptimal performance in LLM-based cross-domain recommendation and model merging. Building on these insights, we introduce WeaveRec, which cross-trains multiple LoRA modules with source and target domain data in a weaving fashion, and fuses them via model merging. WeaveRec can be extended to multi-source domain scenarios and notably does not introduce additional inference-time cost in terms of latency or memory. Furthermore, we provide a theoretical guarantee that WeaveRec can reduce the upper bound of the expected error in the target domain. Extensive experiments on single-source, multi-source, and cross-platform cross-domain recommendation scenarios validate that WeaveRec effectively mitigates performance degradation and consistently outperforms baseline approaches in real-world recommendation tasks.

cs.IR↗

GaN-based Resonant Cavity LEDs Fabricated by Photo-Electrochemical Etching and Micro-Transfer Printing

Resonant cavity LEDs (RCLEDs) exhibit excellent temporal and spatial coherence with narrow spectral linewidth and small divergence angle, which is of great importance for micro-displays. In this paper, we demonstrate a novel method to create GaN-based RCLEDs by using photo-electrochemical etching and micro-transfer printing (MTP) technology. Through systematic optimizing of the etching conditions, highly selective etching of an InGaN multiple quantum well sacrificial layer is achieved with parasitic etching of adjacent layers being completely suppressed. The roughness of the underside of the exfoliated GaN film is only 3.3 nm. Raman spectroscopy shows that the residual stress in the released material is reduced from 0.74 GPa for the as-grown sample to -0.15 GPa. Using the MTP method, GaN coupons with a deposited upper dielectric mirror were transferred onto target substrates covered with either an Al mirror or dielectric distributed Bragg reflector to form two types of blue RCLEDs. The electroluminescence spectra of the two RCLEDs show a much narrower linewidth, reduced from 32 nm in the conventional LED to ~5 nm, together with stable peak wavelength with increasing current density, with the shift reduced from 9.3 nm to less than 1 nm. The far-field pattern is influenced by the bottom mirror, and the far-field divergence angle can be decreased to only 52° by matching the cavity and the quantum well exciton modes. This scalable approach is highly promising for the realization of compact resonant cavity devices and their use in displays and in communications.

physics.optics↗

An Empirical Study for Representations of Videos in Video Question Answering via MLLMs

Multimodal large language models have recently achieved remarkable progress in video question answering (VideoQA) by jointly processing visual, textual, and audio information. However, it remains unclear which video representations are most effective for MLLMs, and how different modalities balance task accuracy against computational efficiency. In this work, we present a comprehensive empirical study of video representation methods for VideoQA with MLLMs. We systematically evaluate single modality inputs question only, subtitles, visual frames, and audio signals as well as multimodal combinations, on two widely used benchmarks: VideoMME and LongVideoBench. Our results show that visual frames substantially enhance accuracy but impose heavy costs in GPU memory and inference latency, while subtitles provide a lightweight yet effective alternative, particularly for long videos. These findings highlight clear trade-offs between effectiveness and efficiency and provide practical insights for designing resource-aware MLLM-based VideoQA systems.

cs.IR↗

Multifractal-enriched mobility edges and emergent quantum phases in Rydberg atomic arrays

Anderson localization describes disorder-induced phase transitions, distinguishing between localized and extended states. In quasiperiodic systems, a third multifractal state emerges, characterized by unique energy and wave functions. However, the corresponding multifractal-enriched mobility edges and three-state-coexisting quantum phases have yet to be experimentally detected. In this work, we propose exactly-solvable one-dimensional quasiperiodic lattice models that simultaneously host three-state-coexisting quantum phases, with their phase boundaries analytically derived via Avila's global theorem. Furthermore, we propose experimental protocols via Rydberg atom arrays to realize these states. Notably, we demonstrate a spectroscopic technique capable of measuring inverse participation ratios across real-space and dual-space domains, enabling simultaneous characterization of localized, extended, and multifractal quantum phases in systems with up to tens of qubits. Our work opens new avenues for the experimental exploration of Anderson localization and multifractal states in artificial quantum systems.

cond-mat.dis-nn↗

Lovász Meets Lieb-Schultz-Mattis: Complexity in Approximate Quantum Error Correction

Approximate quantum error correction (AQEC) provides a versatile framework for both quantum information processing and probing many-body entanglement. We reveal a fundamental tension between the error-correcting power of an AQEC and the hardness of code state preparation. More precisely, through a novel application of the Lovász local lemma, we establish a fundamental trade-off between local indistinguishability and circuit complexity, showing that orthogonal short-range entangled states must be distinguishable via a local operator. These results offer a powerful tool for exploring quantum circuit complexity across diverse settings. As applications, we derive stronger constraints on the complexity of AQEC codes with transversal logical gates and establish strong complexity lower bounds for W state preparation. Our framework also provides a novel perspective for systems with Lieb-Schultz-Mattis type constraints.

quant-ph↗

GlobalTomo: A global dataset for physics-ML seismic wavefield modeling and FWI

Global seismic tomography, taking advantage of seismic waves from natural earthquakes, provides essential insights into the earth's internal dynamics. Advanced Full-waveform Inversion (FWI) techniques, whose aim is to meticulously interpret every detail in seismograms, confront formidable computational demands in forward modeling and adjoint simulations on a global scale. Recent advancements in Machine Learning (ML) offer a transformative potential for accelerating the computational efficiency of FWI and extending its applicability to larger scales. This work presents the first 3D global synthetic dataset tailored for seismic wavefield modeling and full-waveform tomography, referred to as the GlobalTomo dataset. This dataset is uniquely comprehensive, incorporating explicit wave physics and robust geophysical parameterization at realistic global scales, generated through state-of-the-art forward simulations optimized for 3D global wavefield calculations. Through extensive analysis and the establishment of ML baselines, we illustrate that ML approaches are particularly suitable for global FWI, overcoming its limitations with rapid forward modeling and flexible inversion strategies. This work represents a cross-disciplinary effort to enhance our understanding of the earth's interior through physics-ML modeling.

physics.geo-ph↗