{"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/grootvl-tree-topology-is-all-you-need-in","title":"GrootVL: Tree Topology is All You Need in State Space Model","arxiv_id":"2406.02395","date":"2024-06-04","proceeding":null,"authors":["Yicheng Xiao","Lin Song","Shaoli Huang","Jiangshan Wang","Siyu Song","Yixiao Ge","Xiu Li","Ying Shan"],"abstract":"The state space models, employing recursively propagated features, demonstrate strong representation capabilities comparable to Transformer models and superior efficiency. However, constrained by the inherent geometric constraints of sequences, it still falls short in modeling long-range dependencies. To address this issue, we propose the GrootVL network, which first dynamically generates a tree topology based on spatial relationships and input features. Then, feature propagation is performed based on this graph, thereby breaking the original sequence constraints to achieve stronger representation capabilities. Additionally, we introduce a linear complexity dynamic programming algorithm to enhance long-range interactions without increasing computational cost. GrootVL is a versatile multimodal framework that can be applied to both visual and textual tasks. Extensive experiments demonstrate that our method significantly outperforms existing structured state space models on image classification, object detection and segmentation. Besides, by fine-tuning large language models, our approach achieves consistent improvements in multiple textual tasks at minor training cost.","url_abs":"https://arxiv.org/abs/2406.02395v1","url_pdf":"https://arxiv.org/pdf/2406.02395v1.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":"grootvl-tree-topology-is-all-you-need-in","repo_url":"https://github.com/easonxiao-888/grootvl","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"jax","reach":{"status":"ok"}},{"paper_slug":"grootvl-tree-topology-is-all-you-need-in","repo_url":"https://github.com/easonxiao-888/mindomni","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"NOASSERTION"}}],"tasks":[{"task_slug":"all","task_name":"All"},{"task_slug":"image-classification","task_name":"Image Classification"},{"task_slug":"object-detection","task_name":"Object Detection"},{"task_slug":"state-space-models","task_name":"State Space Models"},{"task_slug":"image-classification","task_name":"image-classification"},{"task_slug":"object-detection-1","task_name":"object-detection"}],"methods":[{"method_slug":"absolute-position-encodings","method_name":"Absolute Position Encodings"},{"method_slug":"adam","method_name":"Adam"},{"method_slug":"attention","method_name":"Attention"},{"method_slug":"bpe","method_name":"BPE"},{"method_slug":"dense-connections","method_name":"Dense Connections"},{"method_slug":"dropout","method_name":"Dropout"},{"method_slug":"label-smoothing","method_name":"Label Smoothing"},{"method_slug":"layer-normalization","method_name":"Layer Normalization"},{"method_slug":"linear-layer","method_name":"Linear Layer"},{"method_slug":"multi-head-attention","method_name":"Multi-Head Attention"},{"method_slug":"position-wise-feed-forward-layer","method_name":"Position-Wise Feed-Forward Layer"},{"method_slug":"residual-connection","method_name":"Residual Connection"},{"method_slug":"softmax","method_name":"Softmax"},{"method_slug":"transformer","method_name":"Transformer"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2406.02395","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2406.02395"}},"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/easonxiao-888/grootvl","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/easonxiao-888/mindomni","reach":{"status":"ok","spdx":"NOASSERTION"}}],"summary":{"ran":8,"ran_draft_wrong":1,"unverified":5},"by_repo_kind":{"official":{"samples":14,"ran":9,"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":14,"samples":[{"code_sha256_prefix":"1adcf2d05b2faed1","entry":"get_imports","repo":"easonxiao-888/grootvl","repo_kind":"official","path":"GrootL/transformers/dynamic_module_utils.py","file_url":"https://github.com/easonxiao-888/grootvl/blob/HEAD/GrootL/transformers/dynamic_module_utils.py","link_basis":"harvester_set","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":"1adcf2d05b2faed1"}},{"code_sha256_prefix":"518f6a89865f25d2","entry":"get_relative_import_files","repo":"easonxiao-888/grootvl","repo_kind":"official","path":"GrootL/transformers/dynamic_module_utils.py","file_url":"https://github.com/easonxiao-888/grootvl/blob/HEAD/GrootL/transformers/dynamic_module_utils.py","link_basis":"harvester_set","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":"518f6a89865f25d2"}},{"code_sha256_prefix":"4af5faa701d0f2c9","entry":"get_relative_imports","repo":"easonxiao-888/grootvl","repo_kind":"official","path":"GrootL/transformers/dynamic_module_utils.py","file_url":"https://github.com/easonxiao-888/grootvl/blob/HEAD/GrootL/transformers/dynamic_module_utils.py","link_basis":"harvester_set","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":"4af5faa701d0f2c9"}},{"code_sha256_prefix":"dd8f7751ef859581","entry":"infer_metric_tags_from_eval_results","repo":"easonxiao-888/grootvl","repo_kind":"official","path":"GrootL/transformers/modelcard.py","file_url":"https://github.com/easonxiao-888/grootvl/blob/HEAD/GrootL/transformers/modelcard.py","link_basis":"harvester_set","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":"dd8f7751ef859581"}},{"code_sha256_prefix":"d07d04439cd1d44f","entry":"jload","repo":"easonxiao-888/grootvl","repo_kind":"official","path":"GrootL/supervised-fine-tune.py","file_url":"https://github.com/easonxiao-888/grootvl/blob/HEAD/GrootL/supervised-fine-tune.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d07d04439cd1d44f"}},{"code_sha256_prefix":"e6632a5722f0840d","entry":"parse_keras_history","repo":"easonxiao-888/grootvl","repo_kind":"official","path":"GrootL/transformers/modelcard.py","file_url":"https://github.com/easonxiao-888/grootvl/blob/HEAD/GrootL/transformers/modelcard.py","link_basis":"harvester_set","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":"e6632a5722f0840d"}},{"code_sha256_prefix":"817d5f759487007d","entry":"preprocess","repo":"easonxiao-888/grootvl","repo_kind":"official","path":"GrootL/supervised-fine-tune.py","file_url":"https://github.com/easonxiao-888/grootvl/blob/HEAD/GrootL/supervised-fine-tune.py","link_basis":"harvester_set","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":"817d5f759487007d"}},{"code_sha256_prefix":"a66d2b78670c85e1","entry":"quick_gelu","repo":"easonxiao-888/grootvl","repo_kind":"official","path":"GrootL/transformers/modeling_flax_utils.py","file_url":"https://github.com/easonxiao-888/grootvl/blob/HEAD/GrootL/transformers/modeling_flax_utils.py","link_basis":"harvester_set","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":"a66d2b78670c85e1"}},{"code_sha256_prefix":"30d50ff2ced6b7a3","entry":"rename_key_and_reshape_tensor","repo":"easonxiao-888/grootvl","repo_kind":"official","path":"GrootL/transformers/modeling_flax_pytorch_utils.py","file_url":"https://github.com/easonxiao-888/grootvl/blob/HEAD/GrootL/transformers/modeling_flax_pytorch_utils.py","link_basis":"harvester_set","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":"30d50ff2ced6b7a3"}},{"code_sha256_prefix":"b1260d802f5e3997","entry":"convert_pytorch_state_dict_to_flax","repo":"easonxiao-888/grootvl","repo_kind":"official","path":"GrootL/transformers/modeling_flax_pytorch_utils.py","file_url":"https://github.com/easonxiao-888/grootvl/blob/HEAD/GrootL/transformers/modeling_flax_pytorch_utils.py","link_basis":"harvester_set","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":"b1260d802f5e3997"}},{"code_sha256_prefix":"9d98806acb3144b7","entry":"dtype_byte_size","repo":"easonxiao-888/grootvl","repo_kind":"official","path":"GrootL/transformers/modeling_flax_utils.py","file_url":"https://github.com/easonxiao-888/grootvl/blob/HEAD/GrootL/transformers/modeling_flax_utils.py","link_basis":"harvester_set","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":"9d98806acb3144b7"}},{"code_sha256_prefix":"e3ce70ca9258800e","entry":"flax_shard_checkpoint","repo":"easonxiao-888/grootvl","repo_kind":"official","path":"GrootL/transformers/modeling_flax_utils.py","file_url":"https://github.com/easonxiao-888/grootvl/blob/HEAD/GrootL/transformers/modeling_flax_utils.py","link_basis":"harvester_set","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":"e3ce70ca9258800e"}},{"code_sha256_prefix":"ec7b1528a936234d","entry":"is_hf_dataset","repo":"easonxiao-888/grootvl","repo_kind":"official","path":"GrootL/transformers/modelcard.py","file_url":"https://github.com/easonxiao-888/grootvl/blob/HEAD/GrootL/transformers/modelcard.py","link_basis":"harvester_set","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":"ec7b1528a936234d"}},{"code_sha256_prefix":"160d2ba1cce9321e","entry":"make_supervised_data_module","repo":"easonxiao-888/grootvl","repo_kind":"official","path":"GrootL/supervised-fine-tune.py","file_url":"https://github.com/easonxiao-888/grootvl/blob/HEAD/GrootL/supervised-fine-tune.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":"160d2ba1cce9321e"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}