{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/more-agents-is-all-you-need","title":"More Agents Is All You Need","arxiv_id":"2402.05120","date":"2024-02-03","proceeding":null,"authors":["Junyou Li","Qin Zhang","Yangbin Yu","Qiang Fu","Deheng Ye"],"abstract":"We find that, simply via a sampling-and-voting method, the performance of large language models (LLMs) scales with the number of agents instantiated. Also, this method, termed as Agent Forest, is orthogonal to existing complicated methods to further enhance LLMs, while the degree of enhancement is correlated to the task difficulty. We conduct comprehensive experiments on a wide range of LLM benchmarks to verify the presence of our finding, and to study the properties that can facilitate its occurrence. Our code is publicly available at: https://github.com/MoreAgentsIsAllYouNeed/AgentForest","url_abs":"https://arxiv.org/abs/2402.05120v2","url_pdf":"https://arxiv.org/pdf/2402.05120v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"more-agents-is-all-you-need","repo_url":"https://github.com/moreagentsisallyouneed/agentforest","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"none","reach":{"status":"ok"}},{"paper_slug":"more-agents-is-all-you-need","repo_url":"https://github.com/cklwanfifa/kddcup2024-pst","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok"}}],"tasks":[{"task_slug":"all","task_name":"All"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2402.05120","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2402.05120"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/moreagentsisallyouneed/agentforest","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/cklwanfifa/kddcup2024-pst","reach":{"status":"ok"}}],"summary":{"ran":5,"ran_violates":1},"by_repo_kind":{"official":{"samples":6,"ran":6,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":6,"samples":[{"code_sha256_prefix":"47bbf64695dc7134","entry":"construct_message","repo":"moreagentsisallyouneed/agentforest","repo_kind":"official","path":"src/prompt_lib.py","file_url":"https://github.com/moreagentsisallyouneed/agentforest/blob/HEAD/src/prompt_lib.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"47bbf64695dc7134"}},{"code_sha256_prefix":"f9d2b0534d308fb1","entry":"extract_number","repo":"moreagentsisallyouneed/agentforest","repo_kind":"official","path":"src/evaluation.py","file_url":"https://github.com/moreagentsisallyouneed/agentforest/blob/HEAD/src/evaluation.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f9d2b0534d308fb1"}},{"code_sha256_prefix":"20063c675d638a77","entry":"is_equiv","repo":"moreagentsisallyouneed/agentforest","repo_kind":"official","path":"src/math_equivalence.py","file_url":"https://github.com/moreagentsisallyouneed/agentforest/blob/HEAD/src/math_equivalence.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"20063c675d638a77"}},{"code_sha256_prefix":"720425cce89bc9e6","entry":"loadMath","repo":"moreagentsisallyouneed/agentforest","repo_kind":"official","path":"src/dataloader.py","file_url":"https://github.com/moreagentsisallyouneed/agentforest/blob/HEAD/src/dataloader.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"720425cce89bc9e6"}},{"code_sha256_prefix":"1c0767416c967599","entry":"sample_chess","repo":"moreagentsisallyouneed/agentforest","repo_kind":"official","path":"src/dataloader.py","file_url":"https://github.com/moreagentsisallyouneed/agentforest/blob/HEAD/src/dataloader.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1c0767416c967599"}},{"code_sha256_prefix":"767cadd301cad5f3","entry":"windows_to_linux_path","repo":"moreagentsisallyouneed/agentforest","repo_kind":"official","path":"src/mmlu_task.py","file_url":"https://github.com/moreagentsisallyouneed/agentforest/blob/HEAD/src/mmlu_task.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"767cadd301cad5f3"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}