RubiConv - Efficient Boundary-Respecting Convolutions
Linda Friso, Annie Marsden, Xinyi Chen, Arushi Gupta, Peter Bartlett, Mark Braverman, Elad Hazan
NeurIPS 2026
Abstract. Convolutional architectures have emerged as powerful alternatives to Transformers for sequence modeling. The primary advantage is that they offer improved theoretical sequence length complexity by leveraging the Fast Fourier Transform (FFT). However, this theoretical improvement does not always meaningfully land in practice. One critical obstacle is that applying standard FFTs is not amenable to the large-scale training pipeline wherein data is packed from different sources into a single sequence for hardware efficiency. Indeed, standard FFT algorithms are not easily amenable to document packing. Existing workarounds suffer from severe inefficiencies, crippling the practical performance of convolutional architectures. We close this gap with RubiConv, a novel algorithm for performing hardware-efficient, boundary-respecting convolutions on packed sequences. Extensive experiments show that RubiConv achieves significant speedups over both attention and standard FFT-based baselines. This work makes the theoretical efficiency of long convolutional models a practical reality for large-scale, real-world data packing.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 2 reviews · OpenReview
Updated 25 Nov 2026, 03:47 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This work adapts Bailey's 4-step FFT so convolutions over packed documents respect boundaries, replacing the second DFT with a block-diagonal operator carrying one block per document. Boundary preservation holds by construction at , with correctness and complexity proved. The paper received only 2 reviews, both rated 4, at confidence 2 and 3: While reviewer ACNz cites strong hardware validation against attention, reviewer qUsM calls the same claim overstated in the abstract, holding only at model dimension 1. Section 4.1.2 concedes the advantage disappears at (and the AC sides with qUsM). Reviewers ACNz and qUsM converge independently on the absence of any end-to-end result, and on padding overhead never being quantified. The AC adds one both missed: RubiConv is never placed inside a trained model. Section 4.1 benchmarks runtime without training; Section 4.2 compares a masked kernel against an unmasked one, establishing that boundaries matter — never in dispute — rather than testing the algorithm. Other raised weaknesses: Learning experiments at 2 layers, batch size 4, single TPU v2 No principled rule for choosing block size Loss computed only at the answer position Neither reviewer nor the AC found an error in the algorithm or its proofs, and every weakness concerns scope rather than correctness. The AC leans accept on that basis, but the base is thin — two low-confidence reviews, no rebuttal, a resolved desk rejection — and would not object to being overruled.
Read meta-review
Meta-review
This work adapts Bailey's 4-step FFT so convolutions over packed documents respect boundaries, replacing the second DFT with a block-diagonal operator carrying one block per document. Boundary preservation holds by construction at , with correctness and complexity proved. The paper received only 2 reviews, both rated 4, at confidence 2 and 3: While reviewer ACNz cites strong hardware validation against attention, reviewer qUsM calls the same claim overstated in the abstract, holding only at model dimension 1. Section 4.1.2 concedes the advantage disappears at (and the AC sides with qUsM). Reviewers ACNz and qUsM converge independently on the absence of any end-to-end result, and on padding overhead never being quantified. The AC adds one both missed: RubiConv is never placed inside a trained model. Section 4.1 benchmarks runtime without training; Section 4.2 compares a masked kernel against an unmasked one, establishing that boundaries matter — never in dispute — rather than testing the algorithm. Other raised weaknesses: Learning experiments at 2 layers, batch size 4, single TPU v2 No principled rule for choosing block size Loss computed only at the answer position Neither reviewer nor the AC found an error in the algorithm or its proofs, and every weakness concerns scope rather than correctness. The AC leans accept on that basis, but the base is thin — two low-confidence reviews, no rebuttal, a resolved desk rejection — and would not object to being overruled.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
RubiConv adapts Bailey's matrix-decomposition FFT to perform boundary-respecting convolutions on packed sequences, replacing the second DFT with a block-diagonal operator (one block per document) so no information crosses document boundaries, all in a single GEMM-friendly pass at Θ(N3/2)\Theta(N^{3/2}) Θ(N3/2) complexity. Two alternative variants (O(NlogN)O(N\log N) O(NlogN) Cooley-Tukey, O(N2)O(N^2) O(N2) full-matrix) bound the design space. Experiments show speedups over iterative conv baselines and synthetic tasks confirm boundaries matter.
Strengths and weaknesses
pos:
-
Real, under-addressed problem: FFT convolutions lack a packing-aware solution that attention and SSMs already have.
-
block-diagonal second DFT guarantees boundary preservation by construction while staying as dense GEMMs.
3.complete correctness + complexity proofs, and openly admits RubiConv is asymptotically worse than O(NlogN) but wins on hardware.
- Clean ablation: attention crosses boundaries in both settings, so the accuracy gap is attributable solely to the convolution.
Neg:
a. The "beats attention" claim only holds at D=1; at the realistic D=1024 it is merely competitive, only at ~260k length. Overstated in the abstract.
b. No end-to-end result: learning experiments are a 2-layer toy model and only show boundary-mixing hurts.
Questions
-
What is the padded-to-real token ratio on your empirical distribution, vs. the uniform-padding baseline you criticize?
-
At practical dimensions (D≥1024), what is the crossover length vs. Splash Attention, and is RubiConv meant to replace attention or just cheapen conv layers in a hybrid?
-
Can you match per-document FFT final loss/accuracy and report end-to-end throughput on a realistic multi-layer model?
-
Is there a principled rule for choosing k, or is it always tuned per regime?
Limitations
See above
Final justification
See my comments in the rebuttal.
Formatting concerns
NA
3 comments
Results on language training
Following up on our previous response, we report language model training to address Weakness 2 and Question 3.
We trained decoder-only language models on FineWeb-Edu using packed sequences of length and the GPT-2 tokenizer (vocab size ). The overall architecture consists of alternating layers of boundary-masked multi-head self-attention (with RoPE) and 1D causal convolution, each paired with a SwiGLU feed-forward network.
Specifically, we trained the following 2 models:
- $\sim$150M Parameter Model: Configured with 6 layers, model dimension , 12 attention heads, convolution size , and SwiGLU dimension . It was trained on 2B tokens via data parallelism on 16 TPUv7x devices.
- $\sim$450M Parameter Model: Configured with 12 layers, model dimension , 16 attention heads, convolution size , and SwiGLU dimension . It was trained on 7B tokens via data parallelism on 16 TPUv7x devices.
For each of the 2 sizes, we ablate the convolutional sub-layer by training a variant with RubiConv and another variant with non-boundary respecting convolution (implemented via jnp.fft convolution).
Results are reported in the table below. Across both model scales, RubiConv achieves superior evaluation loss compared to the Non-Boundary baseline (e.g., vs. at 450M), trading a modest drop in throughput for enhanced modeling performance.
We're happy to include these experiments into the camera ready version.
thx for the rebuttal. my concerns have been solved. both two reviewers and ac lean to accept this one. i maintain my positive score.
- Rating
- 4/6
- Confidence
- 2/5
- Quality
- 4/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 4/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper introduces RubiConv, a novel algorithm designed to perform boundary-respecting convolutions on packed sequences. While Fast Fourier Transform (FFT) convolutions offer an asymptotically favorable complexity, they introduce "wrap-around" artifacts when applied to packed sequences (multiple variable-length documents concatenated together), corrupting the data boundaries. To solve this, RubiConv adapts Bailey's 4-step FFT algorithm into a block-diagonal matrix formulation. Instead of iterating through documents, it reshapes the sequence into a matrix, applies a first DFT, multiplies by a hybrid twiddle matrix, and applies a second block-diagonal DFT matrix tailored to the lengths of the packed documents. Although its theoretical complexity is , RubiConv is highly optimized for the dense General Matrix Multiply (GEMM) operations favored by modern hardware accelerators (GPUs and TPUs), bridging the gap between the theoretical efficiency of long convolutions and the practical reality of data packing pipelines.
Strengths and weaknesses
Strengths:
- High Practical Relevance: The paper addresses a highly critical systems-level bottleneck in training large sequence models. Data packing is essential for hardware utilization, and making long convolutions compatible with this format is a significant contribution.
- Hardware-Aware Algorithm Design: The authors make a compelling case for trading theoretical asymptotic efficiency for hardware utilization. By demonstrating that the mathematically optimal Cooley-Tukey approach is memory-bound and hostile to modern accelerator hierarchies, they perfectly justify their GEMM-based approach.
- Strong Empirical Hardware Validation: The runtime experiments clearly show RubiConv outperforming iterative convolution baselines. Furthermore, showing that it can surpass highly optimized Splash Attention at extreme sequence lengths (e.g., beyond for a dimension of 1) proves its viability at scale.
Weaknesses:
- End-to-End Evaluation: The quality and accuracy evaluations are restricted to synthetic tasks like Noisy Recall and Associative Retrieval. While these cleanly isolate the boundary-mixing issue, demonstrating the algorithm's performance on real-world language modeling (e.g., perplexity on a standard corpus) would significantly strengthen the paper's impact.
- Padding Overhead: RubiConv still requires appending zeros and padding documents to a multiple of a chosen block size (e.g., ). The authors could provide more analysis on the memory overhead this padding introduces across highly skewed real-world document length distributions.
- Scaling Limitations with High Dimensions: The hardware benchmarking shows that when the model dimension is scaled to 1024, RubiConv's speed advantage over Splash Attention diminishes until sequence lengths reach extreme bounds (around 260k). A deeper discussion on how this impacts typical LLM training regimes would be beneficial.
Questions
-
How does the padding requirement (rounding up to a multiple of ) impact the overall memory footprint during training when faced with a dataset containing a large number of very short documents?
-
In the hybrid architecture evaluation, the cross-entropy loss was only computed at the answer position. Would training dynamics differ if loss were computed over all tokens in a standard autoregressive language modeling setup?
-
Are there specific XLA compiler limitations that currently bottleneck the intermediate reshaping steps, and could future compiler updates improve the constant factors of the execution time?
Limitations
yes
Formatting concerns
No
2 comments
Rebuttal
We thank the reviewer for their comments. We include responses below:
Weakness 1) Thank you for bringing this up. We're currently working on training on language tasks and we will post the results once ready.
Weakness 2) and Question 1) We evaluate documents padding overhead using document lengths sampled from the FineWeb-Edu dataset (10B token subset) considering different subsets based on document lengths to evaluate impact on highly skewed data. We sample data from 4 scenarios: a) short documents only, each of them with tokens b) documents with lengths between and tokens, c) only documents with length tokens and d) the entire FineWeb-Edu 10B tokens subset.
For each data subset, we simulate 1,000 batches (, ) and we compare RubiConv padding against the standard baseline, which pads each document to the next power of two of (\text{doc_length} + F - 1) to enable iterative standard FFTs. For all evaluations, we set the filter length equal to the sequence length.
As shown in the table below, for short documents (), RubiConv with yields an overhead () comparable to the baseline (). If a dataset is heavily skewed toward short texts, simply selecting significantly reduces this waste to . Furthermore, standard LLM data packing mixes document lengths, ensuring short texts represent a minor overall token footprint. As document length grows, RubiConv’s overhead () drops to for medium () and for long () documents, whereas the power-of-two baseline remains bloated at across both regimes. Across the full FineWeb-Edu distribution, RubiConv () restricts mean sequence waste to compared to for the baseline, proving it effectively bounds memory overhead on real-world data. As for the memory footprint during training, we will report the result once we train on language tasks.
Weakness 3) We thank the reviewer for this discussion regarding practical LLM training regimes. While attention layers remain highly efficient at shorter sequence lengths, modern LLM pretraining and post-training workloads are increasingly pushing toward ultra-long context windows ( to tokens). In these ultra-long regimes (), the quadratic memory growth and compute overhead of attention become dominant training bottlenecks, making sub-quadratic mechanisms like RubiConv essential.
To understand the scaling behaviour for a wider set of practical model dimensions , we now extended sequence length scaling for . Results show that the crossover of RubiConv vs Splash Attention is at ( tokens) as well. We will add these experiments to the revised paper.
Question 2) We will update training results on language once we'll get the results. In the meantime, we replicated synthetic tasks training for Noisy Recall and Associative Retrieval with the same model configuration and tasks specifications as in Section 4.2 of the main paper but computing the cross-entropy loss over all tokens and training over steps. On Noisy Recall, answer accuracy when respecting the boundaries reaches at step while not respecting boundaries still yields an answer accuracy of at step . On Associative Retrieval, respecting boundaries reaches accuracy of at step while not respecting boundaries answer accuracy remains between and throughout the run and the final answer accuracy at step is .
Question 3) Yes, the primary compiler bottleneck is XLA’s inability to inline non-contiguous layout transformations across GEMM execution boundaries, specifically the pre-IFFT 2D gather step ( in Alg. 3 & 4). XLA breaks fusion at this step, forcing intermediate tensor materialization in high-bandwidth global memory (HBM) and incurring an extra memory-bandwidth round-trip between the forward and inverse transforms. Future compiler updates could substantially improve these constant factors.
Results on language training
Following up on our earlier reply, we report some results that can help answer Weakness 1, Weakness 2 (for the memory concern) and Question 2.
We trained decoder-only language models on FineWeb-Edu using packed sequences of length and the GPT-2 tokenizer (vocab size ). The overall architecture consists of alternating layers of boundary-masked multi-head self-attention (with RoPE) and 1D causal convolution, each paired with a SwiGLU feed-forward network.
Specifically, we trained the following 2 models:
- $\sim$150M Parameter Model: Configured with 6 layers, model dimension , 12 attention heads, convolution size , and SwiGLU dimension . It was trained on 2B tokens via data parallelism on 16 TPUv7x devices.
- $\sim$450M Parameter Model: Configured with 12 layers, model dimension , 16 attention heads, convolution size , and SwiGLU dimension . It was trained on 7B tokens via data parallelism on 16 TPUv7x devices.
For each of the 2 sizes, we ablate the convolutional sub-layer by training a variant with RubiConv and another variant with non-boundary respecting convolution (implemented via jnp.fft convolution).
Results are reported in the table below: with respect to eval loss on a held out set from FineWebEdu, RubiConv is negligibly better than non boundary respecting convolution, while simultaneously lowering both peak and persistent memory requirements across both 150M model and 450M model.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
We thank the reviewer for their thoughtful comments! Please find our responses below.
Weakness 1) We thank the reviewer for this observation and agree that at realistic model dimensions (D=1024), RubiConv is competitive with Splash Attention rather than strictly faster until reaching very long context lengths (~260k). We will modify this statement in the revised manuscript.
To clarify the scope of our contribution, the primary focus of our work is introducing RubiConv to solve document boundary corruption in packed sequences, where it achieves substantial speedups over existing packed convolution baselines. We included Splash Attention as a gold-standard baseline to demonstrate the hardware feasibility and practical throughput of our approach on modern accelerators, and we will update the abstract and introduction to precisely clarify that RubiConv outperforms packed convolution baselines while remaining hardware-competitive with attention at scale.
Weakness 2) Thanks for bringing this to our attention. We are currently working on training a multi-layer model on language and we will report the results as soon as they're available.
Question 1) We evaluate documents padding overhead using document lengths sampled from the FineWeb-Edu dataset (10B token subset). Across 1,000 simulated batches (batch size=64, sequence length=8192), we compare RubiConv padding (k∈128,256,512) against the standard baseline, which pads each document to the next power of two of (\text{doc_length} + F - 1) to enable iterative standard FFTs. For both setup evaluations, we set the filter length F equal to the sequence length.
As shown in the table below, the power-of-two baseline expands effective sequence lengths to an average of 185.90 of unpadded length (and up to 197.75). In contrast, RubiConv bounds this overhead across all choices of the k: even when k=512, maximum waste is capped at 135.09.
Question 2) RubiConv is designed to cheapen convolutional layers within hybrid models rather than replace attention entirely. By enabling efficient, boundary-respecting convolutions on packed sequences, RubiConv makes long convolutions practical for LLM training and enables further research into hybrid architecture performance.
We included Splash Attention solely as a benchmark to establish hardware feasibility against a gold-standard attention implementation. At practical dimensions (D=1024, Fig. 2b), RubiConv reaches runtime parity with Splash Attention around L≈218 (≈260k tokens). We now extended this evaluation for D∈1536,2048,2560 and the crossover of RubiConv vs Splash Attention is at L≈218 as well. We will reference these experiments in the revised manuscript. This demonstrates that RubiConv is feasible in practice for very long sequences and more practical dimensions, though our evaluation remains focused on comparing against other convolutional baselines.
Question 3) In a packed sequence of documents, we are able to match the RubiConv convolution with concatenated, per-document FFT-based convolutions. On 100 simulated sequences of packed documents of length 8192 with document lengths sampled with the same methodology as in Section 4.1, the mean absolute error is 5.3915⋅10−06 and the mean relative error is 5.5923⋅10−06. Moreover, in the Appendix A2 of the paper we also report the proof of correctness for RubiConv. We will report throughput on a multi-layer model once we get the results from training on language.
Question 4) The choice of k is derived combining theoretical complexity and hardware tile alignment: