{"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/arxiv-2609-02264","title":"Codebook Agent: Amortized Topology Design for LLM Multi-Agent Systems","arxiv_id":"2609.02264","date":"2026-09-02","proceeding":null,"authors":["Jinxi Yu","Yubei Li","Eric Hanchen Jiang","Zhi Zhang","Dong Liu","Wenxiao Zhao","Levina Li","Kai-Wei Chang","Ying Nian Wu"],"abstract":"Adapting the communication topology of an LLM multi-agent system to each query improves both accuracy and efficiency, yet current designers treat this as conditional graph generation: a variational, autoregressive, or diffusion decoder searches the $N \\times N$ adjacency space, and a graph-network proxy trained on utility and a structural cost such as edge count ranks the sampled candidates. We argue that this formulation is misaligned with the problem. Empirically, topologies that survive a reward filter collapse to about six distinct graphs even when the codebook capacity grows from 8 to 64; edge count is negatively correlated with measured token consumption (Pearson $r \\approx -0.4$), so sparsifying the graph makes inference more expensive; and a message-passing scorer over agent-profile nodes is adjacency-invariant whenever agents share a profile---the default configuration of published benchmarks---so it cannot rank candidates at all in that regime. These three facts motivate Codebook Agent: a vector-quantized autoencoder compresses successful topologies into a query-independent 16-entry codebook; a reward-weighted MLP maps the query embedding to a distribution over codes; and an MLP proxy that reads the flattened adjacency, regressed on measured utility and per-task normalized token cost, reranks the top decoded candidates in a single batched forward pass. With no iterative search and no message passing at test time, Codebook Agent is the most accurate method on all six benchmarks we compare (84.6 average against 83.0 for the strongest prior designer), emits a topology in 2.4 ms, and uses 21.9--33.2% fewer LLM tokens.","url_abs":"https://arxiv.org/abs/2609.02264","url_pdf":"https://arxiv.org/pdf/2609.02264","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2609.02264","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2609.02264"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/jinxiy1104/CodebookAgent","reach":{"status":"ok"}}],"summary":{"unverified":18},"by_repo_kind":{"found_in_text":{"samples":18,"ran":0,"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":18,"samples":[{"code_sha256_prefix":"a2b71c1db65fa88c","entry":"check_correctness","repo":"jinxiy1104/CodebookAgent","repo_kind":"found_in_text","path":"benchmarks/humaneval_dataset.py","file_url":"https://github.com/jinxiy1104/CodebookAgent/blob/HEAD/benchmarks/humaneval_dataset.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a2b71c1db65fa88c"}},{"code_sha256_prefix":"ded2dee441b71d0d","entry":"dataloader","repo":"jinxiy1104/CodebookAgent","repo_kind":"found_in_text","path":"experiments/run_gsm8k.py","file_url":"https://github.com/jinxiy1104/CodebookAgent/blob/HEAD/experiments/run_gsm8k.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ded2dee441b71d0d"}},{"code_sha256_prefix":"1311b1da2c08b63b","entry":"delete_extra_zero","repo":"jinxiy1104/CodebookAgent","repo_kind":"found_in_text","path":"benchmarks/gsm8k_dataset.py","file_url":"https://github.com/jinxiy1104/CodebookAgent/blob/HEAD/benchmarks/gsm8k_dataset.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1311b1da2c08b63b"}},{"code_sha256_prefix":"aa6ecaa91965abd8","entry":"get_timestep_embedding","repo":"jinxiy1104/CodebookAgent","repo_kind":"found_in_text","path":"codebook_agent/topology/diffusion_model.py","file_url":"https://github.com/jinxiy1104/CodebookAgent/blob/HEAD/codebook_agent/topology/diffusion_model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"aa6ecaa91965abd8"}},{"code_sha256_prefix":"54b831c1e15e7821","entry":"gsm_data_process","repo":"jinxiy1104/CodebookAgent","repo_kind":"found_in_text","path":"benchmarks/gsm8k_dataset.py","file_url":"https://github.com/jinxiy1104/CodebookAgent/blob/HEAD/benchmarks/gsm8k_dataset.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"54b831c1e15e7821"}},{"code_sha256_prefix":"096880688731661e","entry":"gsm_get_predict","repo":"jinxiy1104/CodebookAgent","repo_kind":"found_in_text","path":"benchmarks/gsm8k_dataset.py","file_url":"https://github.com/jinxiy1104/CodebookAgent/blob/HEAD/benchmarks/gsm8k_dataset.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"096880688731661e"}},{"code_sha256_prefix":"3f336f3980547916","entry":"humaneval_data_process","repo":"jinxiy1104/CodebookAgent","repo_kind":"found_in_text","path":"benchmarks/humaneval_dataset.py","file_url":"https://github.com/jinxiy1104/CodebookAgent/blob/HEAD/benchmarks/humaneval_dataset.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3f336f3980547916"}},{"code_sha256_prefix":"c74a49d80b21e6d8","entry":"humaneval_get_predict","repo":"jinxiy1104/CodebookAgent","repo_kind":"found_in_text","path":"benchmarks/humaneval_dataset.py","file_url":"https://github.com/jinxiy1104/CodebookAgent/blob/HEAD/benchmarks/humaneval_dataset.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c74a49d80b21e6d8"}},{"code_sha256_prefix":"f56ba650da6274d1","entry":"load_result","repo":"jinxiy1104/CodebookAgent","repo_kind":"found_in_text","path":"experiments/run_gsm8k.py","file_url":"https://github.com/jinxiy1104/CodebookAgent/blob/HEAD/experiments/run_gsm8k.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f56ba650da6274d1"}},{"code_sha256_prefix":"bcde03579f1c0bee","entry":"load_result","repo":"jinxiy1104/CodebookAgent","repo_kind":"found_in_text","path":"experiments/run_math.py","file_url":"https://github.com/jinxiy1104/CodebookAgent/blob/HEAD/experiments/run_math.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"bcde03579f1c0bee"}},{"code_sha256_prefix":"ea6dc23b572af8d8","entry":"load_result","repo":"jinxiy1104/CodebookAgent","repo_kind":"found_in_text","path":"experiments/run_mmlu.py","file_url":"https://github.com/jinxiy1104/CodebookAgent/blob/HEAD/experiments/run_mmlu.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ea6dc23b572af8d8"}},{"code_sha256_prefix":"105ff03c866c0012","entry":"math_data_process","repo":"jinxiy1104/CodebookAgent","repo_kind":"found_in_text","path":"benchmarks/math_dataset.py","file_url":"https://github.com/jinxiy1104/CodebookAgent/blob/HEAD/benchmarks/math_dataset.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"105ff03c866c0012"}},{"code_sha256_prefix":"b4c384d94837ebb0","entry":"math_get_predict","repo":"jinxiy1104/CodebookAgent","repo_kind":"found_in_text","path":"benchmarks/math_dataset.py","file_url":"https://github.com/jinxiy1104/CodebookAgent/blob/HEAD/benchmarks/math_dataset.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b4c384d94837ebb0"}},{"code_sha256_prefix":"de8750d7c8549e31","entry":"mmlu_check_correctness","repo":"jinxiy1104/CodebookAgent","repo_kind":"found_in_text","path":"benchmarks/mmlu_dataset.py","file_url":"https://github.com/jinxiy1104/CodebookAgent/blob/HEAD/benchmarks/mmlu_dataset.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"de8750d7c8549e31"}},{"code_sha256_prefix":"628f35aec1200854","entry":"mmlu_data_process","repo":"jinxiy1104/CodebookAgent","repo_kind":"found_in_text","path":"benchmarks/mmlu_dataset.py","file_url":"https://github.com/jinxiy1104/CodebookAgent/blob/HEAD/benchmarks/mmlu_dataset.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"628f35aec1200854"}},{"code_sha256_prefix":"c9f7f2c48d0fa4bb","entry":"mmlu_get_predict","repo":"jinxiy1104/CodebookAgent","repo_kind":"found_in_text","path":"benchmarks/mmlu_dataset.py","file_url":"https://github.com/jinxiy1104/CodebookAgent/blob/HEAD/benchmarks/mmlu_dataset.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c9f7f2c48d0fa4bb"}},{"code_sha256_prefix":"025a4076cdecc356","entry":"offdiag_index","repo":"jinxiy1104/CodebookAgent","repo_kind":"found_in_text","path":"codebook_agent/topology/vqvae_model.py","file_url":"https://github.com/jinxiy1104/CodebookAgent/blob/HEAD/codebook_agent/topology/vqvae_model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"025a4076cdecc356"}},{"code_sha256_prefix":"f9fb41d699fca91c","entry":"train_proxy_model_pyg","repo":"jinxiy1104/CodebookAgent","repo_kind":"found_in_text","path":"codebook_agent/topology/proxy_reward_model.py","file_url":"https://github.com/jinxiy1104/CodebookAgent/blob/HEAD/codebook_agent/topology/proxy_reward_model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f9fb41d699fca91c"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.AI","source":"arxiv_daily_20260903.json"},"syntology_extracted_results":{"kind":"leaderboard_placements","source":"Syntology's leaderboard-shaped extractor over the paper's own arXiv-HTML tables: a model pointed at a cell, the number was read from that cell and checked against the board's metric, dataset, split and scale, and an independent check accepted the entry; not reviewed by the paper's authors or the archive's editors","extractor_model":"global.anthropic.claude-sonnet-4-5-20250929-v1:0","verifier_model":null,"prompt_sha":"fa63d4bb9d755694","coverage":{"sentence":"Syntology has checked 6,264 of the 9,581 papers on this site that are newer than the archive; results from the others appear after they are checked.","papers_newer_than_archive":9581,"papers_checked":6264},"entries":[],"not_placed":{"boards":6,"rejected_by_independent_check":0,"refused_by_a_rule":6,"check_did_not_answer":0,"proposed_without_a_cell":0,"declined_by_site":0}}}