potentialpaper

RelFlexformer: Efficient Attention Transformers for Integrable Relative Positional Encodings

Byeongchan Kim, Arijit Sehanobish, Kumar Avinava Dubey, Min-hwan Oh, Krzysztof Marcin Choromanski

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. We present a new positional encoding that is compatible with linear attention and improves performance.

Abstract. We present a new class of efficient attention mechanisms applying universal 3D Relative Positional Encoding (RPE) methods given by arbitrary integrable modulation functions ff. They lead to the new class of 3D-Transformer models, called RelFlexformers, flexibly integrating those RPEs, and characterized by the O(Llog⁡L)O(L \log L) time complexity of the attention computation for the LL-length input sequences. RelFlexformers builds on the theory of the Non-Uniform Fourier Transform (NU-FFT), naturally generalizing several existing efficient RPE-attention methods from structured settings with tokens homogeneously embedded in unweighted grids into general non-structured heterogeneous scenarios, where tokens' positions are arbitrarily distributed in the corresponding 3D spaces. As such, RelFlexformers can be applied in particular to model point clouds. Our extensive empirical evaluation on a large portfolio of 3D datasets confirms quality improvements provided by the NU-FFT-driven attention modulation techniques in the RelFlexformers.

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 paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
1 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:43 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

This paper introduces a method for improving the computational efficiency of the Transformer attention mechanism using relative positional encoding. Experimental results show that the proposed method improves computational efficiency while achieving comparable accuracy.

The paper received three preliminary ratings: one Accept and two Borderline Rejects. While the reviewers agree that the work addresses an important problem in Transformers and that the proposed method is technically sound, they raise several significant concerns. These include limited technical novelty compared with existing methods, applicability primarily to 3D data, and only marginal performance improvements.

The authors provide a thoughtful and extensive rebuttal, including additional experimental results. The rebuttal effectively addresses the reviewers’ main concerns, including the method’s limitation to 3D point-cloud data, its limited technical contribution, and its marginal performance gains. As a result, the paper’s final ratings improved to one Accept and two Borderline Accepts.

Final justification

See above

Area Chair EDxa · Meta-reviewOpenReview ↗
Final justification
See above
Read meta-review
Meta-review

This paper introduces a method for improving the computational efficiency of the Transformer attention mechanism using relative positional encoding. Experimental results show that the proposed method improves computational efficiency while achieving comparable accuracy.

The paper received three preliminary ratings: one Accept and two Borderline Rejects. While the reviewers agree that the work addresses an important problem in Transformers and that the proposed method is technically sound, they raise several significant concerns. These include limited technical novelty compared with existing methods, applicability primarily to 3D data, and only marginal performance improvements.

The authors provide a thoughtful and extensive rebuttal, including additional experimental results. The rebuttal effectively addresses the reviewers’ main concerns, including the method’s limitation to 3D point-cloud data, its limited technical contribution, and its marginal performance gains. As a result, the paper’s final ratings improved to one Accept and two Borderline Accepts.

1 comment
Authors · CommentOpenReview ↗

Response addressing concerns about technical novelty, marginal performance improvements and applicability beyond 3D.

We thank the AC for their thoughtful meta-reviews. The meta-review raises three concerns : technical novelty, applicability to 3D, and effect size. We address each here; per-reviewer responses give full detail.

1. Technical novelty vs. existing methods. The masked-linear-attention engine (reducing masked attention to a fast matrix–vector product) is prior work, and we cite it as such. Our contribution is the mask itself: a construction that (i) is never materialized, (ii) admits an O(Llog⁡L)O(L \log L) matvec, and (iii) works on arbitrary non-equispaced coordinates. No existing method provides this. Toeplitz/FFT masks [1] require an equispaced grid and are inapplicable to point clouds by construction. Tree-based masks [2] handle irregular data only by building a graph + spanning tree that must be rebuilt every training step and runs on CPU (~850× slower per step in our measurement). Our NU-FFT operator needs neither, runs entirely on GPU, and provably recovers RoPE and STRING as exact special cases, it unifies existing encodings rather than re-applying one. (Detail: response to C6aq.)

2. "Applicability limited to 3D." The operator is domain-general: it needs only tokens with positions in a metric space and an L¹-integrable f. The only modality-specific component is the lift into that space, which is inherited from the backbone; the NU-FFT/RPE machinery is unchanged across modalities. We already apply the identical operator to two distinct modalities : (1) irregular point clouds and (2) dense RGB-D imagery (2D pixels lifted by depth), whereas prior methods specialize to one (PCT/PTv3 to point clouds; DFormer/AsymFormer to RGB-D). We further prove that RoPE and STRING (1D/2D grid encodings from language and vision) are exact special cases, so the framework demonstrably subsumes structured and sequential settings. We evaluate on 3D because that is where non-equispaced geometry makes the NU-FFT necessary and was beyond the scope of previous methods. (This point was raised by Reviewer uyMk, who recommended acceptance; detail there.)

3. "Marginal performance improvements." We respectfully push back on the framing:

Scale. Recent SOTA gains for 3D modeling papers published at top conferences are routinely fractions of a point: Pamba (AAAI'25) beats PTv3 by 0.1 on ScanNet/S3DIS, ties it on nuScenes; DFormer vs. AsymFormer differ by 0.3 on NYU Depth v2. RelFlexformer improves the Performer baseline by 2.0–8.3 points (ScanNet, ScanNet200, nuScenes, S3DIS) and 0.9–2.5 points (NYU Depth v2, SUN RGB-D) — well outside the 3-seed error bars we added per request of reviewer bSp7 (e.g. nuScenes 72.5±0.4→80.3±0.3). Moreover most new research papers report single seed results due to sheer compute resources required for these datasets (some segmentation datasets require up to 40 hours on a H100).

Scalability. The contribution isn't just the performance improvements, it's also the time complexity of our algorithm. Dense attention is O(L2)O(L^{2}); RelFlexformer is O(Llog⁡L)O(L \log L), and it closes most of the gap to dense accuracy while doing so. Matching dense-attention quality is precisely what efficient-attention methods struggle to do; they typically trade several points of accuracy for the complexity win (Tables 1, 2, 3, 4). RelFlexformer gets both, as a drop-in across point-cloud (PCT, PTv3) and RGB-D (DFormer) backbones.

References

[1] From block-toeplitz matrices to differential equations on graphs: towards a general theory for scalable masked transformers. Chromanski et al. ICML 2022

[2] Fast tree-field integrators: From low displacement rank to topological transformers. Choromanski et al. NeurIps 2024

Reviewer bSp7OpenReview ↗
Rating
4/6
Confidence
1/5
Quality
2/4
Clarity
2/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes RelFlexformer, an attention mechanism applying relative position encoding to linear attention/performer. The author provide comprehensive empirical evaluation on several tasks such as object classification and semantic segmentation and the results show that the model perform slightly better than performer.

Strengths and weaknesses

Strength:

  1. Improve the efficiency of transformer is an important problem.
  2. The paper provide comprehensive empirical evaluation.

Weakness:

  1. The paper's checklist states that “We report standard deviation for experiments to provide a measure of statistical” but I cannot find any error bar/confidence interval/mean ±std\pm std in the table. Several reported gains are relatively small.
  2. The paper does not provide open-source implementation, nor does the exact reproduction pipeline provided(e.g. random seeds)
  3. The discussion on FT/IFT seems to be redundant. That preliminary is useful but it is more or less text-book level. Meanwhile, a discussion on the background like transformer/performer is missing.
  4. The paper somewhat overclaim the advantages. For example, Page 2 line 57: "surpasses standard O(L2)Transformers on various datasets". In most of the experiment, RelFlexformer underperform Transformers. I would say the gap is narrowed down, not outperform.
Questions

I am a bit unsure why this paper chooses the primary area on Probabilistic methods (e.g., variational inference, causal inference, Gaussian processes, sampling). It is totally irrelevant.

I would also suggest the author to:

  1. Replace discussion on FFT/IFT with discussion on transformer/performer so the main difference from previous construction can be clearer.
  2. Include more visualization/qualitative results instead of just providing numerical results. E.g. segmentation map. This would make it easier for people to understand the mechanism of the proposed model.
  3. Include standard deviation for all the experiments. Some reported gains are relatively small, and it would be easier for people to determine whether the empirical gain is significant by including error bar/ mean ±\pm std.
  4. Include clock time comparison between Performer/transformer/RelFlexformer in Table 4.
Limitations

The paper only has discussion in the appendix with very few sentences.

I would suggest the author to (1) include the limitation discussion in the main text (2) discuss more on the limitation such as additional cost over performer, and certain scenario where the proposed model could be disadvantaged over transformer/performer.

Final justification

I greatly appreciate the authors’ thoughtful rebuttal and additional results, which have strengthened the paper and addressed several of my concerns; accordingly, I have raised my score from 3 to 4. I still encourage the authors to carefully verify the reported results and broader claims, particularly to avoid any unintended inaccuracies that may arise from LLM-assisted writing.

Formatting concerns

N/A

5 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for their review. We address the concerns below.

Error bars

We have run additional seeds based on the reviewer comments. Our error bars (below) also help to show that our gains are meaningful.

PCT for Object Classification (OA %, 3 seeds, 1024 pts):

Method ModelNet40 ScanObjectNN
Performer (no RPE) 92.29 ± 0.09 83.13 ± 0.07
RelFlexformer (ours) 92.81 ± 0.13 84.27 ± 0.18

DFormer for RGB-D (mIoU %, 3 seeds):

Method NYU Depth v2 SUN RGB-D
Performer (no RPE) 54.20 ± 0.19 48.03 ± 0.05
RelFlexformer (ours) 55.14 ± 0.43 50.91 ± 0.34

PTv3 for Semantic Segmentation (mIoU %, 3 seeds):

Method ScanNet200 ScanNet++ S3DIS Area 5 nuScenes
Performer (no RPE) 27.69 ± 0.12 48.13 ± 0.37 69.10 ± 0.63 72.48 ± 0.35
RelFlexformer (ours) 34.35 ± 0.41 49.25 ± 0.51 71.35 ± 0.32 80.28 ± 0.26

Overclaim: "surpasses standard O(L2)O(L^{2}) Transformers on various datasets."

We will state this precisely. Our method closes most of the linear-vs-dense gap and surpasses the dense Transformer on several benchmarks like ScanObjectNN (84.5 vs 84.0), ScanNet++ (48.7/48.8 vs 48.2), nuScenes with PointRoPE (81.2 vs 80.4), S3DIS Area 3 — while trailing slightly on others (ScanNet, ModelNet40, NYU, SUN). We remove the unqualified "on various datasets."

On magnitude/size of the gains.

On these widely used 3D benchmarks, the live SOTA race plays out in fractions of a point. Recent consecutive accepted methods (incl. orals/spotlights) are typically separated by only 0.2–1.0 points, and often by just a few tenths. Across PCT, PTv3, and DFormer, RelFlexformer consistently improves Performer attention and substantially narrows the gap to dense attention. Specifically, it improves Performer by 2.0, 5.8, 8.3, and 1.3 points on ScanNet, ScanNet200, nuScenes, and S3DIS Area 5, respectively, and by 0.9 and 2.5 points on NYU Depth v2 and SUN RGB-D.

To contextualize these gains, recent methods often differ by only fractions of a point and do not improve monotonically over time. Pamba [3] exceeds PTv3 by just 0.1 points on ScanNet and S3DIS Area 5 while matching it on nuScenes, and DFormer and AsymFormer differ by only 0.3 points on NYU Depth v2, with AsymFormer performing worse on SUN RGB-D. Against this scale, RelFlexformer’s 0.9-8.3 point improvements over Performer are clearly substantial. It recovers most of the dense-attention accuracy while preserving sub-quadratic complexity. See Tables 1–4 for controlled comparisons and Appendix Tables 13–19 for broader context and the tables below.

Semantic Segmentation

Architecture Method Venue ScanNet Val ScanNet200 Val nuScenes Val S3DIS Area 5
Transformer PTv2 NeurIPS 2022 75.4 30.2 80.2 71.6
Transformer StratifiedFormer CVPR 2022 74.3 – – 72.0
Transformer OctFormer SIGGRAPH 2023 75.7 32.6 – –
Transformer PTv3 CVPR 2024 77.5 35.2 80.4 73.4
Mamba Pamba AAAI 2025 77.6 36.3 80.4 73.5
Performer Performer (w/ PTv3) Baseline 74.8 28.2 72.0 69.8
Performer RelFlexformer (w/ PTv3) Ours 76.8 34.0 80.3 71.1

RGB-D datasets

Architecture Method Venue Backbone Params NYU Depth v2 SUN RGB-D
CNN PGDENet IEEE TMM 2023 ResNet-34 100.7M 53.7 51.0
Transformer CMX IEEE T-ITS 2023 MiT-B2 66.6M 54.4 49.7
Transformer DFormer ICLR 2024 DFormer-Base 29.5M 55.6 51.2
Transformer AsymFormer CVPR 2024 MiT-B0 + ConvNeXt-Tiny 33.0M 55.3 49.1
Transformer OmniSegmentor NeurIPS 2025 ResNet-101 44.0M 54.1 51.7
Performer Performer (w/ DFormer) Baseline DFormer-Base 29.5M 54.4 48.5
Performer RelFlexformer (w/ DFormer) Ours DFormer-Base 29.5M 55.3 51.0

Against that scale, a linear-attention method that matches dense accuracy to within a few tenths and beats it on four benchmarks at up to 17 ×\times less training memory is a strong result, not a marginal one.

Moreover, we would like to point out that these runs are expensive. The SUN RGB-D experiments take more than 24 hours on an A100 while NYU v2 takes about 7 hours. The semantic segmentation experiments are similarly costly. Using the standard PTv3 backbone, a single training run takes approximately 24 – 40 hours on four H100 GPUs, depending on the dataset. The S3DIS 6-fold evaluation further requires six independent expensive training runs.

Given the nature of the runs, it has become customary to only report single seed runs for these tasks.

Time/memory results

We start by showing the results for PTv3, which is the largest model used in our experiments, containing 46.2M parameters measured on a single RTX PRO 6000 (96 GB).

PTv3 full encoder training step (peak memory / step time):

Patch K Softmax Performer (no RPE) RelFlexformer (ours)
1024 (PTv3 default) 75.0 GB / 713 ms 0.9 GB / 19 ms 4.4 GB / 52 ms
2048 OOM 1.1 GB / 19 ms 5.6 GB / 51 ms
4096 OOM 1.5 GB / 21 ms 8.4 GB / 75 ms

PTv3 inference (forward-only), latency / peak memory:

Patch K Softmax Performer (no RPE) RelFlexformer (ours)
1024 (PTv3 default) 91.2 ms / 32.0 GB 0.2 ms / 0.2 GB 8.4 ms / 1.1 GB
2048 173.8 ms / 63.9 GB 0.2 ms / 0.2 GB 8.3 ms / 1.1 GB
4096 OOM 0.2 ms / 0.2 GB 8.0 ms / 1.3 GB
16384 OOM 0.3 ms / 0.2 GB 8.2 ms / 1.6 GB

Inference shows the same enablement: softmax OOMs beyond K=2048 (63.9 GB at 2048).

Next we show the flops for PTv3 and Dformer.

Attention-core GFLOPs, N=65 536 points held fixed, patch size K varied (proj/FFN are identical across methods, so this isolates the attention operator):

Patch K Softmax Performer RelFlexformer (ours)
1024 (PTv3 default) 43.5 0.55 18.0
4096 174 0.55 18.0
16384 696 0.55 18.0

DFormer backbone — full global geometry attention (Nq=Nk=H·W), attention-core GFLOPs per stage:

Stage (H×W) Tokens Softmax Performer RelFlexformer (ours)
120×160 19,200 100.6 0.32 10.4
60×80 4,800 12.6 0.16 5.2
30×40 1,200 1.6 0.08 2.6

At DFormer's native stage-1 resolution (19 200 tokens), dense softmax is 100.6 G (and 94.6 GB memory — untrainable) vs. 10.4 G / 2.9 GB for ours (≈10× fewer FLOPs); this is exactly why DFormer uses a pooling to lower the number of queries, and our method removes that constraint.

Background on Transformers/Performers

We have discussed the Performer attention in Appendix B. But we will expand that discussion to explain masked transformers, the bottleneck in incorporating naive masking in Performers and how our method stands out from [1] and [2].

Segmentation maps

We will add them and attention visualizations to the appendix.

Open-source implementation

We provide all hyperparameters and implementation details needed to reproduce our experiments in Appendix B. We use the open source pointcept repo for the PTv3 experiments and the Dformer repo for the RGBD experiments. Any hyperparameters not mentioned in the appendix like seeds are exactly what is used as the default configs of these repos. The code for our method will be released with the camera-ready version.

Probabilistic method categorization

We chose probabilistic methods as we are using quadratures/Monte Carlo methods for approximating the integrals arising from non-uniform FFT. However, we do agree with the reviewer that other category choices might be more relevant to the paper.

Limitations (move to main text, discuss cost).

We will move limitations to the main text. Our method adds a small cost over Performers but always outperforms them. As is shown in Fig 1, the RelFlexformer does not outperform dense attention in terms of speed when the number of keys and queries are too small (it is faster to do naive matrix-vector multiplication in that case). Our advantage grows as the sequence length becomes larger.

References

[1] From block-toeplitz matrices to differential equations on graphs: towards a general theory for scalable masked transformers. Chromanski et al. ICML 2022

[2] Fast tree-field integrators: From low displacement rank to topological transformers. Choromanski et al. NeurIps 2024

[3] Li, Zhuoyuan, et al. "Pamba: enhancing global interaction in point clouds via state space model." AAAI 2025.

Authors · CommentOpenReview ↗

Dear Reviewer bSp7,

Thank you for your thoughtful review. As the rebuttal is underway, we gently want to follow up. In our rebuttal, we have conducted additional experiments to provide multi-seed results as requested and discussed the flops and memory requirements for Dformer and PTv3. We have also discussed in detail the key novelty of our method which is the construction of the mask M and why previous methods fail to generalize to 3D modeling (unstructured layouts of points or expensive processing of underlying graphs; detailed discussion in response to reviewer C6aq).

Please let us know if the rebuttal has answered your questions. If the Reviewer does not have any additional concerns or questions, we would sincerely ask for adjusting the score accordingly

Authors · CommentOpenReview ↗

comment on the rebuttal

Dear Reviewer bSp7,

We would like to once more sincerely ask for the feedback regarding the rebuttal. As discussed above, we do believe that we have thoroughly addressed all Reviewer's concerns (thank you very much for the insightful feedback). However if the Reviewer has any remaining questions, we would be very happy to provide additional explanation. We just want to make sure that we have enough time to provide any extra clarifications if needed, especially given the fact that the authors-reviewers discussion period will end soon. If the Reviewer does not have any additional concerns, we would like to sincerely ask the Reviewer to update the score accordingly.

Thank you very much !

Yours sincerely,

The Authors

Reviewer C6aqOpenReview ↗
Rating
4/6
Confidence
2/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes a Relative Positional Encoding (RPE) method applicable to Performer, a representative approach for reducing the computational cost of attention layers, particularly for data that cannot be naturally represented as one-dimensional sequences, such as 3D point clouds. In Performer, a straightforward way to incorporate RPE is to introduce a mask matrix (M=[f(ri−rj)]i,jM = [f(r_i - r_j)]_{i,j}). However, this approach requires O(L2)O(L^2) computation, where LL denotes the input length, thereby sacrificing the key advantage of Performer, namely its linear-time complexity of O(L)O(L). To address this issue, the authors observe that the operation of multiplying by the mask matrix MM can be efficiently implemented using the Non-Uniform Fast Fourier Transform (NU-FFT), and demonstrate that RPE can be incorporated with a computational complexity of O(Llog⁡L)O(L \log L).

The proposed method is evaluated on classification and segmentation tasks using 3D point cloud and RGB-D datasets. Experimental results show that, while Performer-based models often exhibit performance degradation compared to their standard attention counterparts, RelFlexformer, which incorporates the proposed RPE mechanism, achieves performance comparable to—and in some cases better than—that of the original attention-based models.

Strengths and weaknesses

Strengths

  • The paper proposes an efficient method for incorporating RPE into non-sequential data, such as point clouds, by leveraging the NU-FFT.
  • Experimental results demonstrate that the proposed method consistently improves the performance of Performer on both point cloud and RGB-D datasets.

Weaknesses

  • The idea of incorporating RPE via a mask matrix in Performer and accelerating the resulting computation using FFT-based techniques has been explored in prior work (e.g., [11], as acknowledged by the authors). While the extension to non-sequential data domains such as point clouds is interesting, the core technical ingredients appear to be largely based on existing ideas, which limits the degree of methodological novelty.
Questions

Questions

  • The experiments show that combining the proposed method with PointRoPE improves performance in several cases. However, when combined with PointRoPE, does the proposed method still retain its computational complexity advantage of O(Llog⁡L)O(L \log L)?
  • Does the Transformer baseline used in the experiments include RPE? If so, how is RPE handled in the corresponding Performer-based models? As currently presented, it is difficult to disentangle the effects of (i) the presence or absence of RPE and (ii) the approximation error introduced by Performer. Consequently, the source of the observed performance differences is somewhat unclear.

Comments

  • Lines 177--178: The text states, "We summarize it in the Algorithm 1 box below," but Algorithm 1 does not appear below this point.
  • The figures, particularly those containing scatter plots, would benefit from rasterization to improve readability and reduce file size.
  • I found the main takeaway of Figure 2 difficult to understand.
  • Table 1 is not referenced anywhere in the main text.
  • Since [11] and [13] appear to be the most closely related works, experimental comparisons with these methods would help clarify the empirical advantages of the proposed approach.

Typos

  • In Algorithm 1 and related descriptions, would rii=1L⊆Rd\\{r_i\\}_{i=1}^{L} \subseteq \mathbb{R}^{d} be more appropriate than rii=1L∈Rd\\{r_i\\}_{i=1}^{L} \in \mathbb{R}^{d}?
Limitations

See weaknesses above.

Final justification

The rebuttal clarified the main contribution of the paper, addressing my primary concern regarding novelty. However, I still feel that the experimental comparisons should better disentangle the effects of Performer approximation and RPE. Overall, I increase my recommendation from 3 to 4.

Formatting concerns

None

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the insightful feedback. We address the novelty concern, and the comments below.

Novelty and originality concerns

We agree with the Reviewer that Algorithm 2, the masked linear-attention (reducing masked attention to a fast matrix vector multiplication (matvec) with the mask M) is from [1], and we cite it as such. Our contribution is not this algorithm, but rather the construction of a mask MM that (i) is never materialized, (ii) admits an O(Llog⁡L)O(L \log L) matvec, and (iii) works on arbitrary non-equispaced 3D coordinates. Whether such an M even exists off a regular grid is not obvious and previously unknown, and it is exactly what prior fast-matvec masks could not provide without expensive preprocessing (see below):

  1. [1] (block-Toeplitz) is not applicable to point clouds by construction. Its matvec relies on the mask being Toeplitz, which requires equispaced tokens (a regular grid) so the ordinary FFT applies. Point clouds are non-equispaced, so no Toeplitz structure exists and [1] cannot represent them without first voxelizing onto a grid and thus discards the geometry. Thus there is no meaningful [1] baseline to run on this data class; in our framework the Toeplitz mask is recovered as the special case when points do lie on a grid.

  2. [2] (tree-based, FTFI) handles irregular data, but its preprocessing must be rebuilt every step and does not run on the GPU. To obtain a matvec off a grid, FTFI first constructs a tree over the tokens and integrates the field along it. Two properties make this expensive in our setting:

    • The token set is not fixed, so the tree cannot be built once and amortized. For example, in PCT the transformer operates on a subsample of 256 points selected from 1024 by coordinate and feature similarity. Because the selection depends on the learned features, the 256-point set changes after every optimization step. FTFI's tree therefore has to be reconstructed each step; the preprocessing is a recurring per-step cost, not a one-time setup. Similar subsampling by pooling occurs in DFormer as well. In [2] the method was applied to images (small grid data) and the grid was fixed throughout training and thus the cost of creating the FTFI mechanism is amortized.
    • Tree construction is combinatorial, hence not GPU-friendly. Building the tree is a discrete graph algorithm (e.g. Kruskal method) that does not map onto the dense, batched linear algebra GPUs are built for; it runs on CPU and serializes with the GPU forward/backward pass. RelFlexformer needs no graph and no tree: it operates directly on the raw 3D coordinates via NU-FFT [4, 5], entirely on the GPU, with nothing to rebuild between steps. We make this concrete by measuring FTFI's per-step tree cost on the PCT token set (256 points reselected each step) against RelFlexformer's attention:
    Method Per-step cost
    FTFI [2] ~14,870 ms
    RelFlexformer (ours) 17.4 ms

    i.e. ~850× slower per step. On the ModelNet40 head-to-head (which FTFI can run since it handles irregular data by the expensive pre-processing), RelFlexformer also wins on accuracy: 92.46 vs 92.24 OA.

This overhead is infeasible for Dformer training which takes about 6 hours for NYUv2 and over 24 hours for SUN RGB-D.

  1. We subsume prior encodings. Lemma 3.3 shows our operator analytically recovers RoPE (exact, no approximation), and the STRING remark shows ⊗-STRING [3] is a special case. A single operator that recovers Toeplitz/grid masks, RoPE, and STRING while extending to arbitrary integrable ff on irregular 3D geometry with no graph/tree preprocessing is a unification, not a re-application. We believe that this is a non-trivial extension as each of these methods are published at top venues.

  2. Existing 3D modeling methods are typically developed for either point clouds (e.g., PCT and PTv3) or RGB-D inputs (e.g., DFormer and AsymFormer). In contrast, our NU-FFT-driven modulation can be integrated into both classes of models without changing its core formulation. This demonstrates that the proposed framework is not tied to a particular 3D representation or backbone, but generalizes across fundamentally different modalities. Across PCT, PTv3, and DFormer, RelFlexformer consistently improves Performer attention and substantially narrows the gap to dense attention. Specifically, it improves Performer by 2.0, 5.8, 8.3, and 1.3 points on ScanNet, ScanNet200, nuScenes, and S3DIS Area 5, respectively, and by 0.9 and 2.5 points on NYU Depth v2 and SUN RGB-D.

    To contextualize these gains, recent methods often differ by only fractions of a point and do not improve monotonically over time. Pamba [6] exceeds PTv3 by just 0.1 points on ScanNet and S3DIS Area 5 while matching it on nuScenes, and DFormer and AsymFormer differ by only 0.3 points on NYU Depth v2, with AsymFormer performing worse on SUN RGB-D. Against this scale, RelFlexformer’s 0.9-8.3 point improvements over Performer are clearly substantial. It recovers most of the dense-attention accuracy while preserving sub-quadratic complexity. See Tables 1–4 for controlled comparisons and Appendix Tables 13–19 for broader context and also the tables below.

    Semantic Segmentation

    Architecture Method Venue ScanNet Val ScanNet200 Val nuScenes Val S3DIS Area 5
    Transformer PTv2 NeurIPS 2022 75.4 30.2 80.2 71.6
    Transformer StratifiedFormer CVPR 2022 74.3 – – 72.0
    Transformer OctFormer SIGGRAPH 2023 75.7 32.6 – –
    Transformer PTv3 CVPR 2024 77.5 35.2 80.4 73.4
    Mamba Pamba AAAI 2025 77.6 36.3 80.4 73.5
    Performer Performer (w/ PTv3) Baseline 74.8 28.2 72.0 69.8
    Performer RelFlexformer (w/ PTv3) Ours 76.8 34.0 80.3 71.1

    RGB-D datasets

    Architecture Method Venue Backbone Params NYU Depth v2 SUN RGB-D
    CNN PGDENet IEEE TMM 2023 ResNet-34 100.7M 53.7 51.0
    Transformer CMX IEEE T-ITS 2023 MiT-B2 66.6M 54.4 49.7
    Transformer DFormer ICLR 2024 DFormer-Base 29.5M 55.6 51.2
    Transformer AsymFormer CVPR 2024 MiT-B0 + ConvNeXt-Tiny 33.0M 55.3 49.1
    Transformer OmniSegmentor NeurIPS 2025 ResNet-101 44.0M 54.1 51.7
    Performer Performer (w/ DFormer) Baseline DFormer-Base 29.5M 54.4 48.5
    Performer RelFlexformer (w/ DFormer) Ours DFormer-Base 29.5M 55.3 51.0

We would like to emphasize one more time that we are not aware of any other efficient method that handles RPEs on general point cloud data with relatively arbitrary functions ff defining how regular attention is modulated via relative positional encoding information. This is a clear novelty of the paper, with very concrete, practical consequences.

References

[1] From block-toeplitz matrices to differential equations on graphs: towards a general theory for scalable masked transformers. Chromanski et al. ICML 2022

[2] Fast tree-field integrators: From low displacement rank to topological transformers. Choromanski et al. NeurIps 2024

[3] Learning the roPEs: Better 2d and 3d position encodings with STRING. Schenck et al. ICML 2025

[4] Leslie Greengard and June-Yub Lee. Accelerating the nonuniform fast fourier transform. SIAM Review, 46(3): 2004.

[5] Nathan Doumèche, Francis Bach, Gérard Biau, and Claire Boyer. Fast kernel methods: Sobolev, physics-informed, and additive models, 2025.

[6] Li, Zhuoyuan, et al. "Pamba: enhancing global interaction in point clouds via state space model." AAAI 2025.

Does RelFlexformer + PointRoPE still retain O(Llog⁡L)O(L \log L)?

Yes. PointRoPE is applied to Q and K before attention; it never materializes an L×LL \times L object, so the combination preserves the O(Llog⁡L)O(L \log L) / linear-in-LL cost. We will clarify it in the camera-ready version.

Does the Transformer baseline include RPE? (disentangle RPE from the Performer approximation).

In tables 1,2,3,4 the transformer baseline is taken from the respective papers. This baseline does not use an RPE. The Performer baseline was replicated by us where we replaced the dense softmax attention by Performer attention. This approximation causes a drop in performance. The RelFlexformer was applied on the Performer attention and we show that it recovers most of the performance lost and sometimes even surpasses the Transformers.

Moreover we carried out extra experiments in incorporating our RPE mask in the dense transformers. In the table below we show that RPE improves dense attention too, so the gain is attributable only to the geometric prior.

Dataset Transformer Transformer + RelFlexformer RPE
ScanObjectNN (OA) 84.0 84.98
ModelNet40 (OA) 92.2 92.46
NYU (mIoU, MST) 55.6 56.32
SUN RGB-D (mIoU, MST) 51.2 51.4
ScanNet200 (mIoU) 35.3 36.5

Algorithm 1 below and notation issues

We will reorder so Alg 1 precedes its reference. And we will update the notations as requested.

Rasterize scatter plot

Will update in the revised version.

Table 1 is not referenced anywhere in the main text.

Will add the Table 1 reference in Sec. 4.1

Understanding Fig 2

We will rewrite Fig 2's caption: the mask decays with distance like RBF/Laplace kernels; it is basically a sanity check that ij elements in our mask matrix are modulated by the distance.

Reviewer C6aq · CommentOpenReview ↗

Thank you for your detailed response.

I now understand that the main contribution of this paper is the construction of a mask that can be applied to irregularly sampled data (such as point clouds) while enabling efficient matrix-vector multiplication without explicitly materializing the mask. Given this clarification, I feel that the material based on [1], including Algorithm 2, should be presented in the preliminary/background section rather than as part of the main technical contribution. Doing so, together with a clearer explanation of the specific technical challenge addressed by the proposed method beyond [1], would make the paper significantly easier to follow.

I also appreciate the clarification regarding the relationship with existing methods such as FTFI [2]. Although the explanation is convincing, I think the paper would be further strengthened by including a comparison of computational time with FTFI (e.g., the results reported in the rebuttal), even if only in the appendix.

I also understand now that the Transformer baselines reported in the paper do not include any relative positional encoding. Based on the additional experiments in the rebuttal (Transformer + RelFlexformer RPE), it appears that incorporating an RPE into the Transformer baseline also improves performance. If so, I still feel that the results in Tables 1 and 2 are potentially misleading, as they conflate the effects of (i) replacing standard attention with Performer and (ii) the presence or absence of RPE. Ideally, these tables should also include Transformer results with a suitable RPE (not necessarily RelFlexformer RPE) to better disentangle these two factors.

Considering the clarifications provided in the rebuttal, I will increase my overall score from 3 to 4.

Authors · CommentOpenReview ↗

We would like to sincerely thank the Reviewer for the comments. Following Reviewer's suggestions, in the camera-ready version of the paper we will:

(1) present material based on [1], including Algorithm 2, in the preliminary section, (2) include additional comparisons in the Appendix, as suggested by the Reviewer.

Reviewer uyMkOpenReview ↗
Rating
5/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

The paper introduces a novel type of efficient attention, designed to address the performance gap between the standard O(N2)O(N^2) attention and efficient O(N)O(N) Performer-like attention mechanisms, at a cost of a mild increase in complexity to O(Nlog⁡N)O(N \log N). The authors show that the dot product of the modulation mask from the standard Relative Positional Encoding with token features can be viewed as a convolution, which allows for applying Fourier inversion and convolutional theorems to it. This particular framing allows to apply the non-uniform fast Fourier transform to compute 1) Fourier transform of the token features; 2) the inverse Fourier transform approximating the desired dot product; both in O(Nlog⁡N)O(N \log N) time. The resulting approximation is plugged into Performer-like attention, resulting in a novel attention mechanism with the desired quality/complexity tradeoff.

Additionally, the authors show how their attention variant can evaluate the RoPE embeddings without construction the whole mask and how the STRING position encoding can be viewed as a special case of their general approach.

The design is validated on a range of recognition tasks for 3D point clouds, including point cloud classification, segmentation on a wide range of datasets, including pure geometric data and RGBD data. Experimental results show convincing improvements in quality, compared to linear attention variants, and improved scalability compared to the standard attention, validating the choice to partially trade the complexity for better performance (compared to linear attention) and scalability (compared to full attention).

Strengths and weaknesses

Overall, the paper is technically sound and carves an interesting niche of approximate attention mechanisms that can trade an increase in linear approximate attention complexity for quality that is much closer to full attention, while still being more efficient.

The paper is generally well written and justifies the proposed approach well theoretically and empirically. At the same time, I think the overall presentation of the method is a bit all over the place (jumps between several aspects of the method) and could be structured in a more logical way.

The paper generalizes the proposed method to RoPE and pushes the narrative that it is a natural combination that can help to improve the performance on the chosen tasks. In practice, though, it looks arguable that RoPE combined with the proposed method produces strictly better results. I think showing that RoPE is a special case of the proposed method is valuable regardless, but I am not sure it makes sense to state that it necessarily helps the method.

Questions

My main question is the application of the proposed method strictly to the 3D data domain. Why did the authors choose this domain of transformer application exclusively? It would, at least, be interesting to see whether this kind of attention can be applied in transformer architectures used for other data domains, and, overall, whether it generalises to them.

The paper reports some execution time graphs, but I think it would be good if the authors could also include time-based metrics for the tasks/benchmarks that they consider in the experimental section. I think it may be helpful to see the change in training/inference time on the actual problems.

Limitations

The limitations of the method are discussed adequately.

Final justification

After reading the other reviews and discussions between the authors and reviewers, I still feel positive about the paper. I appreciate all the additional clarifications and experiments provided by the authors. I understand now that the application of the proposed method to the point cloud non-equidistant data is crucial rather than an arbitrary choice of a data modality suitable for experiments. I encourage the authors to clarify and underline this in their restructured presentation of the paper and to include the additional experiments and memory/time metrics. I am keeping my initial positive rating.

Formatting concerns

No major issues.

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the positive and detailed assessment.

Presentation structure.

We will restructure Sec. 3–4: (i) masked attention + Performer background, (ii) the NU-FFT operator (Alg. 1) and its O(L log L) cost, (iii) RoPE/STRING as special cases, (iv) experiments.

RoPE combination is not a strict win.

Agreed. We keep the theoretical result (RoPE is a special case; the encodings are orthogonal — token-level rotation vs. interaction-strength modulation) but reframe the combination as complementary when the dataset benefits from token-level positional signal, not a strict improvement. Our tables show it helps on some datasets (nuScenes 80.3→81.2; ScanNet200 34.0→34.9) and is neutral/negative on others (ScanNet 76.9→76.6; ModelNet40 92.9→92.6); we will state the gains are dataset-dependent.

Why only 3D / does it generalize?

The framework is domain-general: it requires only tokens with positions in a metric space and an L1L^1-integrable ff. The only modality-specific component is the mapping from raw inputs into that metric space (inherent to the backbones we use); the NU-FFT/RPE machinery is unchanged across modalities. Concretely, we already apply the identical operator to two distinct modalities—irregular point clouds and dense RGB-D imagery (2D pixels lifted via depth)—whereas prior  methods specialize to one or the other (PCT/PTv3 to point clouds; DFormer/AsymFormer to RGB-D). We focus on 3D because point-cloud tokens are natively non-equispaced, which motivates using NU-FFT over standard FFT, and because distance-aware RPE matters most in 3D. The construction also covers grid-structured tokens (images, sequences): we prove that RoPE and STRING arise as exact special cases of our mask (Lemma 3.3, STRING remark), so the framework provably subsumes the structured settings used in language and vision.

Time-based metrics on the actual tasks.

We start by showing the results for PTv3, which is the largest model used in our experiments, containing 46.2M parameters measured on a single RTX PRO 6000 (96 GB).

PTv3 training step (peak memory / step time):

Patch K Softmax Performer (no RPE) RelFlexformer (ours)
1024 (PTv3 default) 75.0 GB / 713 ms 0.9 GB / 19 ms 4.4 GB / 52 ms
2048 OOM 1.1 GB / 19 ms 5.6 GB / 51 ms
4096 OOM 1.5 GB / 21 ms 8.4 GB / 75 ms

PTv3 inference (forward-only), latency / peak memory:

Patch K Softmax Performer (no RPE) RelFlexformer (ours)
1024 (PTv3 default) 91.2 ms / 32.0 GB 0.2 ms / 0.2 GB 8.4 ms / 1.1 GB
2048 173.8 ms / 63.9 GB 0.2 ms / 0.2 GB 8.3 ms / 1.1 GB
4096 OOM 0.2 ms / 0.2 GB 8.0 ms / 1.3 GB
16384 OOM 0.3 ms / 0.2 GB 8.2 ms / 1.6 GB

Inference shows the same enablement: softmax OOMs beyond K=2048 (63.9 GB at 2048).

Next we show the flop counts for both the PTv3 as well as Dformer.

Attention-core GFLOPs, N=65,536 points held fixed, patch size K varied (proj/FFN are identical across methods, so this isolates the attention operator):

Patch K Softmax Performer RelFlexformer (ours)
1024 (PTv3 default) 43.5 0.55 18.0
4096 174 0.55 18.0
16384 696 0.55 18.0

DFormer backbone — full global geometry attention (Nq=Nk=H·W), attention-core GFLOPs per stage:

Stage (H×W) Tokens Softmax Performer RelFlexformer (ours)
120×160 19,200 100.6 0.32 10.4
60×80 4,800 12.6 0.16 5.2
30×40 1,200 1.6 0.08 2.6

At DFormer's native stage-1 resolution (19,200 tokens), dense softmax is 100.6 G (and 94.6 GB memory — untrainable) vs. 10.4 G / 2.9 GB for ours (≈10× fewer FLOPs); this is exactly why DFormer uses pooling to lower the number of queries, and our method removes that constraint.

We will sharpen the paper's central claim to be precise about where efficiency holds: our advantage is sub-quadratic RPE attention, constant in L in FLOPs and memory, decisive in the large-token / high-resolution regime (PTv3 at its default patch size and above; full-resolution RGB-D where dense+RPE is untrainable). In the small-token regime (pooled windows, tiny patches) there is no quadratic bottleneck, so our constant overhead makes us comparable or slower. Concretely, in the revision we will move the FLOPs/memory tables into the main text.

Newer results improving strong baselines

During rebuttal we carried out additional experiments to show that the RPE induced geometric bias improves dense Transformers as well.

Dataset Transformer Transformer + RelFlexformer RPE
ScanObjectNN (OA) 84.0 84.98
ModelNet40 (OA) 92.2 92.46
NYU (mIoU, MST) 55.6 56.32
SUN RGB-D (mIoU, MST) 51.2 51.4
ScanNet200 (mIoU) 35.3 36.5

Comments on the paper

1 comment
Area Chair EDxa · CommentOpenReview ↗

Author-Reviewer Discussion

Dear Reviewers,

Thank you for your reviews. Authors have submitted their rebuttal. We are now in author- reviewer discussion period. During this period, please acknowledge that you have read authors rebuttal and state if authors' rebuttal has addressed your concerns. Actively engage with the authors if you need additional clarifications or you have new concerns. If you have no further questions/comments about the paper, make sure to complete the “Final Justification” and update your “Rating”.

The author-reviewer period will end on August 3.

Sincerely,

Your AC

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…