SearcharxivSearch

arXiv subjects

Xiaohong Han

Publications and source records attributed to Xiaohong Han.

4 recordsLinked to original sources

LLMEffiChecker: Understanding and Testing Efficiency Degradation of Large Language Models

In this paper, we make the first attempt to understand and test potential computation efficiency robustness in state-of-the-art LLMs. By analyzing the working mechanism and implementation of 20,543 public-accessible LLMs, we observe a fundamental property in LLMs that could be manipulated in an adversarial manner to reduce computation efficiency significantly. Our key motivation is to generate test inputs that could sufficiently delay the generation of EOS such that LLMs would have to go through enough iterations to satisfy the pre-configured threshold. We present \tool, which can work under both white-box setting and black-box setting. In the white-box scenario, \tool develops a gradient-guided technique that searches for a minimal and unnoticeable perturbation at character-level, token-level, and structure-level. In the black-box scenario, \tool employs a causal inference-based approach to find critical tokens and similarly applies three levels of imperceptible perturbation to them. Both the white-box and black-box settings effectively delay the appearance of EOS, compelling these inputs to reach the naturally-unreachable threshold. To demonstrate the effectiveness of \tool, we conduct a systematic evaluation on nine public-available LLMs: Google T5, AllenAI WMT14, Helsinki-NLP translator, Facebook FairSeq, UNICAMP-DL translator, MarianMT, Google FLAN-T5, MBZUAI LaMini-GPT and Salesforce CodeGen. Experimental results show that \tool can increase on average LLMs' response latency and energy consumption by 325\% to 3244\% and 344\% to 3616\%, respectively, by perturbing just one character or token in the input sentence.

cs.CL

PPM: Automated Generation of Diverse Programming Problems for Benchmarking Code Generation Models

In recent times, a plethora of Large Code Generation Models (LCGMs) have been proposed, showcasing significant potential in assisting developers with complex programming tasks. Benchmarking LCGMs necessitates the creation of a set of diverse programming problems, and each problem comprises the prompt (including the task description), canonical solution, and test inputs. The existing methods for constructing such a problem set can be categorized into two main types: manual methods and perturbation-based methods. However, manual methods demand high effort and lack scalability, while also risking data integrity due to LCGMs' potentially contaminated data collection, and perturbation-based approaches mainly generate semantically homogeneous problems with the same canonical solutions and introduce typos that can be easily auto-corrected by IDE, making them ineffective and unrealistic. In this work, we propose the idea of programming problem merging (PPM) and provide two implementation of this idea, we utilize our tool on two widely-used datasets and compare it against nine baseline methods using eight code generation models. The results demonstrate the effectiveness of our tool in generating more challenging, diverse, and natural programming problems, comparing to the baselines.

cs.SE

Extended ammonia observations towards the 'Integral-Shaped Filament'

Recent observations suggest a scenario in which filamentary structures in the ISM represent the first step towards clumps/cores and eventually star formation. The densest filaments would then fragment into prestellar cores owing to gravitational instability. We seek to understand the roles filamentary structures play in high-mass star formation. We mapped the integral-shaped filament (ISF) in NH3 (1, 1) and (2, 2). The whole filamentary structure is uniformly and fully sampled. We find that the morphology revealed by the map of velocity-integrated intensity of the NH3 (1, 1) line is closely associated with the dust ridge. We identify 6 "clumps" related to the well known OMC-1 to 5 and 11 "sub-clumps" within the map and they are separated not randomly but in roughly equal intervals along the ISF. The average spacing of clumps is 11.30'$\pm$1.31' (1.36$\pm$0.16 pc ) and the average spacing of sub-clumps is 7.18'$\pm$1.19' (0.86$\pm$0.14 pc). These spacings agree well with the predicted values of the thermal (0.86 pc) and turbulent sausage instability (1.43 pc) by adopting a cylindric geometry of the ISF with an inclination of $60^{\circ}$ with respect to the line of sight. We also find a velocity gradient of about 0.6 km s-1 pc-1 that runs along the ISF which likely arises from an overall rotation of the Orion A molecular cloud. The inferred ratio between rotational and gravitational energy is well below unity. Furthermore, fluctuations are seen in the centroid velocity diagram along the ISF. The OMC-1 to 5 clouds are located close to the local extrema of the fluctuations, which suggests that there exist gas flows associated with these clumps in the ISF. The derived NH3 (1, 1) and (2, 2) rotation temperatures in the OMC-1 are about 30-40 K. In OMC-2, OMC-3, and the northern part of OMC-4, we find higher and lower temperatures at the boundaries and in the interior, respectively.

astro-ph.GA

Auto-compensating differential phase shift quantum key distribution

We propose an auto-compensating differential phase shift scheme for quantum key distribution with a high key-creation efficiency, which skillfully makes use of automatic alignment of the photon polarization states in optical fiber with modified Michelson interferometers composed of unequal arms with Faraday mirrors at the ends. The Faraday-mirrors-based Michelson interferometers not only function as pulse splitters, but also enable inherent compensation of polarization mode dispersion in the optic-fiber paths at both Alice's and Bob's sites. The sequential pulses encoded by differential phase shifts pass through the quantum channel with the same polarization states, resulting in a stable key distribution immune to the polarization mode dispersion in the quantum channel. Such a system features perfect stability and higher key creation efficiency over traditional schemes.

quant-ph