Downloads · 30 days
3.5K
2% of all-time downloads
uw-madison/mra-base-512-4
mra-base-512-4 is a fill-mask model from uw-madison. Use it when you need the model to fill a missing word. It is set up for transformers.
MRA model for masked language modeling (MLM) for sequence length 512.
Downloads · 30 days
3.5K
2% of all-time downloads
All-time downloads
167K
Public
Repo size
998 MB
Likes
1
Public
Click a slice to open those files.
.bin499 MB · 100%
From the Hugging Face model README
MRA model for masked language modeling (MLM) for sequence length 512.
The MRA model was proposed in Multi Resolution Analysis (MRA) for Approximate Self-Attention by Zhanpeng Zeng, Sourav Pal, Jeffery Kline, Glenn M Fung, and Vikas Singh.
The abstract from the paper is the following:
Transformers have emerged as a preferred model for many tasks in natural langugage processing and vision. Recent efforts on training and deploying Transformers more efficiently have identified many strategies to approximate the self-attention matrix, a key module in a Transformer architecture. Effective ideas include various prespecified sparsity patterns, low-rank basis expansions and combinations thereof. In this paper, we revisit classical Multiresolution Analysis (MRA) concepts such as Wavelets, whose potential value in this setting remains underexplored thus far. We show that simple approximations based on empirical feedback and design choices informed by modern hardware and implementation challenges, eventually yield a MRA-based approach for self-attention with an excellent performance profile across most criteria of interest. We undertake an extensive set of experiments and demonstrate that this multi-resolution scheme outperforms most efficient self-attention proposals and is favorable for both short and long sequences. Code is available at https://github.com/mlpen/mra-attention.
This model was contributed by novice03. The original code can be found here.