paper-with-me

홈 › Papers

SAMSA: Efficient Transformer for Many Data Modalities

2024-08-10 · Minh Lenhat, Viet Anh Nguyen, Khoa Nguyen, Duong Duc Hieu, Dao Huu Hung, Truong Son Hy

The versatility of self-attention mechanism earned transformers great success in almost all data modalities, with limitations on the quadratic complexity and difficulty of training. Efficient transformers, on the other hand, often rely on clever data-modality-dependent construction to get over the quadratic complexity of transformers. This greatly hinders their applications on different data modalities, which is one of the pillars of contemporary foundational modeling. In this paper, we lay the groundwork for efficient foundational modeling by proposing SAMSA - SAMpling-Self-Attention, a context-aware linear complexity self-attention mechanism that works well on multiple data modalities. Our mechanism is based on a differentiable sampling without replacement method we discovered. This enables the self-attention module to attend to the most important token set, where the importance is defined by data. Moreover, as differentiability is not needed in inference, the sparse formulation of our method costs little time overhead, further lowering computational costs. In short, SAMSA achieved competitive or even SOTA results on many benchmarks, while being faster in inference, compared to other very specialized models. Against full self-attention, real inference time significantly decreases while performance ranges from negligible degradation to outperformance. We release our source code in the repository: https://github.com/HySonLab/SAMSA

📄 PDF Abstract BibTeX arXiv:2408.05391

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

SAMSA 2.0: Prompting Segment Anything with Spectral Angles for Hyperspectral Interactive Medical Image Segmentation

2025-08-01 · Alfie Roddan, Tobias Czempiel, Chi Xu, Daniel S. Elson 외 arxiv

We present SAMSA 2.0, an interactive segmentation framework for hyperspectral medical imaging that introduces spectral angle prompting to guide the Segment Anything Model (SAM) using spectral similarity alongside spatial…

Medical Image SegmentationInteractive Segmentation

SAMSA: Segment Anything Model Enhanced with Spectral Angles for Hyperspectral Interactive Medical Image Segmentation

2025-07-31 · Alfie Roddan, Tobias Czempiel, Chi Xu, Daniel S. Elson 외 arxiv

Hyperspectral imaging (HSI) provides rich spectral information for medical imaging, yet encounters significant challenges due to data limitations and hardware variations. We introduce SAMSA, a novel interactive segmentat…

Medical Image SegmentationInteractive SegmentationZero-Shot Learning

Semantic Structural Evaluation for Text Simplification

2018-10-11 · NAACL 2018 6 · Elior Sulem, Omri Abend, Ari Rappoport

Current measures for evaluating text simplification systems focus on evaluating lexical text aspects, neglecting its structural aspects. In this paper we propose the first measure to address structural aspects of text si…

Semantic ParsingSentenceText Simplificationvalid

Sampling Foundational Transformer: A Theoretical Perspective

2024-08-11 · Viet Anh Nguyen, Minh Lenhat, Khoa Nguyen, Duong Duc Hieu 외

The versatility of self-attention mechanism earned transformers great success in almost all data modalities, with limitations on the quadratic complexity and difficulty of training. To apply transformers across different…

Multimodal Token Fusion for Vision Transformers

2022-04-19 · journal 2022 7 · Yikai Wang, Xinghao Chen, Lele Cao, Wenbing Huang 외

Many adaptations of transformers have emerged to address the single-modal vision tasks, where self-attention modules are stacked to handle input sources like images. Intuitively, feeding multiple modalities of data to vi…

3D Object DetectionImage-to-Image Translationobject-detectionObject Detection+1