arXiv Science⌕ Search

arXiv subjects

Ping He

Publications and source records attributed to Ping He.

At least 37 records · Page 2Linked to original sources

Learning from Synthetic Data without Model Collapse in Iterative Instruction Tuning

Model collapse is a central challenge in learning from synthetic data: as later-generation large language models (LLMs) are trained on an increasing proportion of model-generated data, performance can degrade due to narrowed coverage and accumulated bias. Existing work mainly studies how to bound this degradation. In iterative model evolution, however, the more meaningful objective is to ensure that each successive model improves over its predecessor, which requires diagnosing collapse at a granularity that is actionable for data curation. We study this problem in synthetic data self-improving for instruction tuning. We show that collapse in this setting is not simply uniform performance degradation, but can appear as a polarization of competence, where synthetic training reinforces already strong skills while further degrading weak ones. Motivated by this observation, we propose KITE (Knowledge-boundary Instruction Tuning via Exploration), a two-stage framework that combines failure-guided data generation with boundary-aware uncertainty curation. Experiments across several datasets and multiple open-source LLMs show that KITE yields more stable improvement than strong synthetic-data baselines.

cs.CL↗

CWTHF: Subhalo Identification with Continuous Wavelet Transform

With advances in cosmology and computer science, cosmological simulations now resolve structures in increasingly fine detail. As key tracers of hierarchical structure formation, subhalos are among the most important objects within these simulations. In our previous work, we established that the continuous wavelet transform (CWT) can effectively extract clustering information and serve as a robust halo finder. Here, we extend the CWT framework to subhalo identification by adapting the Continuous Wavelet Transform Halo Finder (CWTHF) code. This extension extends the unbinding procedure, which enables the reliable identification of gravitationally bound substructures. The algorithm identifies density peaks within known halos or subhalos and segments the surrounding volume accordingly. Once a new subhalo is registered, its position is recorded to prevent duplicate detection. We validate our approach using the TNG50-2 and TNG100-1 simulations, as well as a single Friends-of-Friends (FOF) halo, by comparing the resulting CWT catalog against the reference SUBFIND catalog. Because the method inherits the original computational framework, our subhalo finder maintains a favorable linear time complexity of $\mathcal{O}(N)$.

astro-ph.IM↗

Min Generalized Sliced Gromov Wasserstein: A Scalable Path to Gromov Wasserstein

We propose min Generalized Sliced Gromov--Wasserstein (min-GSGW), a sliced formulation for the Gromov--Wasserstein (GW) problem using expressive generalized slicers. The key idea is to learn coupled nonlinear slicers that assign compatible push-forward values to both input measures, so that monotone coupling in the projected domain lifts to a transport plan evaluated against the GW objective in the original spaces. The resulting plan induces a GW objective value, and min-GSGW minimizes this cost directly in the original spaces. We further show that min-GSGW is rigid-motion invariant, a crucial property for geometric matching and shape analysis tasks. Our contributions are threefold: 1) we introduce generalized slicers into the sliced GW framework, 2) we construct a slicing-based efficient GW transport plan; and 3) we develop an amortized variant that replaces per-instance optimization with a learned slicer for unseen input pairs. We perform experiments on animal mesh matching, horse mesh interpolation, and ShapeNet part transfer. Results show that min-GSGW produces meaningful geometric correspondences and GW objective values at substantially lower computational cost than existing GW solvers.

cs.LG↗

Compiling Activation Steering into Weights via Null-Space Constraints for Stealthy Backdoors

Safety-aligned large language models (LLMs) are increasingly deployed in real-world pipelines, yet this deployment also enlarges the supply-chain attack surface: adversaries can distribute backdoored checkpoints that behave normally under standard evaluation but jailbreak when a hidden trigger is present. Recent post-hoc weight-editing methods offer an efficient approach to injecting such backdoors by directly modifying model weights to map a trigger to an attacker-specified response. However, existing methods typically optimize a token-level mapping that forces an affirmative prefix (e.g., ``Sure''), which does not guarantee sustained harmful output -- the model may begin with apparent agreement yet revert to safety-aligned refusal within a few decoding steps. We address this reliability gap by shifting the backdoor objective from surface tokens to internal representations. We extract a steering vector that captures the difference between compliant and refusal behaviors, and compile it into a persistent weight modification that activates only when the trigger is present. To preserve stealthiness and benign utility, we impose a null-space constraint so that the injected edit remains dormant on clean inputs. The method is efficient, requiring only a small set of examples and admitting a closed-form solution. Across multiple safety-aligned LLMs and jailbreak benchmarks, our method achieves high triggered attack success while maintaining non-triggered safety and general utility.

cs.CR↗

Sinkhorn-Drifting Generative Models

We establish a theoretical link between the recently proposed "drifting" generative dynamics and gradient flows induced by the Sinkhorn divergence. In a particle discretization, the drift field admits a cross-minus-self decomposition: an attractive term toward the target distribution and a repulsive/self-correction term toward the current model, both expressed via one-sided normalized Gibbs kernels. We show that Sinkhorn divergence yields an analogous cross-minus-self structure, but with each term defined by entropic optimal-transport couplings obtained through two-sided Sinkhorn scaling (i.e., enforcing both marginals). This provides a precise sense in which drifting acts as a surrogate for a Sinkhorn-divergence gradient flow, interpolating between one-sided normalization and full two-sided Sinkhorn scaling. Crucially, this connection resolves an identifiability gap in prior drifting formulations: leveraging the definiteness of the Sinkhorn divergence, we show that zero drift (equilibrium of the dynamics) implies that the model and target measures match. Experiments show that Sinkhorn drifting reduces sensitivity to kernel temperature and improves one-step generative quality, trading off additional training time for a more stable optimization, without altering the inference procedure used by drift methods. These theoretical gains translate to strong low-temperature improvements in practice: on FFHQ-ALAE at the lowest temperature setting we evaluate, Sinkhorn drifting reduces mean FID from 187.7 to 37.1 and mean latent EMD from 453.3 to 144.4, while on MNIST it preserves full class coverage across the temperature sweep. Project page: https://mint-vu.github.io/SinkhornDrifting/

cs.LG↗

Scaling limit of heavy tailed nearly unstable cumulative INAR($\infty$) processes and rough fractional diffusions

In this paper, we investigate the scaling limit of heavy-tailed nearly unstable cumulative INAR($\infty$) processes. These processes exhibit a power-law tail of the form $n^{-(1+α)}$ for $α\in (\frac{1}{2}, 1)$, and the $\ell^1$ norm of the kernel vector converges to 1. We demonstrate that the discrete-time scaling limit retains a long-memory property and can be viewed as an integrated fractional Cox-Ingersoll-Ross process. Moreover, we present an efficient method for simulating the fractional Cox-Ingersoll-Ross process. The simulation and Goodness-of-Fit Test code are available at https://github.com/gagawjbytw/INAR-rough-Heston.

math.PR↗

FraudShield: Knowledge Graph Empowered Defense for LLMs against Fraud Attacks

Large language models (LLMs) have been widely integrated into critical automated workflows, including contract review and job application processes. However, LLMs are susceptible to manipulation by fraudulent information, which can lead to harmful outcomes. Although advanced defense methods have been developed to address this issue, they often exhibit limitations in effectiveness, interpretability, and generalizability, particularly when applied to LLM-based applications. To address these challenges, we introduce FraudShield, a novel framework designed to protect LLMs from fraudulent content by leveraging a comprehensive analysis of fraud tactics. Specifically, FraudShield constructs and refines a fraud tactic-keyword knowledge graph to capture high-confidence associations between suspicious text and fraud techniques. The structured knowledge graph augments the original input by highlighting keywords and providing supporting evidence, guiding the LLM toward more secure responses. Extensive experiments show that FraudShield consistently outperforms state-of-the-art defenses across four mainstream LLMs and five representative fraud types, while also offering interpretable clues for the model's generations.

cs.CR↗

Assimilating rough features: A data-driven framework to infer rough wall properties from sparse experimental data

Surface roughness influences turbulent boundary layers (TBLs) primarily through the roughness function $ΔU^+$ and the equivalent sand-grain roughness height \(k_s\). Direct determination of \(k_s\) typically requires detailed velocity and wall-shear stress measurements, which are often impractical. As an alternative, this study presents a data assimilation framework that modifies a smooth-wall Reynolds-Averaged Navier-Stokes (RANS) baseline to match sparse rough-wall particle image velocimetry (PIV) data in the fully rough regime. Through this approach, secondary variables such as the friction velocity, \(u_τ\), and \(k_s\) can be inferred from the assimilated flow fields. The assimilated TBL reproduces experimental velocity profiles within 1\% and predicts friction velocity within 1-6\% of the experimental measurements. Furthermore, the \(k_s\) values inferred from the assimilation also match the experimental data up to 1\%. These results demonstrate the potential of data assimilation as a cost-effective alternative to high-fidelity methods and support the generalisation of the framework to model streamwise-varying roughness by treating \(k_s\) as a function of fetch length.

physics.flu-dyn↗

HogVul: Black-box Adversarial Code Generation Framework Against LM-based Vulnerability Detectors

Recent advances in software vulnerability detection have been driven by Language Model (LM)-based approaches. However, these models remain vulnerable to adversarial attacks that exploit lexical and syntax perturbations, allowing critical flaws to evade detection. Existing black-box attacks on LM-based vulnerability detectors primarily rely on isolated perturbation strategies, limiting their ability to efficiently explore the adversarial code space for optimal perturbations. To bridge this gap, we propose HogVul, a black-box adversarial code generation framework that integrates both lexical and syntax perturbations under a unified dual-channel optimization strategy driven by Particle Swarm Optimization (PSO). By systematically coordinating two-level perturbations, HogVul effectively expands the search space for adversarial examples, enhancing the attack efficacy. Extensive experiments on four benchmark datasets demonstrate that HogVul achieves an average attack success rate improvement of 26.05\% over state-of-the-art baseline methods. These findings highlight the potential of hybrid optimization strategies in exposing model vulnerabilities.

cs.CR↗

The dynamical and thermodynamic effects of turbulence on the cosmic baryonic fluid

Both simulations and observations indicate that the so-called missing baryons reside in the intergalactic medium known as the warm-hot intergalactic medium (WHIM). In this study we employed the IllustrisTNG50-1 simulation to demonstrate that knowledge of the turbulence in the cosmic baryonic fluid is crucial for correctly understanding both the spatial distribution and the physical origins of the missing baryons in the Universe. First, we find that dynamical effects cause the gas to be detained in low-density and intermediate-density regions, resulting in high baryon fractions, and prevent the convergence of the gas in high-density regions, leading to low baryon fractions. Second, turbulent energy is converted into thermal energy, and the injection and dissipation of turbulent energy have essentially reached a balance from $z=1$ to $0$. This indicates that the cosmic fluid is in a steady state within this redshift range. Due to turbulent heating, as the redshift decreases, an increasing amount of warm gas is heated and converted into the WHIM, and some even into hot gas. We find that, compared with turbulence in the cosmic fluid, shocks are unimportant in intermediate-density regions and even negligible in high-density regions, both dynamically and thermodynamically. This finding accounts for the origin of the WHIM in terms of both dynamics and thermodynamics, calls into question the traditional view of shock-heating, and highlights the importance of turbulence in shaping the large-scale structure of the Universe, particularly in the evolution of galaxies and galaxy clusters. In addition to TNG50-1, we validated our key findings with TNG50-2, TNG100-1, WIGEON, and EAGLE simulations, demonstrating that the spatial resolution, box size, and sub-grid-physics variations do not affect our main conclusions.

astro-ph.CO↗

Symmetric Dicke States as Optimal Probes for Wave-Like Dark Matter

We identify symmetric Dicke states as the optimal quantum probes for distributed sensing of wave-like dark-matter fields. Within an ensemble-averaged quantum-metrological framework that incorporates the field's random phases and finite coherence, they maximize the Fisher information for short-baseline arrays with $N_d$ sensors and realize a robust $N_d^2$ enhancement. They also retain this collective advantage under amplitude-damping noise, whereas GHZ-type probes are highly fragile and rapidly lose their sensitivity once such noise is included. For two sensors at separations comparable to the dark-matter coherence length, the optimal entangled state acquires an additional spatial-correlation phase and outperforms both Dicke and independent probes. Our framework applies broadly to stochastic bosonic fields, including gravitational waves, and can be implemented with superconducting qubits, atomic ensembles, and NV centers.

hep-ph↗

LUNA: Linear Universal Neural Attention with Generalization Guarantees

Scaling attention faces a critical bottleneck: the $\mathcal{O}(n^2)$ quadratic computational cost of softmax attention, which limits its application in long-sequence domains. While linear attention mechanisms reduce this cost to $\mathcal{O}(n)$, they typically rely on fixed random feature maps, such as random Fourier features or hand-crafted functions. This reliance on static, data-agnostic kernels creates a fundamental trade-off, forcing practitioners to sacrifice significant model accuracy for computational efficiency. We introduce \textsc{LUNA}, a kernelized linear attention mechanism that eliminates this trade-off, retaining linear cost while matching and surpassing the accuracy of quadratic attention. \textsc{LUNA} is built on the key insight that the kernel feature map itself should be learned rather than fixed a priori. By parameterizing the kernel, \textsc{LUNA} learns a feature basis tailored to the specific data and task, overcoming the expressive limitations of fixed-feature methods. \textsc{Luna} implements this with a learnable feature map that induces a positive-definite kernel and admits a streaming form, yielding linear time and memory scaling in the sequence length. Empirical evaluations validate our approach across diverse settings. On the Long Range Arena (LRA), \textsc{Luna} achieves state-of-the-art average accuracy among efficient Transformers under compute parity, using the same parameter count, training steps, and approximate FLOPs. \textsc{Luna} also excels at post-hoc conversion: replacing softmax in fine-tuned BERT and ViT-B/16 checkpoints and briefly fine-tuning recovers most of the original performance, substantially outperforming fixed linearizations.

cs.LG↗

Field Inversion Machine Learning for Time-Resolved Unsteady Flows in Airfoil Dynamic Stall

While many existing machine learning studies have focused on augmenting Reynolds averaged Navier Stokes (RANS) turbulence models for steady or time averaged unsteady flows, this paper takes a first step toward extending such augmentation to time resolved unsteady flows. An unsteady field inversion and machine learning (FIML) method is developed, in which a temporally evolving correction field (beta) is incorporated into the production term of a RANS turbulence model. The inverse problem is solved by optimizing the spatial temporal distribution of beta to minimize the regularized prediction errors. The resulting optimized beta field is then used to train a multi layer neural network that learns the time dependent relationship between local flow features and beta. The approach is demonstrated using the unsteady flow over a NACA0012 airfoil undergoing dynamic stall. Results show that the unsteady FIML model, trained using only the time series of drag data at a given pitch rate, can accurately reproduce the spatial temporal evolution of reference drag, lift, pitching moment, surface pressure, and velocity fields at both identical and different pitch rates. The unsteady FIML is integrated into the open source DAFoam framework, enabling a pathway toward developing accurate and generalizable RANS turbulence models for time resolved unsteady flows.

physics.flu-dyn↗

Better Datasets Start From RefineLab: Automatic Optimization for High-Quality Dataset Refinement

High-quality Question-Answer (QA) datasets are foundational for reliable Large Language Model (LLM) evaluation, yet even expert-crafted datasets exhibit persistent gaps in domain coverage, misaligned difficulty distributions, and factual inconsistencies. The recent surge in generative model-powered datasets has compounded these quality challenges. In this work, we introduce RefineLab, the first LLM-driven framework that automatically refines raw QA textual data into high-quality datasets under a controllable token-budget constraint. RefineLab takes a set of target quality attributes (such as coverage and difficulty balance) as refinement objectives, and performs selective edits within a predefined token budget to ensure practicality and efficiency. In essence, RefineLab addresses a constrained optimization problem: improving the quality of QA samples as much as possible while respecting resource limitations. With a set of available refinement operations (e.g., rephrasing, distractor replacement), RefineLab takes as input the original dataset, a specified set of target quality dimensions, and a token budget, and determines which refinement operations should be applied to each QA sample. This process is guided by an assignment module that selects optimal refinement strategies to maximize overall dataset quality while adhering to the budget constraint. Experiments demonstrate that RefineLab consistently narrows divergence from expert datasets across coverage, difficulty alignment, factual fidelity, and distractor quality. RefineLab pioneers a scalable, customizable path to reproducible dataset design, with broad implications for LLM evaluation.

cs.CL↗

Serre functor and torsion pairs

Given a torsion pair $(\mathcal{T},\mathcal{F})$ in an abelian category $\mathcal{A}$ and its Happel-Reiten-Smalø tilt $\mathcal{B}$, the equivalence of the realization functor $D^b({\mathcal B})\to D^b({\mathcal A})$ is determined by some properties of the torsion pair [9]. We call $(\mathcal{T},\mathcal{F})$ satisfying such a property effaceable. If $\mathcal{A}$ is an Ext-finite abelian category with Serre duality, we prove that $(\mathcal{T},\mathcal{F})$ is effaceable implies that $\mathcal{U}_{\mathcal T}$ is closed under Serre functor. Conversely, when $\mathcal A$ is the module category of a finite-dimensional hereditary algebra, we prove that the torsion pair $(\mathcal{T},\mathcal{F})$ is effaceable if and only if $\mathcal{U}_\mathcal{T}$ is closed under the Serre functor via a recollement of $D^b({\mathcal A})$.

math.RT↗

Automatic Red Teaming LLM-based Agents with Model Context Protocol Tools

The remarkable capability of large language models (LLMs) has led to the wide application of LLM-based agents in various domains. To standardize interactions between LLM-based agents and their environments, model context protocol (MCP) tools have become the de facto standard and are now widely integrated into these agents. However, the incorporation of MCP tools introduces the risk of tool poisoning attacks, which can manipulate the behavior of LLM-based agents. Although previous studies have identified such vulnerabilities, their red teaming approaches have largely remained at the proof-of-concept stage, leaving the automatic and systematic red teaming of LLM-based agents under the MCP tool poisoning paradigm an open question. To bridge this gap, we propose AutoMalTool, an automated red teaming framework for LLM-based agents by generating malicious MCP tools. Our extensive evaluation shows that AutoMalTool effectively generates malicious MCP tools capable of manipulating the behavior of mainstream LLM-based agents while evading current detection mechanisms, thereby revealing new security risks in these agents.

cs.CR↗

CLMTracing: Black-box User-level Watermarking for Code Language Model Tracing

With the widespread adoption of open-source code language models (code LMs), intellectual property (IP) protection has become an increasingly critical concern. While current watermarking techniques have the potential to identify the code LM to protect its IP, they have limitations when facing the more practical and complex demand, i.e., offering the individual user-level tracing in the black-box setting. This work presents CLMTracing, a black-box code LM watermarking framework employing the rule-based watermarks and utility-preserving injection method for user-level model tracing. CLMTracing further incorporates a parameter selection algorithm sensitive to the robust watermark and adversarial training to enhance the robustness against watermark removal attacks. Comprehensive evaluations demonstrate CLMTracing is effective across multiple state-of-the-art (SOTA) code LMs, showing significant harmless improvements compared to existing SOTA baselines and strong robustness against various removal attacks.

cs.PL↗