{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/attention-free-keyword-spotting","title":"Attention-Free Keyword Spotting","arxiv_id":"2110.07749","date":"2021-10-14","proceeding":null,"authors":["Mashrur M. Morshed","Ahmad Omar Ahsan"],"abstract":"Till now, attention-based models have been used with great success in the keyword spotting problem domain. However, in light of recent advances in deep learning, the question arises whether self-attention is truly irreplaceable for recognizing speech keywords. We thus explore the usage of gated MLPs --previously shown to be alternatives to transformers in vision tasks-- for the keyword spotting task. We provide a family of highly efficient MLP-based models for keyword spotting, with less than 0.5 million parameters. We show that our approach achieves competitive performance on Google Speech Commands V2-12 and V2-35 benchmarks with much fewer parameters than self-attention-based methods.","url_abs":"https://arxiv.org/abs/2110.07749v3","url_pdf":"https://arxiv.org/pdf/2110.07749v3.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"attention-free-keyword-spotting","repo_url":"https://github.com/AI-Research-BD/Keyword-MLP","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"keyword-spotting","task_name":"Keyword Spotting"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/keyword-spotting-on-google-speech-commands","task":"Keyword Spotting","dataset":"Google Speech Commands","model":"KW-MLP","rank_in_archive_order":34,"of":42,"metrics":{"Google Speech Commands V2 35":"97.56"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2110.07749","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2110.07749"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/AI-Research-BD/Keyword-MLP","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":10},"by_repo_kind":{"official":{"samples":10,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"12d715bdf737f38c","entry":"calc_step","repo":"AI-Research-BD/Keyword-MLP","repo_kind":"official","path":"utils/misc.py","file_url":"https://github.com/AI-Research-BD/Keyword-MLP/blob/HEAD/utils/misc.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"12d715bdf737f38c"}},{"code_sha256_prefix":"854b6b5cf6315fbc","entry":"count_params","repo":"AI-Research-BD/Keyword-MLP","repo_kind":"official","path":"utils/misc.py","file_url":"https://github.com/AI-Research-BD/Keyword-MLP/blob/HEAD/utils/misc.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"854b6b5cf6315fbc"}},{"code_sha256_prefix":"ce12abe20e1af654","entry":"dropout_layers","repo":"AI-Research-BD/Keyword-MLP","repo_kind":"official","path":"models/kwmlp.py","file_url":"https://github.com/AI-Research-BD/Keyword-MLP/blob/HEAD/models/kwmlp.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ce12abe20e1af654"}},{"code_sha256_prefix":"40175e67a61190d6","entry":"evaluate","repo":"AI-Research-BD/Keyword-MLP","repo_kind":"official","path":"utils/trainer.py","file_url":"https://github.com/AI-Research-BD/Keyword-MLP/blob/HEAD/utils/trainer.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"40175e67a61190d6"}},{"code_sha256_prefix":"d203ddadc113d9d6","entry":"get_config","repo":"AI-Research-BD/Keyword-MLP","repo_kind":"official","path":"config_parser.py","file_url":"https://github.com/AI-Research-BD/Keyword-MLP/blob/HEAD/config_parser.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d203ddadc113d9d6"}},{"code_sha256_prefix":"d65ca06fe0124125","entry":"get_optimizer","repo":"AI-Research-BD/Keyword-MLP","repo_kind":"official","path":"utils/opt.py","file_url":"https://github.com/AI-Research-BD/Keyword-MLP/blob/HEAD/utils/opt.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d65ca06fe0124125"}},{"code_sha256_prefix":"43893718a859b6fe","entry":"get_preds","repo":"AI-Research-BD/Keyword-MLP","repo_kind":"official","path":"inference.py","file_url":"https://github.com/AI-Research-BD/Keyword-MLP/blob/HEAD/inference.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"43893718a859b6fe"}},{"code_sha256_prefix":"d836a387836b9a38","entry":"get_scheduler","repo":"AI-Research-BD/Keyword-MLP","repo_kind":"official","path":"utils/scheduler.py","file_url":"https://github.com/AI-Research-BD/Keyword-MLP/blob/HEAD/utils/scheduler.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d836a387836b9a38"}},{"code_sha256_prefix":"1dda7e6316a2f0ba","entry":"get_train_val_test_split","repo":"AI-Research-BD/Keyword-MLP","repo_kind":"official","path":"utils/dataset.py","file_url":"https://github.com/AI-Research-BD/Keyword-MLP/blob/HEAD/utils/dataset.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1dda7e6316a2f0ba"}},{"code_sha256_prefix":"1aa66761878693ca","entry":"train_single_batch","repo":"AI-Research-BD/Keyword-MLP","repo_kind":"official","path":"utils/trainer.py","file_url":"https://github.com/AI-Research-BD/Keyword-MLP/blob/HEAD/utils/trainer.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1aa66761878693ca"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}