SearcharxivSearch

arXiv subjects

Junzhi Cao

Publications and source records attributed to Junzhi Cao.

4 recordsLinked to original sources

Private-Library-Oriented Code Generation with Large Language Models

Large language models (LLMs), such as Codex and GPT-4, have recently showcased their remarkable code generation abilities, facilitating a significant boost in coding efficiency. This paper will delve into utilizing LLMs for code generation in private libraries, as they are widely employed in everyday programming. Despite their remarkable capabilities, generating such private APIs poses a formidable conundrum for LLMs, as they inherently lack exposure to these private libraries during pre-training. To address this challenge, we propose a novel framework that emulates the process of programmers writing private code. This framework comprises two modules: APIFinder first retrieves potentially useful APIs from API documentation; and APICoder then leverages these retrieved APIs to generate private code. Specifically, APIFinder employs vector retrieval techniques and allows user involvement in the retrieval process. For APICoder, it can directly utilize off-the-shelf code generation models. To further cultivate explicit proficiency in invoking APIs from prompts, we continuously pre-train a reinforced version of APICoder, named CodeGenAPI. Our goal is to train the above two modules on vast public libraries, enabling generalization to private ones. Meanwhile, we create four private library benchmarks, including TorchDataEval, TorchDataComplexEval, MonkeyEval, and BeatNumEval, and meticulously handcraft test cases for each benchmark to support comprehensive evaluations. Numerous experiments on the four benchmarks consistently affirm the effectiveness of our approach. Furthermore, deeper analysis is also conducted to glean additional insights.

cs.SE

Probing the galaxy-halo connection with total satellite luminosity

We demonstrate how the total luminosity in satellite galaxies is a powerful probe of dark matter halos around central galaxies. The method cross-correlates central galaxies in spectroscopic galaxy samples with fainter galaxies detected in photometric surveys. After background subtraction, the excess galaxies around the central galaxies represent faint satellite galaxies within the dark matter halo. Using abundance matching models, we show that the the total galaxy luminosity, L_sat, scales linearly with host halo mass, making L_sat an excellent proxy for M_h. L_sat is also sensitive to the formation time of the halo, as younger halos have more substructure at fixed M_h. We demonstrate that probes of galaxy large-scale environment can break this degeneracy. Although this is an indirect probe of the halo, it can yield a high-S/N measurement for galaxies expected to occupy halos at $<10^{12}$ M_sol, where other methods suffer from larger errors. In this paper we focus on observational and theoretical systematics in the L_sat method. We test the robustness of our method of finding central galaxies and our methods of estimating the number of background galaxies. We implement this method on central galaxies in SDSS data, with satellites identified in faint imaging from the DESI Legacy Imaging Surveys. We find excellent agreement between our theoretical predictions and the observational measurements. Finally, we compare our L_sat measurements to weak lensing estimates of M_h for red and blue subsamples. In the stellar mass range where the measurements overlap, we find consistent results, where red galaxies live in larger halos. However, the L_sat approach allows us to probe significantly lower mass galaxies. At these masses, the L_sat values are equivalent. This example shows the potential of L_sat as a probe of dark halos. (Abridged)

astro-ph.GA

Room-temperature chiral charge pumping in Dirac semimetals

Chiral anomaly, a non-conservation of chiral charge pumped by the topological nontrivial gauge fields, has been predicted to exist in Weyl semimetals. However, until now, the experimental signature of this effect exclusively relies on the observation of negative longitudinal magnetoresistance at low temperatures. Here, we report the field-modulated chiral charge pumping process and valley diffusion in Cd3As2. Apart from the conventional negative magnetoresistance, we observe an unusual nonlocal response with negative field dependence up to room temperature, originating from the diffusion of valley polarization. Furthermore, a large magneto-optic Kerr effect generated by parallel electric and magnetic fields is detected. These new experimental approaches provide a quantitative analysis of the chiral anomaly phenomenon which is inaccessible previously. The ability to manipulate the valley polarization in topological semimetal at room temperature opens up a brand-new route towards understanding its fundamental properties and utilizing the chiral fermions.

cond-mat.mtrl-sci

Landau level splitting in Cd3As2 under high magnetic fields

Three-dimensional topological Dirac semimetals (TDSs) are a new kind of Dirac materials that exhibit linear energy dispersion in the bulk and can be viewed as three-dimensional graphene. It has been proposed that TDSs can be driven to other exotic phases like Weyl semimetals, topological insulators and topological superconductors by breaking certain symmetries. Here we report the first transport experiment on Landau level splitting in TDS Cd3As2 single crystals under high magnetic fields, suggesting the removal of spin degeneracy by breaking time reversal symmetry. The detected Berry phase develops an evident angular dependence and possesses a crossover from nontrivial to trivial state under high magnetic fields, a strong hint for a fierce competition between the orbit-coupled field strength and the field-generated mass term. Our results unveil the important role of symmetry breaking in TDSs and further demonstrate a feasible path to generate a Weyl semimetal phase by breaking time reversal symmetry.

cond-mat.mtrl-sci