Conceptio › Archive › arXiv CS
arXiv CS open access

Reward-Guided Autoregressive Graph Generation for Efficient Multi-Agent Communication Topology Design

2026 · arxiv_cs
arXiv CS · Papers · 2026
Open Source ↗Direct PDF ↓
deep-learningmachine-learningneural-networks
Conceptio Open Archive

Analyze & explore related research in Conceptio

Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.

Reward-Guided Autoregressive Graph Generation for Efficient Multi-Agent Communication Topology Design Poomphob Suwannapichat1 Boonyarit Changaival2 Caesar Wu1 Pascal Bouvry1 1 University of Luxembourg, Luxembourg 2 King Mongkut’s University of Technology Thonburi, Thailand {poomphob.suwannapichat,pascal.bouvry}@uni.lu caesar.wu@ext.uni.lu boonyarit.chang@kmutt.ac.th

arXiv:2608.20099v1 [cs.MA] 20 Aug 2026

Abstract

the reasoning limitation, they have been shown to substantially extend the practical performance of LLMs on complex tasks. LLM-based Multi-Agent Systems (MAS) represent another such workaround, in which multiple LLMs collaborate to solve complex problems. By assigning each LLM a specialized role, such as planner, coder, or critic, and orchestrating their interactions, MAS consistently achieve stronger performance than single-LLM baselines. However, MAS also increases inference cost as a tradeoff for the improved performance. In static MAS, even simple tasks are processed through the same multi-step pipeline as complex ones, despite often being solvable with a single LLM inference. To make MAS architecture more dynamic, many existing works start from a predefined communication topology and either prune less important components or apply modifications to optimize it for each query (Zhang et al., 2025a; Wang et al., 2025; Zhang et al., 2025b). ARG-Designer (Li et al., 2026) adopts a different perspective, employing an autoregressive graph generator that constructs topologies from scratch. This design enables the topologies to be more flexible and is not constrained by predefined templates. However, ARG-Designer trains the graph generator by maximizing the likelihood of topologies seen in the training set; under this objective, the model has no explicit incentive to favour sparser, more efficient structures. We incorporate a reward-guided training scheme inspired by Reinforcement Learning from Human Feedback (RLHF) (Ouyang et al., 2022) which guides the graph generator toward higher-quality graphs through a learned reward model that accounts for both graph size and task correctness. 1 With this method, the graph generator is no

LLM-based Multi-Agent Systems (MAS) achieve strong performance on complex reasoning tasks by coordinating multiple agents, but at the cost of substantial token consumption. Recent work on automatic topology design, ARG-Designer, has reframed this problem as autoregressive graph generation. However, its training objective provides no explicit incentive for the model to generate sparse and efficient topologies. We address this limitation by introducing a Reward-Guided Autoregressive Graph Generation (RGA-Designer) inspired by Reinforcement Learning from Human Feedback (RLHF). We train a reward model that jointly captures task correctness and structural compactness, and then fine-tune the pretrained graph generator using the reward model as feedback. Our method preserves task accuracy at the level of ARG-Designer while reducing token consumption by an average of 20.5%.

1

Introduction

Large Language Models (LLMs) have recently addressed many problems that were considered challenging in the Natural Language Processing (NLP) domain. By framing other tasks in natural language, LLMs can be adapted to a wide array of applications, frequently achieving surprisingly strong performance. Nevertheless, LLMs still make mistakes, particularly in complex tasks such as reasoning (Song et al., 2026). The reasoning capabilities of LLMs remain a subject of active debate. Because these models are fundamentally optimized for next-token prediction, it is difficult to claim that they truly reason rather than verbosely produce sequences of tokens that are likely to follow a given context (Dziri et al., 2023). Several workarounds have been proposed to mitigate this issue, including chain-of-thought prompting (Wei et al., 2022) and self-verification (Weng et al., 2023). Although these techniques do not address the root cause of

1 Code and detailed hyperparameter settings of the experiments are available at https://github.com/ psuwannapich/RGA-Designer.

1

longer restricted to reproducing structures seen during training; instead, it is encouraged to discover sparser topologies while preserving task performance. Our main contributions are as follows:

AgentDropout (Wang et al., 2025) expands this idea by eliminating low-contribution agents (graph nodes) via adjacency matrix optimization. However, both methods start from a predefined template and learn which nodes or edges to remove. They cannot create unseen structures. Rather than pruning predefined structures, G-Designer (Zhang et al., 2025b) employs a variational graph autoencoder that encodes a template graph topology along with a task-specific virtual node then decodes a taskadaptive graph with sparsity regularization. Although G-Designer goes beyond pruning, it still optimizes within fixed template graphs. ARGDesigner (Li et al., 2026), the direct predecessor of our work, reframes MAS topology design as an autoregressive graph generation task. The collaboration graph is generated from scratch by iteratively producing nodes and edges until a termination signal is reached. At step i, the model samples the role of the next agent vi conditioned on the partial graph G<i before step i, the task query q, and the available role pool R:

• We apply reward-guided training schema to autoregressive MAS topology generation, addressing a limitation of likelihood-based objectives that have no incentive for structural compactness. • We design a graph-level reward model that jointly captures task correctness and structural compactness. • Across six benchmarks, our approach reduces token consumption by an average of 20.5% over ARG-Designer while preserving task accuracy.

2

Related Works

This section first reviews LLM-based multi-agent systems and the evolution of topology design from static structures to learned, task-adaptive configurations. It then introduces Reinforcement Learning from Human Feedback (RLHF), the training paradigm adapted to guide the graph generator. Finally, it discusses Graph Neural Networks (GNNs), which serve as the backbone of the reward model. 2.1

vi ∼ P (vi | G<i , q, R).

(1)

If the sampled role corresponds to the special END token, generation terminates. Otherwise, vi is added to the graph, and the model then determines its incoming edges by sampling the existence of an edge from each previously generated node vj (j < i):

LLM-based Multi-Agent Systems

LLM-based Multi-Agent Systems can be formalized as a directed acyclic graph (DAG), where nodes represent LLM agents with specific roles and edges represent information shared between them. The design of the collaboration graph and the selection of agent roles are crucial for the overall performance of a Multi-Agent System. Early work on MAS has proposed a range of static topologies, including chains, stars, and debate-style configurations (Madaan et al., 2023; Hong et al., 2024; Du et al., 2024; Chan et al., 2024; Zhuge et al., 2024). Other approaches draw inspiration from real-world workflows, such as role decomposition inspired by software development workflows (Qian et al., 2024). Subsequent works frame the MAS design problem as query-based topology adaptation. AgentPrune (Zhang et al., 2025a) uses a predefined template as the starting point then defines communication redundancy in MAS and performs pruning on graph edges, achieving performance comparable to dense baselines at a fraction of the inference cost.

ej,i ∼ P (ej,i | vi , G<i , q).

(2)

The graph generation model is trained using a supervised paradigm: candidate graph Gi is executed against its training query qi and only the graph and query pairs that can complete the task correctly will be included in the dataset D. The graph generation model was trained on the dataset D in order to maximize the conditional log-likelihood of the ground-truth graphs given the query: L(θ) = −

X

logPθ (G|q)

(3)

(G,q)∈D

To ensure the sparsity of graph generation, the ARG-Designer training pipeline is separated into two steps: cold start and efficiency fine-tuning. Cold start step lets the model explore diverse topologies by creating graph/query pairs candidates using various well-known structures such as complete graphs and star graphs. The efficiency finetuning step focuses on creating sparse but efficient 2

graphs by including pruned graphs and verified efficient configurations. 2.2

ing, the framework of Message Passing Neural Networks (MPNNs) was introduced (Gilmer et al., 2017). Each node is initialized with a feature vector, which can either be drawn at random or derived from node metadata. At each layer, every node sends a message to its direct neighbours; the receiving node then aggregates the incoming messages and uses them to update its own embedding. By stacking multiple MPNN layers, information can be propagated beyond direct neighbours to nodes that are several hops away. Building on this foundation, most modern graph embedding models are fundamentally constructed on the message-passing paradigm (Scarselli et al., 2009; Kipf and Welling, 2017; Hamilton et al., 2017).

Reinforcement Learning from Human Feedback

Reinforcement learning (RL) is a learning paradigm in which a model improves its policy by interacting with an environment and receiving rewards for the actions it takes. Historically, RL has been mostly applied in robotics and control, where an agent performs actions in a physical environment, observes the resulting reward signal, and adjusts its policy to maximize long-term return. Recently, RL has driven one of the most significant breakthroughs in language modeling: the development of ChatGPT. Beyond pre-training on a large text corpus for next-token prediction, ChatGPT incorporates human preferences to align its outputs with what users find helpful and appropriate. Human annotators are presented with pairs of candidate responses and asked to indicate which one is preferred. The resulting preference dataset is used to train a reward model, which learns to assign a score to a given response that is consistent with human judgment. The LLM is then fine-tuned via reinforcement learning, using the reward model as a proxy for human feedback to refine its output policy. This procedure is known as Reinforcement Learning from Human Feedback (RLHF) (Ouyang et al., 2022). 2.3

3

Problem Definition

We represent a multi-agent system (MAS) as a directed acyclic graph G = (V, E) that captures the interactions between agents in the system. Each node vi ∈ V corresponds to an LLM-based agent augmented with a predefined role prompt Ri ∈ R, which specifies its function and expertise. A directed edge (vi , vj ) ∈ E indicates that agent vi forwards its output mi as a textual message to agent vj . To invoke agent vi , the input prompt is assembled using template fT from three components: the role prompt Ri , the user query q, and the set of messages {mj | (vj , vi ) ∈ E} received from its direct predecessors, as formalized in Eq. 4.

Graph Neural Networks   mi = LLM fT (Ri , q, {mj |(vj , vi ) ∈ E}) (4)

Graphs are widely used to represent relational data in many applications, including social network analysis, knowledge graphs, and information exchange in LLM-based Multi-Agent Systems. However, due to the nature of graph data, mapping graphs into numerical representations suitable for downstream analysis remains a challenging problem. The process of producing such numerical representations is referred to as graph embedding. Early graph embedding methods adapted objectives from word embedding in the natural language processing (NLP) domain. An embedding model is trained to predict masked nodes in node sequences obtained by traversing the graph through random walks (Perozzi et al., 2014; Grover and Leskovec, 2016). However, these approaches cannot generalize to unseen nodes without re-running the embedding procedure on the new graph. To enable graph embedding models to generalize to unseen graph structures without retrain-

To get the final answer of MAS, each agent vi ∈ V is executed in topological order of graph G using Eq. 4 to produce its message mi , and then aggregating the outputs of the terminal agents into a final answer: â = Aggregate({mi | vi ∈ Vout }) ,

(5)

where Vout ⊆ V denotes the set of output agents. The task-completion indicator is then obtained by comparing â to the ground-truth answer a⋆ : ( 1, c(G, q) = 0,

if â = a⋆ , otherwise.

(6)

The goal of the MAS designer model πθ is to generate a graph structure G ∼ πθ (G | q) from a given task query q that successfully completes the 3

task with the smallest possible structure as shown in following constrained objective: h i min Eq,G∼πθ (G|q) λV |V| + λE |E| θ (7) s.t. c(G, q) = 1

are generated using the pretrained ARG-Designer model with varying sampling temperatures. Due to the autoregressive nature of ARG-Designer, mul(n) (n) (n) tiple distinct graphs {G1 , G2 , . . . , GM } can be sampled from a single query q (n) . To further reduce the data collection cost, we additionally include the training samples from both the cold-start and fine-tuning stages of ARG-Designer; since these graph/query pairs have already been executed during ARG-Designer training, incorporating them into our dataset incurs no additional cost. (n) Each training sample si for the reward model (n) (n) is represented as a triplet (Gi , q (n) , ri ). Every (n) (n) (n) graph Gi = (Vi , Ei ) is executed on the agentic system with query q (n) , and its output is compared against the ground truth, yielding a binary (n) (n) completion flag ci = c(Gi , q (n) ). The groundtruth reward for the sample is then computed as: ! (n) V − |V | max (n) (n) i ri = λc ci + λV max 0, Vmax − 1 ! (n) Emax − |Ei | + λE clip[0,1] Emax − Emin

where |V| and |E| are the number of agents and edges in G, and λV , λE ≥ 0 control the relative penalty on agent count and communication links.

4

Method

We propose Reward-Guided Autoregressive Graph Generator (RGA-Designer), which applies the idea of RLHF to the graph generation model, guiding it to produce graphs that can complete the task while keeping the graph structure as compact as possible. Because graph quality is programmatically verifiable, we replace human feedback with explicit rule-based rewards that favor smaller, successful graphs. Our setup falls within the broader paradigm of Reinforcement Learning with Verifiable Rewards (RLVR) (Shao et al., 2024), where an automated reward signal is provided in place of human annotation. An overview of RGA-Designer is illustrated in Figure 1. Our pipeline consists of three stages, preceded by a prerequisite pretraining stage inherited from ARG-Designer. (0) Pretrained Generator Model: following ARG-Designer, an autoregressive graph generator is trained on query/graph pairs. (1) Dataset Collection: for each task query, candidate graphs are sampled and labeled as successful or failed by executing them on the underlying MAS topology; the resulting samples are then organized into preference pairs. (2) Reward Model Training: a graph-level reward model is trained on the preference pairs, learning to assign higher scores to graphs that are both correct and compact. (3) Policy Optimization: the pretrained generator is fine-tuned with policy optimization, where the reward model guides the policy toward generating graphs with higher task success and lower structural complexity. 4.1

(8) where λc , λV , and λE are hyperparameters that weight task completeness, agent count, and edge count, respectively. Vmax denotes the maximum number of agents allowed for each dataset (inherited from ARG-Designer), while Emin = |V| − 1 and Emax = |V|(|V|−1) correspond to the minimum 2 and maximum possible edge counts for a connected (n) graph of size |V|. The reward ri is designed to lie in the range [0, 1], with the weights λc , λV , and λE summing to 1. The choice of weights reflects a hierarchy in our design objective: task completion is treated as the dominant criterion (λc = 0.6), while structural compactness serves as a secondary preference (λV = 0.3, λE = 0.1). As a result, a candidate that fails to complete the task is penalized more than a candidate that succeeds but uses an inefficient topology, ensuring that correctness is never traded for sparsity. To train the reward model within the RLHF framework, sample pairs must be constructed. Let S (n) denote the set of training pairs associated with query q (n) . The pairs in S (n) are formed from all possible combinations, subject to two filtering conditions. First, at least one sample in each pair must successfully complete the task, as comparing two graphs that both fail provides little useful signal

Dataset collections

We construct the dataset by executing LLMs over candidate graph structures and recording whether each structure successfully completes the task. However, we retain not only the samples that complete the task but also those that fail, since both are informative for training the reward model. Graphs 4

Figure 1: Overview of our reward-guided pipeline for MAS topology generation.

about graph quality. Second, the reward difference between the two samples must exceed a predefined margin δ (initially set to 0.05): S (n) = {(si , sj ) | ci = 1 ∧ ri − rj > δ}

obtained by global mean pooling over all nodes, and a scalar reward is produced by a two-layer MLP head: ! 1 X (2) rθ (G, q) = MLP hi (12) |V|

(9)

i∈V

where the indices i and j range over the candidate samples collected for query q (n) 4.2

Given the preference pairs S (n) , the reward model is trained with the Bradley-Terry pairwise ranking objective (Bradley and Terry, 1952):

Reward Model

The reward model rθ is a graph neural network that scores a candidate graph G = (V, E) conditioned on a task query q. To inject both task semantic and graph structure into the encoder, we construct each node feature vector xi as the concatenation of three components:   xi = zri ∥ zq ∥ ϕi

 (n) (n) L(n) ) r = − wc,r log σ rθ (Gc , q  −rθ (Gr(n) , q (n) ) (n)

where Gc and Gr denote the graphs of the chosen and rejected samples, respectively, and wc,r ∈ (0, 1] is a per-pair weight that down-scales pairs carrying less informative signal. In particular, pairs in which both samples successfully complete the task (pass/pass pairs) convey only graph-size information, yet account for roughly 80–90% of the training data. We therefore set wc,r = 1 for pass/fail pairs and wc,r = λp,p for pass/pass pairs, where λp,p is initially set to 0.1. An additional benefit of training a reward model is that its training data can be shared across datasets. Because each (query, graph) pair is encoded into a latent vector xi before being scored (Eq. 10), the reward model can seamlessly accommodate samples containing unseen agent roles. In contrast, ARG-Designer’s node generator (Eq. 1) explicitly conditions on the role pool R to score role candidates, meaning that any sample introducing a new role would require extending the node generator’s classification head and retraining the model.

(10)

where zri is the role embedding of agent vi , zq is the task query embedding. Both embeddings are retrieved from sentence-transformers/all-MiniLM-L6-v2 sentence encoder, yielding zri , zq ∈ R384 . ϕi ∈ R5 is a vector of structural features comprising the graph size, edge count, generation-order position, in-degree, and out-degree. The graph is encoded by two GraphSAGE layers (Hamilton et al., 2017) with residual connections and layer normalization. For each layer ℓ ∈ {1, 2}:   (ℓ) hi = ReLU LN SAGE(ℓ) (h(ℓ−1) , E)i (11) (ℓ) (ℓ−1) +Wres hi (0)

(n)

(13)

(ℓ)

where hi = xi , and Wres is a learnable projection for the residual. A graph-level embedding is then 5

4.3

Table 1: Summary of the six evaluation benchmarks used in our experiments. #Test denotes the number of test instances sampled from each dataset for evaluation.

Policy optimization

Having trained reward model rθ , we then fine-tune graph generator policy πθ to generate graphs that produce high reward r̂ while remaining close to the pre-trained ARG-Designer reference model πref . We adopt an on-policy variant of Group Relative Policy Optimization (GRPO) (Shao et al., 2024) for policy optimization. Given the group of graph rewards (n) (n) {r̂1 , . . . , r̂G } for query q (n) , the advan(n) tage Âi for each candidate graph is computed by normalizing its reward as shown in Eq. 14, where (n) (n) µr is the group mean, σr is the group standard deviation. The denominator is lower-bounded by σmin = 0.01. (n)

(n)

Âi

=

(14)

The graph generator policy πθ is trained to maximize the advantage signal while constraining the generated distribution to remain close to the reference model πref , as defined by the following objective: Lπ (Gi , q | θ) = −Âi · log πθ (Gi | q) πθ (Gi | q) +β · log πref (Gi | q)

(15)

where Âi is the group-relative advantage from Eq. 14, and β is a hyperparameter controlling the strength of the Kullback-Leibler (KL) regularization. Since we can draw a fresh group of G graphs from the current policy πθ at every update step, the standard GRPO importance ratio ρi equals 1 when the gradient is calculated. Consequently, ρi and the GRPO clipping term can be omitted.

5

Dataset

#Test

Metric

Mathematical reasoning

GSM8K AQuA MultiArith SVAMP

500 214 500 500

Accuracy Accuracy Accuracy Accuracy

General reasoning

MMLU

500

Accuracy

Code generation

HumanEval

121

Pass@1

runs. We benchmark our approach against five baselines: (1) Vanilla, which relies on a single LLM call; (2) G-Designer (Zhang et al., 2025b); (3) AgentPrune (Zhang et al., 2025a); (4) AgentDropout (Wang et al., 2025); and (5) ARG or ARGDesigner (Li et al., 2026), the direct predecessor of our method. Since MAS execution requires multiple LLM inferences and a long context window to support information exchange between agents, we adopt the open-source lightweight model Qwen3-4B (Yang et al., 2025) as the underlying LLM in this work. Qwen3-4B can be served on a single NVIDIA Tesla V100 GPU with 16 GB of VRAM handling long context lengths without running out of memory, making it well-suited for our multi-agent setting. We also disable Qwen3’s thinking mode to reduce the number of completion tokens generated per inference. As our reward model can be trained on graphs containing unseen roles (Section 4.2), we train a single global reward model on a combined preference dataset from all six benchmarks. This unified reward model is then used to supervise policy optimization across every benchmark. Furthermore, to ensure that the best topology is selected at inference time, we adopt a Best-of-N (BoN) generation scheme: the policy samples N (set N = 5 in our experiments) candidate graphs for each task query, and the candidate with the highest reward scored by the reward model is chosen as the final topology. Note that both the sampling and scoring steps are performed by the topology designer, not by an LLM. The overhead of BoN is negligible compared to LLM calls. To assess whether our results differ significantly in terms of both accuracy and token usage, we apply Welch’s t-test (Welch, 1947), which tests for a difference in means between two distributions.

(n)

r̂i − µr   (n) max σr , σmin

Category

Experiments

We evaluate our method on the same six benchmarks (Cobbe et al., 2021; Ling et al., 2017; Roy and Roth, 2015; Patel et al., 2021; Hendrycks et al., 2021; Chen et al., 2021) used by ARG-Designer (Li et al., 2026), summarized in Table 1. Each dataset was randomly divided into training, fine-tuning, and testing sets, consisting of 15, 25, and the remaining samples (capped at 500). To ensure the stability of our results, every experiment is repeated over 10 independent runs, and we report the mean and standard deviation across 6

Table 2: Task accuracy (%) across six benchmarks, reported as mean ± standard deviation over 10 runs. Benchmark

Vanilla

G-Designer AgentPrune AgentDropout

ARG

RGA (Our)

GSM8K 82.68±0.72 86.98±0.65 88.00±1.59 AQuA 76.87±1.21 83.35±1.86 82.90±1.08 MultiArith 97.56±0.23 97.96±0.08 98.02±0.35 SVAMP 90.20±0.27 94.28±0.21 94.80±0.84 HumanEval 73.22±2.14 80.08±1.29 82.23±2.90 MMLU 71.28±0.78 60.46±1.06 79.74±1.49

89.08±1.26 83.41±1.86 97.88±0.33 94.54±0.38 81.65±3.67 79.86±1.33

88.36±1.04 88.76±0.66 81.64±1.56 82.10±3.89 98.46±0.13 98.44±0.23 94.98±0.85 94.52±0.49 82.56±1.76 83.22±1.95 79.32±0.91 79.78±1.27

Average

87.74±0.64

87.55±0.49 87.80±0.60

81.97±0.56 83.85±0.52 87.61±0.68

Table 3: Average tokens usage per task across six benchmarks, reported as mean ± standard deviation over 10 runs (rounded to integer). Best results among MAS methods (excluding the Vanilla baseline) are in bold. Benchmark

Vanilla

G-Designer

AgentPrune

AgentDropout

GSM8K 224 ± 10 6104 ± 12 5694 ± 118 6447 ± 441 AQuA 509 ± 97 9134 ± 67 5710 ± 263 5535 ± 266 MultiArith 135 ± 0 5347 ± 10 4997 ± 147 5644 ± 454 SVAMP 142 ± 10 5242 ± 12 4921 ± 84 5748 ± 471 HumanEval 262 ± 1 2851 ± 23 3043 ± 133 2659 ± 122 MMLU 208 ± 16 10498 ± 47 11030 ± 1388 8353 ± 1353 Average

247 ± 18 6529 ± 13

5899 ± 258

Table 2 and Table 3 report task accuracy and token usage for each method, while Table 4 summarizes the p-values from Welch’s t-test comparing our RGA-Designer against other baselines. In terms of accuracy, RGA-Designer yields minor improvements on several benchmarks; however, Welch’s t-test indicates that most of these differences are statistically insignificant (whether improvements or degradations). According to Table 4, none of the accuracy degradation is significant. In contrast, RGA-Designer delivers a substantial reduction in token usage, as clearly shown in Table 3 and confirmed by the corresponding p-values in Table 4. Token reduction is statistically significant on every benchmark except MultiArith when compared with ARG-Designer. We further investigate why MultiArith is the only benchmark that does not yield a significant token reduction. Questions in MultiArith are generated from predefined templates, with new numerical values substituted. As a result, the questions exhibit limited linguistic variation and can be solved with simple topologies, leaving little structural redundancy for RGA-Designer to compress. In contrast, the other benchmarks contain more diverse naturallanguage questions whose solutions benefit from optimal collaboration structures, providing a larger margin for RGA-Designer to optimize the topology. Table 5 reports the ablation study on three benchmarks, one from each task category: GSM8K

5731 ± 251

ARG

RGA (Our)

4546 ± 275 3863 ± 195 3914 ± 162 2633 ± 191 2824 ± 11 2754 ± 507 3816 ± 290 3349 ± 446 2238 ± 119 1715 ± 88 5554 ± 798 3875 ± 538 3815 ± 124 3032 ± 205

(mathematical reasoning), HumanEval (code generation), and MMLU (general reasoning). The full method achieves the lowest token consumption. It also yields minor accuracy improvements on GSM8K and HumanEval, with the only exception being MMLU, where w/o BoN achieves the highest accuracy. However, this slightly higher accuracy on MMLU comes at a substantial cost in token consumption which uses 30.5% more tokens than the full method.

6

Conclusion and Discussion

In this work, we introduce RGA-Designer, a reward-guided training scheme that addresses a key limitation of ARG-Designer’s original supervised objective that has no explicit incentive for the model to generate compact topologies. Building on the autoregressive graph generation paradigm, we employ a learned reward model to provide feedback to the graph generator, optimizing it to produce graphs that are sparse but still functional. Across all benchmarks, RGA-Designer preserved task accuracy with no statistical differences, while achieving a substantial reduction in token consumption: on average, 20.5% fewer tokens than ARG-Designer and reaching statistical significance on five of six benchmarks. The single exception, MultiArith, is a templated dataset that contains limited linguistic variation, leaving little redundancy for our method to compress. Beyond the efficiency 7

Table 4: Welch t-test p-values of RGA-Designer against each benchmark. Bold marks p < 0.05. Arrows give the direction of the difference: for accuracy ↑ favours RGA-Designer, for token usage ↓ favours RGA-Designer. Comparison

GSM8K

AQuA

MultiArith SVAMP HumanEval MMLU

Accuracy G-Designer < 0.001↑ AgentPrune 0.188↑ AgentDropout 0.489↓ ARG-Designer 0.320↑

0.376↓ 0.544↓ 0.354↓ 0.735↑

< 0.001↑ 0.006↑ < 0.001↑ 0.814↓

0.180↑ 0.377↓ 0.920↓ 0.160↓

< 0.001↑ 0.384↑ 0.252↑ 0.437↑

< 0.001↑ 0.949↑ 0.892↓ 0.365↑

Token usage G-Designer < 0.001↓ < 0.001↓ AgentPrune < 0.001↓ < 0.001↓ AgentDropout < 0.001↓ < 0.001↓ ARG-Designer < 0.001↓ < 0.001↓

< 0.001↓ < 0.001↓ < 0.001↓ 0.673↓

< 0.001↓ < 0.001↓ < 0.001↓ 0.014↓

< 0.001↓ < 0.001↓ < 0.001↓ < 0.001↓

< 0.001↓ < 0.001↓ < 0.001↓ < 0.001↓

Table 5: Ablation study on three settings. Full is our complete method; w/o RM removes the global reward model; w/o BoN removes Best-of-N selection. w/o both removes both components. Results are reported as mean ± standard deviation over 10 runs. GSM8K Acc. ↑

Tok. ↓

HumanEval Acc. ↑

Tok. ↓

MMLU Acc. ↑

Tok. ↓

ARG-Designer 88.36 ± 1.04 4546 ± 275 82.56 ± 1.76 2238 ± 119 79.32 ± 0.91 5554 ± 798 Full w/o RM w/o BoN w/o both

88.76 ± 0.66 3863 ± 195 83.22 ± 1.95 1715 ± 88 79.78 ± 1.27 3875 ± 538 88.72 ± 0.99 4166 ± 522 82.40 ± 2.17 1839 ± 116 79.42 ± 1.18 5288 ± 889 88.28 ± 0.76 4281 ± 253 81.49 ± 2.45 1805 ± 119 79.84 ± 0.94 5056 ± 527 88.72 ± 1.14 4207 ± 451 82.64 ± 2.02 1908 ± 95 78.36 ± 0.96 5425 ± 459

results, our framework offers an additional benefit. Because the reward model scores graphs in embedding space, its training data can be reused across datasets without architectural changes. In contrast, ARG-Designer’s node generator conditions directly on the role pool R, so introducing new agent roles requires extending the role classification head and retraining the generator.

with explicit verifiable answers (e.g., code generation, multiple-choice classification). Extending the framework to open-ended tasks without verifiable ground truth is left to future work.

Acknowledgment We express our gratitude to Phatarapran Saraluck for providing valuable feedback for methodology design. The experiments presented in this paper were carried out using the HPC facilities of the University of Luxembourg (Varrette et al., 2022).

Limitations LLM backbone. Due to resource constraints, all experiments use Qwen3-4B as the underlying LLM, and the performance of RGA-Designer against baselines may shift when applied to different models. Our data construction pipeline depends on executing candidate graphs on a specific base LLM in order to label them as successful or failed. Switching to a different base model requires reconstructing the entire training dataset, and supporting heterogeneous MAS in which different agents are powered by different LLMs remains a challenge for our approach.

References Ralph Allan Bradley and Milton E. Terry. 1952. Rank analysis of incomplete block designs: I. the method of paired comparisons. Biometrika, 39(3/4):324– 345. Chi-Min Chan, Weize Chen, Yusheng Su, Jianxuan Yu, Wei Xue, Shanghang Zhang, Jie Fu, and Zhiyuan Liu. 2024. Chateval: Towards better LLM-based evaluators through multi-agent debate. In The Twelfth International Conference on Learning Representations.

Reliance on ground-truth labels. While RGADesigner can adapt topologies on a per-query basis, training the graph generator still requires ground truth. Therefore, our method is applicable to tasks

Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, Alex Ray, Raul Puri, Gretchen Krueger,

8

Michael Petrov, Heidy Khlaaf, Girish Sastry, Pamela Mishkin, Brooke Chan, Scott Gray, and 39 others. 2021. Evaluating large language models trained on code. Preprint, arXiv:2107.03374.

Thomas N. Kipf and Max Welling. 2017. Semisupervised classification with graph convolutional networks. In International Conference on Learning Representations (ICLR).

Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman. 2021. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168.

Shiyuan Li, Yixin Liu, Qingsong Wen, Chengqi Zhang, and Shirui Pan. 2026. Assemble your crew: Automatic multi-agent communication topology design via autoregressive graph generation. In Proceedings of the AAAI Conference on Artificial Intelligence.

Yilun Du, Shuang Li, Antonio Torralba, Joshua B. Tenenbaum, and Igor Mordatch. 2024. Improving factuality and reasoning in language models through multiagent debate. In Proceedings of the 41st International Conference on Machine Learning, ICML’24. JMLR.org.

Wang Ling, Dani Yogatama, Chris Dyer, and Phil Blunsom. 2017. Program induction by rationale generation: Learning to solve and explain algebraic word problems. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 158–167, Vancouver, Canada. Association for Computational Linguistics.

Nouha Dziri, Ximing Lu, Melanie Sclar, Xiang Lorraine Li, Liwei Jiang, Bill Yuchen Lin, Peter West, Chandra Bhagavatula, Ronan Le Bras, Jena D. Hwang, Soumya Sanyal, Sean Welleck, Xiang Ren, Allyson Ettinger, Zaid Harchaoui, and Yejin Choi. 2023. Faith and fate: limits of transformers on compositionality. In Proceedings of the 37th International Conference on Neural Information Processing Systems, NIPS ’23, Red Hook, NY, USA. Curran Associates Inc.

Aman Madaan, Niket Tandon, Prakhar Gupta, Skyler Hallinan, Luyu Gao, Sarah Wiegreffe, Uri Alon, Nouha Dziri, Shrimai Prabhumoye, Yiming Yang, Shashank Gupta, Bodhisattwa Prasad Majumder, Katherine Hermann, Sean Welleck, Amir Yazdanbakhsh, and Peter Clark. 2023. Self-refine: iterative refinement with self-feedback. In Proceedings of the 37th International Conference on Neural Information Processing Systems, NIPS ’23, Red Hook, NY, USA. Curran Associates Inc.

Justin Gilmer, Samuel S. Schoenholz, Patrick F. Riley, Oriol Vinyals, and George E. Dahl. 2017. Neural message passing for quantum chemistry. In Proceedings of the 34th International Conference on Machine Learning - Volume 70, ICML’17, page 1263–1272. JMLR.org.

Long Ouyang, Jeff Wu, Xu Jiang, Diogo Almeida, Carroll L. Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, John Schulman, Jacob Hilton, Fraser Kelton, Luke Miller, Maddie Simens, Amanda Askell, Peter Welinder, Paul Christiano, Jan Leike, and Ryan Lowe. 2022. Training language models to follow instructions with human feedback. Preprint, arXiv:2203.02155.

Aditya Grover and Jure Leskovec. 2016. node2vec: Scalable feature learning for networks. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’16, page 855–864, New York, NY, USA. Association for Computing Machinery.

Arkil Patel, Satwik Bhattamishra, and Navin Goyal. 2021. Are NLP models really able to solve simple math word problems? In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 2080–2094, Online. Association for Computational Linguistics.

William L. Hamilton, Rex Ying, and Jure Leskovec. 2017. Inductive representation learning on large graphs. In Proceedings of the 31st International Conference on Neural Information Processing Systems, NIPS’17, page 1025–1035, Red Hook, NY, USA. Curran Associates Inc.

Bryan Perozzi, Rami Al-Rfou, and Steven Skiena. 2014. Deepwalk: online learning of social representations. In Proceedings of the 20th ACM SIGKDD international conference on Knowledge discovery and data mining, KDD ’14, page 701–710. ACM.

Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. 2021. Measuring massive multitask language understanding. In International Conference on Learning Representations.

Chen Qian, Wei Liu, Hongzhang Liu, Nuo Chen, Yufan Dang, Jiahao Li, Cheng Yang, Weize Chen, Yusheng Su, Xin Cong, Juyuan Xu, Dahai Li, Zhiyuan Liu, and Maosong Sun. 2024. ChatDev: Communicative agents for software development. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 15174–15186, Bangkok, Thailand. Association for Computational Linguistics.

Sirui Hong, Mingchen Zhuge, Jonathan Chen, Xiawu Zheng, Yuheng Cheng, Jinlin Wang, Ceyao Zhang, Zili Wang, Steven Ka Shing Yau, Zijuan Lin, Liyang Zhou, Chenyu Ran, Lingfeng Xiao, Chenglin Wu, and Jürgen Schmidhuber. 2024. MetaGPT: Meta programming for a multi-agent collaborative framework. In The Twelfth International Conference on Learning Representations.

Subhro Roy and Dan Roth. 2015. Solving general arithmetic word problems. In Proceedings of the 2015

9

Guibin Zhang, Yanwei Yue, Zhixun Li, Sukwon Yun, Guancheng Wan, Kun Wang, Dawei Cheng, Jeffrey Xu Yu, and Tianlong Chen. 2025a. Cut the crap: An economical communication pipeline for LLM-based multi-agent systems. In The Thirteenth International Conference on Learning Representations.

Conference on Empirical Methods in Natural Language Processing, pages 1743–1752, Lisbon, Portugal. Association for Computational Linguistics. Franco Scarselli, Marco Gori, Ah Chung Tsoi, Markus Hagenbuchner, and Gabriele Monfardini. 2009. The graph neural network model. IEEE Transactions on Neural Networks, 20(1):61–80.

Guibin Zhang, Yanwei Yue, Xiangguo Sun, Guancheng Wan, Miao Yu, Junfeng Fang, Kun Wang, Tianlong Chen, and Dawei Cheng. 2025b. G-designer: Architecting multi-agent communication topologies via graph neural networks. In Forty-second International Conference on Machine Learning.

Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. 2024. Deepseekmath: Pushing the limits of mathematical reasoning in open language models. Preprint, arXiv:2402.03300.

Mingchen Zhuge, Wenyi Wang, Louis Kirsch, Francesco Faccio, Dmitrii Khizbullin, and Jürgen Schmidhuber. 2024. Gptswarm: language agents as optimizable graphs. In Proceedings of the 41st International Conference on Machine Learning, ICML’24. JMLR.org.

Peiyang Song, Pengrui Han, and Noah Goodman. 2026. Large language model reasoning failures. Preprint, arXiv:2602.06176. S. Varrette, H. Cartiaux, S. Peter, E. Kieffer, T. Valette, and A. Olloh. 2022. Management of an Academic HPC & Research Computing Facility: The ULHPC Experience 2.0. In Proc. of the 6th ACM High Performance Computing and Cluster Technologies Conf. (HPCCT 2022), Fuzhou, China. Association for Computing Machinery (ACM).

A

Hyperparameter Settings

Table 6 consolidates hyperparameters used in our experiments. All values were held fixed across the ten independent runs reported in Section 5. Vmax is inherited from ARG-Designer and varies by benchmark: 4 for GSM8K, AQuA, MultiArith, and SVAMP, 5 for HumanEval, and 6 for MMLU. The minimum number of agents is 2 for all benchmarks.

Zhexuan Wang, Yutong Wang, Xuebo Liu, Liang Ding, Miao Zhang, Jie Liu, and Min Zhang. 2025. AgentDropout: Dynamic agent elimination for tokenefficient and high-performance LLM-based multiagent collaboration. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 24013– 24035, Vienna, Austria. Association for Computational Linguistics.

Table 6: Hyperparameter settings. Values are shared across all six benchmarks unless noted otherwise.

Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Brian Ichter, Fei Xia, Ed H. Chi, Quoc V. Le, and Denny Zhou. 2022. Chain-of-thought prompting elicits reasoning in large language models. In Proceedings of the 36th International Conference on Neural Information Processing Systems, NIPS ’22, Red Hook, NY, USA. Curran Associates Inc. B. L. Welch. 1947. The generalization of ‘student’s’ problem when several different population variances are involved. Biometrika, 34(1-2):28–35. Yixuan Weng, Minjun Zhu, Fei Xia, Bin Li, Shizhu He, Shengping Liu, Bin Sun, Kang Liu, and Jun Zhao. 2023. Large language models are better reasoners with self-verification. In Findings of the Association for Computational Linguistics: EMNLP 2023, pages 2550–2575, Singapore. Association for Computational Linguistics. An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, Chujie Zheng, Dayiheng Liu, Fan Zhou, Fei Huang, Feng Hu, Hao Ge, Haoran Wei, Huan Lin, Jialong Tang, and 41 others. 2025. Qwen3 technical report. Preprint, arXiv:2505.09388.

10

Symbol

Description

Value

λc λV λE Vmax Emin Emax δ zri , zq ϕi wc,r λp,p G σmin β N

Task-completion weight Agent-count weight Edge-count weight Maximum agents allowed Minimum edges Maximum edges Minimum reward gap per pair Role / query embedding dim. Structural feature dim. Pair weight (pass/fail) Pair weight (pass/pass) GRPO group size Advantage denominator floor KL regularization strength Best-of-N candidates

0.6 0.3 0.1 4/5/6 |V| − 1 |V|(|V|−1) 2

0.05 384 5 1.0 0.1 4 0.01 0.2 5

Related documents

Record · ID 471240 · SHA-256 74ef655c729fe020
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Bring this data into your agent: Connect via MCP or API · 20 free credits to start · no card required
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive