paper-with-me

Papers

Better Models, Faster Training: Sigmoid Attention for single-cell Foundation Models

2026-04-29 · Vijay Sadashivaiah, Georgios Dasoulas, Judith Mueller, Soumya Ghosh arxiv

Training stable biological foundation models requires rethinking attention mechanisms: we find that using sigmoid attention as a drop in replacement for softmax attention a) produces better learned representations: on six diverse single-cell datasets, sigmoid achieves 25% higher cell-type separation, better cell-type cohesion metrics, and lower validation loss, b) faster training, models with sigmoid attention train up to 10% faster than their softmax counterparts, and c) more stable training by eliminating inherent sources of instability in softmax attention. We establish that sigmoid attention has globally bounded derivatives ($\leq 0.25$) as opposed to softmax, and a diagonal Jacobian structure in contrast with softmax's dense coupling, which together help alleviate training instabilities. In stress tests on 160M-parameter bidirectional attention models trained without gradient clipping on 8K-token sequences, softmax diverges catastrophically, with gradients exploding by four orders of magnitude, while sigmoid remains stable. Finally, we implement and open-source TritonSigmoid, an efficient GPU kernel that achieves 515 TFLOPS on H100 GPUs, outperforming both FlashAttention-2 and FlashSigmoid, with native padding support, which is essential for biological sequences. Our results establish sigmoid attention as both theoretically grounded and empirically superior for biological foundation models. Code is available at https://github.com/MSDLLCpapers/triton-sigmoid

📄 PDF Abstract BibTeX arXiv:2604.27124

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Sigmoid Attention as a Better Substrate for Learned KV Cache Eviction

2026-08-24 · Isaac, Li arxiv

Learned KV-cache eviction often faces a soft-to-hard mismatch: during training, differentiable gates typically attenuate token contributions, whereas inference saves memory only when KV entries are physically removed. We…

Theory, Analysis, and Best Practices for Sigmoid Self-Attention

2024-09-06 · Jason Ramapuram, Federico Danieli, Eeshan Dhekane, Floris Weers 외

Attention is a key part of the transformer architecture. It is a sequence-to-sequence mapping that transforms each sequence element into a weighted sum of values. The weights are typically obtained as the softmax of dot …

Sigmoid Head for Quality Estimation under Language Ambiguity

2026-01-02 · Tu Anh Dinh, Jan Niehues arxiv

Language model (LM) probability is not a reliable quality estimator, as natural language is ambiguous. When multiple output options are valid, the model's probability distribution is spread across them, which can mislead…

A Heterogeneous Ensemble for Multi-Center COVID-19 Classification from Chest CT Scans

2026-03-15 · Aadit Nilay, Bhavesh Thapar, Anant Agrawal, Mohammad Nayeem Teli arxiv

The COVID-19 pandemic exposed critical limitations in diagnostic workflows: RT-PCR tests suffer from slow turnaround times and high false-negative rates, while CT-based screening offers faster complementary diagnosis but…

Medical Image ClassificationMultiple Instance Learning

Analysis of Using Sigmoid Loss for Contrastive Learning

2024-02-20 · Chungpa Lee, Joonhwan Chang, Jy-yong Sohn

Contrastive learning has emerged as a prominent branch of self-supervised learning for several years. Especially, CLIP, which applies contrastive learning to large sets of captioned images, has garnered significant atten…

Contrastive LearningSelf-Supervised Learning