paper-with-me

Papers

Data-Informed Global Sparseness in Attention Mechanisms for Deep Neural Networks

2020-11-20 · Ileana Rugina, Rumen Dangovski, Li Jing, Preslav Nakov, Marin Soljačić

Attention mechanisms play a crucial role in the neural revolution of Natural Language Processing (NLP). With the growth of attention-based models, several pruning techniques have been developed to identify and exploit sparseness, making these models more efficient. Most efforts focus on hard-coding attention patterns or pruning attention weights based on training data. We propose Attention Pruning (AP), a framework that observes attention patterns in a fixed dataset and generates a global sparseness mask. AP saves 90% of attention computation for language modeling and about 50% for machine translation and GLUE tasks, maintaining result quality. Our method reveals important distinctions between self- and cross-attention patterns, guiding future NLP research. Our framework can reduce both latency and memory requirements for any attention-based model, aiding in the development of improved models for existing or new NLP applications. We have demonstrated this with encoder and autoregressive transformer models using Triton GPU kernels and make our code publicly available at https://github.com/irugina/AP.

📄 PDF Abstract BibTeX arXiv:2012.02030

Code (2)

irugina/AP 공식 구현 pytorch
irugina1/llama-attention-pruning 공식 구현 pytorch

Tasks

GPULanguage ModelingLanguage ModellingMachine TranslationNatural Language Inference

Methods 이 논문이 사용한 방법론

Pruning 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
WordPiece 설명 없음
Residual Connection 설명 없음
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…
Attention 설명 없음
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…

Similar Papers 제목 키워드 기반

Differential response of the retinal neural code with respect to the sparseness of natural images

2016-11-21 · Cesar Ravello, Maria-Jose Escobar, Adrian Palacios, Laurent Perrinet

Natural images follow statistics inherited by the structure of our physical (visual) environment. In particular, a prominent facet of this structure is that images can be described by a relatively sparse number of featur…

Block-wise Dynamic Sparseness

2020-01-14 · Amir Hadifar, Johannes Deleu, Chris Develder, Thomas Demeester

Neural networks have achieved state of the art performance across a wide variety of machine learning tasks, often with large and computation-heavy models. Inducing sparseness as a way to reduce the memory and computation…

Language ModelingLanguage Modelling

Memory capacity of neural network models

2021-08-17 · Stefano Fusi

Memory is a complex phenomenon that involves several distinct mechanisms. These mechanisms operate at different spatial and temporal levels. This chapter focuses on the theoretical framework and the mathematical models t…

Retrieval

CITRAS: Covariate-Informed Transformer for Time Series Forecasting

2025-03-31 · Yosuke Yamaguchi, Issei Suemitsu, Wenpeng Wei

Covariates play an indispensable role in practical time series forecasting, offering rich context from the past and sometimes extending into the future. However, their availability varies depending on the scenario, and s…

Time SeriesTime Series Forecasting

Outperforming Self-Attention Mechanisms in Solar Irradiance Forecasting via Physics-Guided Neural Networks

2026-04-15 · Mohammed Ezzaldin Babiker Abdullah, Rufaidah Abdallah Ibrahim Mohammed arxiv

Accurate Global Horizontal Irradiance (GHI) forecasting is critical for grid stability, particularly in arid regions characterized by rapid aerosol fluctuations. While recent trends favor computationally expensive Transf…

Solar Irradiance Forecasting