SearcharxivSearch

arXiv subjects

Shuzhi Liu

Publications and source records attributed to Shuzhi Liu.

4 recordsLinked to original sources

Predicting Performance of Symbolic and Prompt Programs with Examples

LLM prompting is widely used for naturally stated tasks, yet it is unreliable it may succeed on a few test cases but fail at deployment time. We study performance prediction: given a program, either symbolic (e.g. Python) or a prompt executed on an LLM, and a few in-domain examples, predict its performance on unseen tasks from the same domain. We use a simple coin-flip model, treating each pass/fail program execution as a Bernoulli random variable, whose success probability is the programs unknown performance. In this model, performance depends entirely on: 1) the observed execution outcomes on test cases, and 2) a prior over performances. We compile empirical performance priors from a corpus of diverse programs and tasks, and find that performance for symbolic programs (e.g., Python) are all or nothing, while prompt programs have a diffuse prior with many nearly-correct programs. This difference explains why a few passing tests can certify symbolic programs but not prompt programs. Building on this insight, we develop RAP (Retrieved Approximate Prior), which retrieves similar tasks and prompt programs from an existing corpus to construct a proxy prior, which is then used to predict performance. We show RAP achieves solid performances.

cs.LG

A hybrid numerical method for a microscopic and macroscopic traffic flow model

In this paper, we introduce a traffic flow model based on a microscopic follow-the-leader model, while enforcing maximal constraints on the density and velocity of the flow. The related macroscopic model can be represented in conservative formulation. By introducing an advected variable up with the flow, where p is the velocity offset, and u is the relative velocity, we reformulate the classical Aw-Rascle-Zhang (ARZ) model and the modified Aw-Rascle model to describe a realistic fundamental diagrams. The elementary waves are derived, and the Riemann problem is solved to validate the model's theoretical consistency. We further extend to a two-dimensional model. Numerical simulations are given for both one-and two-dimensional case by using the hybrid Godunov-Glimm scheme to verify the model's performance.

math.NA

From the self-dual Yang-Mills equation to the Fokas-Lenells equation

A reduction from the self-dual Yang-Mills (SDYM) equation to the unreduced Fokas-Lenells (FL) system is described in this paper. It has been known that the SDYM equation can be formulated from the Cauchy matrix schemes of the matrix Kadomtsev-Petviashvili (KP) hierarchy and the Ablowitz-Kaup-Newell-Segur (AKNS) hierarchy. We show that the reduction can be realized in these two Cauchy matrix schemes, respectively. Each scheme allows us to construct solutions for the unreduced FL system. We prove that these solutions obtained from different schemes are equivalent under certain reflection transformation of coordinates. Using conjugate reduction we obtain solutions of the FL equation. The paper adds an important example to Ward's conjecture on the reductions of the SDYM equation. It also indicates the Cauchy matrix structures of the Kaup-Newell hierarchy.

nlin.SI

Neural Symbolic Regression of Complex Network Dynamics

Complex networks describe important structures in nature and society, composed of nodes and the edges that connect them. The evolution of these networks is typically described by dynamics, which are labor-intensive and require expert knowledge to derive. However, because the complex network involves noisy observations from multiple trajectories of nodes, existing symbolic regression methods are either not applicable or ineffective on its dynamics. In this paper, we propose Physically Inspired Neural Dynamics Symbolic Regression (PI-NDSR), a method based on neural networks and genetic programming to automatically learn the symbolic expression of dynamics. Our method consists of two key components: a Physically Inspired Neural Dynamics (PIND) to augment and denoise trajectories through observed trajectory interpolation; and a coordinated genetic search algorithm to derive symbolic expressions. This algorithm leverages references of node dynamics and edge dynamics from neural dynamics to avoid overfitted expressions in symbolic space. We evaluate our method on synthetic datasets generated by various dynamics and real datasets on disease spreading. The results demonstrate that PI-NDSR outperforms the existing method in terms of both recovery probability and error.

cs.LG