Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
Paper page - Softpick: No Attention Sink, No Massive Activations with Rectified Softmax
[go: Go Back, main page]

https://github.com/zaydzuhri/softpick-attention.

\n","updatedAt":"2025-05-01T03:08:03.652Z","author":{"_id":"60cf8a354061635e43b28f60","avatarUrl":"https://cdn-avatars.huggingface.co/v1/production/uploads/60cf8a354061635e43b28f60/o8gv9mG5cvnopJZJnNibi.jpeg","fullname":"Zayd Muhammad Kawakibi Zuhri","name":"zaydzuhri","type":"user","isPro":true,"isHf":false,"isHfAdmin":false,"isMod":false,"followerCount":8,"isUserFollowing":false}},"numEdits":0,"identifiedLanguage":{"language":"en","probability":0.8729715943336487},"editors":["zaydzuhri"],"editorAvatarUrls":["https://cdn-avatars.huggingface.co/v1/production/uploads/60cf8a354061635e43b28f60/o8gv9mG5cvnopJZJnNibi.jpeg"],"reactions":[],"isReport":false}},{"id":"6812e61d6c7f8a5900348061","author":{"_id":"60cf8a354061635e43b28f60","avatarUrl":"https://cdn-avatars.huggingface.co/v1/production/uploads/60cf8a354061635e43b28f60/o8gv9mG5cvnopJZJnNibi.jpeg","fullname":"Zayd Muhammad Kawakibi Zuhri","name":"zaydzuhri","type":"user","isPro":true,"isHf":false,"isHfAdmin":false,"isMod":false,"followerCount":8,"isUserFollowing":false},"createdAt":"2025-05-01T03:10:21.000Z","type":"comment","data":{"edited":false,"hidden":false,"latest":{"raw":"Notice: The wikitext perplexity numbers are wrong in V1 of this paper. We did not set the correct LM Eval Harness settings. We will correct them swiftly.","html":"

Notice: The wikitext perplexity numbers are wrong in V1 of this paper. We did not set the correct LM Eval Harness settings. We will correct them swiftly.

\n","updatedAt":"2025-05-01T03:10:21.883Z","author":{"_id":"60cf8a354061635e43b28f60","avatarUrl":"https://cdn-avatars.huggingface.co/v1/production/uploads/60cf8a354061635e43b28f60/o8gv9mG5cvnopJZJnNibi.jpeg","fullname":"Zayd Muhammad Kawakibi Zuhri","name":"zaydzuhri","type":"user","isPro":true,"isHf":false,"isHfAdmin":false,"isMod":false,"followerCount":8,"isUserFollowing":false}},"numEdits":0,"identifiedLanguage":{"language":"en","probability":0.9302736520767212},"editors":["zaydzuhri"],"editorAvatarUrls":["https://cdn-avatars.huggingface.co/v1/production/uploads/60cf8a354061635e43b28f60/o8gv9mG5cvnopJZJnNibi.jpeg"],"reactions":[],"isReport":false}},{"id":"6813180938bee5488196c587","author":{"_id":"62d1ddfac58f969c1528f1b5","avatarUrl":"/avatars/75c372a831cde3c7c6dce3bc875488a7.svg","fullname":"Kalle Hilsenbek","name":"Bachstelze","type":"user","isPro":false,"isHf":false,"isHfAdmin":false,"isMod":false,"followerCount":8,"isUserFollowing":false},"createdAt":"2025-05-01T06:43:21.000Z","type":"comment","data":{"edited":false,"hidden":false,"latest":{"raw":"Predominant attention-sinks occur with models of billions of parameters. Can softpick mitigate them at that scale?","html":"

Predominant attention-sinks occur with models of billions of parameters. Can softpick mitigate them at that scale?

\n","updatedAt":"2025-05-01T06:43:21.896Z","author":{"_id":"62d1ddfac58f969c1528f1b5","avatarUrl":"/avatars/75c372a831cde3c7c6dce3bc875488a7.svg","fullname":"Kalle Hilsenbek","name":"Bachstelze","type":"user","isPro":false,"isHf":false,"isHfAdmin":false,"isMod":false,"followerCount":8,"isUserFollowing":false}},"numEdits":0,"identifiedLanguage":{"language":"en","probability":0.940544605255127},"editors":["Bachstelze"],"editorAvatarUrls":["/avatars/75c372a831cde3c7c6dce3bc875488a7.svg"],"reactions":[],"isReport":false},"replies":[{"id":"681327b57d3ec38a1ae824e3","author":{"_id":"60cf8a354061635e43b28f60","avatarUrl":"https://cdn-avatars.huggingface.co/v1/production/uploads/60cf8a354061635e43b28f60/o8gv9mG5cvnopJZJnNibi.jpeg","fullname":"Zayd Muhammad Kawakibi Zuhri","name":"zaydzuhri","type":"user","isPro":true,"isHf":false,"isHfAdmin":false,"isMod":false,"followerCount":8,"isUserFollowing":false},"createdAt":"2025-05-01T07:50:13.000Z","type":"comment","data":{"edited":false,"hidden":false,"latest":{"raw":"This is an early preprint. We will be scaling up to 2B and 7B model scales soon and update the paper. Stay tuned 👍","html":"

This is an early preprint. We will be scaling up to 2B and 7B model scales soon and update the paper. Stay tuned 👍

\n","updatedAt":"2025-05-01T07:50:13.073Z","author":{"_id":"60cf8a354061635e43b28f60","avatarUrl":"https://cdn-avatars.huggingface.co/v1/production/uploads/60cf8a354061635e43b28f60/o8gv9mG5cvnopJZJnNibi.jpeg","fullname":"Zayd Muhammad Kawakibi Zuhri","name":"zaydzuhri","type":"user","isPro":true,"isHf":false,"isHfAdmin":false,"isMod":false,"followerCount":8,"isUserFollowing":false}},"numEdits":0,"identifiedLanguage":{"language":"en","probability":0.8848195672035217},"editors":["zaydzuhri"],"editorAvatarUrls":["https://cdn-avatars.huggingface.co/v1/production/uploads/60cf8a354061635e43b28f60/o8gv9mG5cvnopJZJnNibi.jpeg"],"reactions":[{"reaction":"🤗","users":["Bachstelze","Erland"],"count":2}],"isReport":false,"parentCommentId":"6813180938bee5488196c587"}}]},{"id":"681421468092f4c646f999c4","author":{"_id":"63d3e0e8ff1384ce6c5dd17d","avatarUrl":"https://cdn-avatars.huggingface.co/v1/production/uploads/1674830754237-63d3e0e8ff1384ce6c5dd17d.jpeg","fullname":"Librarian Bot (Bot)","name":"librarian-bot","type":"user","isPro":false,"isHf":false,"isHfAdmin":false,"isMod":false,"followerCount":318,"isUserFollowing":false},"createdAt":"2025-05-02T01:35:02.000Z","type":"comment","data":{"edited":false,"hidden":false,"latest":{"raw":"This is an automated message from the [Librarian Bot](https://huggingface.co/librarian-bots). I found the following papers similar to this paper. \n\nThe following papers were recommended by the Semantic Scholar API \n\n* [BitNet v2: Native 4-bit Activations with Hadamard Transformation for 1-bit LLMs](https://huggingface.co/papers/2504.18415) (2025)\n* [Accurate INT8 Training Through Dynamic Block-Level Fallback](https://huggingface.co/papers/2503.08040) (2025)\n* [CASP: Compression of Large Multimodal Models Based on Attention Sparsity](https://huggingface.co/papers/2503.05936) (2025)\n* [RSQ: Learning from Important Tokens Leads to Better Quantized LLMs](https://huggingface.co/papers/2503.01820) (2025)\n* [Using Attention Sinks to Identify and Evaluate Dormant Heads in Pretrained LLMs](https://huggingface.co/papers/2504.03889) (2025)\n* [A Refined Analysis of Massive Activations in LLMs](https://huggingface.co/papers/2503.22329) (2025)\n* [Forgetting Transformer: Softmax Attention with a Forget Gate](https://huggingface.co/papers/2503.02130) (2025)\n\n\n Please give a thumbs up to this comment if you found it helpful!\n\n If you want recommendations for any Paper on Hugging Face checkout [this](https://huggingface.co/spaces/librarian-bots/recommend_similar_papers) Space\n\n You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: `@librarian-bot recommend`","html":"

This is an automated message from the Librarian Bot. I found the following papers similar to this paper.

\n

The following papers were recommended by the Semantic Scholar API

\n\n

Please give a thumbs up to this comment if you found it helpful!

\n

If you want recommendations for any Paper on Hugging Face checkout this Space

\n

You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: \n\n@librarian-bot\n\t recommend

\n","updatedAt":"2025-05-02T01:35:02.402Z","author":{"_id":"63d3e0e8ff1384ce6c5dd17d","avatarUrl":"https://cdn-avatars.huggingface.co/v1/production/uploads/1674830754237-63d3e0e8ff1384ce6c5dd17d.jpeg","fullname":"Librarian Bot (Bot)","name":"librarian-bot","type":"user","isPro":false,"isHf":false,"isHfAdmin":false,"isMod":false,"followerCount":318,"isUserFollowing":false}},"numEdits":0,"identifiedLanguage":{"language":"en","probability":0.7578765749931335},"editors":["librarian-bot"],"editorAvatarUrls":["https://cdn-avatars.huggingface.co/v1/production/uploads/1674830754237-63d3e0e8ff1384ce6c5dd17d.jpeg"],"reactions":[],"isReport":false}}],"primaryEmailConfirmed":false,"paper":{"id":"2504.20966","authors":[{"_id":"6812e473060494e99e4c5116","user":{"_id":"60cf8a354061635e43b28f60","avatarUrl":"https://cdn-avatars.huggingface.co/v1/production/uploads/60cf8a354061635e43b28f60/o8gv9mG5cvnopJZJnNibi.jpeg","isPro":true,"fullname":"Zayd Muhammad Kawakibi Zuhri","user":"zaydzuhri","type":"user"},"name":"Zayd M. K. Zuhri","status":"claimed_verified","statusLastChangedAt":"2025-05-02T06:35:00.473Z","hidden":false},{"_id":"6812e473060494e99e4c5117","user":{"_id":"6239ac869895e5c2a4345131","avatarUrl":"https://cdn-avatars.huggingface.co/v1/production/uploads/6239ac869895e5c2a4345131/QErVhX2EdKUSg06eRrU7L.jpeg","isPro":false,"fullname":"Edd","user":"Erland","type":"user"},"name":"Erland Hilman Fuadi","status":"claimed_verified","statusLastChangedAt":"2025-05-02T06:34:58.163Z","hidden":false},{"_id":"6812e473060494e99e4c5118","user":{"_id":"61a4dc053205e107691e0d82","avatarUrl":"https://cdn-avatars.huggingface.co/v1/production/uploads/61a4dc053205e107691e0d82/BESoEHlHYXstXudh6dOdT.jpeg","isPro":true,"fullname":"Alham Fikri Aji","user":"afaji","type":"user"},"name":"Alham Fikri Aji","status":"admin_assigned","statusLastChangedAt":"2025-05-05T08:00:02.817Z","hidden":false}],"mediaUrls":["https://cdn-uploads.huggingface.co/production/uploads/60cf8a354061635e43b28f60/ZQTvDnn0F_MaUg5zlVk62.png"],"publishedAt":"2025-04-29T17:36:18.000Z","submittedOnDailyAt":"2025-05-01T01:38:03.643Z","title":"Softpick: No Attention Sink, No Massive Activations with Rectified\n Softmax","submittedOnDailyBy":{"_id":"60cf8a354061635e43b28f60","avatarUrl":"https://cdn-avatars.huggingface.co/v1/production/uploads/60cf8a354061635e43b28f60/o8gv9mG5cvnopJZJnNibi.jpeg","isPro":true,"fullname":"Zayd Muhammad Kawakibi Zuhri","user":"zaydzuhri","type":"user"},"summary":"We introduce softpick, a rectified, not sum-to-one, drop-in replacement for\nsoftmax in transformer attention mechanisms that eliminates attention sink and\nmassive activations. Our experiments with 340M parameter models demonstrate\nthat softpick maintains performance parity with softmax on standard benchmarks\nwhile achieving 0% sink rate. The softpick transformer produces hidden states\nwith significantly lower kurtosis (340 vs 33,510) and creates sparse attention\nmaps (46.97% sparsity). Models using softpick consistently outperform softmax\nwhen quantized, with particularly pronounced advantages at lower bit\nprecisions. Our analysis and discussion shows how softpick has the potential to\nopen new possibilities for quantization, low-precision training, sparsity\noptimization, pruning, and interpretability. Our code is available at\nhttps://github.com/zaydzuhri/softpick-attention.","upvotes":31,"discussionId":"6812e475060494e99e4c519f","githubRepo":"https://github.com/zaydzuhri/softpick-attention","githubRepoAddedBy":"auto","ai_summary":"Softpick is a drop-in replacement for softmax in transformer attention mechanisms that improves performance, reduces activation sinks, and achieves sparsity, particularly beneficial for quantization and low-precision training.","ai_keywords":["softmax","softpick","attention mechanisms","attention sink","kurtosis","sparse attention maps","quantization","low-precision training","sparsity optimization","pruning","interpretability"],"githubStars":87},"canReadDatabase":false,"canManagePapers":false,"canSubmit":false,"hasHfLevelAccess":false,"upvoted":false,"upvoters":[{"_id":"60cf8a354061635e43b28f60","avatarUrl":"https://cdn-avatars.huggingface.co/v1/production/uploads/60cf8a354061635e43b28f60/o8gv9mG5cvnopJZJnNibi.jpeg","isPro":true,"fullname":"Zayd Muhammad Kawakibi Zuhri","user":"zaydzuhri","type":"user"},{"_id":"61a4dc053205e107691e0d82","avatarUrl":"https://cdn-avatars.huggingface.co/v1/production/uploads/61a4dc053205e107691e0d82/BESoEHlHYXstXudh6dOdT.jpeg","isPro":true,"fullname":"Alham Fikri Aji","user":"afaji","type":"user"},{"_id":"620783f24e28382272337ba4","avatarUrl":"https://cdn-avatars.huggingface.co/v1/production/uploads/620783f24e28382272337ba4/zkUveQPNiDfYjgGhuFErj.jpeg","isPro":false,"fullname":"GuoLiangTang","user":"Tommy930","type":"user"},{"_id":"66b57c77778c98d29446c8ec","avatarUrl":"/avatars/c176bb7c072f3093f6a0786c87d384d8.svg","isPro":false,"fullname":"Taekyung Ki","user":"taekyungki","type":"user"},{"_id":"643a5d630e5495afdef6f9a6","avatarUrl":"/avatars/e021e9e3a70e01e93fa3a7c468e15ce3.svg","isPro":false,"fullname":"Matthew Shorter","user":"MattShorter","type":"user"},{"_id":"6365dd6fe7a78348d825b56f","avatarUrl":"/avatars/ba692bacea4ecb547854de1c3d539640.svg","isPro":false,"fullname":"Josh Fourie","user":"JoshFourie","type":"user"},{"_id":"60c7fe961ef9b0a2ad1d398e","avatarUrl":"https://cdn-avatars.huggingface.co/v1/production/uploads/60c7fe961ef9b0a2ad1d398e/S4ewjcFp_q0Fj6QK8GwtL.jpeg","isPro":false,"fullname":"Farid Adilazuarda","user":"faridlazuarda","type":"user"},{"_id":"6239ac869895e5c2a4345131","avatarUrl":"https://cdn-avatars.huggingface.co/v1/production/uploads/6239ac869895e5c2a4345131/QErVhX2EdKUSg06eRrU7L.jpeg","isPro":false,"fullname":"Edd","user":"Erland","type":"user"},{"_id":"6039478ab3ecf716b1a5fd4d","avatarUrl":"https://cdn-avatars.huggingface.co/v1/production/uploads/6039478ab3ecf716b1a5fd4d/_Thy4E7taiSYBLKxEKJbT.jpeg","isPro":true,"fullname":"taesiri","user":"taesiri","type":"user"},{"_id":"648eb1eb59c4e5c87dc116e0","avatarUrl":"/avatars/c636cea39c2c0937f01398c94ead5dad.svg","isPro":false,"fullname":"fdsqefsgergd","user":"T-representer","type":"user"},{"_id":"666b144b590bb29565b022e9","avatarUrl":"/avatars/7cb473e1812173a9157d989949df74e2.svg","isPro":false,"fullname":"John Loverich","user":"john-glodon","type":"user"},{"_id":"62bf29e8e140faaa852a755e","avatarUrl":"/avatars/f307045a4b94223e2e71a292a8f8efdf.svg","isPro":false,"fullname":"Walter Hugo Lopez Pinaya","user":"Warvito","type":"user"}],"acceptLanguages":["*"],"dailyPaperRank":0}">
Papers
arxiv:2504.20966

Softpick: No Attention Sink, No Massive Activations with Rectified Softmax

Published on Apr 29, 2025
· Submitted by
Zayd Muhammad Kawakibi Zuhri
on May 1, 2025

Abstract

Softpick is a drop-in replacement for softmax in transformer attention mechanisms that improves performance, reduces activation sinks, and achieves sparsity, particularly beneficial for quantization and low-precision training.

AI-generated summary

We introduce softpick, a rectified, not sum-to-one, drop-in replacement for softmax in transformer attention mechanisms that eliminates attention sink and massive activations. Our experiments with 340M parameter models demonstrate that softpick maintains performance parity with softmax on standard benchmarks while achieving 0% sink rate. The softpick transformer produces hidden states with significantly lower kurtosis (340 vs 33,510) and creates sparse attention maps (46.97% sparsity). Models using softpick consistently outperform softmax when quantized, with particularly pronounced advantages at lower bit precisions. Our analysis and discussion shows how softpick has the potential to open new possibilities for quantization, low-precision training, sparsity optimization, pruning, and interpretability. Our code is available at https://github.com/zaydzuhri/softpick-attention.

Community

Paper author Paper submitter

We introduce softpick, a rectified, not sum-to-one, drop-in replacement for softmax in transformer attention mechanisms that eliminates attention sink and massive activations. Our experiments with 340M parameter models demonstrate that softpick maintains performance parity with softmax on standard benchmarks while achieving 0% sink rate. The softpick transformer produces hidden states with significantly lower kurtosis (340 vs 33,510) and creates sparse attention maps (46.97% sparsity). Models using softpick consistently outperform softmax when quantized, with particularly pronounced advantages at lower bit precisions. Our analysis and discussion shows how softpick has the potential to open new possibilities for quantization, low-precision training, sparsity optimization, pruning, and interpretability. Our code is available at https://github.com/zaydzuhri/softpick-attention.

Paper author Paper submitter

Notice: The wikitext perplexity numbers are wrong in V1 of this paper. We did not set the correct LM Eval Harness settings. We will correct them swiftly.

Predominant attention-sinks occur with models of billions of parameters. Can softpick mitigate them at that scale?

·
Paper author

This is an early preprint. We will be scaling up to 2B and 7B model scales soon and update the paper. Stay tuned 👍

This is an automated message from the Librarian Bot. I found the following papers similar to this paper.

The following papers were recommended by the Semantic Scholar API

Please give a thumbs up to this comment if you found it helpful!

If you want recommendations for any Paper on Hugging Face checkout this Space

You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend

Sign up or log in to comment

Models citing this paper 6

Browse 6 models citing this paper

Datasets citing this paper 0

No dataset linking this paper

Cite arxiv.org/abs/2504.20966 in a dataset README.md to link it from this page.

Spaces citing this paper 0

No Space linking this paper

Cite arxiv.org/abs/2504.20966 in a Space README.md to link it from this page.

Collections including this paper 7