paper-with-me

Papers

Hungry Hungry Hippos: Towards Language Modeling with State Space Models

2022-12-28 · Daniel Y. Fu, Tri Dao, Khaled K. Saab, Armin W. Thomas, Atri Rudra, Christopher Ré

State space models (SSMs) have demonstrated state-of-the-art sequence modeling performance in some modalities, but underperform attention in language modeling. Moreover, despite scaling nearly linearly in sequence length instead of quadratically, SSMs are still slower than Transformers due to poor hardware utilization. In this paper, we make progress on understanding the expressivity gap between SSMs and attention in language modeling, and on reducing the hardware barrier between SSMs and attention. First, we use synthetic language modeling tasks to understand the gap between SSMs and attention. We find that existing SSMs struggle with two capabilities: recalling earlier tokens in the sequence and comparing tokens across the sequence. To understand the impact on language modeling, we propose a new SSM layer, H3, that is explicitly designed for these abilities. H3 matches attention on the synthetic languages and comes within 0.4 PPL of Transformers on OpenWebText. Furthermore, a hybrid 125M-parameter H3-attention model that retains two attention layers surprisingly outperforms Transformers on OpenWebText by 1.0 PPL. Next, to improve the efficiency of training SSMs on modern hardware, we propose FlashConv. FlashConv uses a fused block FFT algorithm to improve efficiency on sequences up to 8K, and introduces a novel state passing algorithm that exploits the recurrent properties of SSMs to scale to longer sequences. FlashConv yields 2$\times$ speedup on the long-range arena benchmark and allows hybrid language models to generate text 2.4$\times$ faster than Transformers. Using FlashConv, we scale hybrid H3-attention language models up to 2.7B parameters on the Pile and find promising initial results, achieving lower perplexity than Transformers and outperforming Transformers in zero- and few-shot learning on a majority of tasks in the SuperGLUE benchmark.

📄 PDF Abstract BibTeX arXiv:2212.14052

Code (3)

hazyresearch/h3 공식 구현 pytorch
hazyresearch/safari pytorch
lindermanlab/S5 jax

Tasks

8kCoreference ResolutionFew-Shot LearningLanguage ModelingLanguage ModellingLong-range modelingNatural Language InferenceQuestion AnsweringState Space ModelsWord Sense Disambiguation

Similar Papers 제목 키워드 기반

An Exploration of Deep Learning Methods in Hungry Geese

2021-09-05 · Nikzad Khani, Matthew Kluska

Hungry Geese is a n-player variation of the popular game snake. This paper looks at state of the art Deep Reinforcement Learning Value Methods. The goal of the paper is to aggregate research of value based methods and ap…

Deep LearningDeep Reinforcement Learning

HippoSpark: An On-Demand Experience System for LLM Reasoning

2026-06-29 · Jingyao Liu, Danling Meng, Chen Huang, Yukun Yan 외 arxiv

Distilling historical trajectories into reusable experience to enhance future problem-solving has become a focal point of recent LLM research. However, existing methods predominantly operate at the task level, leveraging…

Scaling Laws for Code: A More Data-Hungry Regime

2025-10-09 · Xianzhen Luo, Wenzhen Zheng, Qingfu Zhu, Rongyi Zhang 외 arxiv

Code Large Language Models (LLMs) are revolutionizing software engineering. However, scaling laws that guide the efficient training are predominantly analyzed on Natural Language (NL). Given the fundamental differences l…

Masked autoencoders are effective solution to transformer data-hungry

2022-12-12 · Jiawei Mao, Honggu Zhou, Xuesong Yin, Yuanqi Chang. Binling Nie. Rui Xu

Vision Transformers (ViTs) outperforms convolutional neural networks (CNNs) in several vision tasks with its global modeling capabilities. However, ViT lacks the inductive bias inherent to convolution making it require a…

Contrastive LearningInductive Bias

When Swin Transformer Meets KANs: An Improved Transformer Architecture for Medical Image Segmentation

2025-11-06 · Nishchal Sapkota, Haoyan Shi, Yejia Zhang, Xianshi Ma 외 arxiv

Medical image segmentation is critical for accurate diagnostics and treatment planning, but remains challenging due to complex anatomical structures and limited annotated training data. CNN-based segmentation methods exc…

Medical Image Segmentation