FLaG: Frequency-Domain Latent-attention Gated Pooling for Token Aggregation
Not on the map. Why?
Abstract (arXiv)
Token aggregation converts token-level representations into fixed-dimensional sample representations, but most pooling methods operate only in the original token space. We introduce Frequency-Domain Latent-attention Gated Pooling (FLaG), a plug-in aggregation module that re-expresses encoder outputs in the Fourier domain before final pooling. FLaG represents the nonredundant rFFT spectrum through concatenated real and imaginary components, summarizes spectral tokens with learnable latent queries, derives a sample-conditioned channel gate, and reconstructs modulated token representations for downstream aggregation. We evaluate the same architecture across ESM2-based antimicrobial peptide (AMP) activity prediction, ResNet18 image classification on CIFAR-10 and CIFAR-100, and three RoBERTa-based language tasks. FLaG achieves the best macro-averaged Spearman correlation coefficient, RMSE, and Recall@50 across four AMP backbone-species settings and the highest top-1 accuracy on CIFAR 10. It also achieves the best mean results on five of seven language metrics, although mean pooling remains strongest on STSBenchmark. AMP-side mechanistic analyses reveal low-frequency prediction sensitivity across most encoder layers, with increased relative high-frequency sensitivity in the final layer, and pronounced peptide-specific positional responses. The residual gate broadly amplifies spectral channels while preserving the low-frequency-dominated energy profile, whereas latent cross-attention exhibits sample- and species-specific spectral allocation. Overall, FLaG provides a transferable frequency-domain aggregation bias across protein, visual, and textual representations, with benefits that depend on the backbone and downstream task. Supplementary materials, source code, and data are available at https://www.healthinformaticslab.org/supp/ and https://github.com/Kewei2023/AMPCliff/tree/FLaG.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 38 of its 52 references that are in the map. First posted on arXiv 1 Sep 2026.
Builds on
38 of 52 references.
References · 38
- 2017Attention Is All You Needcited by 60,361
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,361
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
- 2016Layer Normalizationcited by 5,669
- 2017Squeeze-and-Excitation Networkscited by 4,789
- 2017Deep Setscited by 1,421
- 2018On the Spectral Bias of Neural Networkscited by 1,341
- 2022Text Embeddings by Weakly-Supervised Contrastive Pre-trainingcited by 1,253
26 more
- 2022FEDformer: Frequency Enhanced Decomposed Transformer for Long-term Series Forecastingcited by 1,210
- 2021Perceiver: General Perception with Iterative Attentioncited by 1,104
- 2018Attention-based Deep Multiple Instance Learningcited by 1,095
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,059
- 2019Attention is not Explanationcited by 929
- 2020On Layer Normalization in the Transformer Architecturecited by 922
- 2022MTEB: Massive Text Embedding Benchmarkcited by 640
- 2021Perceiver IO: A General Architecture for Structured Inputs & Outputscited by 629
- 2024NV-Embed: Improved Techniques for Training LLMs as Generalist Embedding Modelscited by 472
- 2017Supervised Learning of Universal Sentence Representations from Natural Language Inference Datacited by 432
- 2021FNet: Mixing Tokens with Fourier Transformscited by 347
- 2022One Embedder, Any Task: Instruction-Finetuned Text Embeddingscited by 333
- 2017A Structured Self-attentive Sentence Embeddingcited by 318
- 2019Understanding and Improving Layer Normalizationcited by 217
- 2024jina-embeddings-v3: Multilingual Embeddings With Task LoRAcited by 141
- 2022Better plain ViT baselines for ImageNet-1kcited by 98
- 2024Frequency Adaptive Normalization For Non-stationary Time Series Forecastingcited by 47
- 2024Utilizing Image Transforms and Diffusion Models for Generative Modeling of Short and Long Time Seriescited by 43
- 2020Language Through a Prism: A Spectral Approach for Multiscale Language Representationscited by 39
- 2024Pooling And Attention: What Are Effective Designs For LLM-Based Embedding Models?cited by 19
- 2023Ditto: A Simple and Efficient Approach to Improve Sentence Embeddingscited by 6
- 2019Universal Pooling -- A New Pooling Method for Convolutional Neural Networkscited by 5
- 2024MEXMA: Token-level objectives improve sentence representationscited by 4
- 2023Active Learning Enhances Classification of Histopathology Whole Slide Images with Attention-based Multiple Instance Learningcited by 3
- 2024AMPCliff: quantitative definition and benchmarking of activity cliffs in antimicrobial peptidescited by 3
- 2023Tree Cross Attentioncited by 2
Built on by
Not cited yet.