Yu Yan
Research Subjects
Yu Yan has a total of 6 co-authors. Here are the top co-authors by number of shared publications:
- Jiusheng Chen
College of Electronic Information and Automation, Civil Aviation University of China, Tianjin, China
1 shared publication - Nan Duan
Microsoft Research Asia
1 shared publication - Nikhil Bhendawade
Microsoft)
1 shared publication - Ruofei Zhang
Apple Inc
1 shared publication Weizhen Qi
Univ. of Sci. and Tech. of China
1 shared publication- Yeyun Gong
Microsoft Research Asia, Beijing, China
1 shared publication
Latest Publications
- Open Access
EL-Attention: Memory Efficient Lossless Attention for Generation
Transformer model with multi-head attention requires caching intermediate results for efficient inference in generation tasks. However, cache brings new memory-related costs and prevents leveraging larger batch size for faster speed. We propose memory-efficient lossless attention (called EL-attention) to address this issue. It avoids heavy operations for building multi-head keys and values, cache for them is not needed. EL-attention constructs an ensemble of attention results by expanding query while keeping key and value shared. It produces the same result as multi-head attention with less GPU memory and faster inference speed. We conduct extensive experiments on Transformer, BART, and GPT-2 for summarization and question generation tasks. The results show EL-attention speeds up existing models by 1.6x to 5.3x without accuracy loss.
Open AccessEL-Attention: Memory Efficient Lossless Attention for Generation
Transformer model with multi-head attention requires caching intermediate results for efficient inference in generation tasks. However, cache brings new memory-related costs and prevents leveraging larger batch size for faster speed. We propose memory-efficient lossless attention (called EL-attention) to address this issue. It avoids heavy operations for building multi-head keys and values, cache for them is not needed. EL-attention constructs an ensemble of attention results by expanding query while keeping key and value shared. It produces the same result as multi-head attention with less GPU memory and faster inference speed. We conduct extensive experiments on Transformer, BART, and GPT-2 for summarization and question generation tasks. The results show EL-attention speeds up existing models by 1.6x to 5.3x without accuracy loss.