PolySwarm: A Multi-Agent Large Language Model Framework for Prediction Market Trading and Latency Arbitrage
Organizations: Department of Computer Science, State University of New York, Binghamton, Binghamton, NY, USA. · Department of Software Engineering, Arizona State University, Tempe, AZ, USA.
Abstract
This paper presents PolySwarm, a novel multi-agent large language model (LLM) framework designed for real-time prediction market trading and latency arbitrage on decentralized platforms such as Polymarket. PolySwarm deploys a swarm of 50 diverse LLM personas that concurrently evaluate binary outcome markets, aggregating individual probability estimates through confidence-weighted Bayesian combination of swarm consensus with market-implied probabilities, and applying quarter-Kelly position sizing for risk-controlled execution. The system incorporates an information-theoretic market analysis engine using Kullback-Leibler (KL) divergence and Jensen-Shannon (JS) divergence to detect cross-market inefficiencies and negation pair mispricings. A latency arbitrage module exploits stale Polymarket prices by deriving CEX-implied probabilities from a log-normal pricing model and executing trades within the human reaction-time window. We provide a full architectural description, implementation details, and evaluation methodology using Brier scores, calibration analysis, and log-loss metrics benchmarked against human superforecaster performance. We further discuss open challenges including hallucination in agent pools, computational cost at scale, regulatory exposure, and feedback-loop risk, and outline five priority directions for future research. Experimental results demonstrate that swarm aggregation consistently outperforms single-model baselines in probability calibration on Polymarket prediction tasks.
Figures & tables
| Model | Organization | Parameters | Open Source | Domain FT | Context | Fin. Benchmark |
|---|---|---|---|---|---|---|
| GPT-3 | OpenAI | 175B | No | No | 4K | Moderate |
| GPT-4 | OpenAI | 1T | No | No | 128K | High |
| LLaMA 2 | Meta AI | 7–70B | Yes | No | 4K | Moderate |
| LLaMA 3 | Meta AI | 8–70B | Yes | No | 8K | High |
| BloombergGPT | Bloomberg | 50B | No | Yes | 2K | Very High |
| FinGPT | Open | 7–13B | Yes | Yes | 4K | High |
| Reference | Year | Model | Task | Method | Key Result |
|---|---|---|---|---|---|
| Lopez-Lira & Tang [ 19 ] | 2023 | ChatGPT | Stock ret. prediction | Zero-shot headline sentiment | Significant alpha over lexicon baselines |
| Wu et al. [ 22 ] | 2023 | BloombergGPT | Multiple fin. NLP tasks | Domain-specific pretraining | SOTA on financial benchmarks |
| Yang et al. [ 23 ] | 2023 | FinGPT | Sentiment, Q&A | RLHF fine-tuning on streaming data | Competitive with proprietary models |
| Araci [ 30 ] | 2019 | FinBERT | Financial sentiment | Domain-adapted BERT | Outperforms general BERT on PhraseBank |
| Liang et al. [ 27 ] | 2023 | GPT-4 | Reasoning accuracy | Multi-agent debate | Reduced hallucination vs. single model |
| Wu et al. [ 13 ] | 2023 | GPT-4 | Multi-step reasoning | Multi-agent conversation (AutoGen) | Flexible agent orchestration |
| Framework | Agent Count | Coordination | Aggregation | Financial Focus | Real-Time | Open Source |
|---|---|---|---|---|---|---|
| AutoGen [ 13 ] | 2–10 | Conversational | Consensus dialogue | No | No | Yes |
| CAMEL [ 14 ] | 2–5 | Role-play | Emergent agreement | No | No | Yes |
| AgentVerse [ 44 ] | Variable | Dynamic grouping | Voting | No | No | Yes |
| Multi-Agent Debate [ 27 ] | 2–6 | Debate rounds | Final round output | No | No | Yes |
| Generative Agents [ 26 ] | 25 | Social sim. | Emergent behaviour | No | No | Yes |
| PolySwarm (This work) | 50 | Independent parallel | Bayesian weighted | Yes | Yes | Yes |
Algorithmic Trading
Algorithmic trading uses computational models to generate signals, allocate portfolios, and execute orders across financial markets.
See all 151 papers