WorksComputer Science
INTRA: Interleaved Non-contiguous Token spaRse Attention
Abstract
Transformers achieve strong performance across modalities but are bottlenecked by the quadratic cost of attention. Sparse attention can reduce this cost, but effective sparsity must preserve useful long-range communication and map well to GPU hardware. We introduce INTRA–Interleaved Non-contiguous Token spaRse Attention–a hardware-aware static sparse attention design based on a relay-communication view under Computational Query Set (CQS) constraints. Rather than directly covering all token-to-token interactions within each sparse layer, INTRA uses complementary sparse groups to provide short mediated communication paths across layers. Scatter forms relay groups that sample broadly across local neighborhoods, while Gather reconnects these groups in subsequent layers. Under a partition model, this structure guides CQS-compatible sparse patterns with global reachability. Our CQS-aware FlashAttention-style kernel computes structured indices at runtime, loads selected non-contiguous tokens, and packs them densely for computation. On an A100, INTRA achieves a speedup in FLUX.1-dev generation, with better measured image quality than evaluated CLEAR configurations after LoRA self-distillation. On LLaMA-3.1-8B, it improves long-context prefill efficiency with strong teacher-forced retrieval performance under matched LoRA adaptation. Attention-only benchmarks further show up to and speedups over MoBA and density-constrained NSA, respectively. Code is available at https://github.com/NovTi/INTRA.
Introduction
Transformers excel across domains such as NLP and image generation, but their attention cost scales quadratically with sequence length, creating a bottleneck for long contexts and high-resolution generation. For instance, FLUX.1-dev [2] requires nearly a minute to produce a image on a single A100, precluding real-time generation.
Sparse attention reduces full-attention overhead (Liu et al., 2025; Jiang et al., 2024). We distinguish input-dependent (dynamic) from input-independent (static) connectivity separately from whether a method requires training or adaptation. INTRA uses static connectivity to avoid runtime pattern selection and evaluates adaptation of pretrained models to GPU-friendly sparse patterns.
Sparsity changes communication as well as FLOPs. Many modalities have coherent local neighborhoods, such as image patches, spatial regions, or short contiguous token segments. Local attention can mix nearby information within these neighborhoods; the remaining challenge is communication between neighborhoods under hardware constraints. A partition-based sparse layer permits interactions only within groups. Covering all dense edges would require many such layers, motivating relay paths that connect neighborhoods through successive groups.
Efficient execution constrains this design space. CLEAR (Liu et al., 2025) uses circular local sparsity, and NATTEN [9] uses sliding windows. Fine-grained masks can leave partially used computational blocks (Figure 2). Computing whole blocks before masking unused scores diminishes realized speedups relative to nominal FLOP reductions. We formalize a hardware-oriented design class through Computational Query Sets (CQSS): query groups with structured key sets and local-to-global index mappings aligned with FlashAttention-style query blocks.

Figure 1. The figure reports the relative speedup achieved by INTRA compared to CLEAR and FlashAttention 2 on 4K and 16K input lengths, evaluated on an A100 GPU. Note that the axis density differs between the left and right sides of the figure to accommodate varying inference times.
INTRA combines two CQS-compatible patterns. Under equal-size partitions, Scatter groups same-position tokens across neighborhoods, giving each group one representative per neighborhood. Gather reconnects these channels. If every Scatter group intersects every Gather group, two layers permit graph-theoretic reachability between any source and target. This motivates complementary patterns for efficient sparse communication.
Our contribution is the joint study of structured static attention, GPU execution, and pretrained-model adaptation. Building on factorized and local–global attention [5] (Tu et al. 2022), we (1) formulate coverage and overlap objectives within the Intra Sparse Pattern Design (ISPD) Principle and its CQS constraints; (2) implement selected Scatter/Gather patterns using runtime indexing, dense shared-memory packing, and scatter-back; and (3) evaluate their quality–latency trade-offs after adaptation.

Figure 2. Low-level implementation of blockwise sparsity for handling mixed blocks. A mix block is the block that partially preserves attention scores, as shown on the left side of the figure.
INTRA delivers 1.53× faster 2K FLUX.1-dev generation after LoRA self-distillation with better measured image metrics than evaluated CLEAR configurations. Wan2.2-TI2V-5B generation is 1.43× faster end to end at with 121 frames (Table 19). On LLaMA-3.1-8B, INTRA accelerates SCROLLS (Shaham et al., 2022) prefill relative to MInference (Jiang et al., 2024) and XAttention (Xu et al., 2025). Separate 32-layer attention timings at 4K–64K show 3.6–8.4× speedups over MoBA and 7.3–10.4× over density-constrained NSA (Table 4b).
| Method | Dense + LoRA | MoBA | NSA | INTRA |
| Mean NIAH | 1.000 | 0.194 | 0.325 | 0.923 |
Table 4.
| Resolution | 480 832 | 704 1280 | 704 1280 | |
| Frames / video tokens | 49 / 5,070 | 121 / 27,280 | 241 / 53,680 | |
| End-to-end generation and pipeline components (s) | ||||
| Total generation | 44.1 41.2 | 340.9 238.4 | — | |
| End-to-end speedup | — | |||
| DiT total (100 forwards) | 40.9 38.0 | 326.9 224.2 | — | |
| VAE decoding | 2.6 | 13.4 | — | |
| Standalone DiT forward: batch size one, all 30 blocks | ||||
| DiT forward (ms) | 399 371 | 3257 2198 | 9143 4855 | |
| Forward speedup | ||||
| Self-attention (ms) | 49.3 23.2 | 1423 342 | 5528 1129 | |
| Self-attention speedup | ||||
| Attention share of dense forward | 12% | 44% | 60% |
Table 19. Wan2.2-TI2V-5B video timing on A100-SXM4-80GB. Arrows show dense INTRA; speedups are dense time divided by INTRA time. End-to-end and pipeline components are in seconds, while standalone forward and self-attention times are in milliseconds. The 49-frame setting matches VBench; 121 frames corresponds to the native five-second setting at 24 fps. The 241-frame setting measures standalone speed only; dashes denote unmeasured pipeline timings.
Related Works
Static Sparse Attention
Static sparse attention uses fixed, input-independent patterns. Sparse Transformer [5] combines local and strided factorizations with short communication paths and interleaves patterns across layers. MaxViT (Tu et al., 2022) combines block and grid attention for local and distributed global interactions. These are close precedents for Scatter/Gather. Sliding-window methods [9] (Jiang et al. 2023; Liu et al. 2025), Longformer, and BigBird [1] (Zaheer et al. 2020) provide other local/global constructions. INTRA focuses on CQS-compatible indexing, dense-tile execution, and adaptation of complementary patterns in pretrained models.
Dynamic Sparse Attention
Dynamic sparse methods adapt connectivity to the input or model state. MInference Jiang et al. (2024), FlexPrefill Lai et al. (2025), and XAttention Xu et al. (2025) select heads, blocks, or patterns at runtime. NSA, MoBA, and H2O Yuan et al. (2025); Lu et al. (2025a); Zhang et al. (2023) also use input-dependent selection or routing, with different training requirements. INTRA evaluates adapted static patterns that avoid runtime selection and target simpler GPU kernels.
Other Image Acceleration Methods
Token pruning and merging methods reduce the effective sequence length for vision transformers by removing or combining tokens [3] (Rao et al. 2021; Kong et al. 2022; Lu et al. 2025b). These methods are orthogonal to INTRA, which keeps the token set but changes the sparse communication pattern and kernel implementation.
Sparse Video Generation
Sparse video methods reduce spatiotemporal attention through hardware-aware regions, shifted windows, or spatial/temporal head specialization (Zhang et al., 2025; Liu et al., 2022; Xi et al., 2025). INTRA formulates a CQS-compatible communication principle applicable across architectures. Our image and language workloads cover high-resolution generation and long-context prefill; the 16K-token setting is also comparable to smaller video models, such as Wan 1.3B at 480p Team Wan et al. (2025). We additionally evaluate video transfer on Wan2.2-TI2V-5B (Appendix § 15.8).
Hardware-Efficient Sparse Communication
Computational Query Sets and ISPD Constraints
We study a class of sparse attention patterns compatible with FlashAttention-style execution. A Computational Query Set (CQS) is a group of query tokens evaluated together, with structured local-to-global mappings for selecting the corresponding key/value tokens. A CQS may use query-dependent key indices, as long as they are generated by structured mappings that can be evaluated uniformly for the group. We call a sparse pattern ISPD-compatible if it satisfies:
Coverage: The union of all CQSs covers the query-token set. A query token may belong to more than one CQS.
Index Mapping: There exist structured functions and such that, for a given CQS index ,
Block Alignment: Each CQS contains a number of queries approximately divisible by the query block size ; we use for FlashAttention-style kernels.
The “approximately” qualifier only accounts for a final partial block when the sequence length is not divisible by . Within this design class, intra-CQS computation avoids cross-thread-group synchronization: queries from the same CQS can be grouped, and the required non-contiguous K/V tokens can be packed contiguously for FlashAttention-style computation. Our Scatter and Gather patterns satisfy these constraints; their explicit and mappings are in Appendix § 11.
Sparse Attention as Communication
We model a sparse attention layer as a directed information-flow graph over tokens:
A path follows the direction in which token information can be used by later queries. A partition-based sparse layer divides tokens into groups and computes attention within each group. We use this abstraction to reason about Scatter/Gather communication paths. We assume tokens are partitioned into local neighborhoods
Here may be an image patch, spatial neighborhood, or short text segment. Our modeling premise is that local attention already provides useful intra-neighborhood mixing; the sparse-design problem is communication between neighborhoods while staying inside the ISPD-compatible design class. We call the sparse groups used to move information between neighborhoods relay groups.
Scatter-Gather Relay Design
Static Sparse Attention Under Unknown Long-Range Demand
Dynamic sparse attention can select important keys after observing the input or attention scores. This adaptivity incurs runtime pattern-selection costs and can introduce irregular memory access. INTRA instead fixes connectivity in advance, enabling simple local-to-global index mappings and structured token loading. A static pattern cannot know which long-range token pairs matter for a given input, head, or layer. It should therefore allocate communication opportunities across possible long-range interactions, rather than specialize to a single assumed attention pattern. We express this goal through a worst-case neighborhood-coverage objective.
From Direct Edges to Relay Paths
A sparse layer with per-query budget can preserve at most directed token-token interactions, while dense attention contains possible interactions. When , a static sparse mask cannot directly preserve all potentially important dense edges.
Two sparse layers can provide a mediated path for a missing direct interaction through a relay token:
Our analysis counts the relay opportunities connecting source and target neighborhoods.
This observation guides INTRA: the sparse pattern should provide broad and balanced relay opportunities while remaining compatible with efficient CQS execution.
Locality as a Design Motivation
Nearby image patches often share visual structure, while short text segments provide coherent local context. This motivates separating two roles: local attention mixes nearby tokens, and non-local groups provide paths between neighborhoods. When an interaction involves distant neighborhoods, their local representatives are plausible relay carriers. The combinatorial objective formalizes this intuition by balancing coverage across neighborhood pairs.
Why Scatter Is Uniform and Non-Contiguous
Let tokens be divided into local neighborhoods, with integer :
A group of tokens covers all neighborhoods only by taking one representative from each; repeated samples from one neighborhood leave another uncovered.
Scatter avoids this failure mode. Writing tokens as , where is the neighborhood index and is the local index, Scatter forms
Each Scatter group contains one token from every local neighborhood. Thus, every group is a global low-resolution view of the sequence or image.
Sampling distant neighborhoods makes Scatter non-contiguous. The groups of size compute attention pairs, retaining a fraction of dense pairs. At fixed , the complexity is . Gather 0, the image variant using local neighborhoods, instead uses pairs for a fixed window of keys per query.
Why Gather Is Needed
Scatter provides global relay groups but separates communication by local index. Tokens in can exchange information across neighborhoods with other tokens in , while different channels and remain disconnected. This matters because useful source-side and target-side representatives need not share the same local index: broad coverage within a channel alone cannot connect every source–target pair.
Gather is introduced to reconnect these Scatter channels. Let
be the second partition, and define the Scatter-to-Gather overlap
If , then Scatter channel has no relay witness into Gather group . A good Gather pattern should therefore make these overlaps as balanced as possible, avoiding weak or missing channel connections.
A simple balanced construction is cyclic:
Its minimum overlap is . Thus every Scatter group intersects every Gather group, enabling universal two-layer reachability in this abstract construction, only when .
Design Summary
Within equal-size partitions, uniform Scatter maximizes minimum neighborhood-pair coverage, and balanced Gather maximizes minimum inter-partition overlap. These objectives motivate complementary patterns under a static communication budget.
Thus INTRA implements the following communication structure:
local mixing uniform non-contiguous relay balanced relay reconnection.
Appendix D proves the coverage and overlap results for the partition model. We next describe its image and language instantiations.
Mapping Back to INTRA
For FLUX.1-dev, INTRA interleaves Scatter and Gather 0 (Figure 3): Scatter groups same-position tokens across local neighborhoods, and Gather 0 reconnects groups through neighborhoods. Each layer remains structured while successive patterns provide complementary relay paths. For LLaMA-3.1-8B retrieval, 4 of 32 layers use block-level sparse attention, one every eight layers. These layers select every second contiguous 256-token block, subject to causal masking. The remaining layers use sliding-window attention with a span of 575 tokens and 64 sink tokens ((Xiao et al., 2024)). Sparse attention is applied during prefill, followed by dense attention during autoregressive decoding.

Figure 3. The Scatter and Gather 0 attention patterns used for image generation. Query and key tokens are arranged in a 2D feature map. Scatter groups tokens at the same local position across neighborhoods, while Gather 0 uses a neighborhood spanning multiple Scatter groups.
For image generation, interleaved Scatter/Gather provides mediated global communication with ISPD-compatible layers. The next section describes the kernel’s non-contiguous token loading and contiguous packing.
CQS-Aware Token-Sparse FlashAttention Kernel
For token-level Scatter/Gather patterns, INTRA implements a CQS-aware variant of FlashAttention [6]. Each CQS is scheduled in query blocks of 64 tokens. Structured mappings and
compute global positions at runtime; the kernel loads the selected Q, K, and V tokens, packs them into dense shared-memory tiles, and applies the FlashAttention-style online-softmax core. Outputs are scattered back using the query mapping. This avoids computing and masking unused scores in mixed blocks. Masking within the packed tiles supports full and causal attention.
Scatter and Gather 0 use strided cross-neighborhood access and two-dimensional local offsets, respectively. Gather 1 is the repeated-segment token grouping illustrated in Appendix § 9; all three share the kernel with different index mappings and underlie the token-level benchmarks. Language retrieval uses the block-level extension in § 4.7, with selected 256-token blocks in global layers and sliding windows with sinks elsewhere. Appendix § 13 profiles the token-level kernels’ indexing, memory traffic, and computation.
Evaluation
We evaluate whether the CQS-compatible relay design is practical in both the FLUX.1-dev (Black Forest Labs, [2]) image generation model and the LLaMA 3 (Dubey et al., [8]) language model. INTRA changes how the model exchanges information between tokens, requiring adaptation; LoRA (Hu et al., 2022}) suffices in our evaluated settings.
Experiments
Baseline INTRA provides broad communication through fixed sparse patterns. For image generation, we compare with CLEAR, an adapted static sparse-attention method, to evaluate pattern design and execution in the same pretrained-model setting.
For text generation, we compare with MInference (Jiang et al., 2024) and XAttn (Xu et al., 2025) on the long-context SCROLLS benchmark (Shaham et al., 2022).
Experiment Setup We fine-tune FLUX.1-dev using CLEAR’s 10K self-generated image-text dataset. Following CLEAR, we sample 5k COCO (Lin et al., 2014) validation prompts and evaluate generated images using FID (Heusel et al., [10]; Seitzer, 2020), LPIPS (Zhang et al., 2018), and CLIP-I (Radford et al., 2021). For LLaMA 3, we fine-tune and evaluate on SCROLLS (Shaham et al., 2022), covering GovReport (Huang et al., [13]), Qasper (Dasigi et al., [7]), QMSum (Zhong et al., 2021), QuALITY (Pang et al., 2022), SummScreen-FD (Chen et al., [4]), and ContractNLI (Koreeda & Manning, 2021). These tasks fit our 16K-token fine-tuning budget and provide reliable validation sets.
Resource Usage and Practicality All fine-tuning and evaluation use NVIDIA A100 GPUs. FLUX.1-dev fine-tuning takes 43 GPU hours. The matched language retrieval protocol uses rank-16 LoRA and takes about one hour on eight GPUs per run (approximately 8 GPU hours).
| Methods | Seq Len | Config | GFLOPS | Latency(ms) | Speedup | FID |
| FlashAttention 2 | 4K | - | 260.9 | 1.181 | - | - |
| CLEAR | 4K | 63.5 | 0.893 | 1.32 | 11.70 | |
| INTRA | 4K | Interleave Scatter/Gather | 50.75 | 0.324 | 3.64 | 11.74 |
| FlashAttention 2 | 16K | - | 3507.9 | 15.764 | - | - |
| CLEAR | 16K | 246.2 | 4.625 | 3.41 | 32.46 | |
| INTRA | 16K | Interleave Scatter/Gather | 345.5 | 2.056 | 7.67 | 15.67 |
Table 1. Single full-attention latency and speedup on A100. INTRA interleaves Scatter/Gather for image generation.
Appendix G.2 gives the adaptation recipe and distinguishes it from the earlier SCROLLS fine-tuning setup.
Results Table 1 reports image attention-kernel speedups; token-level language timings are in Table 3(a) and Appendix E. At 2K, INTRA achieves the best measured image metrics and lowest generation latency among evaluated sparse configurations: 43.72 seconds and FID 15.67 versus CLEAR ()’s 32.46 (Table 2). Table 3 reports single attention operation timings alongside separate SCROLLS quality results: INTRA has the lowest latency at all three context lengths and the highest QuALITY score. Appendix F gives group-count sweeps and the summary calculations.
| Method | 1024 1024 Image Generation: FID () | 1024 1024 Image Generation: LPIPS () | 1024 1024 Image Generation: CLIPI () | 1024 1024 Image Generation: Gen Time(s) | 2048 2048 Image Generation: FID () | 2048 2048 Image Generation: LPIPS () | 2048 2048 Image Generation: CLIPI () | 2048 2048 Image Generation: Gen Time(s) |
| Original Model | - | - | - | 13.42 | - | - | - | 66.78 |
| CLEAR () | 11.70 | 49.96 | 0.8995 | 12.85 | 32.46 | 61.62 | 0.8046 | 47.81 |
| CLEAR (–) | - | - | - | 13.73 | 19.27 | 54.60 | 0.8467 | 52.07 |
| INTRA | 11.74 | 49.46 | 0.9045 | 11.97 | 15.67 | 51.99 | 0.8559 | 43.72 |
Table 2. End-to-end latency and image quality at 1K/2K. CLEAR (–) uses 1/4-resolution K/V and radius 8; CLEAR () is slower than dense FLUX.1-dev.
| Method | 8K | 16K | 32K |
| XAttention () | 1.91 | 4.22 | 8.03 |
| MInference | 14.30 | 26.42 | 51.20 |
| INTRA | 0.51 | 1.75 | 6.50 |
Table 3.
For video transfer, INTRA reduces Wan2.2-TI2V-5B (Team Wan et al., 2025; Team Wan, 2025) generation time from 340.9 to 238.4 seconds (1.43) at 704 1280 with 121 frames on A100-SXM4-80GB. At the VBench (Huang et al., 2024) setting (480 832, 49 frames), latency falls from 44.1 to 41.2 seconds; evaluation on 944 prompts with five samples each yields a 13-dimension mean of 0.4677 versus dense attention’s 0.4745. Table 19 combines end-to-end, forward, and attention timings; Appendix G.8 gives per-dimension quality results.
Appendix G.1 compares with a smaller dense diffusion model; Appendix H provides visual comparisons.
Needle Retrieval and Attention Efficiency. We evaluate LLaMA-3.1-8B on needle-in-a-haystack (NIAH) (Kamradt, 2023) retrieval at nine depths and 4K–32K contexts. Dense attention, MoBA (Lu et al., 2025a), NSA (Yuan et al., 2025), and INTRA share the LoRA budget and teacher-forced exact-match protocol; each model reuses one adapter trained on disjoint data. INTRA scores 0.923 on average and 0.918 at 32K. Table 4 presents retrieval scores alongside separate attention-only timings: across 4K–64K, INTRA is 3.6–8.4 faster than MoBA and 7.3–10.4 faster than tuned NSA.
Cross-Model Evaluation. On Qwen3-8B (Yang et al., 2025), INTRA achieves a mean NIAH score of 0.912 versus dense attention’s 1.000, using the same evaluation protocol and LoRA recipe and budget. Qwen3-8B uses five block-level sparse layers among 36, with sparse-layer retained density tuned for each model family.
Table 3: Attention operation speed and separate SCROLLS quality. INTRA achieves 2.23× the speed of XAttention and 14.94× the speed of MInference (geometric means, 8K–32K). Respective unweighted mean-score gaps are 0.87 and 0.42 points.
(a) Single causal-attention operation latency () on A100. INTRA uses token-level Scatter/Gather.
(b) SCROLLS task scores and unweighted six-task mean ().
| Method | GovReport | Qasper | QMSum | QuALITY | SummScreen-FD | Contract NLI | Unweighted mean |
| XAttention | 31.16 | 39.94 | 24.93 | 27.5 | 20.27 | 77.5 | 36.88 |
| MInference | 31.44 | 39.99 | 25.18 | 24.5 | 20.40 | 77.1 | 36.44 |
| INTRA | 27.77 | 39.64 | 24.45 | 29.0 | 19.71 | 75.5 | 36.01 |
Table 3b.
Table 4: LLaMA-3.1-8B retrieval quality and separate attention timing experiments.
(a) Mean NIAH with matched LoRA adaptation (9 depths; 4K–32K).
(b) Attention latency () on A100-SXM4-80GB.
Attention only: sum of 32 per-layer medians (50 repetitions), bfloat16, batch 1. INTRA uses four Scatter layers and 28 width-576 windows; NSA is tuned under density cap . Retrieval and timing configurations are specified in § 4.7 and Appendix § 15.§ 7, respectively.
Ablation Study
Global-Layer Ablation. We fix LLaMA-3.1-8B, training data, LoRA rank and steps, and four layer positions; the other 28 layers retain the same windows and sink tokens. Only attention at the selected positions changes. Sliding-window, INTRA block-sparse, and dense fillings obtain mean NIAH scores of 0.028, 0.923, and 1.000 at overall retained densities of 0.069, 0.123, and 0.185 (Table 5). INTRA thus retains 92.3% of the dense-filled control’s retrieval score with about two-thirds of its retained attention entries. This measures the quality–density trade-off with fixed layer placement and adaptation.
| Pattern in selected layers | Overall retained density | Mean NIAH |
| Sliding window | 0.069 | 0.028 |
| INTRA block-level sparse attention | 0.123 | 0.923 |
| Dense attention | 0.185 | 1.000 |
Table 5.
Table 5: LLaMA-3.1-8B attention-pattern ablation at four fixed layers with matched training budgets. The other 28 layers use windows with sinks; density covers all 32 layers.
Local Windows and Global Reach. To test whether increasing local capacity suffices, Appendix G.3 varies window width from 575 to 4096 in all 32 layers. At 32K, width 4096 scores 0.111 despite reaching 1.000 at 4K; INTRA’s four global sparse layers retain 0.918 at 32K. Together with the configuration comparison in Appendix § 15.§ 4, this supports allocating attention to global reach rather than only widening local windows.
Image Pattern and Sparsity. Table 6 separately tests using either Scatter or Gather alone and varying the Scatter group count during interleaving. Scatter alone yields FID 213.47, Gather 0 improves this to 13.23, and interleaving reaches 11.75, with consistent LPIPS and CLIPI improvements. This contrast is consistent with the complementary roles in § 4: Scatter supplies cross-neighborhood communication, while Gather reconnects otherwise isolated Scatter channels.
| (a) Use Scatter/Gather or both | |||
| FID (↓) | LPIPS (↓) | CLIPI (↑) | |
| Scatter | 213.47 | 64.91 | 0.67 |
| Gather 0 | 13.23 | 54.10 | 0.88 |
| Scatter + Gather 0 | 11.75 | 49.46 | 0.90 |
| (b) Number of groups in Scatter | |||
| FID (↓) | LPIPS (↓) | CLIPI (↑) | |
| 4 groups | 10.99 | 48.29 | 0.908 |
| 8 groups | 11.75 | 49.46 | 0.905 |
| 16 groups | 12.85 | 49.88 | 0.896 |
Table 6. Ablation study: pattern choice and number of Scatter groups during interleaving.
With interleaving retained, increasing Scatter groups from 4 to 8 to 16 reduces attended tokens but raises FID from 10.99 to 11.75 to 12.85; eight groups is an intermediate quality–sparsity choice. Switching every two layers gives the best measured metrics among intervals of one to four layers (Appendix § 15.§ 1). Appendix G collects the supplementary experiments and adaptation studies.
Limitations
Our partition analysis optimizes coverage and overlap, not attention approximation or downstream quality. The deployed geometric and causal masks impose additional constraints; causal connectivity is restricted to preceding tokens. Comparisons with other factorized patterns and larger models remain future work.
Quality is task-dependent: INTRA trails both SCROLLS baselines on five of six tasks. Relative to adapted dense attention, GovReport falls from 31.05 to 27.77, while Qasper changes from 40.09 to 39.64 (Table 14). Image comparisons do not establish dense-quality parity. Wan’s aesthetic and imaging scores decrease by 0.0194 and 0.0564; shared zeros remain unexplained. Video quality is evaluated only at 49 frames.
| GovReport | Qasper | QMSum | QuALITY | SummScreen-FD | |
| Original model (no fine-tune) | 24.13 | 34.91 | 21.17 | 0.0 | 16.77 |
| Original model | 31.05 | 40.09 | 25.37 | 26.0 | 20.51 |
| INTRA | 27.77 | 39.64 | 24.45 | 29.0 | 19.71 |
Table 14. LLaMA 3.1 8B performance on SCROLLS with and without fine-tuning.
Retrieval measures teacher-forced exact match after shared-budget adaptation, rather than free-generation or zero-shot performance or general rankings of MoBA/NSA. Layer ablations compare quality and density, not matched FLOPs; configuration sweeps vary both density and layer allocation. The SD 1.5 comparison also differs in architecture and training data. Quality scores lack confidence intervals; timing repetitions do not measure quality uncertainty.
Runtime indexing and non-contiguous loads add overhead; unchanged components limit end-to-end gains (Appendix § 13). Token kernels and block-sparse retrieval use distinct configurations. MoBA/NSA timing comparisons cover attention only, not full-model prefill. Reshaping changes scheduling and occupancy, preventing isolated overhead measurement.
Conclusion
We introduced INTRA as a sparse communication design under ISPD/CQS constraints. In a partition-based relay model, Scatter gives max-min local-neighborhood coverage and Gather gives balanced two-layer reconnection. Together, they provide a communication criterion for complementary static patterns.
The CQS-aware kernel turns these patterns into dense-tile GPU computation through runtime indexing and non-contiguous token packing. After adaptation, INTRA delivers 1.53× faster 2K FLUX.1-dev generation and better measured image metrics than evaluated CLEAR configurations. Language experiments demonstrate faster prefill and effective long-range retrieval with a small allocation of global sparse layers, supporting structured static attention as a practical acceleration strategy.
AI USE STATEMENT
Generative AI assistants were used for polishing and reference checking. Our adaptation protocols also use model-generated data and dense-teacher outputs, as described in § 6.1 and Appendix § 15.§ 2. AI-assisted revisions were checked against cited primary sources and reported tables where applicable; these checks do not constitute independent reruns of the experiments. The authors proposed and determined the research questions, central ideas, methodology, and final technical claims. The authors take responsibility for the final text, claims, citations, and artifacts, including material prepared with AI assistance.
Token-Level Scatter and Gather 1 Patterns
Figure 4 illustrates the token-level Scatter and Gather 1 variants used in the kernel benchmarks. The language retrieval experiments instead use the block-level global layers and sliding-window layers with sink tokens described in § 4.7.

Figure 4. Token-level Scatter and Gather 1 patterns with a grouping factor of 4. Tokens are partitioned into 4 groups, shown by color, and both patterns compute attention within each group. These illustrate kernel variants rather than the block-level mask used in the retrieval experiments.
GPU Memory Hierarchy
NVIDIA GPUs use a memory hierarchy consisting primarily of global memory, shared memory, and registers. Global memory is large but high-latency; shared memory is faster and shared within a thread block; registers are fastest and private to individual threads. INTRA changes which global-memory tokens are loaded, then packs the selected tokens contiguously in shared memory before applying FlashAttention-style computation.
Sparse Pattern Index Function
Scatter
For the LLM Scatter pattern with query block size 64 and 8 groups, let be the CQS index. The local-to-global mappings are
Gather 0
Assume an image feature map with width and height , both at least 16 and divisible by 8. Each CQS is an query patch attending to a image-key window. We use zero-based, row-major indexing within the image. For CQS index , let and . For ,
The window is shifted inward at image boundaries. Its top-left row and column are
All queries in the CQS share the same image-key mapping, with :
The kernel packs the window into four 64-key tiles (, , ), each covering four rows of 16 keys. Thus every image index lies in , including at corners. In the released FLUX implementation, and 512 text tokens precede the image tokens, so these image indices receive an offset of 512. Every query also attends to all text keys; text queries retain their Scatter image-key groups.
Formal Relay Analysis for Static CQS Design
This appendix formalizes the relay-design intuition used in § 4. The mask-level analysis establishes uniform Scatter and balanced Gather as minimax allocations for neighborhood coverage and inter-partition overlap under CQS-style partition constraints.
Setup
Let and be integers. Partition tokens into local neighborhoods:
We consider static partition-based CQS groups. Scatter consists of relay groups
which partition the token set. Define
The proof uses token counts and intersections of fixed sets. The local neighborhoods specify the partition over which coverage is evaluated.
Uniform Scatter as Minimax Neighborhood-Pair Coverage
For a pair of neighborhoods , define the relay opportunity count
This counts how many ordered source-target representative pairs from and are co-grouped in some Scatter relay group.
Let be an arbitrary normalized long-range demand matrix over ordered neighborhood pairs:
Define the demand-weighted coverage of as
Since the static mask does not know in advance,
Thus robustness to arbitrary neighborhood-level demand reduces to maximizing the weakest relay opportunity count.
Proposition D.1. For any partition into relay groups of size ,
Uniform Scatter achieves equality by taking exactly one token from every neighborhood in every relay group:
Consequently,
Proof. For each relay group ,
Therefore,
because for nonnegative integers summing to . Summing over all groups gives
There are ordered neighborhood pairs, so the average value of is at most . Hence
Uniform Scatter has for all , so
for every ordered pair , attaining the upper bound.
Interpretation. Any non-uniform relay group that samples one neighborhood multiple times must under-sample another. This can improve some neighborhood pairs only by weakening others. If long-range demand is unknown, the weakened pair becomes the worst case. Uniform Scatter is therefore the no-prior robust static allocation of relay opportunities.
Balanced Gather as Minimax Channel Reconnection
Scatter creates global relay groups but separates them by local index. Write
Let Gather be another partition
and define the overlap matrix
The entry counts the number of relay witnesses from Scatter channel into Gather group . If , then that channel-to-group connection is absent.
For arbitrary reconnection demand, the weakest entry controls the worst case. Since each Scatter group has size ,
Therefore,
Thus no Gather partition can make the weakest overlap larger than .
A cyclic Gather construction achieves this value:
For fixed and ,
Thus cyclic Gather maximizes the weakest Scatter-to-Gather overlap under the same equal-size partition constraint. Universal two-layer connectivity additionally requires , so that . If , zero overlaps remain and the construction does not provide universal two-layer connectivity.
Relation to Implemented Patterns
The results optimize neighborhood-pair coverage and inter-partition overlap within equal-size partitions. Uniform Scatter distributes representatives across neighborhoods, and cyclic Gather balances connections between the resulting channels. These objectives guide the implementations in § 4.7: image generation combines Scatter with geometric Gather 0 neighborhoods, while language retrieval combines causal global block attention with local windows and sink tokens. The global-layer and image-pattern ablations evaluate these complementary roles after adaptation.
Balanced Gather reconnection. Given fixed Scatter groups and fixed Gather group sizes, the row and column sums of are fixed by the partition sizes. Maximizing therefore favors balancing the overlap matrix and avoiding zero entries. When every entry is positive, the two-layer reachability result applies.
Overhead Analysis
| Method | 4K | 8K | 16K | 32K |
| FlashAttention 2 | 137.4 | 549.8 | 2199.1 | 8796.3 |
| MInference | – | 329.8 | 1275.4 | 4398.1 |
| XAttn S=16 | – | 153.6 | 614.2 | 2615.1 |
| INTRA | 17.2 | 68.7 | 274.9 | 1099.5 |
Table 8. GFLOPS entries accompanying the single causal-attention timings in Table 3(a) and Table 7. Dashes indicate unreported settings.
| Method | 4K | 8K | 16K | 32K |
| FlashAttention 2 | 0.82 | 2.86 | 10.57 | 40.96 |
| INTRA | 0.16 | See Table 3(a) |
Table 7. Supplementary single causal-attention operation latency (ms) on A100. The FlashAttention 2 baseline and INTRA 4K result complement Table 3(a), which reports the 8K–32K sparse-method timings. INTRA uses token-level Scatter/Gather.
This appendix profiles the token-level Scatter/Gather kernels. The language-sequence patterns are illustrated in Appendix § 9. With 8 groups, the ideal attention speedup is . Actual Scatter/Gather speedups approach this value as sequence length grows, indicating that fixed overheads become less significant for longer contexts. The block-level mask construction cost for the language retrieval configuration is reported separately in Appendix § 15.§ 6.
| Pattern | Seq. Len. | Ideal | Actual |
| Scatter | 4K | 8× | 4.81× |
| Gather 1 | 4K | 8× | 5.84× |
| Scatter | 8K | 8× | 5.43× |
| Gather 1 | 8K | 8× | 5.83× |
| Scatter | 16K | 8× | 5.90× |
| Gather 1 | 16K | 8× | 6.15× |
| Scatter | 32K | 8× | 6.22× |
| Gather 1 | 32K | 8× | 6.37× |
Table 9. Ideal vs. actual speedups for the token-level Scatter/Gather kernels on A100.
Nsight profiling in Table 10 characterizes the balance between memory traffic and computation after reducing the workload. INTRA has higher memory throughput and lower compute throughput than dense FlashAttention, consistent with its reduced arithmetic workload. Gather 0’s more contiguous loads produce fewer uncoalesced global-memory transactions than Scatter’s strided loads.
| Method | Memory Throughput | Compute Throughput | Time (ms) |
| FlashAttention | 49.95 | 70.69 | 15.80 |
| INTRA Scatter | 86.31 | 56.64 | 3.04 |
| INTRA Gather 0 | 79.48 | 51.19 | 1.07 |
Table 10. Nsight profiling at 16K in the image setting. Throughput numbers are reported by NVIDIA profiling tools at the kernel level.
Table 11 compares INTRA with an equally sparse dense-FlashAttention simulation. The simulation reshapes inputs to match sparsity, providing a computational reference for the Scatter and Gather 1 timings.
| Pattern | Seq. Len. | INTRA (ms) | Equally Sparse (ms) |
| Scatter | 4K | 0.17 | 0.19 |
| Scatter | 8K | 0.53 | 0.52 |
| Scatter | 16K | 1.79 | 1.65 |
| Scatter | 32K | 6.58 | 5.73 |
| Gather 1 | 4K | 0.29 | 0.22 |
| Gather 1 | 16K | 1.07 | 0.79 |
Table 11. INTRA compared with an equally sparse dense-FlashAttention simulation.
Table 12 isolates the attention contribution by replacing attention with a dummy operation. The left subtable reports full FLUX.1-dev generation latency at 4K and 16K, while the right subtable reports LLaMA 3 prompt-prefill latency from 4K to 32K. INTRA therefore targets the attention-heavy generation and prefill stages; autoregressive decoding is more memory-bound, and batch parallelism remains orthogonal because the sparse pattern is applied independently within each sequence.
| (a) FLUX.1-dev generation | ||||
| Setting | 4K | 16K | ||
| Original | 13.4s | 66.8s | ||
| Remove attention | 11.6s | 41.2s | ||
| (b) LLaMA 3 prefill | ||||
| Setting | 4K | 8K | 16K | 32K |
| Original | 0.31s | 0.64s | 1.41s | 3.47s |
| Remove attention | 0.27s | 0.53s | 1.05s | 2.07s |
Table 12. End-to-end latency with and without attention.
The latency measurements in this overhead analysis are averaged over 2,000 runs. Model-quality scores are reported as point estimates.
Speed–Quality Trade-off
Figure 5 varies the group count as INTRA’s sparsity control knob: more groups increase sparsity and reduce computation. For LLaMA 3, the group counts are 8, 12, and 16; for FLUX.1-dev, they are 4, 8, and 16. These are numbers of groups, not tokens per group. The curves show the trade-off between relative speed and Qasper F1 or image FID as sparsity changes.

Figure 5. Speed–quality trade-offs for LLaMA 3 on Qasper (left) and FLUX.1-dev (right). Horizontal axes show relative speed with the INTRA default at 1: points nearer the origin are slower, and points farther right are faster.
Main-table summary. Separately, we average the six task scores reported in Table 3, . This is an unweighted mean of task-specific metrics in score points. The means are 36.88 for XAttention, 36.44 for MInference, and 36.01 for INTRA. Differences are computed before rounding: INTRA’s mean-score gaps are 0.87 and 0.42 points, respectively.
The attention operation summary uses the geometric mean of latency ratios over : . This gives 2.23× against XAttention () and 14.94× against MInference. These summaries use Table 3 directly and are separate from the group-count sweeps in Figure 5.
Additional Experiments and Ablations
This appendix collects image-generation ablations, language adaptation and retrieval studies, implementation costs, and video-generation results.
Image Generation Ablations
Table 13a compares INTRA with Stable Diffusion 1.5 under the same FID protocol. INTRA obtains FID 11.75, compared with 30.02 for the smaller dense diffusion model.
| Method | FID () |
| SD 1.5 | 30.02 |
| INTRA | 11.75 |
Table 13. Additional image-generation ablations. Left: comparison with a smaller dense diffusion model. Right: ablation on interleaving frequency.
We also ablate how often INTRA switches between Scatter and Gather. The number of layers in Table 13b indicates how many consecutive layers share the same sparse pattern before switching. Interleaving every 2 layers performs best across metrics.
Language Adaptation Protocols
SCROLLS fine-tuning. Table 14 compares the original LLaMA 3.1 8B model without fine-tuning, the original model with fine-tuning, and INTRA with fine-tuning. The Qasper result uses LoRA rank 32 and closes most of the gap to the fine-tuned dense model. The earlier language fine-tuning setup was reported as 320 GPU hours. This cost and the rank-32 Qasper setting are separate from the matched retrieval adaptation protocol below.
| Frequency | FID () | LPIPS () | CLIPI () |
| 1 layer | 12.6 | 51.7 | 0.895 |
| 2 layers | 11.7 | 49.4 | 0.904 |
| 3 layers | 13.1 | 51.0 | 0.892 |
| 4 layers | 12.8 | 53.2 | 0.890 |
Table 13b.
Matched retrieval adaptation. For the NIAH comparisons and language ablations, all methods, including the dense control, use the same data and adaptation budget. The training mixture contains 60% public train-split conversations in the evaluation format, 25% synthetic retrieval examples, and 15% plain continuation. The data are packed into 400 blocks of 16,384 tokens and are disjoint from all evaluation documents. We train for 1,200 steps using rank-16 LoRA on the attention and MLP gate/up/down projections. Supervision comes from each model’s own dense outputs, following knowledge distillation [11], without ground-truth task labels. One adapter is trained per model and reused across its evaluation tasks. For LLaMA-3.1-8B, the adapters contain 41.9M trainable parameters (approximately 0.5% of the model), and each run takes about one hour on eight A100 GPUs, or approximately 8 GPU hours. Qwen3-8B uses the same adaptation recipe and budget, with the number and retained density of its global sparse layers configured as described in the main text.
Window-Width Ablation
We further evaluate LLaMA-3.1-8B models using sliding-window attention in all 32 layers under the same adaptation budget. Increasing the window width from 575 to 4096 tokens raises the NIAH score at 4K from 0.111 to 1.000, whereas the score at 32K increases only from 0.000 to 0.111. These results show that wider windows alone remain insufficient for reliable retrieval at 32K under the evaluated protocol. Table 15 reports the measured scores.
| Window width | NIAH at 4K | NIAH at 32K |
| 575 | 0.111 | 0.000 |
| 2048 | 0.556 | 0.000 |
| 4096 | 1.000 | 0.111 |
Table 15. Window-width ablation on LLaMA-3.1-8B with sliding-window attention in all 32 layers. Scores are measured NIAH results at 4K and 32K context lengths.
Attention-Configuration Comparison
Table 16 compares alternative attention configurations of LLaMA-3.1-8B under a fixed adaptation budget. The configuration with sparse attention in half the layers retains a density of 0.125 within each selected layer, while the four-layer configuration retains 0.5 within each selected layer. The four-layer configuration achieves the highest NIAH score among the sparse configurations shown: 0.923 at overall density 0.123, compared with 0.222 at density 0.234 for wider windows. Across these density and layer-allocation choices, concentrating global attention in four layers provides the strongest retrieval result among the tested sparse configurations.
| Configuration | Retained density | Mean NIAH |
| Sparse attention in 16 layers (per-layer density 0.125) | 0.098 | 0.130 |
| Wider windows | 0.234 | 0.222 |
| Four global sparse layers (per-layer density 0.5) | 0.123 | 0.923 |
| Dense + LoRA | 1.000 | 1.000 |
Table 16. Language attention configurations under the same adaptation budget. Retained density refers to the overall attention configuration, normalized to dense attention at 1.000.
LoRA Adaptation Ablation
Without LoRA adaptation, NIAH scores range from 0.02 to 0.09 across the sparse methods and configurations tested in this study. These unadapted runs provide the reference for measuring the effect of LoRA adaptation on retrieval.
Mask Construction and Caching
For the block-level language configuration, the block mask is constructed once per configuration and cached for reuse. Mask construction takes 3.4 ms at a context length of 16K. This is a one-time mask-construction cost; repeated calls with the same cached configuration reuse the mask.
Attention Timing Comparison with MoBA and NSA
Table 17 compares INTRA, MoBA (Lu et al., 2025a), and NSA (Yuan et al., 2025) on one A100-SXM4-80GB, measured sequentially with LLaMA-3.1-8B attention shapes: 32 query heads, eight key/value heads (GQA-4), head dimension 128, bfloat16, batch size one, and causal prefill. We time attention only, taking the median of 50 repetitions for each layer. Panel (a) sums these medians across 32 layers; panel (b) reports single-layer latency. For method and reference , speedup is .
Configurations and density. The fixed g2s4 schedule uses four Scatter layers with and 28 sliding-window layers with width 576. Its window contribution to overall retained density varies with context length. The separate single-layer comparison uses Scatter with and a target retained density of 0.125. MoBA uses the official implementation, selecting two of 16 blocks (density 0.125), with the fastest tested chunk setting at each length. NSA’s paper setting is ; its measured densities at 4K, 16K, and 64K are 0.578, 0.220, and 0.104, respectively. For density-constrained NSA, we sweep 18 combinations of , binary-search the largest satisfying density , and select the fastest configuration. The selected tuples are at 4K, at 16K, and at 64K.
Reading the comparison. We label density-constrained NSA as (tuned, ), where denotes retained attention density. The 0.125 cap constrains connectivity; the speedup columns report . For example, at 16K, corresponds to an 89.5% reduction in the measured attention time. Table 4b brings the 32-layer comparison into the main text; Table 17 additionally reports NSA’s paper configuration and the separate single-layer experiment.
| Context | Dense (SDPA) | INTRA () | MoBA | NSA (tuned) |
| 4K | 27.4 | 11.3 | 95.2 | 117.7 |
| 16K | 381.0 | 59.7 | 349.7 | 569.5 |
| 64K | 6043.3 | 577.2 | 2073.0 | 4235.6 |
Table 4b.
Table 17: Causal prefill attention latency (ms) on A100-SXM4-80GB. (a) Sum of 32 per-layer medians for the fixed INTRA g2s4 schedule and baselines. (b) Single-layer comparison with target density 0.125. NSA (tuned) is the fastest tested setting satisfying ; NSA (paper) uses its paper hyperparameters. INTRA speedup over a baseline is .
| (a) 32-layer attention totals; lower latency is better. | |||||||
| Context | Dense (SDPA) | INTRA (g2s4) | MoBA | NSA (paper) | NSA (tuned) | INTRA speedup over MoBA | INTRA speedup over NSA (tuned) |
| 4K | 27.4 | 11.3 | 95.2 | 238.8 | 117.7 | 8.4× | 10.4× |
| 16K | 381.0 | 59.7 | 349.7 | 936.3 | 569.5 | 5.9× | 9.5× |
| 64K | 6043.3 | 577.2 | 2073.0 | 4390.6 | 4235.6 | 3.6× | 7.3× |
| (b) Single-layer latency with Scatter . | |||||||
| Context | Dense | INTRA | Scatter | MoBA | NSA (tuned) | INTRA speedup over NSA (tuned) | |
| 4K | 0.856 | 0.223 | 2.976 | 3.677 | 16.5× | ||
| 16K | 11.906 | 1.955 | 10.927 | 17.797 | 9.1× | ||
| 64K | 188.852 | 28.541 | 64.782 | 132.363 | 4.6× |
Table 17.
Comparison. INTRA has the lowest attention latency in every reported setting. Across 4K–64K, the fixed g2s4 schedule is 3.6–8.4 faster than MoBA and 7.3–10.4 faster than density-constrained NSA, reaching 10.47 the dense attention speed at 64K. The single-layer comparison further isolates the Scatter kernel: at target density 0.125, it is 3.84, 6.09, and 6.62 faster than dense attention at 4K, 16K, and 64K, and 4.6–16.5 faster than density-constrained NSA. The advantage thus persists both for a sparse-layer/window schedule and for a single global sparse layer. INTRA’s static indexing avoids input-dependent selection and routing, providing an efficient execution path for the evaluated workloads. These timing measurements complement the separate matched-adaptation retrieval comparison in Table 4.
Video Generation Results
Table 18 reports all 13 evaluated VBench dimensions at 480 832 with 49 frames, covering temporal consistency, perceptual quality, style, and object and spatial criteria. The summary in the main text is the unweighted arithmetic mean of these 13 per-dimension scores. We report both dense and INTRA scores together with their absolute differences.
Table 18: All 13 evaluated VBench ((Huang et al., 2024)) dimensions on Wan2.2-TI2V-5B ((Team Wan et al., 2025; Team Wan, 2025)), using 944 prompts and five samples per prompt. Higher scores are better; the final column reports absolute dense–INTRA differences.
| VBench dimension | Dense | INTRA | Absolute difference |
| Subject consistency | 0.9427 | 0.9405 | 0.0022 |
| Background consistency | 0.9587 | 0.9551 | 0.0036 |
| Aesthetic quality | 0.5362 | 0.5168 | 0.0194 |
| Imaging quality | 0.6036 | 0.5472 | 0.0564 |
| Temporal flickering | 0.9886 | 0.9874 | 0.0012 |
| Motion smoothness | 0.9664 | 0.9689 | 0.0025 |
| Dynamic degree | 0.4583 | 0.4667 | 0.0084 |
| Overall consistency | 0.2435 | 0.2400 | 0.0035 |
| Appearance style | 0.2277 | 0.2222 | 0.0055 |
| Temporal style | 0.2427 | 0.2356 | 0.0071 |
| Object class | 0.0000 | 0.0000 | 0.0000 |
| Multiple objects | 0.0000 | 0.0000 | 0.0000 |
| Spatial relationship | 0.0000 | 0.0000 | 0.0000 |
Table 18.
Video latency and attention scaling. Table 19 measures Wan2.2-TI2V-5B on A100-SXM4-80GB at three sequence lengths. End-to-end timing includes text encoding, 50 denoising steps with two classifier-free-guidance evaluations per step (100 DiT forwards), and VAE decoding. Standalone forward timing uses batch size one and all 30 DiT blocks; self-attention timing sums the 30 self-attention layers. Pipeline DiT totals and standalone forward times come from separate measurements.
At 5,070 tokens, self-attention accounts for 12% of dense forward time; accelerating it by yields a end-to-end speedup. At 27,280 tokens, attention’s share rises to 44%, and its speedup translates into faster standalone DiT execution and faster generation, saving 102.5 seconds per video. At 53,680 tokens, attention occupies 60% of dense forward time: INTRA reduces self-attention from 5528 to 1129 ms and the complete forward from 9143 to 4855 ms. The increasing attention share explains why structured sparsity gives larger overall gains as video sequence length grows.
Qualitative Results
Figure 6 provides an overview; Figures 7 and 8 provide additional visual comparisons between the original FLUX.1-dev model, INTRA, and CLEAR.

Figure 6. FLUX.1-dev outputs: original FlashAttention 2, INTRA, and CLEAR (left to right).

Figure 7. Visual examples comparing original FLUX.1-dev, INTRA, and CLEAR.

Figure 8. Additional visual examples with the same column order as Figure 7: original FLUX.1-dev, INTRA, and CLEAR within each triplet.
References
- [1]Iz Beltagy, Matthew E. Peters, and Arman Cohan. Longformer: The long-document transformer. arXiv preprint 2004.05150, 2020.arxiv.org/abs/2004.05150
- [2]Black Forest Labs. FLUX.1 [dev]. Model card, 2024. URL https://huggingface.co/black-forest-labs/FLUX.1-dev.
- [3]Daniel Bolya, Cheng-Yang Fu, Xiaoliang Dai, Peizhao Zhang, Christoph Feichtenhofer, and Judy Hoffman. Token Merging: Your ViT But Faster. In International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=JroZRaRw7Eu.arxiv.org/abs/2210.09461
- [4]Mingda Chen, Zewei Chu, Sam Wiseman, and Kevin Gimpel. SummScreen: A dataset for abstractive screenplay summarization. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 8602–8615, 2022. doi: 10.18653/v1/2022.acl-long.589. URL https://aclanthology.org/2022.acl-long.589/.DOI
- [5]Rewon Child, Scott Gray, Alec Radford, and Ilya Sutskever. Generating Long Sequences with Sparse Transformers. arXiv preprint arXiv:1904.10509, 2019. URL https://arxiv.org/abs/1904.10509.
- [6]Tri Dao. FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning. In International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=mZn2Xyh9Ec.arxiv.org/abs/2307.08691
- [7]Pradeep Dasigi, Kyle Lo, Iz Beltagy, Arman Cohan, Noah A. Smith, and Matt Gardner. A dataset of information-seeking questions and answers anchored in research papers. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pp. 4599–4610, 2021. doi: 10.18653/v1/2021.naacl-main.365. URL https://aclanthology.org/2021.naacl-main.365/.DOI
- [8]Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, et al. The Llama 3 Herd of Models. arXiv preprint arXiv:2407.21783, 2024. URL https://arxiv.org/abs/2407.21783v1.
- [9]Ali Hassani, Steven Walton, Jiachen Li, Shen Li, and Humphrey Shi. Neighborhood attention transformer. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2023.arxiv.org/abs/2204.07143
- [10]Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. GANs Trained by a Two Time-Scale Update Rule Converge to a Local Nash Equilibrium. arXiv preprint arXiv:1706.08500, 2017. URL https://arxiv.org/abs/1706.08500.
- [11]Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network, 2015. URL https://arxiv.org/abs/1503.02531.
- [13]Luyang Huang, Shuyang Cao, Nikolaos Parulian, Heng Ji, and Lu Wang. Efficient attentions for long document summarization. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pp. 1419–1436, Online, June 2021. Association for Computational Linguistics. doi: 10.18653/v1/2021.naacl-main.112. URL https://aclanthology.org/2021.naacl-main.112.DOI