Search arXivSearch

arXiv subjects

Wen

Publications and source records attributed to Wen.

7 recordsLinked to original sources

PseudoAct: Leveraging Pseudocode Synthesis for Flexible Planning and Action Control in Large Language Model Agents

Large language model (LLM) agents typically rely on reactive decision-making paradigms such as ReAct, selecting actions conditioned on growing execution histories. While effective for short tasks, these approaches often lead to redundant tool usage, unstable reasoning, and high token consumption in complex long-horizon tasks involving branching, iteration, or multi-tool coordination. To address these limitations, this paper introduces PseudoAct, a novel framework for flexible planning and action control in LLM agents through pseudocode synthesis. Leveraging the ability of LLMs to express task-solving strategies as code, PseudoAct synthesizes a structured pseudocode plan that decomposes a task into subtasks and explicitly encodes control flow, including sequencing, conditionals, loops, parallel composition, and combinations of these logic primitives. Actions are then executed by following this global plan, making the decision logic explicit and temporally coherent. This design reduces redundant actions, prevents infinite loops, and avoids uninformative alternative exploration, enabling consistent and efficient long-horizon decision-making. Experiments on benchmark datasets show that our method significantly outperforms existing reactive agent approaches, achieving a 20.93% absolute gain in success rate on FEVER and setting a new state-of-the-art on HotpotQA.

cs.AI

X-GridAgent: An LLM-Powered Agentic AI System for Assisting Power Grid Analysis

The growing complexity of power system operations has created an urgent need for intelligent, automated tools to support reliable and efficient grid management. Conventional analysis tools often require significant domain expertise and manual effort, which limits their accessibility and adaptability. To address these challenges, this paper presents X-GridAgent, a novel large language model (LLM)-powered agentic AI system designed to automate complex power system analysis through natural language queries. The system integrates domain-specific tools and specialized databases under a three-layer hierarchical architecture comprising planning, coordination, and action layers. This architecture offers high flexibility and adaptability to previously unseen tasks, while providing a modular and extensible framework that can be readily expanded to incorporate new tools, data sources, or analytical capabilities. To further enhance performance, we introduce two novel algorithms: (1) LLM-driven prompt refinement with human feedback, and (2) schema-adaptive hybrid retrieval-augmented generation (RAG) for accurate information retrieval from large-scale structured grid datasets. Experimental evaluations across a variety of user queries and power grid cases demonstrate the effectiveness and reliability of X-GridAgent in automating interpretable and rigorous power system analysis.

eess.SY

Constraining the Nanohertz Gravitational Wave Background with an X-ray Pulsar Timing Array from NICER observations

We present constraints on the nanohertz gravitational wave background (GWB) using X-ray pulsar timing data from the Neutron Star Interior Composition Explorer(\textit{NICER}). By analyzing six millisecond pulsars over a six-year observational baseline, we employed a Bayesian framework to model noise components and search for a common red signal consistent with a GWB from supermassive black hole binaries (assuming a spectral index $\gamma_{\rm gwb}=13/3$). Our results show no significant evidence for a GWB, yielding a 95\% upper limit of $\log_{10}(A_{\rm gwb})<-13.4$. Weak evidence for Hellings-Downs spatial correlations was found (S=2.5), though the signal remains statistically inconclusive. Compared to radio and $\gamma$-ray pulsar timing arrays, the \textit{NICER} constraint is currently less stringent but demonstrates the feasibility of X-ray timing with \textit{NICER} for GWB studies and highlights the potential for improved sensitivity with future X-ray missions.

astro-ph.HE

Modeling Battery Electric Vehicle Users' Charging Decisions in Scenarios with Both Time-Related and Distance-Related Anxiety

As one of the most promising alternatives to internal combustion engine vehicles, battery electric vehicles (BEVs) have become increasingly prevalent in recent years. However, range anxiety is still a major concern among BEV users or potential users in recent years. The social-psychological factors were found to be associated with range anxiety, but how the charging decisions are affected by range anxiety is still unclear. Thus, in our study, through an online questionnaire issued in mainland China, we collected 230 participants' charging decisions in 60 range-anxiety-inducing scenarios in which both distance-related, and time-related anxiety co-existed. Then, an interpretable machine learning (ML) approach with the Shapley Additive Explanations method was used to model BEV users' charging decisions in these scenarios. To further explore users' decision-making mechanisms, a Bayesian-Network-regression mixed approach was used to model the inner topological structure among the factors influencing users' decisions. We find that both time-related and distance-related factors can affect users' charging decisions, but the influence of waiting time is softer compared to the BEV range. Users' charging decisions can also be moderated by users' psychological states (i.e., range anxiety level and trust in range estimation system), individual differences (i.e., age and personality), and BEV using experience (i.e., driving mileage, display mileage and range estimation cycle of range estimation system), of which, the range anxiety level is more directly related with users' charging decisions. Findings from this study can provide insights into the optimization of charge station distribution and customization of the charging recommendation system.

cs.HC

Inefficient Peace or Preventive War?

We study a model of two-player bargaining game in the shadow of a preventive trade war that examines why states deliberately maintain trade barriers in the age of globalization. Globalization can induce substantial power shifts between states, which makes the threat of a preventive trade war salient. In this situation, there may exist "healthy" levels of trade barriers that dampen the war incentives by reducing states' expected payoffs from such a war. Thus, we demonstrate that trade barriers can sometimes serve as breaks and cushions necessary to sustain inefficient yet peaceful economic cooperation between states. We assess the theoretical implications by examining the US-China trade relations since 1972.

econ.GN

Dynamic Pricing in a Dual Market Environment

This paper is concerned with the determination of pricing strategies for a firm that in each period of a finite horizon receives replenishment quantities of a single product which it sells in two markets, e.g., a long-distance market and an on-site market. The key difference between the two markets is that the long-distance market provides for a one period delay in demand fulfillment. In contrast, on-site orders must be filled immediately as the customer is at the physical on-site location. We model the demands in consecutive periods as independent random variables and their distributions depend on the item's price in accordance with two general stochastic demand functions: additive or multiplicative. The firm uses a single pool of inventory to fulfill demands from both markets. We investigate properties of the structure of the dynamic pricing strategy that maximizes the total expected discounted profit over the finite time horizon, under fixed or controlled replenishment conditions. Further, we provide conditions under which one market may be the preferred outlet to sale over the other.

math.OC

An Efficient and Integrated Algorithm for Video Enhancement in Challenging Lighting Conditions

We describe a novel integrated algorithm for real-time enhancement of video acquired under challenging lighting conditions. Such conditions include low lighting, haze, and high dynamic range situations. The algorithm automatically detects the dominate source of impairment, then depending on whether it is low lighting, haze or others, a corresponding pre-processing is applied to the input video, followed by the core enhancement algorithm. Temporal and spatial redundancies in the video input are utilized to facilitate real-time processing and to improve temporal and spatial consistency of the output. The proposed algorithm can be used as an independent module, or be integrated in either a video encoder or a video decoder for further optimizations.

cs.GR