Searcharxiv⌕ Search

arXiv subjects

Jiayu Zhao

Publications and source records attributed to Jiayu Zhao.

16 recordsLinked to original sources

VeriGRAG: Enhancing LLM-Based Verilog Code Generation with Structure-Aware Soft Prompts

Large language models (LLMs) have demonstrated remarkable capabilities in generating Verilog code from natural language descriptions. However, Verilog code inherently encodes the structural characteristics of hardware circuits, including data path organization and interconnections among components. Effectively leveraging these structural characteristics to enhance the functional and syntactic correctness of LLM-based Verilog code generation remains a significant challenge. To address this challenge, we propose VeriGRAG, a novel framework that converts Verilog code into data path graphs and employs graph neural networks (GNNs) to encode their structural information. A multimodal retriever, trained through knowledge distillation from a cross-attention encoder to a dual encoder, then selects the graph embeddings most relevant to the input hardware description. The VeriFormer module uses learnable query tokens and two-stage training to extract code-relevant structural features and align them with the LLM's input embedding space, producing structure-aware soft prompts. Experiments on VerilogEval and RTLLM show improvements in both syntactic and functional correctness. With Qwen2.5-Coder-32B as its backbone, VeriGRAG achieves the highest functional $pass@1$ and $pass@5$ scores among the compared methods on both benchmarks.

cs.AR↗

Harness Compilation: Which Decisions Should a Small Vision-Language Model Keep?

Small vision-language models may be able to read external evidence yet struggle to obtain it. We introduce Harness Compilation (HC), an offline procedure that adapts the division of work between a frozen small VLM and its external harness. A large teacher uses student execution traces to revise reusable content and control, while a separate validation set selects the deployed harness. Deployment requires neither weight updates nor teacher calls. Across seven visual question-answering settings with students of at most 9B parameters, HC improves scores over bare students by 9.9-23.9 points, averaged over three independent builds per setting. Interventions on five runtime decision types (invocation, selection, argument generation, evidence integration and abstention) show why this allocation matters: requesting evidence and generating open queries can be costly, whereas bounded choices and reading supplied text can remain useful student work. Fact cards benefit all ten evaluated students, but decision policies transfer unevenly. Recompilation for a new student model helps when the transferred interface no longer fits the student. With 100 practice items, HC exceeds answer-only LoRA on three tasks. Larger training budgets can match or surpass a fixed harness, while combining the two improves SlideVQA beyond either alone. These findings support allocating work from measured student behavior rather than uniformly removing decisions.

cs.AI↗

SlimKV: Joint Token-Feature KV Cache Compression with Reconstruction-Free Beacon Attention

Long-context LLM serving is increasingly bottlenecked by KV-cache memory, especially in resource-constrained scenarios. Among existing KV-cache compression strategies, token-wise methods reduce cached states but risk information loss through eviction or condensation, while feature-wise methods reduce per-token KV dimensions but can require full-dimensional reconstruction to apply positional embedding, limiting decoding speedups. We introduce SlimKV, a question-agnostic joint token-feature KV-cache compression method. SlimKV uses low-rank-aware training to compress long contexts into beacon memory states with latent KV representations, together with layer-adaptive rank allocation. We further uncover a positional asymmetry: removing key-side RoPE affects beacon and raw tokens differently, with much smaller degradation for beacon tokens. Exploiting this asymmetry, SlimKV trains beacon KV projections under a K-RoPE-free constraint and enables latent-space attention during decoding, mitigating reconstruction latency. On LongBench, SlimKV outperforms baselines at 16x/32x compression and remains leading at 4x/8x, where it retains over 96% of the uncompressed model's score. Needle-in-a-Haystack confirms robustness across evidence positions, and efficiency evaluation shows up to 7.34x attention speedup and 3.38x end-to-end decoding speedup over the uncompressed model at 128K length.

cs.LG↗

BitsMoE: Cost-Aware Bit Allocation in Spectral Space for MoE LLM Quantization

Mixture-of-Experts (MoE) large language models incur substantial memory costs due to their large expert parameter counts. Mixed-precision quantization reduces these costs by allocating different bit-widths to experts or linear blocks according to their importance. However, assigning a single precision within each expert or linear block overlooks its internal structural heterogeneity. This limitation motivates two key questions: (1) how to define a fine-grained unit for quantization within a linear transformation; and (2) how to characterize the quantization cost of each unit under actual activation patterns and different bit-widths. To address these two questions, we propose BitsMoE, a cost-aware mixed-precision quantization framework built on two complementary techniques: (1) Shared-basis Spectral Decomposition (SSD) separates expert weights into a shared basis and expert-specific spectral components, defining structural quantization units while exploiting cross-expert redundancy. (2) Factorized Quantization Cost Modeling (FQCM) estimates component-wise costs from output reconstruction loss by combining intrinsic spectral importance, activation-dependent importance, and bit-width-dependent distortion. Using these component-wise costs, we formulate bit allocation as an integer linear program (ILP) that minimizes total modeled quantization cost under a fixed memory budget. On Qwen3-30B-A3B at 2-bit, BitsMoE achieves 64.29% average accuracy over seven downstream tasks, outperforming the evaluated MoE-specific methods, including those using ILP-based bit allocation, and exceeding GEMQ by 2.80 percentage points. Under the same setting, it achieves a $16.47\times$ end-to-end offline quantization speedup over GEMQ. It also achieves up to $6.46\times$ the decode throughput of GPTQ.

cs.LG↗

ScalarLens: Numerical Embeddings with Stable Coordinates and Contextual Responses for CTR Prediction

Numerical embeddings for click-through rate (CTR) prediction are built on a convenient but restrictive premise: a scalar has one representation. This premise conflates where a value lies with what it means for the current sample. On the Criteo validation split, the same numerical interval carries residual click evidence with opposite signs across categorical and numerical contexts, even after additive main effects are removed. Production pipelines compound this mismatch because externally normalized features require transformations and statistics to remain synchronized between training and serving. We introduce ScalarLens, a numerical embedding that preserves what a value is while adapting how it should be interpreted. A monotone local mesh constructs a stable coordinate from the focal scalar alone; bounded low-rank dynamics then produce a contextual response without moving that coordinate or replacing categorical tokens and the CTR backbone. In a 1,539-run primary evaluation covering 19 representations, three datasets, nine backbones, and three seeds, ScalarLens ranks first in 25 of 27 settings on original numerical scales and second in the remaining two. Matched ablations show that scale correction, additional local capacity, and generic conditioning do not reproduce the gain. A controlled study further recovers categorical, numerical, and mixed response mechanisms under context shift while the focal coordinate remains exactly invariant. A complete rerun under shared standardization retains significant advantages over DEER, DAES, and NaryDis, showing that the result is not explained by tolerance to raw scales alone. ScalarLens therefore recasts numerical embedding as a measurement problem: coordinates belong to values, while predictive responses belong to values in context.

cs.IR↗

Translating LHCb's Documentation: First experiences and ensuring maintenance

The Starterkit Lessons online and Starterkit Workshops held in Geneva each year have been the main method of onboarding newcomers to the LHCb experiment since its founding in 2015. The new software corresponding to Upgrade 1 of the LHCb and Run 3 of datataking at the LHC has necessitated a new version of this Starterkit to be written. This new version has made several improvements over the old one, with increased maintainability through testing of examples in CI pipelines, and has also allowed for translations of the Starterkit Lessons. In late 2025 the Run 3 Starterkit lessons were translated into Mandarin Chinese, to allow for a sibling Starterkit event to take place in China, with a dedicated liaison role set up to ensure synchronization between the two translations. To measure the success of the Chinese Starterkit Lessons, analytics have been added revealing that roughly 22% of all visits to the Starterkit website will access at least one Chinese-language page.

physics.ed-ph↗

Beyond Benefit or Risk: Perceived Impact Profiles of Human-AI Affective Interaction and Their Associations with Psychological Functioning

Relational AI increasingly serves as an emotional shelter for humans, and its impact is mixed. Prior research has focused on either positive or negative impacts, leaving unclear how they are configured within individuals and relate to psychological functioning. To address these gaps, this study used a sequential mixed-methods design. Study 1 interviewed 52 users with emotional ties to AI and identified four positive impact domains (emotional relief, loneliness alleviation, enhanced interpersonal functioning, and personal growth) and four negative impact domains (virtual-real boundary blur, social replacement, cognitive-emotional reinforcement, and excessive use). Study 2 followed 673 Chinese AI users for six months and identified four profiles of individuals differently impacted by relational AI use: minimal impact, benefit-driven impact, mixed impact, and risk-driven impact. Users in the mixed impact and risk-driven impact profiles were both high in human-AI affective bonding, but those showing risk-driven impact had greater vulnerability, indicated by higher interpersonal need frustration and emotion-regulation difficulties, more depressive and anxiety symptoms, and lower self-esteem and flourishing. Users in the benefit-driven and mixed impact profiles showed more favorable psychological functioning. After controlling for baseline functioning and relevant covariates, Wave 1 profiles did not predict five of the six Wave 2 indicators; only users in the mixed impact profile reported higher flourishing than those in the minimal impact profile. Overall, potential psychological harms associated with relational AI engagement appeared limited and selective. These findings portray relational AI as a heterogeneous socio-emotional context that may partly mirror users' states and traits, warranting individualized, adaptive safeguards.

cs.HC↗

PRIME: Mitigating Subgroup Optimization Competition in Shared CTR Top Networks with Plug-in Residual Input-Conditioned Mixture of Expert

Click-through rate (CTR) models vary in feature-interaction design, yet their top networks usually remain a single multilayer perceptron shared by all examples. Heterogeneous user, item, and context subgroups therefore update the same parameters; weakly aligned learning signals make the aggregate gradient a compromise among competing directions. We study the competition on Avazu with 4 models and 4 semantic fields. Across all architectures, semantic subgroups show lower Top-NN gradient cosine similarity than random groups matched by sample size and label ratio, with reductions of 0.23-0.37. This competition motivates input-conditioned experts, but directly replacing an established Dense mapping changes its initial function, sharing pattern, and capacity, obscuring the source of gains. We introduce PRIME (Plug-in Residual Input-conditioned Mixture of Experts), a Dense-anchored mixture of low-rank residual experts. PRIME anchors the original prediction and uses zero-residual initialization to match the Dense baseline exactly at training onset. Input-dependent routing weights low-rank experts for example-specific logit corrections; multi-bag aggregation and EMA load biases stabilize conditional estimation. We evaluate PRIME on held-out Avazu and Criteo test sets across 13 CTR architectures and five paired seeds. Median paired AUC gains are +0.0022 and +0.0066, with LogLoss reductions of 0.0011 and 0.0081, respectively. On FiBiNET and DCNv2, PRIME outperforms APG in all ten seed-level AUC comparisons while using fewer parameters and lower inference latency on both backbones. These results show that function-preserving conditional residuals add input-dependent capacity while preserving the Dense path and its optimization stability. Code is available at https://github.com/YH-learning/PRIME.

cs.LG↗

Near-field perturbation of laser filament enabling simultaneous far-field THz diagnosis and broadband calculus processing

Terahertz (THz) wave manipulation based on laser filaments-plasma channels formed by femtosecond laser-induced air ionization-has emerged as a promising platform for free-space THz applications. However, in-situ characterization of the spatially confined THz modes within filaments faces significant challenges due to the plasma's ultra-high intensity, which not only hinders direct near-field probing but also limits reliance on indirect far-field reconstruction. Here, we introduce a non-invasive near-field modulation scheme where a metal plate approaches the filament at submillimeter distances (comparable to THz wavelengths), perturbing the dielectric environment to convert the symmetric annular THz mode into an asymmetric state. This controlled transition enables far-field detection of broadband calculus behaviors (first- and second-order differentiation/integration) on time-domain THz waveforms and characteristic spectral transfer functions with 1/f, 1/f^2, f or f^2 dependency (where f is the THz frequency), thereby diagnosing the near-field THz mode confinement. Hence, the proposed approach synergizes near-field modulation efficiency with far-field detection robustness, advancing fundamental understanding of plasma-THz interactions and enabling novel all-optical signal processing for filament-based THz technologies.

physics.optics↗

Revealing the terahertz-laser velocity effect during air filamentation via travelling-wave-antenna model

During femtosecond laser filamentation in air, the velocity ratio (K) between the terahertz (THz) phase velocity and the laser group velocity plays a crucial role in THz waves generation. However, K is typically assumed to be unity and its impact has been long overlooked due to the more attention paid to the more easily controlled filament length. Here, we investigate the obscured contribution of K to the THz radiation characteristics by using the improved travelling-wave-antenna (TWA) model. It has been found that, under both single- and two-color laser pumping schemes, K significantly determines the far-field spatial distribution of forward or backward THz radiation, as well as a transition from Bessel- to Cherenkov-type THz emission patterns. These results establish the TWA model as a reliable theoretical tool for studying the mechanisms of THz beam shaping via the designed K. Moreover, for cases of K not being controlled, its value can also be inferred by the proposed TWA model, which could be an effective method to confirm whether the laser ionization front is superluminal or subluminal compared with the generated THz waves.

physics.optics↗

Unleashing the Potential of Acquisition Functions in High-Dimensional Bayesian Optimization

Bayesian optimization (BO) is widely used to optimize expensive-to-evaluate black-box functions.BO first builds a surrogate model to represent the objective function and assesses its uncertainty. It then decides where to sample by maximizing an acquisition function (AF) based on the surrogate model. However, when dealing with high-dimensional problems, finding the global maximum of the AF becomes increasingly challenging. In such cases, the initialization of the AF maximizer plays a pivotal role, as an inadequate setup can severely hinder the effectiveness of the AF. This paper investigates a largely understudied problem concerning the impact of AF maximizer initialization on exploiting AFs' capability. Our large-scale empirical study shows that the widely used random initialization strategy often fails to harness the potential of an AF. In light of this, we propose a better initialization approach by employing multiple heuristic optimizers to leverage the historical data of black-box optimization to generate initial points for the AF maximize. We evaluate our approach with a range of heavily studied synthetic functions and real-world applications. Experimental results show that our techniques, while simple, can significantly enhance the standard BO and outperform state-of-the-art methods by a large margin in most test cases.

cs.LG↗

Scalable Fair Influence Maximization

Given a graph $G$, a community structure $\mathcal{C}$, and a budget $k$, the fair influence maximization problem aims to select a seed set $S$ ($|S|\leq k$) that maximizes the influence spread while narrowing the influence gap between different communities. While various fairness notions exist, the welfare fairness notion, which balances fairness level and influence spread, has shown promising effectiveness. However, the lack of efficient algorithms for optimizing the welfare fairness objective function restricts its application to small-scale networks with only a few hundred nodes. In this paper, we adopt the objective function of welfare fairness to maximize the exponentially weighted summation over the influenced fraction of all communities. We first introduce an unbiased estimator for the fractional power of the arithmetic mean. Then, by adapting the reverse influence sampling (RIS) approach, we convert the optimization problem to a weighted maximum coverage problem. We also analyze the number of reverse reachable sets needed to approximate the fair influence at a high probability. Further, we present an efficient algorithm that guarantees $1-1/e - \varepsilon$ approximation.

cs.DS↗

Principle of Terahertz Time-Domain Spectroscopy

In this work, the detection of terahertz (THz) pulse via different schemes of THz time-domain spectroscopy (THz-TDS), including electro-optic sampling (EOS) and photoconductive sampling (PCS), has been reviewed by insisting on its principles and characteristics. Furthermore, four developments of THz-TDS, i.e. THz air-breakdown/biased coherent detection (THz-ABCD), THz-radiation-enhanced emission of fluorescence (THz-REEF), single-shot THz-TDS, and THz asynchronous optical sampling (THz-ASOPS) have also been introduced.

physics.optics↗

Observation of the epsilon-near-zero (ENZ) effect inside the laser plasma in air

In the world of epsilon-near-zero (ENZ) materials, the plasma is unique for its natural ENZ properties at the plasma frequency (wp). However, for the air plasma during femtosecond laser filamentation with wp in terahertz (THz) band, which is also known as a broadband THz emitter, the possible ENZ effect has long been neglected. In this work, interactions between the laser plasma in air and the radiated THz waves were investigated, and the THz resonance absorption at the ENZ point, which gave rise to the generation of surface plasmon waves, has been theoretically and experimentally demonstrated for the first time, to the best of our knowledge. Specifically, this ENZ effect was accompanied with THz modulations along the plasma filament in multiple domains, including the linear-to-elliptical THz polarization conversion and the multi-ring pattern of far-field THz profiles, etc. Thanks to these novel ENZ-induced phenomena, the understanding of this important plasma-based THz source has been enriched. Moreover, by extending the laser plasma to the role of ENZ material, it is promising to expedite related applications benefiting from the ENZ nature, e.g., the strong spatial confinement of THz waves inside the ENZ region between the bi-filaments array, which realized all-optical time-domain integration of broadband THz pulses as we recently displayed in [arXiv].

physics.plasm-ph↗

Terahertz Wave Guiding by Femtosecond Laser Filament in Air

Femtosecond laser filament generates strong terahertz (THz) pulse in air. In this paper, THz pulse waveform generated by femtosecond laser filament has been experimentally investigated as a function of the length of the filament. Superluminal propagation of THz pulse has been uncovered, indicating that the filament creates a THz waveguide in air. Numerical simulation has confirmed that the waveguide is formed because of the radially non-uniform refractive index distribution inside the filament. The underlying physical mechanisms and the control techniques of this type THz pulse generation method might be revisited based on our findings. It might also potentially open a new approach for long-distance propagation of THz wave in air.

physics.optics↗

Terahertz imaging with sub-wavelength resolution by femtosecond laser filament in air

Terahertz (THz) imaging provides cutting edge technique in biology, medical sciences and non-destructive evaluation. However, due to the long wavelength of the THz wave, the obtained resolution of THz imaging is normally a few hundred microns and is much lower than that of the traditional optical imaging. We introduce a sub-wavelength resolution THz imaging technique which uses the THz radiation generated by a femtosecond laser filament in air as the probe. This method is based on the fact that the femtosecond laser filament forms a waveguide for the THz wave in air. The diameter of the THz beam, which propagates inside the filament, varies from 20 μm to 50 μm, which is significantly smaller than the wavelength of the THz wave. Using this highly spatially confined THz beam as the probe, THz imaging with resolution as high as 20 μm (~λ/38) can be realized.

physics.optics↗