TL;DR
AgentPSO is a novel framework that applies Particle Swarm Optimization (PSO) to evolve the reasoning "skills" of LLM agents. By treating natural-language instructions as evolving states and semantic updates as "velocities," agents learn to internalize better problem-solving strategies from their own successes and those of their peers, resulting in highly transferable skills that outperform traditional multi-agent debate.
What Problem Does This Paper Address?
While Large Language Models (LLMs) are powerful, they are notoriously sensitive to how they are prompted. Current multi-agent systems try to fix this through "inference-time collaboration"—basically, having agents debate each other until they reach a consensus.
However, this approach has three major flaws:
- Static Intelligence: The agents don't actually get "smarter" over time; they just aggregate outputs for a single task.
- Groupthink: Agents can be vulnerable to "incorrect peer influence," where one confident but wrong agent leads the whole group astray.
- High Overhead: Running multiple rounds of debate for every single query is slow and expensive.
The authors of AgentPSO ask: Can we make agents evolve their underlying reasoning skills through collective interaction, rather than just refining a single answer?
Methods
The researchers took inspiration from Particle Swarm Optimization (PSO), a classic computational method where a "swarm" of particles moves through a solution space to find an optimum. In AgentPSO, the "particles" are LLM agents.
The Semantic Translation of PSO
In standard PSO, particles have a position (coordinates) and a velocity (direction/speed). AgentPSO translates these into the world of natural language:
- Skill State ($s$): The agent's current "position" is its system prompt or reasoning instruction (e.g., "Solve this step-by-step").
- Semantic Velocity ($v$): Instead of a numerical vector, velocity is a textual instruction on how to change the current skill (e.g., "Add a step to check for edge cases in algebra").
The Update Rule
In each iteration, an agent updates its skill by combining four signals:
- Previous Velocity: Maintaining "momentum" from past improvements.
- Personal Best ($p$): The best-performing version of its own skill found so far.
- Global Best ($g$): The best skill found by any agent in the swarm.
- Self-Reflective Direction ($d$): A novel component where the agent analyzes peer reasoning traces to identify why others succeeded where it failed, extracting procedural lessons rather than just copying text.
The process follows a loop: Independent Solving $\rightarrow$ Peer Observation $\rightarrow$ Reflection $\rightarrow$ Velocity Update $\rightarrow$ Skill Update $\rightarrow$ Validation.
Datasets
The framework was evaluated across several challenging benchmarks:
- Mathematical Reasoning: DeepMath, MATH, AIME25, and Minerva.
- General Reasoning: BigBenchHard (BBH), covering logic, symbolic, and commonsense tasks.
- Medical QA (Analysis): MedXpertQA and MedBullets were used to test the limits of the system in knowledge-intensive domains.
Key Insights and Ideas
- Internalization over Aggregation: Unlike debate-based methods, AgentPSO agents solve problems independently at test time using their "evolved" skills. This makes them faster and less prone to being bullied by incorrect peers during a live discussion.
- The Power of "Velocity": The authors found that the velocity term acts as a stabilizer. Without it, agents make erratic, high-drift changes to their prompts. With it, the evolution is smoother and more likely to converge on robust strategies.
- Cross-Model Transferability: One of the most striking findings was that skills evolved using GPT-4 could be "plugged into" other models like Claude or Qwen and still provide a significant performance boost. This suggests the swarm is learning general reasoning principles, not just model-specific "prompt hacks."
- Reflection > Copying: By using the "Self-Reflective Direction," agents don't just mimic the global best prompt. They learn procedural patterns (like "verify your assumptions") that they integrate into their own unique reasoning styles.
Key Results
- Superior Performance: AgentPSO achieved an average accuracy of 72.08% on GPT-5.4-mini across five benchmarks, outperforming single-agent baselines (CoT), advanced methods (Tree-of-Thoughts), and multi-agent debate (MAD).
- Efficiency: At test time, AgentPSO requires only 4 LLM calls per case (one per agent), compared to 8 or 9 calls for debate-based methods like MAD or Mixture-of-Agents (MoA), while maintaining higher accuracy.
- Robustness: The evolved skills showed "persistent evolution," meaning they improved steadily over iterations rather than hitting a quick local optimum.
Limitations and Future Work
- Training Cost: While inference is efficient, the "evolution" phase requires a significant number of LLM calls to generate reflections and update skills over multiple iterations.
- Knowledge vs. Reasoning: In the medical benchmarks, AgentPSO improved "coverage" (at least one agent getting it right) but struggled with majority-vote accuracy. This is because reasoning skills can't compensate for a lack of specific domain knowledge (e.g., if the model doesn't know a specific drug interaction).
- Future Directions: The authors suggest combining AgentPSO with stronger verification or retrieval mechanisms (RAG) to tackle these knowledge-intensive domains. There is also potential to evolve not just prompts, but entire agentic workflows and tool-use policies.
Summary updated