Reward-Guided Autoregressive Graph Generation for Efficient Multi-Agent Communication Topology Design
Organizations: University of Luxembourg, Luxembourg · King Mongkut’s University of Technology Thonburi, Thailand
Abstract
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%.
Figures & tables
| Category | Dataset | #Test | Metric |
|---|---|---|---|
| Mathematical | GSM8K | 500 | Accuracy |
| reasoning | AQuA | 214 | Accuracy |
| MultiArith | 500 | Accuracy | |
| SVAMP | 500 | Accuracy | |
| General reasoning | MMLU | 500 | Accuracy |
| Code generation | HumanEval | 121 | Pass@1 |
| Benchmark | Vanilla | G-Designer | AgentPrune | AgentDropout | ARG | RGA (Our) |
|---|---|---|---|---|---|---|
| GSM8K | 82.68 0.72 | 86.98 0.65 | 88.00 1.59 | 89.08 1.26 | 88.36 1.04 | 88.76 0.66 |
| AQuA | 76.87 1.21 | 83.35 1.86 | 82.90 1.08 | 83.41 1.86 | 81.64 1.56 | 82.10 3.89 |
| MultiArith | 97.56 0.23 | 97.96 0.08 | 98.02 0.35 | 97.88 0.33 | 98.46 0.13 | 98.44 0.23 |
| SVAMP | 90.20 0.27 | 94.28 0.21 | 94.80 0.84 | 94.54 0.38 | 94.98 0.85 | 94.52 0.49 |
| HumanEval | 73.22 2.14 | 80.08 1.29 | 82.23 2.90 | 81.65 3.67 | 82.56 1.76 | 83.22 1.95 |
| MMLU | 71.28 0.78 | 60.46 1.06 | 79.74 1.49 | 79.86 1.33 | 79.32 0.91 | 79.78 1.27 |
| Benchmark | Vanilla | G-Designer | AgentPrune | AgentDropout | ARG | RGA (Our) |
|---|---|---|---|---|---|---|
| GSM8K | 224 10 | 6104 12 | 5694 118 | 6447 441 | 4546 275 | 3863 195 |
| AQuA | 509 97 | 9134 67 | 5710 263 | 5535 266 | 3914 162 | 2633 191 |
| MultiArith | 135 0 | 5347 10 | 4997 147 | 5644 454 | 2824 11 | 2754 507 |
| SVAMP | 142 10 | 5242 12 | 4921 84 | 5748 471 | 3816 290 | 3349 446 |
| HumanEval | 262 1 | 2851 23 | 3043 133 | 2659 122 | 2238 119 | 1715 88 |
| MMLU | 208 16 | 10498 47 | 11030 1388 | 8353 1353 | 5554 798 | 3875 538 |
| Comparison | GSM8K | AQuA | MultiArith | SVAMP | HumanEval | MMLU |
|---|---|---|---|---|---|---|
| Accuracy | ||||||
| G-Designer | < 0.001 | 0.376 | < 0.001 | 0.180 | < 0.001 | < 0.001 |
| AgentPrune | 0.188 | 0.544 | 0.006 | 0.377 | 0.384 | 0.949 |
| AgentDropout | 0.489 | 0.354 | < 0.001 | 0.920 | 0.252 | 0.892 |
| ARG-Designer | 0.320 | 0.735 | 0.814 | 0.160 | 0.437 | 0.365 |
| Token usage | ||||||
| GSM8K | HumanEval | MMLU | ||||
| Acc. | Tok. | Acc. | Tok. | Acc. | Tok. | |
| ARG-Designer | 88.36 1.04 | 4546 275 | 82.56 1.76 | 2238 119 | 79.32 0.91 | 5554 798 |
| Full | 88.76 0.66 | 3863 195 | 83.22 1.95 | 1715 88 | 79.78 1.27 | 3875 538 |
| w/o RM | 88.72 0.99 | 4166 522 | 82.40 2.17 | 1839 116 | 79.42 1.18 | 5288 889 |
| w/o BoN | 88.28 0.76 | 4281 253 | 81.49 2.45 | 1805 119 | 79.84 0.94 | 5056 527 |
| w/o both | 88.72 1.14 | 4207 451 | 82.64 2.02 | 1908 95 | 78.36 0.96 | 5425 459 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Symbol | Description | Value |
|---|---|---|
| Task-completion weight | 0.6 | |
| Agent-count weight | 0.3 | |
| Edge-count weight | 0.1 | |
| Maximum agents allowed | 4 / 5 / 6 | |
| Minimum edges | ||
| Maximum edges |