arXiv ScienceSearch

arXiv subjects

Linhao Zhang

Publications and source records attributed to Linhao Zhang.

34 records · Page 2Linked to original sources

CodeV: Issue Resolving with Visual Data

Large Language Models (LLMs) have advanced rapidly in recent years, with their applications in software engineering expanding to more complex repository-level tasks. GitHub issue resolving is a key challenge among these tasks. While recent approaches have made progress on this task, they focus on textual data within issues, neglecting visual data. However, this visual data is crucial for resolving issues as it conveys additional knowledge that text alone cannot. We propose CodeV, the first approach to leveraging visual data to enhance the issue-resolving capabilities of LLMs. CodeV resolves each issue by following a two-phase process: data processing and patch generation. To evaluate CodeV, we construct a benchmark for visual issue resolving, namely Visual SWE-bench. Through extensive experiments, we demonstrate the effectiveness of CodeV, as well as provide valuable insights into leveraging visual data to resolve GitHub issues.

cs.SE

CoFE-RAG: A Comprehensive Full-chain Evaluation Framework for Retrieval-Augmented Generation with Enhanced Data Diversity

Retrieval-Augmented Generation (RAG) aims to enhance large language models (LLMs) to generate more accurate and reliable answers with the help of the retrieved context from external knowledge sources, thereby reducing the incidence of hallucinations. Despite the advancements, evaluating these systems remains a crucial research area due to the following issues: (1) Limited data diversity: The insufficient diversity of knowledge sources and query types constrains the applicability of RAG systems; (2) Obscure problems location: Existing evaluation methods have difficulty in locating the stage of the RAG pipeline where problems occur; (3) Unstable retrieval evaluation: These methods often fail to effectively assess retrieval performance, particularly when the chunking strategy changes. To tackle these challenges, we propose a Comprehensive Full-chain Evaluation (CoFE-RAG) framework to facilitate thorough evaluation across the entire RAG pipeline, including chunking, retrieval, reranking, and generation. To effectively evaluate the first three phases, we introduce multi-granularity keywords, including coarse-grained and fine-grained keywords, to assess the retrieved context instead of relying on the annotation of golden chunks. Moreover, we release a holistic benchmark dataset tailored for diverse data scenarios covering a wide range of document formats and query types. We demonstrate the utility of the CoFE-RAG framework by conducting experiments to evaluate each stage of RAG systems. Our evaluation method provides unique insights into the effectiveness of RAG systems in handling diverse data scenarios, offering a more nuanced understanding of their capabilities and limitations.

cs.CL

COT: A Generative Approach for Hate Speech Counter-Narratives via Contrastive Optimal Transport

Counter-narratives, which are direct responses consisting of non-aggressive fact-based arguments, have emerged as a highly effective approach to combat the proliferation of hate speech. Previous methodologies have primarily focused on fine-tuning and post-editing techniques to ensure the fluency of generated contents, while overlooking the critical aspects of individualization and relevance concerning the specific hatred targets, such as LGBT groups, immigrants, etc. This research paper introduces a novel framework based on contrastive optimal transport, which effectively addresses the challenges of maintaining target interaction and promoting diversification in generating counter-narratives. Firstly, an Optimal Transport Kernel (OTK) module is leveraged to incorporate hatred target information in the token representations, in which the comparison pairs are extracted between original and transported features. Secondly, a self-contrastive learning module is employed to address the issue of model degeneration. This module achieves this by generating an anisotropic distribution of token representations. Finally, a target-oriented search method is integrated as an improved decoding strategy to explicitly promote domain relevance and diversification in the inference process. This strategy modifies the model's confidence score by considering both token similarity and target relevance. Quantitative and qualitative experiments have been evaluated on two benchmark datasets, which demonstrate that our proposed model significantly outperforms current methods evaluated by metrics from multiple aspects.

cs.CL

DHA: Learning Decoupled-Head Attention from Transformer Checkpoints via Adaptive Heads Fusion

Large language models (LLMs) with billions of parameters demonstrate impressive performance. However, the widely used Multi-Head Attention (MHA) in LLMs incurs substantial computational and memory costs during inference. While some efforts have optimized attention mechanisms by pruning heads or sharing parameters among heads, these methods often lead to performance degradation or necessitate substantial continued pre-training costs to restore performance. Based on the analysis of attention redundancy, we design a Decoupled-Head Attention (DHA) mechanism. DHA adaptively configures group sharing for key heads and value heads across various layers, achieving a better balance between performance and efficiency. Inspired by the observation of clustering similar heads, we propose to progressively transform the MHA checkpoint into the DHA model through linear fusion of similar head parameters step by step, retaining the parametric knowledge of the MHA checkpoint. We construct DHA models by transforming various scales of MHA checkpoints given target head budgets. Our experiments show that DHA remarkably requires a mere 0.25\% of the original model's pre-training budgets to achieve 97.6\% of performance while saving 75\% of KV cache. Compared to Group-Query Attention (GQA), DHA achieves a 5$\times$ training acceleration, a maximum of 13.93\% performance improvement under 0.01\% pre-training budget, and 4\% relative improvement under 0.05\% pre-training budget.

cs.LG

Longitudinal beam dynamics design fpr Super Tau-Charm Facility

The project of Super Tau-Charm Facility (STCF) proposed in China, as a new-generation high-luminosity $e^+e^-$ collider in the low-energy region with the center-of-mass energy of 2-7 GeV, is well underway. The luminosity is targeted at $1.0\times10^{35} cm^{-2}s^{-1}$ at the optimized beam energy of 2 GeV. Longitudinal beam dynamics becomes of great importance for the STCF due to the constraints from the novel beam-beam effect called coherent X-Z instability and severe beam collective effects. In this paper, we will develop an iterative optimization model for the STCF longitudinal beam dynamics design, which takes into account the influence of transverse dynamics, coherent X-Z instability, and collective effects.

physics.acc-ph

Theories derived from Haissinski equation and their applications to electron storage rings

As a stationary solution of the Vlasov-Fokker-Planck equation, the Haissinski equation predicts the equilibrium line density of a bunch that circulates in a storage ring for a given wake function. This paper shows that some equations regarding the centroid shift of the bunch, the peak position of the bunch profile, bunch length, and extraction of impedance from the bunch profile can be derived from the Haissinski equation in a self-consistent manner. In particular, a generalized quadratic equation for potential-well bunch lengthening is obtained to accommodate any absolute impedance model, expanding upon Zotter's cubic equation, which is primarily applicable to inductive impedance. The equations derived in this paper are tested using computed impedance models for some electron storage rings, showing machine-dependent properties of impedance effects. We conclude that these equations can be employed in electron storage rings to effectively bridge the gap between impedance computations and beam-based measurements.

physics.acc-ph

TOT: Topology-Aware Optimal Transport For Multimodal Hate Detection

Multimodal hate detection, which aims to identify harmful content online such as memes, is crucial for building a wholesome internet environment. Previous work has made enlightening exploration in detecting explicit hate remarks. However, most of their approaches neglect the analysis of implicit harm, which is particularly challenging as explicit text markers and demographic visual cues are often twisted or missing. The leveraged cross-modal attention mechanisms also suffer from the distributional modality gap and lack logical interpretability. To address these semantic gaps issues, we propose TOT: a topology-aware optimal transport framework to decipher the implicit harm in memes scenario, which formulates the cross-modal aligning problem as solutions for optimal transportation plans. Specifically, we leverage an optimal transport kernel method to capture complementary information from multiple modalities. The kernel embedding provides a non-linear transformation ability to reproduce a kernel Hilbert space (RKHS), which reflects significance for eliminating the distributional modality gap. Moreover, we perceive the topology information based on aligned representations to conduct bipartite graph path reasoning. The newly achieved state-of-the-art performance on two publicly available benchmark datasets, together with further visual analysis, demonstrate the superiority of TOT in capturing implicit cross-modal alignment.

cs.CL

PILE: Pairwise Iterative Logits Ensemble for Multi-Teacher Labeled Distillation

Pre-trained language models have become a crucial part of ranking systems and achieved very impressive effects recently. To maintain high performance while keeping efficient computations, knowledge distillation is widely used. In this paper, we focus on two key questions in knowledge distillation for ranking models: 1) how to ensemble knowledge from multi-teacher; 2) how to utilize the label information of data in the distillation process. We propose a unified algorithm called Pairwise Iterative Logits Ensemble (PILE) to tackle these two questions simultaneously. PILE ensembles multi-teacher logits supervised by label information in an iterative way and achieved competitive performance in both offline and online experiments. The proposed method has been deployed in a real-world commercial search system.

cs.IR

Experimental demonstration of the short bunch extraction by bunch rotation in a high-intensity rapid cycling proton synchrotron

Short bunch proton beams are of great significance for the applications of white neutron beams and muon beams. The accelerator complex of China Spallation Neutron Source (CSNS) was designed to support the applications mainly based on neutron scattering techniques where the proton pulse length is not very sensitive. Some theoretical and experimental studies have been performed to see if one can extract a short-bunch proton beam by bunch rotation from the rapid cycling synchrotron (RCS) at CSNS. The experimental results at RCS have evidently displayed the bunch lengthening and rotation process, which demonstrates the effectiveness of this method even with a very short available time for the RF gymnastic processes and a high-intensity beam. With a beam power of 50 kW and normal longitudinal emittance at the injection, the proton beam with a bunch length of about 53% with respect to the one in the normal operation mode was obtained and transported to the spallation target. With a reduced longitudinal emittance at injection and the beam power of 30 kW, the shortest extraction bunch length obtained is about 26% of the one in the normal operation mode. Different machine settings have also been tested to show the impact of the desynchronization between the RF and magnetic fields, the influence of the non-adiabatic risetime and the adiabatic decay time of the RF voltage on the extraction bunch length. The experimental results are well consistent with the theoretical and simulated ones. It is interesting to observe that space charge has a beneficial effect on the bunch lengthening which will result in a shorter bunch at the extraction with the later bunch rotation. The controlled desynchronization method between the RF and magnetic fields in an RCS was also proven successful.

physics.acc-ph

A Joint and Domain-Adaptive Approach to Spoken Language Understanding

Spoken Language Understanding (SLU) is composed of two subtasks: intent detection (ID) and slot filling (SF). There are two lines of research on SLU. One jointly tackles these two subtasks to improve their prediction accuracy, and the other focuses on the domain-adaptation ability of one of the subtasks. In this paper, we attempt to bridge these two lines of research and propose a joint and domain adaptive approach to SLU. We formulate SLU as a constrained generation task and utilize a dynamic vocabulary based on domain-specific ontology. We conduct experiments on the ASMixed and MTOD datasets and achieve competitive performance with previous state-of-the-art joint models. Besides, results show that our joint model can be effectively adapted to a new domain.

cs.CL

Learn to Focus: Hierarchical Dynamic Copy Network for Dialogue State Tracking

Recently, researchers have explored using the encoder-decoder framework to tackle dialogue state tracking (DST), which is a key component of task-oriented dialogue systems. However, they regard a multi-turn dialogue as a flat sequence, failing to focus on useful information when the sequence is long. In this paper, we propose a Hierarchical Dynamic Copy Network (HDCN) to facilitate focusing on the most informative turn, making it easier to extract slot values from the dialogue context. Based on the encoder-decoder framework, we adopt a hierarchical copy approach that calculates two levels of attention at the word- and turn-level, which are then renormalized to obtain the final copy distribution. A focus loss term is employed to encourage the model to assign the highest turn-level attention weight to the most informative turn. Experimental results show that our model achieves 46.76% joint accuracy on the MultiWOZ 2.1 dataset.

cs.CL

Towards Controlled and Diverse Generation of Article Comments

Much research in recent years has focused on automatic article commenting. However, few of previous studies focus on the controllable generation of comments. Besides, they tend to generate dull and commonplace comments, which further limits their practical application. In this paper, we make the first step towards controllable generation of comments, by building a system that can explicitly control the emotion of the generated comments. To achieve this, we associate each kind of emotion category with an embedding and adopt a dynamic fusion mechanism to fuse this embedding into the decoder. A sentence-level emotion classifier is further employed to better guide the model to generate comments expressing the desired emotion. To increase the diversity of the generated comments, we propose a hierarchical copy mechanism that allows our model to directly copy words from the input articles. We also propose a restricted beam search (RBS) algorithm to increase intra-sentence diversity. Experimental results show that our model can generate informative and diverse comments that express the desired emotions with high accuracy.

cs.CL

Problem and solution with the longitudinal tracking of the ORBIT code

The ORBIT code has been widely used for beam dynamics simulations including injection and acceleration in high-intensity hadron synchrotrons. When the ORBIT's 1D longitudinal tracking was employed for the acceleration process in CSNS/RCS, the longitudinal emittance in eV-s was found decreasing substantially during acceleration, though the adiabatic condition is still met during this process. This is against the Liouville theorem that predicts the preservation of the emittance during acceleration. The recent machine study in the accelerator and the simulations with a self-made code demonstrate that the longitudinal emittance is almost invariant, which further indicates that the ORBIT longitudinal tracking might be incorrect. A detailed check-over in the ORBIT code source finds that the longitudinal finite difference equation used in the code is erroneous when applied to an acceleration process. The new code format PyORBIT has the same problem. After the small secondary factor is included in the code, ORBIT can produce results keeping the longitudinal emittance invariant. This paper presents some details about the study.

physics.acc-ph

Study on multi-fold bunch splitting in a high-intensity medium-energy proton synchrotron

Bunch splitting is an RF manipulation method of changing the bunch structure, bunch numbers and bunch intensity in the high-intensity synchrotrons that serve as the injector for a particle collider. An efficient way to realize bunch splitting is to use the combination of different harmonic RF systems, such as the two-fold bunch splitting of a bunch with a combination of fundamental harmonic and doubled harmonic RF systems. The two-fold bunch splitting and three-fold bunch splitting methods have been experimentally verified and successfully applied to the LHC/PS. In this paper, a generalized multi-fold bunch splitting method is given. The five-fold bunch splitting method using specially designed multi-harmonic RF systems was studied and tentatively applied to the medium-stage synchrotron (MSS), the third accelerator of the injector chain of the Super Proton-Proton Collider (SPPC), to mitigate the pileup effects and collective instabilities of a single bunch in the SPPC. The results show that the five-fold bunch splitting is feasible and both the bunch population distribution and longitudinal emittance growth after the splitting are acceptable, e.g., a few percent in the population deviation and less than 10% in the total emittance growth.

physics.acc-ph

Measurements of differential and angle-integrated cross sections for the $^{10}$B($n, {\alpha}$)$^{7}$Li reaction in the neutron energy range from 1.0 eV to 2.5 MeV

Differential and angle-integrated cross sections for the $^{10}$B($n, {\alpha}$)$^{7}$Li, $^{10}$B($n, {\alpha}$$_{0}$)$^{7}$Li and $^{10}$B($n, {\alpha}$$_{1}$)$^{7}$Li$^{*}$ reactions have been measured at CSNS Back-n white neutron source. Two enriched (90%) $^{10}$B samples 5.0 cm in diameter and ~85.0 ${\mu}$g/cm$^{2}$ in thickness each with an aluminum backing were prepared, and back-to-back mounted at the sample holder. The charged particles were detected using the silicon-detector array of the Light-charged Particle Detector Array (LPDA) system. The neutron energy E$_{n}$ was determined by TOF (time-of-flight) method, and the valid ${\alpha}$ events were extracted from the E$_{n}$-Amplitude two-dimensional spectrum. With 15 silicon detectors, the differential cross sections of ${\alpha}$-particles were measured from 19.2{\deg} to 160.8{\deg}. Fitted with the Legendre polynomial series, the ($n, {\alpha}$) cross sections were obtained through integration. The absolute cross sections were normalized using the standard cross sections of the $^{10}$B($n, {\alpha}$)$^{7}$Li reaction in the 0.3 - 0.5 MeV neutron energy region. The measurement neutron energy range for the $^{10}$B($n, {\alpha}$)$^{7}$Li reaction is 1.0 eV $\le$ En < 2.5 MeV (67 energy points), and for the $^{10}$B($n, {\alpha}$$_{0}$)$^{7}$Li and $^{10}$B($n, {\alpha}$$_{1}$)$^{7}$Li$^{*}$ reactions is 1.0 eV $\le$ En < 1.0 MeV (59 energy points). The present results have been analyzed by the resonance reaction mechanism and the level structure of the $^{11}$B compound system, and compared with existing measurements and evaluations.

nucl-ex

Measurement of the neutron beam profile of the Back-n white neutron facility at CSNS with a Micromegas detector

The Back-n white neutron beam line, which uses back-streaming white neutrons from the spallation target of the China Spallation Neutron Source, is used for nuclear data measurements. A Micromegas-based neutron detector with two variants was specially developed to measure the beam spot distribution for this beam line. In this article, the design, fabrication, and characterization of the detector are described. The results of the detector performance tests are presented, which include the relative electron transparency, the gain and the gain uniformity, and the neutron beam profile reconstruction capability. The result of the first measurement of the Back-n neutron beam spot distribution is also presented.

physics.ins-det