paper-with-me

Papers

Monarch: Expressive Structured Matrices for Efficient and Accurate Training

2022-04-01 · Tri Dao, Beidi Chen, Nimit Sohoni, Arjun Desai, Michael Poli, Jessica Grogan, Alexander Liu, Aniruddh Rao, Atri Rudra, Christopher Ré

Large neural networks excel in many domains, but they are expensive to train and fine-tune. A popular approach to reduce their compute or memory requirements is to replace dense weight matrices with structured ones (e.g., sparse, low-rank, Fourier transform). These methods have not seen widespread adoption (1) in end-to-end training due to unfavorable efficiency--quality tradeoffs, and (2) in dense-to-sparse fine-tuning due to lack of tractable algorithms to approximate a given dense weight matrix. To address these issues, we propose a class of matrices (Monarch) that is hardware-efficient (they are parameterized as products of two block-diagonal matrices for better hardware utilization) and expressive (they can represent many commonly used transforms). Surprisingly, the problem of approximating a dense weight matrix with a Monarch matrix, though nonconvex, has an analytical optimal solution. These properties of Monarch matrices unlock new ways to train and fine-tune sparse and dense models. We empirically validate that Monarch can achieve favorable accuracy-efficiency tradeoffs in several end-to-end sparse training applications: speeding up ViT and GPT-2 training on ImageNet classification and Wikitext-103 language modeling by 2x with comparable model quality, and reducing the error on PDE solving and MRI reconstruction tasks by 40%. In sparse-to-dense training, with a simple technique called "reverse sparsification," Monarch matrices serve as a useful intermediate representation to speed up GPT-2 pretraining on OpenWebText by 2x without quality drop. The same technique brings 23% faster BERT pretraining than even the very optimized implementation from Nvidia that set the MLPerf 1.1 record. In dense-to-sparse fine-tuning, as a proof-of-concept, our Monarch approximation algorithm speeds up BERT fine-tuning on GLUE by 1.7x with comparable accuracy.

📄 PDF Abstract BibTeX arXiv:2204.00595

Code (2)

hazyresearch/monarch 공식 구현 pytorch
pascalcarrivain/ksmm pytorch

Tasks

Language ModelingLanguage ModellingMRI Reconstruction

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
SPEED The monocular depth estimation (MDE) is the task of estimating depth from a single frame. This information is an essential knowledge in many computer vision tasks such as scene…
Weight Decay 설명 없음
Cosine Annealing Cosine Annealing is a type of learning rate schedule that has the effect of starting with a large learning rate that is relatively rapidly decreased to a minimum value before…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…

Similar Papers 제목 키워드 기반

MonarchAttention: Zero-Shot Conversion to Fast, Hardware-Aware Structured Attention

2025-05-24 · Can Yaras, Alec S. Xu, Pierre Abillama, Changwoo Lee 외

Transformers have achieved state-of-the-art performance across various tasks, but suffer from a notable quadratic complexity in sequence length due to the attention mechanism. In this work, we propose MonarchAttention --…

16k4k

MoST: Efficient Monarch Sparse Tuning for 3D Representation Learning

2025-03-24 · CVPR 2025 1 · Xu Han, Yuan Tang, Jinfeng Xu, Xianzhi Li

We introduce Monarch Sparse Tuning (MoST), the first reparameterization-based parameter-efficient fine-tuning (PEFT) method tailored for 3D representation learning. Unlike existing adapter-based and prompt-tuning 3D PEFT…

parameter-efficient fine-tuningRepresentation Learning

VMonarch: Efficient Video Diffusion Transformers with Structured Attention

2026-01-29 · Cheng Liang, Haoxian Chen, Liang Hou, Qi Fan 외 arxiv

The quadratic complexity of the attention mechanism severely limits the context scalability of Video Diffusion Transformers (DiTs). We find that the highly sparse spatio-temporal attention patterns exhibited in Video DiT…

Monarch Mixer: A Simple Sub-Quadratic GEMM-Based Architecture

2023-10-18 · NeurIPS 2023 11 · Daniel Y. Fu, Simran Arora, Jessica Grogan, Isys Johnson 외

Machine learning models are increasingly being scaled in both sequence length and model dimension to reach longer contexts and better performance. However, existing architectures such as Transformers scale quadratically …

4kimage-classificationImage ClassificationLanguage Modeling+1

MonarchRT: Efficient Attention for Real-Time Video Generation

2026-02-12 · Krish Agarwal, Zhuoming Chen, Cheng Luo, Yongqi Chen 외 arxiv

Real-time video generation with Diffusion Transformers is bottlenecked by the quadratic cost of 3D self-attention, especially in real-time regimes that are both few-step and autoregressive, where errors compound across t…

Computational EfficiencyVideo Generation