WorksComputer Science
Protecting Shared Agent Workflows from Invalidation Attacks with Signed Trajectories and Runtime Verification
Abstract
Large language model (LLM)-based agents increasingly rely on shared workflow repositories to transfer experience across tasks and agents. By abstracting past executions into reusable workflow graphs, such systems significantly improve planning efficiency and generalization. However, this emerging paradigm introduces a new and underexplored security risk: if the shared repository is compromised, tampered workflows can systematically mislead downstream agents, inducing persistent execution failures or unsafe behaviors. In this work, we present a principled protection framework for shared agent workflows based on signed trajectories and runtime verification. We require all cloud-collected trajectories used for workflow generation to be cryptographically signed, with each trajectory representing a concrete execution instance. Prior to repository inclusion, trajectories undergo a unified screening process to ensure correctness and validity. When an agent retrieves a workflow from the shared repository, it also obtains a small set of signed supporting trajectories and verifies both their cryptographic integrity and their semantic consistency with the workflow. To make this practical for branching workflows, we further propose a runtime, path-aware retrieval strategy that dynamically fetches only the signed trajectories relevant to the execution path actually taken by the agent, substantially reducing communication and verification overhead. Extensive experiments across multiple reasoning benchmarks show that workflow invalidation attacks achieve up to 90.12% success rates, degrading agent inference performance by up to 73.16 percentage points in accuracy without effective workflow protection. In addition, the proposed protection achieves an average F1 score of 85.26% and a detection rate of 79.97%, outperforming existing baselines by about 2.02x.
Introduction
Large Language Model (LLM)-based agents have recently become a powerful foundation for building autonomous systems capable of perceiving, reasoning, planning, and acting in complex environments [1]. Modern agents increasingly rely on accumulated experience, such as historical trajectories, to improve robustness and efficiency across tasks [2, 3, 4]. To make such experience transferable, recent work has proposed abstracting raw execution trajectories into high-level workflow-structured
Preprint. representations that capture the essential states, actions, and control logic underlying successful task executions [5, 6]. These workflows serve as reusable experience units that can guide downstream agents when solving new but related tasks, significantly improving planning stability, reducing exploration cost, and enhancing generalization [7].
In realistic deployments, an individual agent rarely accumulates sufficient trajectories to extract reliable workflows. This has led to the widespread adoption of shared workflow frameworks, where a cloud aggregates trajectories from many agents, synthesizes workflows using large models, and maintains a shared workflow repository [8, 9, 10, 11, 12]. When encountering unfamiliar tasks, an agent queries this repository to retrieve relevant workflows and incorporates them into its planning process [13].
While effective, this architecture introduces a critical yet underexplored security vulnerability: the shared repository becomes a high-value target. By design, it aggregates trajectories from many agents and directly supplies decision-critical experience to all downstream users. As shown in Figure 1 Top, an adversary may compromise agents prior to trajectory submission or infiltrate the centralized service after repository construction, enabling large-scale, direct or indirect tampering with trajectories and workflows. Such manipulation can stealthily influence the behavior of a broad population of agents. This attack surface is known to be highly impactful in centralized learning and data aggregation systems [14, 15, 16, 17]. In this work, we term this class of attacks workflow invalidation attacks.
Figure 1. (Left) LLM-based agents upload signed execution trajectories to a cloud repository, where trajectories are aggregated and abstracted into reusable workflows (Center-Bottom). A compromised repository can stealthily invalidate workflows by modifying their structure or execution paths while preserving plausibility (Top). Our framework mitigates such attacks by grounding workflows in authenticated trajectories and enforcing path-aware verification (Right).
We assume that most trajectory-submitting agents follow the protocol (Figure 1 Left), while a small fraction may be compromised and submit tampered trajectories, consistent with common settings in shared or collaborative learning frameworks [18, 19]. If the repository aggregates such corrupted inputs or is further compromised, downstream agents may be systematically misled during planning and execution. Because workflows directly shape long-horizon action sequences, even subtle modifications can induce persistent execution errors, violate safety constraints, and potentially cause severe real-world consequences. Workflow invalidation attacks are fundamentally different from prompt-level or observation-level attacks: rather than targeting individual interactions, they exploit the shared experience layer that many agents trust by design, enabling scalable and persistent influence over agent behavior.
To defend against workflow invalidation attacks, we propose a lightweight yet principled protection mechanism based on trajectory signing and verification. Concretely, agents that submit trajectories to the shared repository are required to cryptographically sign their trajectories. Upon collection, the server performs unified screening via cross-validation and embedding-based similarity to identify and filter out anomalous or potentially corrupted trajectories. The remaining signed trajectories are used both to construct workflows and to serve as verifiable evidence. The server stores both workflows and their associated screened, signed trajectories (Figure 1 Center-Bottom). As shown in Figure 1 Right, when an agent downloads a workflow, it also requests several signed trajectories that were used to derive or support this workflow. By verifying the signatures, the agent can ensure that these trajectories have not been modified after submission. The agent checks whether the retrieved workflow steps remain semantically consistent with the authenticated trajectories. Any unauthorized modification, either to the trajectories or to the derived workflows, can therefore be detected. This design shifts trust from the centralized repository to a distributed provenance mechanism, enabling agents to validate the integrity of shared experience even if the cloud is partially compromised.
Implementing this this mechanism raises a key challenge: Workflows are typically structured as directed acyclic graphs with multiple possible execution paths, while a single trajectory only instantiates one concrete path. Naively downloading all signed trajectories corresponding to all possible paths would incur prohibitive communication and storage overhead. We therefore propose a runtime, path-aware retrieval strategy. Instead of prefetching all evidence, the agent dynamically requests only the signed trajectories corresponding to the path it actually executes. When the agents execution reaches a branching point, it selects the next branch based on the current environment state and then downloads the associated signed trajectories for that branch. This design ensures authenticated evidence for the executed path while avoiding irrelevant trajectory transfer.
Evaluation. We conduct extensive experiments on multiple widely adopted and synthetic datasets. Results show that workflow invalidation attacks can reduce agent accuracy by up to 73.16 percentage points. Our method effectively mitigates these attacks, achieving a detection rate of 79.97% and outperforming existing baselines by an average factor of .
Background and Related Works
LLM-based agent. LLM-based agents augment LLMs with auxiliary functional modules, enabling them to solve complex tasks beyond pure language reasoning [20, 21]. In such systems, the core LLM typically handles high-level reasoning, planning, and decision-making [1], while auxiliary modules, such as external tools [3, 22] and memory or experience components [23], allow agents to interact with real or simulated environments [24] and accumulate long-term experience [10].
Agent workflow. As experience accumulation and reuse become increasingly central to agent systems [25, 26], effective representation and organization of experience are critical to agent performance and generalization [27]. Beyond unstructured summaries, recent work has proposed representing experience in the form of workflows [5, 28], which explicitly capture stepwise task-solving processes, including intermediate reasoning steps, actions, and decision dependencies. By abstracting execution trajectories into node-structured processes [29], workflow-based experience provides more structured and fine-grained guidance for subsequent task execution and adaptation.
Shared agent workflows. To further improve workflow reuse and coordination at scale, recent work proposes sharing workflows across agents [10, 28]. In these settings, agents contribute structured workflows derived from execution trajectories to a shared repository [11], which can be retrieved and adapted by others for new tasks. Shared workflows reduce redundant exploration and provide reusable procedural knowledge for long-horizon tasks [29]. Prior studies investigate workflows generated directly by language models [5] as well as workflows constructed through explicit structure exploration [28], demonstrating improved efficiency and generalization in LLM-based agent systems. However, most approaches implicitly assume shared workflows are trustworthy and remain unaltered after publication, an assumption that becomes fragile in open or large-scale agent ecosystems [30].
Threat Model
We consider an agent ecosystem where agents upload execution trajectories to a cloud service. The service aggregates them into high-level workflows and maintains a shared repository. Downstream agents query this repository to retrieve related workflows for task execution.
Adversary Setting. We consider a threat setting in which adversarial behavior may arise from both centralized and decentralized sources within the system. The adversary attacks the system through two entry points in the system: (i) Centralized attack surface: the shared repository, where stored trajectories and workflows can be modified after aggregation. (ii) Decentralized attack surface: individual agent memory and trajectory generation process, where corrupted trajectories may be introduced before aggregation. Importantly, decentralized attacks are limited to a minority of agents, while the centralized repository constitutes the primary attack surface due to its system-wide influence. This assumption aligns with collaborative and federated learning, where participants are mostly honest and the aggregation service is modeled as the main point of compromise [31, 32, 33].
Adversary Goal. The adversary aims to construct a corrupted workflow that both bypasses the verification mechanism and induces erroneous execution in downstream agents. Formally, let denote a correct workflow derived from honest trajectories, and let denote a modified workflow produced by the adversary. Let denote the verification outcome, where indicates that is accepted by the verification procedure. Let denote the execution outcome of an agent following workflow , and let denote the correct execution outcome.
An attack is considered successful if and only if the following conditions hold:
Specifically, the adversary modifies the workflow (), the modified workflow is accepted by the verifier (), and execution leads to incorrect or unsafe outcomes ().
Adversary Capabilities. We consider an adversary with capabilities spanning both centralized repository compromise and limited decentralized trajectory poisoning, as summarized in Table 1. (C1) Repository-level compromise. The adversary may fully compromise the centralized cloud repository, which serves as the primary attack surface, obtaining complete read and write access to stored trajectories and workflows. Under this capability, it can arbitrarily manipulate the shared repository layer, including deletion, insertion, modification, or reordering of workflow steps and stored trajectory records. The detailed attack procedures are included in the Appendix § 9. (C2) Source agent-level poisoning. In addition, the adversary may control a small subset of agents or their local memories, corresponding to a secondary attack surface at the trajectory submission stage, and inject corrupted or poisoned trajectories before they are submitted.
| Category | Item | Specification |
| Adversary Identity | Location | Cloud-side shared repository + partial source agents |
| Adversary Identity | Scope | Repository and a small subset of trajectory sources |
| Attack Surface | Centralized repository | Modify stored workflows / trajectories |
| Attack Surface | Decentralized agent | Inject poisoned trajectories before submission |
| Adversary Capabilities | Repository Compromise | Full read/write access to centralized repository |
| Adversary Capabilities | Workflow Manipulation | Deletion / insertion / modification / reordering |
| Adversary Capabilities | Trajectory Manipulation | Modify stored trajectories (invalidates signatures) |
| Adversary Capabilities | Source-level Poisoning | Control a minority of agents submitting corrupted trajectories |
| Adversary Limitations | No Cryptographic Break | Cannot forge signatures or access signing keys |
| Adversary Limitations | Limited Compromise | Only a minority of agents can be corrupted |
| Adversary Limitations | No Execution-time Attack | No tampering during or after retrieval |
| Adversary Limitations | Scope Restriction | Restricted to repository and a minority of agents |
Table 1. Threat Model Specification: Adversary Identity, Capabilities, and Limitations
Security boundary. We assume that cryptographic signatures on trajectories are unforg[e]able under standard assumptions, so that the adversary cannot produce validly signed but tampered trajectories. In addition, the adversary cannot compromise downstream agent runtimes or verification procedures, and cannot modify workflows or trajectories after retrieval. Importantly, the adversary’s influence is bounded: it may corrupt only a minority fraction of agents and their submitted trajectories, while the majority of trajectories associated with any workflow remain generated by honest agents, due to the inherently distributed nature of trajectory generation. [34]
Workflow Invalidation Detection
This section presents our detection framework for defending against workflow invalidation attacks. We first introduce a trajectory-based integrity verification mechanism to filter corrupted trajectories and detect invalid workflows, followed by a runtime path-aware retrieval strategy to improve efficiency.
Trajectory Provenance and Extraction
Each trajectory is represented as a DAG , capturing a concrete execution instance. denotes the set of executed operations and encodes their realized dependency relations. Each operation in is aligned to an abstract workflow step. Importantly, this alignment can be many-to-one, allowing multiple concrete operations to be abstracted into a single workflow step.
Traceability and Integrity Protection. Before submission, each trajectory is canonically serialized as and signed using the originating agents private key: . The signed tuple is uploaded to the shared repository. Each trajectory is associated with its signer to maintain agent-level provenance. Only trajectories with valid signatures are admitted, and signature verification is enforced upon retrieval.
Trajectory Filtering. Given a set of trajectories for the same task, we first perform trajectory-level cross-validation using multiple reasoning paths and structurally similar execution traces. Trajectories with inconsistent outcomes are flagged as anomalous. Second, for structurally similar trajectories, we encode each trajectory into an embedding and identify outliers based on embedding similarity. Trajectories are traced to their originating agents, and agents with repeated anomalous submissions are flagged. Their subsequent trajectories are subject to down-weighting during aggregation. Only trajectories passing validation are retained: , and used for workflow abstraction as well as evidence in downstream verification.
Trajectory-Supported Workflow Verification
We also model a workflow as a directed acyclic graph (DAG) , where is a set of workflow steps, is a set of directed edges encoding execution dependencies, and denotes step descriptions and branch conditions. Each node represents an abstract operation (e.g., tool invocation, subtask, or decision step). Each edge indicates that step may be executed only after step completes. Nodes with multiple outgoing edges denote branching points, where subsequent steps are selected based on execution context and conditions in , enabling the workflow to compactly represent a family of valid execution paths.
Step-level alignment. Our core design principle is to ground abstract workflows in verifiable execution evidence. Instead of trusting workflows as standalone artifacts, we require each workflow to be accompanied by a set of cryptographically signed execution trajectories, contributed by honest agents. These trajectories act as immutable provenance records, enabling downstream agents to validate both the integrity and the semantic faithfulness of retrieved workflows.
When a workflow is retrieved, the agent simultaneously requests a small set of cryptographically signed execution trajectories associated with , i.e., trajectories used to extract or aligned with during workflow construction. The agent then performs cryptographic verification, ensuring each signature is valid and the corresponding trajectory has not been modified after submission.
Semantic consistency verification. To validate workflow correctness beyond cryptographic integrity, the agent performs semantic consistency verification using supporting execution trajectories. Given a retrieved workflow and a verified execution trajectory , each trajectory operation is associated with a corresponding abstract workflow step. The verifier then checks whether the step descriptions, operation semantics, and dependency relations specified in are consistent with those realized in the authenticated execution evidence.
For a workflow step that an agent is about to execute, the verifier requires the existence of the cryptographically verified execution trajectory whose corresponding subgraph provides concrete execution evidence for . This subgraph consists of the set of trajectory operations that are aligned with the workflow step being verified. Specifically, the verifier checks the operations mapped to in are consistent with the intended functionality of , and that the realized dependency relations in are compatible with the dependency constraints specified by and the branch conditions in .
We use a guided language model (GLM) as the verifier. Given a retrieved workflow and a set of signed trajectories, it instantiates the predicate consistency through three complementary checks: (i). Structural consistency. We enforce deterministic constraints on dependency relations. For each edge , the verifier checks whether a corresponding execution order or reachable path exists in . (ii). Execution-level consistency. the verifier retrieves aligned subgraphs from trajectories that provide concrete execution evidence, including operation types, inputs, and outputs. We then assess whether the state transitions induced by are consistent with those observed in the trajectories. (iii). Semantic consistency. Given the workflow specification, aligned trajectory subgraphs, and runtime context, the verifier produces a semantic consistency signal.
Multi-trajectory consensus. Instead of relying on a single trajectory, we estimate the predicate consistency across multiple trajectories and express the fraction of trajectories supporting step as
where is an indicator function equal to 1 if step is consistent with trajectory , and 0 otherwise. We accept a step only if (i) all deterministic constraints (both structural and execution-level) are satisfied, and (ii) , where is the minimum trajectory proportion consistent with the workflow. A workflow is accepted only if all its steps meet the above criteria.
Runtime Path-Aware Trajectory Retrieval
Motivation. Workflows are inherently branching, and each execution trajectory provides evidence for only a subset of steps. Exhaustively retrieving all signed trajectories to cover the full workflow incurs prohibitive communication and verification overhead. We therefore propose a runtime path-aware trajectory retrieval strategy that selectively retrieves trajectories relevant to the current execution context. Further algorithmic details are provided in Appendix A.
Path-aware retrieval scheme. In the path-aware trajectory retrieval scheme, supporting trajectories are retrieved and verified on demand and restricted to the currently determined workflow path. Here, the determined path refers to the sequence of workflow steps starting from the current execution point and extending up to the next branching node, for which the execution order is uniquely determined. As shown in Figure 2, when a workflow is first retrieved, the agent fetches only the signed trajectories that support the initially determined path, i.e., the steps preceding the first branching point. As execution progresses, whenever the agent reaches a branching node, it selects the next branch based on the current execution context and the corresponding branch conditions, and subsequently requests only those signed trajectories whose aligned subgraphs are consistent with the steps along the selected branch. Execution then continues along the verified path until either all steps are completed or a branching point is reached. If at any point verification fails, the workflow is detected as invalid and execution is terminated. This design ensures that the agent continuously maintains authenticated execution evidence for workflow steps whose control flow has been determined, while avoiding unnecessary retrieval and verification of trajectories associated with non-executed branches.
Figure 2. The agent retrieves a workflow and iteratively executes and verifies steps, checking them against supporting trajectories from the shared repository.
Evaluation
Setup
Models and Datasets. We instantiate agents using different LLMs as the reasoning backbone, including LongChat-13B [35], LLaMA3-8B [36], and Qwen2.5-7B [37]. To ensure a controlled comparison, the execution setup of the agent is kept fixed across all experiments. Unless otherwise specified, we deploy a local model (Qwen3-8B[38]) as the guided language model (GLM) for workflow invalidation detection. We evaluate our method on four representative multi-step reasoning benchmarks: MathQA [39], MATH [40], MBPP [41], and FEVER [42]. These benchmarks span diverse reasoning tasks, including mathematical problem solving (MathQA, MATH), program synthesis (MBPP), and multi-hop factual verification (FEVER). For each dataset, we randomly select 1K samples to construct execution trajectories, from which workflows are derived following the procedure in [28, 29]. To further evaluate generalization, we construct an additional synthetic dataset, denoted as Mix., by combining samples from all four benchmarks.
Baselines. We compare our method against the following three workflow invalidation detection baselines: (i) Semantic evaluation (Sem_eva). This baseline follows the LLM-as-a-judge paradigm and evaluates workflows by prompting the model to assess the semantic correctness and coherence of intermediate reasoning steps. It detects workflow invalidation by identifying semantic inconsistencies during execution, motivated by [43]. (ii) Consistency comparison (Con_com). This baseline adopts a consistency-based detection strategy, following the spirit of [44]. It retrieves the top- candidate workflows and identifies those that lead to inconsistent reasoning outcomes as invalid. (iii) Embedding evaluation (Emb_eva). This baseline measures embedding-level semantic representations of workflows. Candidate workflows are encoded into a shared embedding space, and workflows exhibiting low agreement relative to others are identified as invalid, motivated by [45].
Metrics. To quantify the effectiveness of workflow invalidation attacks, we compare inference accuracy on the dataset with and without workflow invalidation attacks. The resulting accuracy drop directly reflects the degradation in inference quality caused by the workflow invalidation attack. In addition, we report the Attack Success Rate (ASR) (%), defined as the fraction of inference samples for which a previously correct execution becomes incorrect due to workflow invalidation. Specifically, let denote the number of tasks correctly solved under the original workflows. After applying workflow invalidation, denotes the number of tasks that remain correct. The ASR is defined as: ASR . Note that ASR is computed over the subset of samples that are correct under the original workflow, and thus is not equivalent to the absolute accuracy drop.
To evaluate detection performance, we report True Positive Rate (TPR) (%), True Negative Rate (TNR) (%), and F1 score (%). TPR denotes correctly detected invalid workflows, while TNR measures correctly identified valid ones. The F1 score captures overall robustness via precision-recall trade-off.
We additionally provide detailed experimental specifics in Appendix C, including prompt design and example outputs. We also report the robustness of trajectory selection in Appendix D, and time complexity analysis and detailed detection overhead results in Appendix E.
Overall Performance
Effectiveness of workflow invalidation. We evaluate the effectiveness of workflow invalidation attacks by analyzing how adversarial workflow modifications affect agent task execution. Experiments are conducted on four representative multi-step reasoning datasets. For each dataset, an adversary applies a range of workflow modifications, including deletion of critical steps, insertion of misleading steps, substitution of key steps, and reordering of dependent steps. Attack effectiveness is measured using inference accuracy and ASR under correct and invalidated workflows. As shown in Table 2, agents achieve consistently high inference accuracy when guided by correct workflows across all benchmarks. In contrast, workflow invalidation leads to severe performance degradation, which can reduce agent inference accuracy by up to 73.16 percentage points, with the average accuracy dropping to 16.83% under invalid workflows. Among the considered attack strategies, step substitution and insertion are the most damaging, achieving an average ASR of 75.60%. Step deletion and re-ordering also substantially degrade performance, demonstrating that adversarially invalidated workflows can reliably mislead agent execution across diverse reasoning tasks. Specifically, for datasets where agents already achieve relatively moderate performance under correct workflows, such as FEVER, adversarial modifications still lead to noticeable performance degradation, indicating that invalid workflows can consistently harm execution even in challenging settings. In contrast, for datasets where agents perform well under correct workflows, such as MathQA, workflow invalidation results in more pronounced performance drops and higher attack success rates. It suggests that tasks which are more sensitive to workflow guidance are more vulnerable to adversarial workflow manipulations.
| Agent LLM | Dataset | Base ACC | Deletion ACC | Deletion ASR | Insertion ACC | Insertion ASR | Modification ACC | Modification ASR | Reordering ACC | Reordering ASR |
| LongChat-13B | MathQA | 83.53 | 15.4468.09 | 81.52 | 21.7961.74 | 73.91 | 35.6447.89 | 57.33 | 10.3773.16 | 87.59 |
| MATH | 88.82 | 28.7460.08 | 67.64 | 18.1770.65 | 79.54 | 33.5355.29 | 62.25 | 16.3572.47 | 81.59 | |
| FEVER | 61.07 | 12.9548.12 | 88.36 | 13.6247.45 | 73.91 | 22.4838.59 | 69.81 | 29.2731.80 | 64.93 | |
| MBPP | 76.89 | 21.5655.33 | 82.04 | 35.4241.47 | 59.05 | 20.0856.81 | 73.12 | 11.4365.46 | 79.87 | |
| Mix. | 77.58 | 19.6757.91 | 75.35 | 22.2555.33 | 68.69 | 27.9349.65 | 67.03 | 16.8660.72 | 76.42 | |
| LLaMA3.1-8B | MathQA | 68.57 | 12.7355.84 | 80.19 | 11.4357.14 | 83.33 | 25.5643.01 | 63.02 | 12.3056.27 | 82.87 |
| MATH | 42.73 | 8.3334.40 | 80.05 | 9.1733.56 | 84.25 | 3.2539.48 | 92.44 | 11.4831.25 | 74.31 | |
| FEVER | 34.21 | 4.3629.85 | 87.28 | 10.8823.33 | 70.15 | 13.0121.20 | 65.30 | 16.9417.27 | 50.54 | |
| MBPP | 56.15 | 17.9438.21 | 76.58 | 18.0938.06 | 68.72 | 9.5446.61 | 83.07 | 15.2840.87 | 73.18 | |
| Mix. | 50.42 | 10.8439.58 | 77.32 | 12.3938.03 | 75.46 | 12.8437.58 | 74.35 | 14.0036.42 | 70.22 | |
| Qwen2.5-7B | MathQA | 68.93 | 21.4047.53 | 71.21 | 18.5750.36 | 74.62 | 10.7158.22 | 77.83 | 19.6549.28 | 70.68 |
| MATH | 60.42 | 13.9746.45 | 80.09 | 20.0140.41 | 68.67 | 16.6743.75 | 75.43 | 13.2847.14 | 81.28 | |
| FEVER | 48.03 | 13.2634.77 | 79.02 | 10.3737.66 | 85.59 | 19.4128.62 | 65.05 | 8.9939.04 | 88.73 | |
| MBPP | 57.35 | 7.1950.16 | 90.12 | 14.6242.73 | 77.69 | 28.5728.78 | 52.33 | 21.0536.30 | 64.82 | |
| Mix. | 58.68 | 13.9644.72 | 80.11 | 15.8947.79 | 76.64 | 18.8439.84 | 67.66 | 16.5642.12 | 76.38 |
Table 2. Effectiveness of the proposed workflow invalidation attack.
Detection performance. Table 3 presents workflow invalidation detection performance across four datasets. Our method consistently outperforms all baselines in TPR, TNR, and F1 score, demonstrating superior detection of invalid workflows while preserving valid ones.
| Method | MathQA TPR | MathQA TNR | MathQA F1 | MATH TPR | MATH TNR | MATH F1 | FEVER TPR | FEVER TNR | FEVER F1 | MBPP TPR | MBPP TNR | MBPP F1 | Mix TPR | Mix TNR | Mix F1 |
| Sem_eva | 57.28 | 74.95 | 65.93 | 48.32 | 58.01 | 58.05 | 46.17 | 53.90 | 57.87 | 34.22 | 68.20 | 42.95 | 49.20 | 62.79 | 58.04 |
| Con_com | 52.18 | 23.51 | 53.67 | 29.73 | 56.26 | 40.08 | 21.15 | 72.48 | 30.52 | 43.84 | 22.73 | 25.20 | 45.36 | 49.00 | 51.49 |
| Emb_eva | 44.44 | 25.45 | 48.76 | 34.29 | 31.86 | 32.06 | 21.95 | 39.75 | 32.09 | 26.17 | 49.72 | 32.52 | 39.21 | 31.84 | 44.02 |
| Ours* | 82.27 | 91.58 | 87.88 | 78.10 | 89.51 | 85.56 | 80.64 | 76.59 | 82.59 | 78.33 | 83.94 | 83.85 | 80.51 | 85.41 | 85.26 |
Table 3. Comparison of different workflow invalidation detection methods, including the Mix dataset.
The baseline methods exhibit distinct weaknesses. Sem_eva achieves moderate TPR but relatively low F1 scores, as in some datasets, the method degenerates into over-predicting invalid samples, resulting in imbalanced performance where only one of TPR or TNR remains high. This suggests that semantic-based judgments are insufficient for reliably distinguishing workflows. Con_com shows highly imbalanced behavior, with either low TPR or low TNR depending on the dataset. This suggests that outcome-consistency signals are inherently unstable for detection, since workflow invalidation does not necessarily manifest as inconsistent execution outcomes, and the method further deteriorates as the proportion of invalid workflows in the dataset increases. Emb_eva performs the worst overall, reflecting the limited sensitivity of embedding-level agreement to fine-grained semantic and structural violations in workflows.
In contrast, our method achieves both high TPR and high TNR across all datasets, resulting in substantially higher F1 scores. On average, our approach improves F1 by more than 40.14 percentage points over baselines, indicating a better capability for workflow invalidation detection. Notably, our method achieves an average TPR of 79.97% across all datasets, highlighting its effectiveness in detecting invalid workflows in complex, multi-step reasoning scenarios. The gains observed on FEVER further demonstrate the robustness of our methods across diverse task domains. This confirms that our approach provides a reliable and generalizable solution across heterogeneous benchmarks.
Ablation Study
Impact of the number of trajectories for detection. We further analyze how the number of supporting trajectories affects workflow invalidation detection performance. Specifically, we vary the number of trajectories from 1 to 25 and report the invalid workflow detection rate (TPR) under different workflow invalidation attacks. Figure 3 summarizes the results across four benchmarks. Overall, we observe a consistent trend across all datasets: detection performance improves substantially as increases from 1 to 10, and then gradually saturates when . This behavior highlights the effectiveness of aggregating execution evidence from multiple trajectories: when only a single trajectory is available, detection accuracy is highly sensitive to randomness and noise in individual executions, especially under subtle attacks such as Insertion and Reordering. As increases, aggregating multiple trajectories suppresses the influence of outlier executions and enables the verifier to better capture stable execution patterns, resulting in significant improvements across all attack types.

Figure 3. Performance of the workflow invalidation detection with different number of trajectories.
We also observe notable differences across different invalidation attacks. In general, Deletion and Modification attacks are detected more reliably with fewer trajectories, as they tend to introduce more pronounced inconsistencies between workflows and execution trajectories. In contrast, Insertion and Reordering attacks require a larger number of trajectories to reach comparable detection accuracy, since these attacks are designed to preserve local plausibility while subtly altering execution order or intermediate states. Nevertheless, once reaches around 10, detection performance for all attack types converges to a high and stable level. Beyond , additional trajectories provide diminishing marginal benefits. This is because newly trajectories are often highly similar to existing ones and contribute limited new structural or semantic information for verification.
Impact of different GLMs for detection. We next evaluate the impact of different guided language models (GLMs) used for workflow invalidation detection (§ 4.2). Specifically, we consider three representative models with different scales and capacities: Qwen3-8B [38], LLaMA3-8B [36], and Qwen2.5-7B [37]. The results are summarized in Table 4. Overall, all three GLMs achieve strong detection performance across datasets. In particular, the TPR consistently remains around 75.39% across all settings, while the average TNR stays around 81.52%. This indicates that the proposed detection method generalizes well across different underlying GLMs, as workflow invalidation detection is largely driven by the verification procedure and execution trajectories, rather than by any specific model architecture or scale.
| GLM | MathQA | MATH | FEVER | MBPP | Mix | ||||||||||
| TPR | TNR | F1 | TPR | TNR | F1 | TPR | TNR | F1 | TPR | TNR | F1 | TPR | TNR | F1 | |
| Qwen3-8B | 80.64 | 91.58 | 87.88 | 77.10 | 89.51 | 85.56 | 76.91 | 76.59 | 82.59 | 74.33 | 83.94 | 83.85 | 78.50 | 85.41 | 85.26 |
| LLaMA3-8B | 76.92 | 85.71 | 83.91 | 76.53 | 85.84 | 80.75 | 73.44 | 71.02 | 73.99 | 73.98 | 78.59 | 76.05 | 74.68 | 79.38 | 78.74 |
| Qwen2.5-7B | 75.96 | 87.08 | 79.45 | 76.93 | 81.82 | 78.64 | 68.91 | 67.39 | 68.03 | 72.13 | 79.89 | 75.39 | 73.87 | 79.24 | 76.18 |
Table 4. The performance of workflow invalidation detection with different guided language models.
We observe that larger GLMs, such as Qwen3-8B, achieve more balanced TPR-TNR trade-offs and consistently deliver the highest F1 scores across datasets, with particularly strong gains on complex reasoning benchmarks such as MathQA and MATH that require robust semantic understanding and long-horizon reasoning. LLaMA3-8B shows comparable performance, indicating that large models across architectures can support workflow verification. In contrast, the smaller Qwen2.5-7B exhibits lower F1 scores, especially on FEVER and MBPP, where multi-hop factual reasoning and program-level semantics pose greater challenges. Nevertheless, the performance degradation is limited, and the model maintains competitive TPR and TNR values. This reflects a favorable accuracy-efficiency trade-off, enabling lightweight GLMs suitable under resource or latency constraints.
Conclusion
In this work, we identify workflow invalidation as a new and critical attack surface in LLM-based agent systems that rely on shared workflows. We show that adversarially tampered workflows can substantially degrade agent performance. To defend against this attack, we propose a workflow detection framework based on cryptographically signed execution trajectories and runtime verification, enabling agents to detect invalidated workflows during execution. Our path-aware trajectory retrieval strategy further ensures that verification remains efficient and scalable by restricting trajectory retrieval to the currently executed workflow path. Extensive experiments across multiple datasets and model configurations demonstrate both the severity of workflow invalidation attacks and the effectiveness of our defense. We also discuss current limitations and future extensions to broader adversarial settings in Appendix § 13.
Impact Statements
This paper presents work whose goal is to advance the field of machine learning. There are many potential societal consequences of our work, none of which we feel must be specifically highlighted here.
Algorithm Design for Path-aware Workflow Verification
Algorithm 1 presents the runtime path-aware workflow verification procedure. The algorithm incrementally verifies and executes workflow steps by alternating between verification and execution phases, while dynamically adapting to branching workflow steps.
Given a workflow path whose execution order has been determined, WORKFLOW_VER verifies each step independently. For each step, the verifier retrieves a small number of signed execution trajectories aligned with and validates their signatures to ensure trajectory integrity. It then checks whether the workflow step is semantically consistent with the authenticated execution evidence derived from these trajectories. If any step fails verification, a workflow invalidation attack is detected and the procedure terminates immediately. Otherwise, all steps in are accepted, and a verified path is returned.
The verified path is then passed to AGENT_EXE, which executes all steps in in the runtime environment. After executing the verified steps, the agent checks whether the next step corresponds to a branching node. If a branching node is encountered, the agent determines the next workflow path based on the current execution context and the corresponding branch conditions. The agent then returns the newly determined path for subsequent verification. Otherwise, if no further branching occurs, the agent execution completes.
By verifying and executing only the currently determined workflow path, the algorithm performs verification on demand and confines trajectory retrieval to the execution path actually taken. This design minimizes verification overhead while preserving strong integrity and semantic consistency guarantees against workflow invalidation attacks.
Algorithm 1 Runtime Path-Aware Workflow Verification
procedure WORKFLOW_VER($\mathcal{P}$) ▷ Verify the currently determined workflow path $\mathcal{P}$ step by step
for all step $u \in \mathcal{P}$ do
Fetch $K$ signed execution trajectories aligned with workflow step $u$, denoted as $\mathcal{R}_u$
Verify the cryptographic signatures of trajectories in $\mathcal{R}_u$, obtaining $\mathcal{R}^{*}_u$
Verify the semantic consistency of workflow step $u$ using $\mathcal{R}^{*}_u$
if step $u$ does not pass verification then
return Workflow invalidation detected
end if
end for
return Verified path $\mathcal{P}^{*}$
end procedure
procedure AGENT_EXE($\mathcal{P}^{*}$) ▷ Execute all verified steps in the runtime environment
Execute all workflow steps in the verified path $\mathcal{P}^{*}$
if the next step $v$ is a branching node then
Determine the workflow path based on the current branching node
$\mathcal{P} \leftarrow \operatorname{DeterminePath}(G_w,v)$
WORKFLOW_VER($\mathcal{P}$) ▷ handoff to WORKFLOW_VER
else
return Agent execution completes
end if
end procedure
Workflow Invalidation Procedure
The adversary does not introduce obvious syntactic errors or explicit illegal instructions, but instead invalidates the workflow by altering the execution path induced by the workflow. As shown in Figure 4, the adversary can perform the following workflow modification strategies, each designed to preserve surface-level plausibility while misleading agents’ execution.

Figure 4. Different strategies for the workflow invalidation attack.
Deletion: The adversary removes critical steps essential for correct execution. Although seemingly minor in isolation, these steps maintain intermediate states and dependencies, and their removal causes subsequent steps to operate on incomplete or inconsistent states, ultimately affecting the intended outcome.
Insertion: The adversary inserts additional steps into the workflow, such as extra validation, preprocessing, or refinement steps. These inserted steps interfere with the normal execution logic and propagate errors to subsequent steps, ultimately causing the workflow to deviate from its intended behavior.
Modification: The adversary modifies the content of existing steps by altering conditions, parameters, or decision criteria, while preserving the overall intent of the workflow. These modifications maintain local semantic coherence, but shift execution logic in ways that accumulate into incorrect outcomes over multiple steps.
Reordering: The adversary reorders dependent workflow steps in a manner that respects superficial logical flow, but violates implicit temporal or causal dependencies. Such reordering is difficult to detect through local inspection, yet can invalidate assumptions about intermediate state availability and execution order.
Collectively, these attacks do not rely on explicit semantic corruption or syntactic invalidity. Instead, they exploit the fact that workflow correctness depends on global structural consistency and long-range execution dependencies, which are not directly observable through step-level inspection.
Detailed Experimental Setup for Workflow Verification
This section describes the prompt design used in our runtime path-aware workflow verification experiments. The prompt specifies the verifiers role, input assumptions, and consistency criteria, and defines a structured output format that reports both the consistency decision and the inferred type of workflow invalidation.
Prompt Design
We design a path-aware verification prompt that consists of a task definition specifying the verifiers role and inputs, and a set of verification rules that require the LLM to determine whether the executed prefix and upcoming step are supported by authenticated trajectories.
Prompt 1 (Task Definition).
System: You are an expert verifier for ONE-VARIABLE LINEAR-EQUATION workflows.
Goal: Verify whether a given workflow (or workflow step/module) is semantically consistent with and supported by a small set of signed execution trajectories. Detect workflow–trajectory mismatches that may indicate workflow invalidation attacks (e.g., deletion, insertion, substitution, or reordering), even when the workflow appears syntactically valid and superficially plausible.
Inputs:
Workflow: A workflow candidate in JSON (or a single workflow step), including a declared module code. The workflow library contains:
Level-1 (L1) atomic modules:
L1-LIN-ISOLATE
L1-LIN-FRACTION-LCD
L1-LIN-RECIPROCAL
L1-LIN-DISTR-COLLECT
L1-LIN-PROPORTION
Level-2 (L2) composite modules (ordered compositions of L1):
L2-LIN-FRAC-TO-ISOLATE = [L1-LIN-FRACTION-LCD L1-LIN-ISOLATE]
L2-LIN-DISTR-TO-ISOLATE = [L1-LIN-DISTR-COLLECT L1-LIN-ISOLATE]
L2-LIN-PROP-TO-ISOLATE = [L1-LIN-PROPORTION L1-LIN-ISOLATE]
L2-LIN-RECIP-TO-ISOLATE = [L1-LIN-RECIPROCAL L1-LIN-ISOLATE]
Trajectories: A small collection of execution trajectories aligned with the workflow. Each trajectory contains:
a problem/query
a response/execution text (step description)
Assumption: Trajectories are assumed authentic (signatures already verified). Evaluate semantic consistency only.
Task: For each workflow (or step), determine whether the declared workflow module and step description are correctly supported by the provided execution trajectories.
Important constraints:
Do not recompute final numeric answers.
Only analyze the methodology / step sequence implied by the trajectories’ responses.
Treat trajectories as execution evidence: if the workflow claims a reasoning pattern not exhibited in trajectories, mark it as NOT_CONSISTENT.
If trajectories support multiple reasoning strategies, judge whether the declared module remains a reasonable dominant abstraction.
If the item is not a one-variable linear-equation solver task, mark NOT_CONSISTENT with reason “not a one-variable linear-equation task”.
Prompt 2 (Verification Rules).
Consistency rules (L1):
If the declared module is an L1 atomic module, trajectories must clearly exhibit the decisive reasoning steps of that module.
Minor omissions (e.g., not explicitly stating domain restrictions) do not invalidate consistency if the method is otherwise clear; note the omission briefly.
If trajectories are too vague to infer a method, mark NOT_CONSISTENT with reason “insufficient evidence”.
Consistency rules (L2):
If the declared module is an L2 composite module, trajectories must provide evidence for each sub-stage in the correct order.
A workflow is consistent with an L2 module only if decisive steps for component L1 modules are observed in trajectories in the declared order.
If trajectories only support a subset of the L2 stages, mark NOT_CONSISTENT and report the best supported alternative (L1 or L2).
Attack type annotation:
If a workflow is marked NOT_CONSISTENT, infer the most likely invalidation pattern:
deletion: critical reasoning steps implied by trajectories are missing from the workflow
insertion: workflow contains extra steps not supported by trajectories
substitution: workflow claims a different reasoning strategy than trajectories exhibit
reordering: workflow step order violates dependencies implied by trajectories
unclear: inconsistency detected but attack pattern cannot be confidently determined
Output Format
The output consists of two components: (i). a binary consistency decision indicating whether the workflow execution is valid, and (ii). a categorical label identifying the inferred type of workflow invalidation, if any.
Output Format.
Return JSON only (no code fences, no extra prose) with schema:
{
"summary": {
"total_workflows": <int>,
"consistent_count": <int>,
"inconsistent_count": <int>,
"by_module": {
"L1-LIN-ISOLATE": <int>,
"L1-LIN-FRACTION-LCD": <int>,
"L1-LIN-RECIPROCAL": <int>,
"L1-LIN-DISTR-COLLECT": <int>,
"L1-LIN-PROPORTION": <int>,
"L2-LIN-FRAC-TO-ISOLATE": <int>,
"L2-LIN-DISTR-TO-ISOLATE": <int>,
"L2-LIN-PROP-TO-ISOLATE": <int>,
"L2-LIN-RECIP-TO-ISOLATE": <int>
}
},
"workflows": [
{
"index": <1-based index>,
"declared_module": "...",
"workflow_snippet": "<short snippet>",
"consistent": true/false,
"supported_module": "... | null",
"supported_decomposition": ["<module1>", "<module2>"] | null,
"suspected_attack_type":
"deletion | insertion | substitution | reordering | unclear | null",
"reason": "<brief explanation>"
}
]
}
The Robustness of Trajectory Filtering
To enhance the robustness of trajectory selection, we propose a hybrid evaluation mechanism that fuses multi-trajectory cross-validation with vector similarity metrics. Specifically, this method first performs cross-validation analysis on multiple trajectories under the same task, while simultaneously calculating the cosine similarity of trajectory embeddings to quantify semantic consistency. We formulate a weighted hybrid evaluation function , defined as follows:
where represents the cross-validation score, denotes the vector similarity score, and the balancing weight is set to 0.5.
| Dataset | MBPP | MathQA | MATH | FEVER |
| Accuracy | 89.37% | 95.43% | 92.05% | 94.27% |
Table 5. The accuracy of trajectory selection.
To validate the effectiveness of this mechanism, we conducted tests on a constructed benchmark dataset. This dataset strictly controls data distribution, comprising 90% valid trajectories and 10% adversarial erroneous trajectories (simulating attack samples). Experimental results demonstrate that the proposed hybrid evaluation mechanism exhibits a strong capacity for suppressing malicious or erroneous trajectories while retaining high-confidence ones, achieving a filtering accuracy of 92.78%, which significantly outperforms single-metric evaluation schemes.
Supplementary Ablation Study
We evaluate the effectiveness of the proposed path-aware trajectory retrieval method (§4.3), which aims to reduce the number of trajectories required for workflow invalidation detection and thereby lower detection overhead. We compare the detection latency, including both communication overhead for retrieving trajectories from the remote repository and the verification latency on the GLM, with and without path-aware retrieval under workflows with varying structural complexity, where the number of branching nodes ranges from 2 to 6. We further conduct this evaluation across different GLMs used for workflow invalidation detection. The results are summarized in Figure 5.
Figure 5. Detection overhead when the path-aware trajectory retrieval method is enabled and disabled.
Across all datasets and GLMs, the path-aware trajectory retrieval method consistently yields substantial latency reductions. On average, it reduces detection latency by 71% compared to the baseline that retrieves trajectories without considering execution paths. Without path-aware retrieval, detection latency grows rapidly as workflow complexity increases, since trajectories associated with all possible paths are indiscriminately retrieved and verified. In the most complex setting, detection latency reaches up to 886.94 seconds, highlighting the poor scalability of path-agnostic retrieval.
In contrast, incorporating path-aware retrieval leads to significantly more stable scaling behavior. By restricting trajectory retrieval to the currently determined execution path, the detection latency remains bounded even as the workflow complexity increases. Across all evaluated settings, the latency with path-aware retrieval is consistently limited to within 382.25 seconds, demonstrating that the proposed method effectively decouples detection overhead from the total number of workflow paths.
We further observe that the benefits of path-aware retrieval are consistent across different GLMs, including Qwen3-8B, LLaMA3-8B, and Qwen2.5-7B. Although absolute latency varies across models due to differences in model size and verification cost, the relative latency reduction achieved by path-aware retrieval remains similar. This suggests that the efficiency gains stem from the algorithmic design of selective trajectory retrieval, rather than from model-specific optimizations.
Latency Overhead Evaluation. For the complexity of the path-aware strategy, consider an execution path with steps. For each step , the verifier retrieves aligned signed trajectories, verifies their signatures, and performs semantic consistency checking. Let and $C_{\mathrm{sem}} denote the costs of signature verification and semantic checking, respectively. The per-step cost is , yielding a total complexity of .
As shown in Table 6, to empirically validate the overhead, we deploy Qwen2.5-7B on two NVIDIA L20 GPUs (48GB each) and measure end-to-end latency on four datasets. Compared to inference-only execution, our method incurs an average latency increase of less than 14%, demonstrating that the added verification overhead remains practically acceptable.
| Dataset | Inference Only | Verification + Inference | Increase |
| MBPP | 1.89s | 2.05s | 8.46% |
| MathQA | 3.08s | 3.45s | 12.09% |
| MATH | 3.94s | 4.71s | 19.73% |
| FEVER | 6.95s | 8.04s | 15.62% |
Table 6. End-to-end latency comparison with and without verification.
Limitations and Future Work
While the proposed workflow invalidation detection framework demonstrates strong effectiveness across multiple reasoning benchmarks, several limitations remain.
First, our framework relies on the assumption that the majority of trajectory-submitting agents are honest and that cryptographic signatures cannot be forged. Although this assumption is consistent with common settings in collaborative and federated systems, stronger adversaries that compromise a larger fraction of agents may still inject coordinated poisoned trajectories capable of influencing workflow abstraction and verification. Future work could explore Byzantine-resilient aggregation mechanisms and trust-aware trajectory weighting strategies to further improve robustness under large-scale adversarial participation.
Second, the current verification framework primarily focuses on workflow integrity and semantic consistency, but does not explicitly model long-term adaptive adversaries. An attacker may gradually evolve poisoning strategies to better mimic authentic execution trajectories while preserving semantic plausibility. Developing adaptive or continual verification mechanisms that evolve together with workflow repositories remains an important open problem.
Third, although the proposed path-aware trajectory retrieval strategy significantly reduces verification overhead, the runtime cost can still become substantial for highly branching workflows or large-scale agent ecosystems. In particular, verification latency depends on both the number of retrieved trajectories and the complexity of semantic consistency checking performed by the guided language model. More efficient lightweight verification models, hierarchical retrieval mechanisms, or compressed provenance representations may further improve scalability.
Fourth, our evaluation mainly considers workflow invalidation attacks operating at the repository and trajectory levels. Other attack surfaces in LLM-based agent systems, such as tool manipulation, retrieval corruption, memory poisoning, or environment-level adversarial interactions, are not explicitly addressed in this work. Future research could investigate unified security frameworks capable of jointly defending multiple components of agent ecosystems.
Finally, while our experiments cover diverse reasoning benchmarks including mathematical reasoning, factual verification, and code generation, the evaluation remains limited to controlled benchmark settings. Real-world deployment scenarios may involve substantially more dynamic workflows, heterogeneous agent behaviors, and noisy execution environments. Extending the proposed framework to real-world multi-agent platforms and production-scale workflow repositories is an important direction for future work.
Despite these limitations, we believe this work represents an important step toward trustworthy and verifiable shared workflow systems for LLM-based agents, and we hope it motivates further research on the security, reliability, and provenance of collaborative agent ecosystems.
References
- [1]Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik R Narasimhan, and Yuan Cao. React: Synergizing reasoning and acting in language models. In The eleventh international conference on learning representations, 2022.arxiv.org/abs/2210.03629
- [2]Wanjun Zhong, Lianghong Guo, Qiqi Gao, He Ye, and Yanlin Wang. Memorybank: Enhancing large language models with long-term memory. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pages 19724–19731, 2024.arxiv.org/abs/2305.10250
- [3]Timo Schick, Jane Dwivedi-Yu, Roberto Dessì, Roberta Raileanu, Maria Lomeli, Eric Hambro, Luke Zettlemoyer, Nicola Cancedda, and Thomas Scialom. Toolformer: Language models can teach themselves to use tools. Advances in Neural Information Processing Systems, 36:68539–68551, 2023.arxiv.org/abs/2302.04761
- [4]Rong Wu, Xiaoman Wang, Jianbiao Mei, Pinlong Cai, Daocheng Fu, Cheng Yang, Licheng Wen, Xuემeng Yang, Yufan Shen, Yuxin Wang, et al. Evolver: Self-evolving llm agents through an experience-driven lifecycle. arXiv preprint arXiv:2510.16079, 2025.arxiv.org/abs/2510.16079
- [5]Zora Zhiruo Wang, Jiayuan Mao, Daniel Fried, and Graham Neubig. Agent workflow memory. In Forty-second International Conference on Machine Learning, 2024.arxiv.org/abs/2409.07429
- [6]Mingming Zhao, Xiaokang Wei, Yuanqi Shao, Kaiwen Zhou, Lin Yang, Siwei Rao, Junhui Zhan, and Zhitang Chen. a²flow: Automating agentic workflow generation via self-adaptive abstraction operators. arXiv preprint arXiv:2511.20693, 2025.arxiv.org/abs/2511.20693
- [7]Anthony Zhe Liu, Jongwook Choi, Sungryull Sohn, Yao Fu, Jaekyeom Kim, Dong-Ki Kim, Xinhe Wang, Jaewon Yoo, and Honglak Lee. Skillact: Using skill abstractions improves llm agents. In ICML 2024 Workshop on LLMs and Cognition, 2024.
- [8]Chen Yang, Chenyang Zhao, Quanquan Gu, and Dongruo Zhou. Cops: Empowering llm agents with provable cross-task experience sharing. arXiv preprint arXiv:2410.16670, 2024.arxiv.org/abs/2410.16670
- [9]Erhu Feng, Wenbo Zhou, Zibin Liu, Le Chen, Yunpeng Dong, Cheng Zhang, Yisheng Zhao, Dong Du, Zhichao Hua, Yubin Xia, et al. Get experience from practice: Llm agents with record & replay. arXiv preprint arXiv:2505.17716, 2025.arxiv.org/abs/2505.17716
- [10]Guibin Zhang, Muxin Fu, Guancheng Wan, Miao Yu, Kun Wang, and Shuicheng Yan. G-memory: Tracing hierarchical memory for multi-agent systems. arXiv preprint arXiv:2506.07398, 2025.arxiv.org/abs/2506.07398
- [11]Xiangru Tang, Tianrui Qin, Tianhao Peng, Ziyang Zhou, Daniel Shao, Tingting Du, Xinming Wei, Peng Xia, Fang Wu, He Zhu, et al. Agent kb: Leveraging cross-domain experience for agentic problem solving. arXiv preprint arXiv:2507.06229, 2025.arxiv.org/abs/2507.06229
- [12]Zeyu Zhang, Quanyu Dai, Xiaohe Bo, Chen Ma, Rui Li, Xu Chen, Jieming Zhu, Zhenhua Dong, and Ji-Rong Wen. A survey on the memory mechanism of large language model-based agents. ACM Transactions on Information Systems, 43(6):1–47, 2025.arxiv.org/abs/2404.13501
- [13]Hang Gao and Yongfeng Zhang. Memory sharing for large language model based agents. arXiv preprint arXiv:2404.09982, 2024.arxiv.org/abs/2404.09982
- [14]Battista Biggio, Blaine Nelson, and Pavel Laskov. Poisoning attacks against support vector machines. In Proceedings of the 29th International Conference on Machine Learning, ICML, 2012.arxiv.org/abs/1206.6389
- [15]Jacob Steinhardt, Pang Wei Koh, and Percy Liang. Certified defenses for data poisoning attacks. In Advances in Neural Information Processing Systems, NeurIPS, 2017.arxiv.org/abs/1706.03691
- [16]Eugene Bagdasaryan, Andreas Veit, Yiqing Hua, Deborah Estrin, and Vitaly Shmatikov. How to backdoor federated learning. In International conference on artificial intelligence and statistics, pages 2938–2948. PMLR, 2020.
- [17]Pang Wei Koh, Thao Nguyen, Yew Siang Tang, Stephen Mussmann, Emma Pierson, Been Kim, and Percy Liang. Stronger data poisoning attacks break data sanitization defenses. In Proceedings of the 38th International Conference on Machine Learning, ICML, 2021.arxiv.org/abs/1811.00741
- [18]Keith Bonawitz, Vladimir Ivanov, Ben Kreuter, Antonio Marcedone, H. Brendan McMahan, Sarvar Patel, Daniel Ramage, Aaron Segal, and Karn Seth. Practical secure aggregation for privacy-preserving machine learning. In Proceedings of the ACM SIGSAC Conference on Computer and Communications Security, CCS, 2017.DOI
- [19]Peter Kairouz, H. Brendan McMahan, Brendan Avent, Aurélien Bellet, Mehdi Bennis, Arjun Nitin Bhagoji, et al. Advances and open problems in federated learning. Foundations and Trends in Machine Learning, 14(1–2):1–210, 2021.arxiv.org/abs/1912.04977
- [20]Lei Wang, Chen Ma, Xueyang Feng, Zeyu Zhang, Hao Yang, Jingsen Zhang, Zhiyuan Chen, Jiakai Tang, Xu Chen, Yankai Lin, et al. A survey on large language model based autonomous agents. Frontiers of Computer Science, 18(6):186345, 2024.DOI
- [21]Yuxuan Cai, Yipeng Hao, Jie Zhou, Hang Yan, Zhikai Lei, Rui Zhen, Zhenhua Han, Yutao Yang, Junsong Li, Qianjun Pan, et al. Building self-evolving agents via experience-driven lifelong learning: A framework and benchmark. arXiv preprint arXiv:2508.19005, 2025.arxiv.org/abs/2508.19005
- [22]Shishir G Patil, Tianjun Zhang, Xin Wang, and Joseph E Gonzalez. Gorilla: Large language model connected with massive apis. Advances in Neural Information Processing Systems, 37:126544–126565, 2024.arxiv.org/abs/2305.15334
- [23]Wujiang Xu, Zujie Liang, Kai Mei, Hang Gao, Juntao Tan, and Yongfeng Zhang. A-mem: Agentic memory for llm agents. arXiv preprint arXiv:2502.12110, 2025.arxiv.org/abs/2502.12110
- [24]Mohit Shridhar, Xingdi Yuan, Marc-Alexandre Cote, Yonatan Bisk, Adam Trischler, and Matthew Hausknecht. {ALFWorld}: Aligning text and embodied environments for interactive learning. In International Conference on Learning Representations, 2021.arxiv.org/abs/2010.03768
- [25]Bang Liu, Xinfeng Li, Jiayi Zhang, Jinlin Wang, Tanjin He, Sirui Hong, Hongzhang Liu, Shaokun Zhang, Kaitao Song, Kunlun Zhu, et al. Advances and challenges in foundation agents: From brain-inspired intelligence to evolutionary, collaborative, and safe systems. arXiv preprint arXiv:2504.01990, 2025.arxiv.org/abs/2504.01990
- [26]Joon Sung Park, Joseph O’Brien, Carrie Jun Cai, Meredith Ringel Morris, Percy Liang, and Michael S Bernstein. Generative agents: Interactive simulacra of human behavior. In Proceedings of the 36th annual acm symposium on user interface software and technology, pages 1–22, 2023.arxiv.org/abs/2304.03442
- [27]Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc V. Le, Ed H. Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou. Self-consistency improves chains of thought reasoning in language models. In Proceedings of the Eleventh International Conference on Learning Representations (ICLR), 2023.arxiv.org/abs/2203.11171
- [28]Jiayi Zhang, Jinyu Xiang, Zhaoyang Yu, Fengwei Teng, Xiong-Hui Chen, Jiaqi Chen, Mingchen Zhuge, Xin Cheng, Sirui Hong, Jinlin Wang, et al. Aflow: Automating agentic workflow generation. In The Thirteenth International Conference on Learning Representations.
- [29]Shuofei Qiao, Runnan Fang, Zhisong Qiu, Xiaobin Wang, Ningyu Zhang, Yong Jiang, Pengjun Xie, Fei Huang, and Huajun Chen. Benchmarking agentic workflow generation. In The Thirteenth International Conference on Learning Representations.
- [30]Saksham Sahai Srivastava and Haoyu He. Memorygraf: Persistent compromise of llm agents via poisoned experience retrieval. arXiv preprint arXiv:2512.16962, 2025.arxiv.org/abs/2512.16962
- [31]Yifei Zhang, Dun Zeng, Jinglong Luo, Zenglin Xu, and Irwin King. A survey of trustworthy federated learning with perspectives on security, robustness and privacy. In Companion proceedings of the ACM web conference 2023, pages 1167–1176, 2023.arxiv.org/abs/2302.10637
- [32]Youssef Allouah, Rachid Guerraoui, and John Stephan. Towards trustworthy federated learning with untrusted participants. arXiv preprint arXiv:2505.01874, 2025.arxiv.org/abs/2505.01874
- [33]Alberto Blanco-Justicia, Josep Domingo-Ferrer, Sergio Martínez, David Sánchez, Adrian Flanagan, and Kuan Eeik Tan. Achieving security and privacy in federated learning systems: Survey, research challenges and future directions. Engineering Applications of Artificial Intelligence, 106:104468, 2021.
- [34]Lifan Zheng, Jiawei Chen, Qinghong Yin, Jingyuan Zhang, Xinyi Zeng, and Yu Tian. Rethinking the reliability of multi-agent system: A perspective from byzantine fault tolerance. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 40, pages 35012–35020, 2026.
- [35]LMSYS. Longchat. https://github.com/DachengLi1/LongChat, 2023.
- [36]Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Alex Vaughan, et al. The llama 3 herd of models. arXiv preprint arXiv:2407.21783, 2024.arxiv.org/abs/2407.21783
- [37]Shuai Bai, Keqin Chen, Xuejing Liu, Jialin Wang, Wenbin Ge, Sibo Song, Kai Dang, Peng Wang, Shijie Wang, Jun Tang, et al. Qwen2. 5-vl technical report. arXiv preprint arXiv:2502.13923, 2025.arxiv.org/abs/2502.13923
- [38]An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chenggen Huang, Chenxu Lv, et al. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025.arxiv.org/abs/2505.09388
- [39]Aida Amini, Saadia Gabriel, Shanchuan Lin, Rik Koncel-Kedziorski, Yejin Choi, and Hannah Hajishirzi. Mathqa: Towards interpretable math word problem solving with operation-based formalisms. In Proceedings of the 2019 conference of the North American chapter of the association for computational linguistics: Human language technologies, volume 1 (long and short papers), pages 2357–2367, 2019.arxiv.org/abs/1905.13319
- [40]Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the math dataset. arXiv preprint arXiv:2103.03874, 2021.
- [41]Jacob Austin, Augustus Odena, Maxwell Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie Cai, Michael Terry, Quoc Le, et al. Program synthesis with large language models. arXiv preprint arXiv:2108.07732, 2021.arxiv.org/abs/2108.07732
- [42]James Thorne, Andreas Vlachos, Christos Christodoulopoulos, and Arpit Mittal. Fever: a large-scale dataset for fact extraction and verification. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), pages 809–819, 2018.arxiv.org/abs/1803.05355
- [43]Huichi Zhou, Kin-Hei Lee, Zhonghao Zhan, Yue Chen, Zhenhao Li, Zhaoyang Wang, Hamed Haddadi, and Emine Yilmaz. Trustrag: Enhancing robustness and trustworthiness in retrieval-augmented generation. arXiv preprint arXiv:2501.00879, 2025.arxiv.org/abs/2501.00879
- [44]Qianshan Wei, Tengchao Yang, Yaochen Wang, Xinfeng Li, Lijun Li, Zhenfei Yin, Yi Zhan, Thorsten Holz, Zhiqiang Lin, and XiaoFeng Wang. A-memguard: A proactive defense framework for llm-based agent memory. arXiv preprint arXiv:2510.02373, 2025.arxiv.org/abs/2510.02373
- [45]Maciej Besta, Lorenzo Paleari, Marcin Copik, Robert Gerstenberger, Ales Kubicek, Piotr Nyczyk, Patrick Iff, Eric Schreiber, Tanja Srindran, Tomasz Lehmann, et al. Checko: Effective verification of llm solutions to open-ended tasks. arXiv preprint arXiv:2406.02524, 2024.arxiv.org/abs/2406.02524
AI tools statement
No AI-use declaration is available for this version in Valency.
The available record does not establish whether AI systems or models contributed to this work.


