potentialpaper

Long-Context Modeling with Dynamic Hierarchical Sparse Attention for On-Device LLMs

Import the versions from OpenReview: the same title at other venues

@openreview[bot] · 2026-11-22 19:42 UTC · 7072745b4273

.gitattributes added

+++ b/.gitattributes
@@ -0,0 +1,10 @@
+# PDFs and pictures are kept with Git LFS (https://git-lfs.com). With it installed (`git lfs install`),
+# a clone has the files, and `git add` of one stores a pointer. This file is the same on every page.
+/.potentialpaper/*.pdf filter=lfs diff=lfs merge=lfs -text
+/versions/*.pdf filter=lfs diff=lfs merge=lfs -text
+/thumbnail.png filter=lfs diff=lfs merge=lfs -text
+/thumbnail.jpg filter=lfs diff=lfs merge=lfs -text
+/thumbnail.jpeg filter=lfs diff=lfs merge=lfs -text
+/thumbnail.gif filter=lfs diff=lfs merge=lfs -text
+/thumbnail.webp filter=lfs diff=lfs merge=lfs -text
+/thumbnail.avif filter=lfs diff=lfs merge=lfs -text

.potentialpaper/metadata.json added

+++ b/.potentialpaper/metadata.json
@@ -0,0 +1,24 @@
+{
+ "layout": 5,
+ "identifiers": [
+ {
+ "scheme": "openreview",
+ "value": "ZQ9uqllSts"
+ }
+ ],
+ "title": "Long-Context Modeling with Dynamic Hierarchical Sparse Attention for On-Device LLMs",
+ "authors": [
+ "Siheng Xiong",
+ "Joe Zou",
+ "Faramarz Fekri",
+ "Yae Jee Cho"
+ ],
+ "abstract": "The quadratic cost of attention hinders the scalability of long-context LLMs, particularly in resource-constrained settings. While attention is known to be often sparse, existing static sparse methods such as sliding windows or global tokens cannot adapt to task or input dependent variations in attention. While there are recently proposed dynamic approaches for sparse attention, they still depend on predefined templates or heuristic mechanisms that reduces generality and may prune tokens that remain contextually important. As such, we introduce Dynamic Hierarchical Sparse Attention (DHSA), a data-driven framework that dynamically predicts attention sparsity online without retraining of the base LLM. \nOur proposed DHSA adaptively segments sequences into variable-length chunks, then computes chunk representations by aggregating the token embeddings within each chunk. To avoid the bias introduced by varying chunk lengths, we apply a length-normalized aggregation that scales the averaged embeddings by the square root of the chunk size. Finally, DHSA upsamples the chunk-level similarity scores to the token level to produce importance scores that determine which token-level interactions are preserved. Our experiments with Needle-in-a-Haystack and LongBench show that DHSA preserves near-dense accuracy even in highly sparse regimes, yielding 12–20% relative accuracy gains over Block Sparse Attention at comparable prefill cost. Using a FlashAttention-2 (FA2)–based kernel, DHSA achieves up to a $10\\times$ prefill speedup over dense FA2 at 128K context length. On Llama-3.1-8B (4-bit), DHSA scales to 100K context with strong accuracy and competitive latency on a single 24 GB GPU, where dense kernels fail between 16K and 64K. The implementation supports both GPU and CPU backends and is compatible with multiple open-weight model families. These results highlight DHSA as an efficient and adaptable solution for long-context inference for on-device LLMs.",
+ "year": 2026,
+ "venue": "ICLR 2026 submission",
+ "source": "openreview",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}

community/10-tl-dr.md added

+++ b/community/10-tl-dr.md

community/20-summary.md added

+++ b/community/20-summary.md

community/30-why-it-matters.md added

+++ b/community/30-why-it-matters.md

community/40-critique.md added

+++ b/community/40-critique.md

community/50-errata.md added

+++ b/community/50-errata.md

community/60-reproductions.md added

+++ b/community/60-reproductions.md

community/70-follow-ups.md added

+++ b/community/70-follow-ups.md

owners/10-tl-dr.md added

+++ b/owners/10-tl-dr.md

owners/20-overview.md added

+++ b/owners/20-overview.md

owners/30-results.md added

+++ b/owners/30-results.md

owners/40-demos.md added

+++ b/owners/40-demos.md

owners/50-code-and-data.md added

+++ b/owners/50-code-and-data.md

owners/60-talks.md added

+++ b/owners/60-talks.md

prek.toml added

+++ b/prek.toml
@@ -0,0 +1,36 @@
+# Checks run before each commit, with prek (https://prek.j178.dev): `prek install` once in this clone.
+# The site checks every push again; these catch mistakes before you commit. The same on every page.
+
+[[repos]]
+repo = "builtin"
+hooks = [
+ { id = "check-json" },
+ { id = "pretty-format-json", args = ["--autofix", "--no-sort-keys", "--no-ensure-ascii"], exclude = '^demos/' },
+ { id = "end-of-file-fixer", exclude = '^demos/' },
+ { id = "trailing-whitespace", args = ["--markdown-linebreak-ext=md"], exclude = '^demos/' },
+ { id = "check-case-conflict" },
+ { id = "check-illegal-windows-names" },
+ { id = "check-added-large-files", args = ["--maxkb=256"], exclude = '^demos/' },
+]
+
+# Each JSON file against its schema (https://papers.potentialhedge.com/schemas/).
+[[repos]]
+repo = "https://github.com/python-jsonschema/check-jsonschema"
+rev = "0.39.0"
+hooks = [
+ { id = "check-jsonschema", name = "author section plugins files", files = '^owners/plugins\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/authorPlugins.json"] },
+ { id = "check-jsonschema", name = "venue files", files = '^venue\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/venue.json"] },
+ { id = "check-jsonschema", name = "topic files", files = '^topic\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/topic.json"] },
+ { id = "check-jsonschema", name = "organisation files", files = '^org\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/org.json"] },
+ { id = "check-jsonschema", name = "link files", files = '^links/[^/]+\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/link.json"] },
+ { id = "check-jsonschema", name = "version files", files = '^versions/[^/]+\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/version.json"] },
+ { id = "check-jsonschema", name = "picture files", files = '^thumbnail\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/thumbnail.json"] },
+]
+
+# Sections formatted the way the web editor formats them.
+[[repos]]
+repo = "https://github.com/rbubley/mirrors-prettier"
+rev = "v3.9.9"
+hooks = [
+ { id = "prettier", files = '^(owners|community)/.*\.md$' },
+]

versions/v_f8bv5rz4.json added

+++ b/versions/v_f8bv5rz4.json
@@ -0,0 +1,18 @@
+{
+ "date": "2025-09-20",
+ "kind": "submitted",
+ "label": "ICLR 2026",
+ "submissions": [
+ {
+ "venue": "ICLR 2026",
+ "status": "desk_rejected",
+ "url": "https://openreview.net/forum?id=ZQ9uqllSts"
+ }
+ ],
+ "title": "Long-Context Modeling with Dynamic Hierarchical Sparse Attention for On-Device LLMs",
+ "url": "https://openreview.net/forum?id=ZQ9uqllSts",
+ "evidence": [
+ "https://openreview.net/forum?id=ZQ9uqllSts"
+ ],
+ "abstract": "The quadratic cost of attention hinders the scalability of long-context LLMs, particularly in resource-constrained settings. While attention is known to be often sparse, existing static sparse methods such as sliding windows or global tokens cannot adapt to task or input dependent variations in attention. While there are recently proposed dynamic approaches for sparse attention, they still depend on predefined templates or heuristic mechanisms that reduces generality and may prune tokens that remain contextually important. As such, we introduce Dynamic Hierarchical Sparse Attention (DHSA), a data-driven framework that dynamically predicts attention sparsity online without retraining of the base LLM. \nOur proposed DHSA adaptively segments sequences into variable-length chunks, then computes chunk representations by aggregating the token embeddings within each chunk. To avoid the bias introduced by varying chunk lengths, we apply a length-normalized aggregation that scales the averaged embeddings by the square root of the chunk size. Finally, DHSA upsamples the chunk-level similarity scores to the token level to produce importance scores that determine which token-level interactions are preserved. Our experiments with Needle-in-a-Haystack and LongBench show that DHSA preserves near-dense accuracy even in highly sparse regimes, yielding 12–20% relative accuracy gains over Block Sparse Attention at comparable prefill cost. Using a FlashAttention-2 (FA2)–based kernel, DHSA achieves up to a $10\\times$ prefill speedup over dense FA2 at 128K context length. On Llama-3.1-8B (4-bit), DHSA scales to 100K context with strong accuracy and competitive latency on a single 24 GB GPU, where dense kernels fail between 16K and 64K. The implementation supports both GPU and CPU backends and is compatible with multiple open-weight model families. These results highlight DHSA as an efficient and adaptable solution for long-context inference for on-device LLMs."
+}

versions/v_jkkw89rb.json added

+++ b/versions/v_jkkw89rb.json
@@ -0,0 +1,18 @@
+{
+ "date": "2025-08-31",
+ "kind": "submitted",
+ "label": "ER @ NeurIPS 2025",
+ "submissions": [
+ {
+ "venue": "ER @ NeurIPS 2025",
+ "status": "accepted",
+ "url": "https://openreview.net/forum?id=pvrHkHRVx3"
+ }
+ ],
+ "title": "Long-Context Modeling with Dynamic Hierarchical Sparse Attention for On-Device LLMs",
+ "url": "https://openreview.net/forum?id=pvrHkHRVx3",
+ "evidence": [
+ "https://openreview.net/forum?id=pvrHkHRVx3"
+ ],
+ "abstract": "The quadratic cost of attention hinders the scalability of long-context LLMs, especially in resource-constrained settings. Existing static sparse methods such as sliding windows or global tokens utilizes the sparsity of attention to reduce the cost of attention, but poorly adapts to the content-dependent variations in attention due to their staticity. While previous work has proposed several dynamic approaches to improve flexibility, they still depend on predefined templates or heuristic mechanisms. Such strategies reduce generality and prune tokens that remain contextually important, limiting their accuracy across diverse tasks. To tackle these bottlenecks of existing methods for long-context modeling, we introduce Dynamic Hierarchical Sparse Attention (DHSA), a data-driven framework that dynamically predicts attention sparsity online without retraining. Our proposed DHSA adaptively segments sequences into variable-length chunks, then computes chunk representations by aggregating the token embeddings within each chunk. To avoid the bias introduced by varying chunk lengths, we apply length-normalized aggregation that scales the averaged embeddings by the square root of the chunk size. Finally, DHSA upsamples the chunk-level similarity scores to token level similarities to calculate importance scores that determine which token-level interactions should be preserved. Our experiments on Gemma2 with Needle-in-a-Haystack Test and LongBench show that DHSA matches dense attention in accuracy, while reducing prefill latency by 20-60% and peak memory usage by 35%. Compared to other representative baselines such as block sparse attention, DHSA achieves consistently higher accuracy (6-18% relative gains) with comparable or lower cost, offering an efficient and adaptable solution for long-context on-device LLMs."
+}