paper-with-me

홈 › Papers

Efficient Attention via Control Variates

2023-02-09 · Lin Zheng, Jianbo Yuan, Chong Wang, Lingpeng Kong

Random-feature-based attention (RFA) is an efficient approximation of softmax attention with linear runtime and space complexity. However, the approximation gap between RFA and conventional softmax attention is not well studied. Built upon previous progress of RFA, we characterize this gap through the lens of control variates and show that RFA can be decomposed into a sum of multiple control variate estimators for each element in the sequence. This new framework reveals that exact softmax attention can be recovered from RFA by manipulating each control variate. Besides, it allows us to develop a more flexible form of control variates, resulting in a novel attention mechanism that significantly reduces the approximation gap while maintaining linear complexity. Extensive experiments demonstrate that our model outperforms state-of-the-art efficient attention mechanisms on both vision and language tasks.

📄 PDF Abstract BibTeX arXiv:2302.04542

Code (1)

hkunlp/efficient-attention 공식 구현 pytorch

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$…

Similar Papers 제목 키워드 기반

Using Large Ensembles of Control Variates for Variational Inference

2018-10-30 · NeurIPS 2018 12 · Tomas Geffner, Justin Domke

Variational inference is increasingly being addressed with stochastic optimization. In this setting, the gradient's variance plays a crucial role in the optimization procedure, since high variance gradients lead to poor …

Stochastic OptimizationVariational Inference

Probabilistic Model Incorporating Auxiliary Covariates to Control FDR

2022-10-06 · Lin Qiu, Nils Murrugarra-Llerena, Vítor Silva, Lin Lin 외

Controlling False Discovery Rate (FDR) while leveraging the side information of multiple hypothesis testing is an emerging research topic in modern data science. Existing methods rely on the test-level covariates while i…

model

Coordinate-wise Control Variates for Deep Policy Gradients

2021-07-11 · Yuanyi Zhong, Yuan Zhou, Jian Peng

The control variates (CV) method is widely used in policy gradient estimation to reduce the variance of the gradient estimators in practice. A control variate is applied by subtracting a baseline function from the state-…

continuous-controlContinuous Control

Stochastic Multi-Armed Bandits with Control Variates

2021-05-09 · NeurIPS 2021 12 · Arun Verma, Manjesh K. Hanawal

This paper studies a new variant of the stochastic multi-armed bandits problem where auxiliary information about the arm rewards is available in the form of control variates. In many applications like queuing and wireles…

Multi-Armed Bandits

Scalable Control Variates for Monte Carlo Methods via Stochastic Optimization

2020-06-12 · Shijing Si, Chris. J. Oates, Andrew B. Duncan, Lawrence Carin 외

Control variates are a well-established tool to reduce the variance of Monte Carlo estimators. However, for large-scale problems including high-dimensional and large-sample settings, their advantages can be outweighed by…

Bayesian InferenceStochastic Optimization