Skip to content
DraconiticResearch
Search Sources API
197,761 studies31 sourcesUpdated 45 min ago
PreprintCC BY-NC-SA 4.0arXiv

FLaG: Frequency-Domain Latent-attention Gated Pooling for Token Aggregation

Abstract

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.

Related

  1. TopoLIA: Topology-Inspired Latent Interaction Attention for Drug Discovery
    Xiang Liu, Yiming Ren, Mustafa Hajij +2
    arXivPreprintarXiv licenceFull textBiophysicsarXiv
  2. Cell DiffErential Expression by Pooling (CellDEEP) highlights issues in differential gene expression in scRNA-seq
    Yiyi Cheng, Toby Kettlewell, Ross F Laidlaw +4
    NAR Genomics and BioinformaticsPeer-reviewedCC BY 4.0Full textMolecular biology & gene regulationCrossrefEurope PMC
  3. Scp160 deletion suppresses TDP-43 aggregation and toxicity in Saccharomyces cerevisiae
    Microbial CellPeer-reviewedCC BYFull textMolecular biology & gene regulationEurope PMC
  4. Aβ42-Driven α-synuclein Fibril Polymorphism and Distinct Intracellular Aggregation
    Purnopama Saha, Teshani Liyanaarachchige, Anika Alim +2
    bioRxivPreprintAll rights reservedFull textMolecular biology & gene regulationPMCbioRxiv
  5. A Molecular Rotor-Based Platform for Dissecting Protein Phase Separation and Aggregation
    J. Gravell, N. Fitikides, R. J. Thrush +4
    bioRxivPreprintAll rights reservedFull textBiophysicsbioRxiv
BibTeX
@misc{li2026flag,
  title = {{FLaG: Frequency-Domain Latent-attention Gated Pooling for Token Aggregation}},
  author = {Kewei Li and Rongying Zhang and Xueli Wang and Xiwen Gong and Zhongjian Wang and Qiuchen Zhao and Lan Huang and Ruochi Zhang and Fengfeng Zhou},
  howpublished = {arXiv},
  year = {2026},
  month = sep,
  doi = {10.48550/arxiv.2609.00831},
  eprint = {2609.00831},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.00831},
  note = {CC BY-NC-SA 4.0},
}
RIS
TY  - UNPB
TI  - FLaG: Frequency-Domain Latent-attention Gated Pooling for Token Aggregation
AU  - Kewei Li
AU  - Rongying Zhang
AU  - Xueli Wang
AU  - Xiwen Gong
AU  - Zhongjian Wang
AU  - Qiuchen Zhao
AU  - Lan Huang
AU  - Ruochi Zhang
AU  - Fengfeng Zhou
PY  - 2026
DA  - 2026/09/01
PB  - arXiv
DO  - 10.48550/arxiv.2609.00831
UR  - https://arxiv.org/abs/2609.00831
AB  - 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.
ER  -