Frequency-Aware Patch Weighting in Vision Transformers via the Funk-Hecke Theorem
Zhengzhou KE, Runlin Huang, Chen Chen, Weifeng Su
ICLR 2027
Abstract. In Vision Transformers (ViTs), patch features are typically used directly. Existing Fourier-based methods are global and operate on the 2D image grid, where all patches share the same frequency-band weights and cannot distinguish which patches contain more useful information. As a result, the angular-frequency components of each patch (the analogue of spatial frequency in planar Fourier analysis) and the texture and detail information they carry are often ignored. In contrast, we operate on a high-dimensional unit hypersphere and weight each patch independently. We find that the spherical harmonic Fourier features of each patch allow order-indexed weighting per patch. The Gegenbauer basis functions and the Funk–Hecke theorem provide the mathematical foundation for this operation. Based on this, we propose Funk–Hecke Adaptive Weighting (FHAW), which modulates each patch individually by an order-indexed, low-order band-limited gate, giving per-patch modulation a clear angular-frequency interpretation. This mechanism opens a new path for ViT development parallel to attention. On classification, segmentation, and zero-shot recognition tasks, FHAW consistently outperforms the corresponding baselines with only negligible additional overhead.
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
ICLR 2027
Withdrawn · 3 reviews · OpenReview
Updated 24 Nov 2026, 16:55 UTC.
- Rating
- 2/4
- Confidence
- 2/4
- Soundness
- 2/3
- Presentation
- 2/3
- Informativeness
- 2/3
Read review
Summary
Strengths
-
Each module has approximately 25k parameters, making it easy to integrate into existing ViTs.
-
The spherical angular frequency interpretation and orthogonal basis selection are mathematically supported.
-
Some results have been validated with multiple seeds, and failure conditions and negative results are also reported.
Weaknesses
-
Gegenbauer gating has not yet been proven to outperform conventional MLP gating within the same budget.
-
Most improvements are small and dependent on training methods, insertion positions, and output formats.
Questions for the authors
-
With fixed projection, reference direction, and output format, and only replaced with an MLP of the same budget, can FHAW still maintain its leading position?
-
Can the gains be retained on a strong baseline with sufficient training? Especially since Swin-B's current results are still below the official checkpoint.
- Rating
- 1/4
- Confidence
- 2/4
- Soundness
- 2/3
- Presentation
- 2/3
- Informativeness
- 2/3
Read review
Summary
This paper addresses the Cartesian weighting disaster in Vision Transformers: vanilla point‑wise weighting in Cartesian feature space cannot cleanly manipulate angular‑frequency components of individual patch tokens, and existing frequency‑aware ViT methods operate globally on 2D feature grids and share frequency weights across all patches. The authors leverage spherical harmonic analysis, Gegenbauer polynomials and the Funk–Hecke theorem to propose Funk‑Hecke Adaptive Weighting (FHAW), a lightweight, plug‑and‑play module. FHAW projects patch features onto a low‑dimensional unit hypersphere, computes cosine similarity against learnable reference directions, builds a band‑limited gate via Gegenbauer spectral expansion and Clenshaw recursion, and applies per‑patch soft modulation with demean modulation. FHAW provides a well‑motivated spherical angular‑frequency inductive bias for per‑patch feature reweighting, while adding only ~25k parameters with complexity.
Strengths
- Novel mathematically‑grounded per‑patch modulation paradigm for ViT internal token space.
- Careful empirical methodology with transparent reporting of boundary conditions and failure modes.
Weaknesses
- Moderate practical performance gains with narrow applicability boundary.
- Risk of conceptual misinterpretation between inductive bias and exact spectral filtering.
Questions for the authors
- You emphasize that FHAW provides an angular‑frequency inductive bias instead of exact diagonal spectral filtering. Could you quantitatively show to what degree spherical‑harmonic orders get mixed in practice for real network activations? For example, measure spectral leakage when feeding real patch features through the learned gate.
- Your results show gains vanish when backbone is frozen. What is the concrete mechanism why joint optimization is mandatory? Could you provide more intuition or diagnostic evidence?
- Why does the optimal projection dimension sit at (not larger/smaller)? Besides conditioning of Gegenbauer basis, are there other competing effects from feature information loss under projection?
- In layer‑wise diagnostics you observe best performance inserting FHAW in later layers (L8‑L12). Would you expect inserting FHAW in early layers to ever bring benefits under alternative training regimes, e.g. from‑scratch ViT pre‑training?
- Rating
- 1/4
- Confidence
- 3/4
- Soundness
- 1/3
- Presentation
- 1/3
- Informativeness
- 2/3
Read review
Summary
The paper propose Funk–Hecke Adaptive Weighting, which enhance features based on a sphere.
Strengths
Strength one: The paper presents an interesting perspective: projecting feature tokens onto a sphere and using cosine similarity to determine the degree of feature enhancement. The method also appears adaptable to multiple settings.
Weaknesses
Weakness 1: The experiments do not sufficiently support the claim that “Deep attention also aligns token directions and dilutes high-frequency detail.” First, it is unclear why high-frequency components necessarily correspond to useful details. Second, the paper does not clearly establish how the loss of such details with increasing depth is measured. For example, texture information may be distributed across many low-level features in earlier layers but encoded more compactly as a semantic texture representation in deeper layers. A reduction in spectral bandwidth therefore does not necessarily imply a loss of useful information.
Weakness 2: The method’s generalizability appears more limited than claimed. Each new task requires retraining the FHAW projection head and the Gegenbauer spectral coefficients. These components may also depend strongly on the data distribution, potentially requiring refitting when switching datasets. Given the limited empirical gains, it is unclear whether the improvements justify the additional computational overhead.
Questions for the authors
Question 1: What is the specific benefit of using Gegenbauer polynomials? Could a small neural network learn a comparable weighting function? An ablation against such an alternative would help establish whether this design choice is necessary.
Question 2: To what extent do the gains come from fine-tuning the ViT backbone rather than from the proposed method? Line 443 states that “Freezing the backbone removes the gain.” Could the authors clarify this finding?
Question 3: Why is projection onto a sphere necessary? Could the authors provide its advantage over an unconstrained feature space learned by an MLP?
Ethics concerns
no
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
This paper proposes FHAW (Funk–Hecke Adaptive Weighting), a lightweight patch gating module for visual Transformers. It projects and normalizes patch features onto a sphere, generates weights using Gegenbauer polynomials based on their similarity to learnable reference directions, and then modulates the patch features to improve performance on visual tasks.