arXiv:2610.07663cs.MAOct 2026

Manuscript Offprint

arXiv:2610.07663

Joint Workflow and Prompt Optimization for User Behavior Simulation

Nipun B Nair, Tongtong Wu, Hongzhi Yin, Hui Li, Weiqing Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

NIPUN B NAIR ∗^{*} and TONGTONG WU, Monash University, Australia

HONGZHI YIN, The University of Queensland, Australia

HUI LI, Xiamen University, China

WEIQING WANG, Monash University, Australia

User behavior simulation is the computational modeling of user interactions within information systems through the use of simulated agents in place of live users. It supports system testing and evaluation, decision-making and forecasting, and user experience design. Existing simulators rely on hand-crafted rules or domain expertise that transfers poorly across tasks. SWORD (Simulation-driven Workflow and Prompt Optimization with Role-based Design) is introduced as a framework that jointly optimizes multi-agent workflow topology and natural-language prompts. It is guided solely by a scalar task metric, without domain initialization or task-specific engineering. The experimental results demonstrate that SWORD achieves statistically significant gains over prompt-only, workflow-only, and staged-optimization baselines under a controlled, identical-backbone comparison. Against the strongest published domain-specific baseline, SWORD further improves accuracy while using a smaller backbone model, substantially less training data, and a very reasonable API cost (4–4–6 for each dataset). Beyond predictive performance, SWORD autonomously discovers domain-relevant signals, review-sentiment mapping rules and epidemiological decay priors, purely from scalar error feedback, establishing textual gradients as a mechanism for unsupervised feature-importance discovery in user behavior modeling.

CCS Concepts: • Information systems → Information systems applications.

Additional Key Words and Phrases: user simulation, agent-based simulation, multi-agent systems, prompt optimization, workflow optimization, textual gradients, large language models, behavioral prediction, autonomous optimization

ACM Reference Format:

Nipun B Nair, Tongtong Wu, Hongzhi Yin, Hui Li, and Weiqing Wang. 2026. Joint Workflow and Prompt Optimization for User Behavior Simulation. ACM Trans. Inf. Syst. 1, 1, Article 1 (August 2026), 34 pages. https://doi.org/10.1145/nnnnnnn.nnnnnnn

1 Introduction

User behavior simulation holds significant value in information systems in three key ways. First, it enables informed decision-making and forecasting by predicting how users will interact with system features before actual deployment[3, 39]. Second, it supports system testing and optimization by examining user behavior across diverse scenarios and contexts[35]. Third, it improves user

*primary author

Authors' Contact Information: Nipun B Nair, nipun.nair@monash.edu; Tongtong Wu, tongtong.wu@monash.edu, Monash University, Melbourne, Victoria, Australia; Hongzhi Yin, db.hongzhi@gmail.com, The University of Queensland, Brisbane, Queensland, Australia; Hui Li, hui@xmu.edu.cn, Xiamen University, Department of Computer Science and Technology, Xiamen, China; Weiqing Wang, teresa.wang@monash.edu, Monash University, Melbourne, Victoria, Australia.

Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.

© 2026 Copyright held by the owner/author(s). Publication rights licensed to ACM.

ACM 1558-2868/2026/8-ART1

https://doi.org/10.1145/nnnnnnn.nnnnnnn

1:2

Nipun et al.

LLM-based User Behavior Simulation

Figure

Fig. 1. Comparison of LLM based user simulation paradigms and the SWORD framework. (A) Agent-per-User: instantiates isolated LLM agents per user, preserving personalization but sharing no knowledge. (B) Code-Generation: achieves personalization via generating executable Python simulation code for each user through shared agent workflow, while shifting the burden of workflow design and simulation logic validation to domain experts, limiting task transferability. (C) SWORD (Ours): is a further step forward compared with Code-Generation to eliminate the dependence on domain experts for different user simulation tasks via automated workflow and prompt optimization and task agnostic modular agent pool design.

experience design by revealing how different user segments interact with systems, thereby enabling researchers to create more intuitive and responsive interfaces [19]^{[19]}.

Classical approaches to user behavior simulation use probabilistic frameworks, including click models, cascade models, and position-bias models, which are fitted to logged data [2, 13, 36]. Rule-based agent models extend this by encoding explicit decision logic, interaction rates, and social influence parameters specified by domain experts [11, 37]. Both families are effective within their original domain, but they transfer poorly: constructing or adapting them requires expert knowledge that is rarely available across the full range of tasks that IR and recommender-system evaluation demands [2].

Large language models (LLMs) offer a fundamentally different path. LLMs encode rich representations of human reasoning, preferences, and social norms, enabling them to serve as the cognitive backbone of simulated users without explicit rule specification [6, 16, 50]. Existing LLM-based user simulation approaches can be grouped into two paradigms, each with a structural limitation (Fig. 1). Agent-per-user methods [40] instantiate one LLM agent per simulated user, preserving personalization but sharing no knowledge across agents: users with sparse interaction histories produce unreliable predictions, and the system must be rebuilt for each new simulation domain.

1:3

Moreover, the number of agents the system needs to maintain scales linearly with the number of users. Code-generation methods [25] address the scaling problem by using several agents that communicate through a predefined workflow to generate Python simulation code: given user profile and history information, this code predicts behavior as a single shared function. This removes per-user specialization but shifts the burden onto workflow design (the workflow that defines how agents communicate) and code validation which usually depend on domain experts. The generated code requires iterative review and approval from a domain expert, making transferability contingent on the availability of domain experts, who are both scarce and costly. We introduce SWORD (Simulation-driven Workflow and prompt Optimization with Role-based Design), a framework for user simulation that requires no domain-expert input. SWORD achieves this via joint workflow-prompt optimization, in which the structure of the agent workflow (which agents participate and how they communicate) and the prompts (the instructions given to each agent) are co-optimized end-to-end in a single closed loop. SWORD takes user context (profile, behavioral history, social signals) as input and produces behavioral predictions as output, guided solely by a scalar task metric (MAE or RMSE). Each workflow is a directed acyclic graph (DAG) over eight task-agnostic agent roles: ANALYZER, PLANNER, GENERATOR, CRITIC, SYNTHESIZER, EXECUTOR, TRANSFORMER, and VALIDATOR. These roles span the full cognitive space of behavioral prediction, from data parsing and planning, through generation and critique, to synthesis and output validation, and they transfer across simulation tasks without modification. Adapting SWORD to a new task requires only 30 labeled training examples and a scalar evaluation error metric, with no simulation code, domain initialization, or task-specific engineering.

Contributions.

(1) SWORD: a joint optimization framework for LLM-based user simulation requiring no domain-expert input. We introduce a scalable framework that interleaves DAG workflow evolution and prompt optimization within a single optimization loop, with an LLM-guided proposer generating targeted structural mutations informed by the full optimization history. A fixed vocabulary of eight roles transfers unmodified across the two user simulation tasks we evaluate, requiring no domain-expert input or per-task role engineering.

(2) Workflow-prompt non-stationarity: empirical characterization and efficient search space reduction. We identify workflow-prompt non-stationarity as an important challenge in multi-agent optimization: the quality of a workflow depends on the prompts it is paired with, rendering staged optimization ineffective. We address this with a practical framework for jointly optimizing agent workflow and prompts, making end-to-end search over both structural and linguistic design spaces computationally feasible. This search space reduction is achieved through mechanisms including elitist selection, a history-conditioned workflow proposer, and worst-case gradient trace selection, as detailed in Section 4.5.

(3) Unsupervised user preference discovery via textual gradients. SWORD autonomously identifies review text sentiment as the main signal for predicting user ratings. It learns precise rules that map sentiment to rating scores using only MAE feedback. This process establishes textual gradients as a mechanism for unsupervised feature-importance learning in user behavior modeling.

(4) Improved efficiency through joint optimization. SWORD outperforms prior approaches while using a smaller backbone (GPT-5.4-mini) with substantially less training data and computational cost. This highlights that effective joint optimization of workflow structure and prompts can compensate for reduced model capacity and data requirements.

1:4

Nipun et al.

The remainder of the paper is organized as follows. Section 2 reviews related work. Section 3 formalises the problem. Section 4 presents the SWORD framework. Section 5 describes the experimental setup. Section 6 presents results and analysis. Section 7 discusses findings. Section 8 concludes the paper.

References (36)