On a high level I understand that there are certain tasks, like for example cyberattacks or exploits, which swarms seem better at. However, I don't understand the underlying commonality between those tasks.
Is there a simple heuristic by which I could look at two tasks, examine one or a few qualities, and say "task A is best tackled with a swarm approach, whereas task B is best handled by a single agent"?
Individual agents are limited by having a single context, so if you ask them to do multiple things, they have to spread their attention and memory across all of them. I sometimes find it helpful to have agents specialize and communicate with each other, so (for example) one is focused on running an experiment and several others are working on optimizations and bug fixes in upstream libraries. This way the main experimenter doesn't get distracted with a million tokens of information about optimization.
I'm guessing this is why major math problems tend to be ... (read more)
Swarms work well for obviously parallel research tasks, like "check all these files for vulnerabilities" or "try out these 10 hypotheses."
Another import role of multiple workers is when their individual context is limited and delegation allows higher level instances to manage the big picture without drowning in details.
Really big swarms with information sharing abilities, like the inadvertent Hugging Face swarm, can probably make very efficient use of parallel search for solutions. But people outside the labs can't really afford to experiment with these sorts of swarms.
6Seth Herd
I think it's just a way to throw more compute and tokens at a problem in the same wall clock time.
I'm sure it's better for some task types than others but I don't think that's the main advantage.
There may also be an advantage in that multiple agents won't all get rabbit-holed the same way, but also disadvantages in not sharing full context with related approaches to the problem.
The effectiveness scales differently than just using more tokens.