paper-with-me

Papers

LeetDecoding: A PyTorch Library for Exponentially Decaying Causal Linear Attention with CUDA Implementations

2025-01-05 · Jiaping Wang, Simiao Zhang, Qiao-Chu He, Yifan Chen

The machine learning and data science community has made significant while dispersive progress in accelerating transformer-based large language models (LLMs), and one promising approach is to replace the original causal attention in a generative pre-trained transformer (GPT) with \emph{exponentially decaying causal linear attention}. In this paper, we present LeetDecoding, which is the first Python package that provides a large set of computation routines for this fundamental operator. The launch of LeetDecoding was motivated by the current lack of (1) clear understanding of the complexity regarding this operator, (2) a comprehensive collection of existing computation methods (usually spread in seemingly unrelated fields), and (3) CUDA implementations for fast inference on GPU. LeetDecoding's design is easy to integrate with existing linear-attention LLMs, and allows for researchers to benchmark and evaluate new computation methods for exponentially decaying causal linear attention. The usage of LeetDecoding does not require any knowledge of GPU programming and the underlying complexity analysis, intentionally making LeetDecoding accessible to LLM practitioners. The source code of LeetDecoding is provided at \href{https://github.com/Computational-Machine-Intelligence/LeetDecoding}{this GitHub repository}, and users can simply install LeetDecoding by the command \texttt{pip install leet-decoding}.

📄 PDF Abstract BibTeX arXiv:2501.02573

Code (2)

computational-machine-intelligence/efficient_linear_decoding 공식 구현 pytorch
computational-machine-intelligence/leetdecoding 공식 구현 pytorch

Tasks

GPU

Methods 이 논문이 사용한 방법론

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$…
Attention 설명 없음
SET Dynamic Sparse Training method where weight mask is updated randomly periodically

Similar Papers 제목 키워드 기반

pyvene: A Library for Understanding and Improving PyTorch Models via Interventions

2024-03-12 · Zhengxuan Wu, Atticus Geiger, Aryaman Arora, Jing Huang 외

Interventions on model-internal states are fundamental operations in many areas of AI, including model editing, steering, robustness, and interpretability. To facilitate such research, we introduce $\textbf{pyvene}$, an …

Model Editing

PyTorchVideo: A Deep Learning Library for Video Understanding

2021-11-18 · Haoqi Fan, Tullie Murrell, Heng Wang, Kalyan Vasudev Alwala 외

We introduce PyTorchVideo, an open-source deep-learning library that provides a rich set of modular, efficient, and reproducible components for a variety of video understanding tasks, including classification, detection,…

Deep LearningSelf-Supervised LearningVideo Understanding

Investigation of event-based memory surfaces for high-speed tracking, unsupervised feature extraction and object recognition

2016-03-14 · Saeed Afshar, Gregory Cohen, Tara Julia Hamilton, Jonathan Tapson 외

In this paper we compare event-based decaying and time based-decaying memory surfaces for high-speed eventbased tracking, feature extraction, and object classification using an event-based camera. The high-speed recognit…

Object Recognition

Exponentially Decaying Bag-of-Words Input Features for Feed-Forward Neural Network in Statistical Machine Translation

2016-08-01 · ACL 2016 8 · Jan-Thorsten Peter, Weiyue Wang, Hermann Ney
Automatic Speech Recognition (ASR)Language ModelingLanguage ModellingMachine Translation+2

PyTorch Tabular: A Framework for Deep Learning with Tabular Data

2021-04-28 · Manu Joseph

In spite of showing unreasonable effectiveness in modalities like Text and Image, Deep Learning has always lagged Gradient Boosting in tabular data - both in popularity and performance. But recently there have been newer…

Deep Learning