{"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-02780","title":"ShallowStream: Index Shallow then Answer Deep for Streaming Video Understanding","arxiv_id":"2609.02780","date":"2026-09-02","proceeding":null,"authors":["Jitai Hao","Ke Yang","Qiang Huang","Jun Yu"],"abstract":"Streaming video understanding is a critical capability for real-world applications, including embodied intelligence, autonomous driving, industrial monitoring, surveillance and early warning, and wearable assistants. However, processing continuous video streams with multimodal large language models (MLLMs) is computationally expensive. Existing efforts have explored reducing streaming overhead through visual token pruning, token merging, quantization, on-demand frame retrieval, and context offloading. However, most existing methods overlook the dimension of model depth. Repeatedly executing full-depth MLLM prefill over incoming frames is prohibitively expensive, incurring substantial computational overhead and causing the KV cache to grow at a rate directly proportional to the prefill depth. To address these challenges, we propose ShallowStream, a novel framework that leverages the shallow layers of an MLLM to simultaneously perform frame encoding and retrieval index building. During stream processing, ShallowStream maintains an always-on lightweight index using the KV cache of shallow layers. During query-time answering, we leverage the attention scores generated by the shallow layers to score context frames and employ a diversity-aware selection strategy to retrieve precise and comprehensive evidence. ShallowStream achieves performance on par with the strongest existing streaming methods, while reducing per-frame prefill latency and 10-second end-to-end latency by up to 52.1x and 11.9x, respectively. Our code is available at https://github.com/CURRENTF/ShallowStream.","url_abs":"https://arxiv.org/abs/2609.02780","url_pdf":"https://arxiv.org/pdf/2609.02780","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":{"syntology_url":"https://syntology.ai/paper/2609.02780","atlas_url":"https://app.syntology.ai/?focus=2609.02780","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2609.02780"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/CURRENTF/ShallowStream","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":10},"by_repo_kind":{"found_in_text":{"samples":10,"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":0,"samples":[{"code_sha256_prefix":"1707680e670a3467","entry":"evidence_retrieval_backend","repo":"CURRENTF/ShallowStream","repo_kind":"found_in_text","path":"src/shallowstream/evidence_retrieval.py","file_url":"https://github.com/CURRENTF/ShallowStream/blob/HEAD/src/shallowstream/evidence_retrieval.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1707680e670a3467"}},{"code_sha256_prefix":"fb334b5b18dbdbf5","entry":"expand_temporal_neighbors","repo":"CURRENTF/ShallowStream","repo_kind":"found_in_text","path":"src/shallowstream/common.py","file_url":"https://github.com/CURRENTF/ShallowStream/blob/HEAD/src/shallowstream/common.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fb334b5b18dbdbf5"}},{"code_sha256_prefix":"2bb3ac0a55e32d84","entry":"get_active_attn_implementation","repo":"CURRENTF/ShallowStream","repo_kind":"found_in_text","path":"src/shallowstream/common.py","file_url":"https://github.com/CURRENTF/ShallowStream/blob/HEAD/src/shallowstream/common.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2bb3ac0a55e32d84"}},{"code_sha256_prefix":"95c5b5fcdd2339cf","entry":"query_source_label","repo":"CURRENTF/ShallowStream","repo_kind":"found_in_text","path":"src/shallowstream/task_gate.py","file_url":"https://github.com/CURRENTF/ShallowStream/blob/HEAD/src/shallowstream/task_gate.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"95c5b5fcdd2339cf"}},{"code_sha256_prefix":"b12bd86017bd02b9","entry":"resolve_evidence_query","repo":"CURRENTF/ShallowStream","repo_kind":"found_in_text","path":"src/shallowstream/evidence_retrieval.py","file_url":"https://github.com/CURRENTF/ShallowStream/blob/HEAD/src/shallowstream/evidence_retrieval.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b12bd86017bd02b9"}},{"code_sha256_prefix":"b5c30a0496536e69","entry":"resolve_task_gate_input","repo":"CURRENTF/ShallowStream","repo_kind":"found_in_text","path":"src/shallowstream/task_gate.py","file_url":"https://github.com/CURRENTF/ShallowStream/blob/HEAD/src/shallowstream/task_gate.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b5c30a0496536e69"}},{"code_sha256_prefix":"4d1f81e427cd525e","entry":"score_history_attention_layers","repo":"CURRENTF/ShallowStream","repo_kind":"found_in_text","path":"src/shallowstream/history_decay_gate.py","file_url":"https://github.com/CURRENTF/ShallowStream/blob/HEAD/src/shallowstream/history_decay_gate.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4d1f81e427cd525e"}},{"code_sha256_prefix":"21748ee34ea16431","entry":"select_temporal_retrieval_ids","repo":"CURRENTF/ShallowStream","repo_kind":"found_in_text","path":"src/shallowstream/common.py","file_url":"https://github.com/CURRENTF/ShallowStream/blob/HEAD/src/shallowstream/common.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"21748ee34ea16431"}},{"code_sha256_prefix":"c031d5cfb1c94c17","entry":"task_gate_input_metadata","repo":"CURRENTF/ShallowStream","repo_kind":"found_in_text","path":"src/shallowstream/task_gate.py","file_url":"https://github.com/CURRENTF/ShallowStream/blob/HEAD/src/shallowstream/task_gate.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c031d5cfb1c94c17"}},{"code_sha256_prefix":"1ccf509c3b95fc2e","entry":"validate_evidence_retrieval_config","repo":"CURRENTF/ShallowStream","repo_kind":"found_in_text","path":"src/shallowstream/evidence_retrieval.py","file_url":"https://github.com/CURRENTF/ShallowStream/blob/HEAD/src/shallowstream/evidence_retrieval.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1ccf509c3b95fc2e"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CV","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,885 of the 9,623 papers on this site that are newer than the archive; results from the others appear after they are checked.","papers_newer_than_archive":9623,"papers_checked":6885},"entries":[],"not_placed":{"boards":0,"rejected_by_independent_check":0,"refused_by_a_rule":0,"check_did_not_answer":0,"proposed_without_a_cell":0,"declined_by_site":0}}}