Sampling Foundational Transformer: A Theoretical Perspective
Viet Anh Nguyen, Minh Lenhat, Khoa Nguyen, Duong Duc Hieu, Dao Huu Hung, Truong Son Hy
TL;DR
Sampling Foundational Transformer (SFT) addresses the quadratic bottleneck and modality-specific design challenges of traditional transformers by introducing a context-aware sampling-without-replacement mechanism and a pseudoconvex transformer layer. The method uses differentiable sampling based on learnable importance scores and a leaky, Maxout-based attention with relative positional encoding to achieve linear-time complexity $O(n)$ per layer while supporting point clouds, graphs, and sequences. The paper provides theoretical results on the pseudoconvexity and gradient bounds of the SFT layer, and demonstrates competitive performance across dense low-rank and sparse high-rank tasks, including rotational invariance in point clouds and long-range benchmarks in sequences and graphs; it also discusses rank-injection phenomena and practical runtime advantages. Overall, SFT offers a scalable, multi-modality foundation for transformers with improved convergence and efficiency, enabling broader applicability of foundational models across data modalities.
Abstract
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 data modalities, practitioners have to make specific clever data-modality-dependent constructions. In this paper, we propose Sampling Foundational Transformer (SFT) that can work on multiple data modalities (e.g., point cloud, graph, and sequence) and constraints (e.g., rotational-invariant). The existence of such model is important as contemporary foundational modeling requires operability on multiple data sources. For efficiency on large number of tokens, our model relies on our context aware sampling-without-replacement mechanism for both linear asymptotic computational complexity and real inference time gain. For efficiency, we rely on our newly discovered pseudoconvex formulation of transformer layer to increase model's convergence rate. As a model working on multiple data modalities, SFT has achieved competitive results on many benchmarks, while being faster in inference, compared to other very specialized models.
