{"about":{"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.","site":"https://codewithpapers.app","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","syntology":{"site":"https://syntology.ai","developers":"https://syntology.ai/developers","mcp":{"server":"https://syntology.ai/mcp","transport":"streamable-http","server_card":"https://syntology.ai/.well-known/mcp/server-card.json","auth":{"type":"trial token, no account","trial_token":"https://syntology.ai/api/oauth/trial/token","method":"POST","docs":"https://syntology.ai/developers"}},"have":"https://syntology.ai/api/graph/have?x=<method, arXiv id or title> (free, answers coverage only)","paper_base":"https://syntology.ai/paper/","atlas_base":"https://app.syntology.ai/?focus="},"machine_readable":[{"url":"https://codewithpapers.app/llms.txt","what":"the machine catalog: every machine-readable file, counted"},{"url":"https://codewithpapers.app/index/manifest.json","what":"paper-to-code index by arXiv id, with Syntology's counts"},{"url":"https://codewithpapers.app/search/manifest.json","what":"site search index (titles, authors) and its files"},{"url":"https://codewithpapers.app/download","what":"bulk files: Syntology's layer, described there"},{"url":"https://codewithpapers.app/build_manifest.json","what":"the build record: inputs, counts, exclusions, probes"}]},"url":"/paper/bam-bottleneck-attention-module","title":"BAM: Bottleneck Attention Module","arxiv_id":"1807.06514","date":"2018-07-17","proceeding":null,"authors":["Jongchan Park","Sanghyun Woo","Joon-Young Lee","In So Kweon"],"abstract":"Recent advances in deep neural networks have been developed via architecture\nsearch for stronger representational power. In this work, we focus on the\neffect of attention in general deep neural networks. We propose a simple and\neffective attention module, named Bottleneck Attention Module (BAM), that can\nbe integrated with any feed-forward convolutional neural networks. Our module\ninfers an attention map along two separate pathways, channel and spatial. We\nplace our module at each bottleneck of models where the downsampling of feature\nmaps occurs. Our module constructs a hierarchical attention at bottlenecks with\na number of parameters and it is trainable in an end-to-end manner jointly with\nany feed-forward models. We validate our BAM through extensive experiments on\nCIFAR-100, ImageNet-1K, VOC 2007 and MS COCO benchmarks. Our experiments show\nconsistent improvement in classification and detection performances with\nvarious models, demonstrating the wide applicability of BAM. The code and\nmodels will be publicly available.","url_abs":"http://arxiv.org/abs/1807.06514v2","url_pdf":"http://arxiv.org/pdf/1807.06514v2.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":"bam-bottleneck-attention-module","repo_url":"https://github.com/huyz1117/BAM","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok"}},{"paper_slug":"bam-bottleneck-attention-module","repo_url":"https://github.com/osmr/imgclsmob","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"mxnet","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"bam-bottleneck-attention-module","repo_url":"https://github.com/xmu-xiaoma666/External-Attention-pytorch","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"bam-bottleneck-attention-module","repo_url":"https://github.com/2023-MindSpore-1/ms-code-216/tree/main/resnet50_bam","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"mindspore","reach":null},{"paper_slug":"bam-bottleneck-attention-module","repo_url":"https://github.com/2023-MindSpore-4/Code14/tree/main/resnet50_bam","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"mindspore","reach":null},{"paper_slug":"bam-bottleneck-attention-module","repo_url":"https://github.com/MindSpore-paper-code-3/code5/tree/main/resnet50_bam","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"mindspore","reach":null},{"paper_slug":"bam-bottleneck-attention-module","repo_url":"https://github.com/code-implementation1/Code7/tree/main/resnet50_bam","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"mindspore","reach":null},{"paper_slug":"bam-bottleneck-attention-module","repo_url":"https://github.com/gan3sh500/custom-pooling","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"bam-bottleneck-attention-module","repo_url":"https://github.com/mindspore-ai/models/tree/master/research/cv/resnet50_bam","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"mindspore","reach":null},{"paper_slug":"bam-bottleneck-attention-module","repo_url":"https://github.com/mindspore-courses/External-Attention-MindSpore/blob/main/model/attention/BAM.py","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"mindspore","reach":null}],"tasks":[{"task_slug":"architecture-search","task_name":"Neural Architecture Search"}],"methods":[{"method_slug":"bam","method_name":"BAM"}],"datasets_introduced":[],"methods_introduced":[{"slug":"bam","name":"BAM","full_name":"Bottleneck Attention Module"}],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/1807.06514","atlas_url":"https://app.syntology.ai/?focus=1807.06514","mcp":null,"developers":"https://syntology.ai/developers","held":true,"reason":"arxiv_id_in_atlas","checked_against":{"atlas_ids":549449,"atlas_ids_sha256":"afd72399dafd9906e9062927f70655952385a3d75488558e1f0484e950ab09b7","read_at":"2026-10-05T01:46:21Z"},"agent_calls":[{"tool":"get_citation_path","arguments":{"paper_1":"1807.06514"},"arguments_in":{"paper_2":"another paper's arXiv id or title"},"call":"get_citation_path(paper_1=\"1807.06514\", paper_2=\"…\")"},{"tool":"get_concepts_for_paper","arguments":{"arxiv_id":"1807.06514"},"call":"get_concepts_for_paper(arxiv_id=\"1807.06514\")"}],"by_repo":[{"repo":"huyz1117/BAM","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0},{"repo":"osmr/imgclsmob","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0,"harvested_for_other_papers":1,"harvested_for":["2004.08955"],"harvested_for_calls":[{"arxiv_id":"2004.08955","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2004.08955"},"call":"get_harvested_code_for_paper(arxiv_id=\"2004.08955\")"}]},{"repo":"xmu-xiaoma666/External-Attention-pytorch","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0,"harvested_for_other_papers":7,"harvested_for":["1706.03762","2101.03697","2103.06255","2103.12731","2105.01601","2105.08050","2110.02178"],"harvested_for_calls":[{"arxiv_id":"1706.03762","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"1706.03762"},"call":"get_harvested_code_for_paper(arxiv_id=\"1706.03762\")"},{"arxiv_id":"2101.03697","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2101.03697"},"call":"get_harvested_code_for_paper(arxiv_id=\"2101.03697\")"},{"arxiv_id":"2103.06255","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2103.06255"},"call":"get_harvested_code_for_paper(arxiv_id=\"2103.06255\")"},{"arxiv_id":"2103.12731","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2103.12731"},"call":"get_harvested_code_for_paper(arxiv_id=\"2103.12731\")"},{"arxiv_id":"2105.01601","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2105.01601"},"call":"get_harvested_code_for_paper(arxiv_id=\"2105.01601\")"},{"arxiv_id":"2105.08050","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2105.08050"},"call":"get_harvested_code_for_paper(arxiv_id=\"2105.08050\")"},{"arxiv_id":"2110.02178","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2110.02178"},"call":"get_harvested_code_for_paper(arxiv_id=\"2110.02178\")"}]},{"repo":"2023-MindSpore-1/ms-code-216","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0},{"repo":"2023-MindSpore-4/Code14","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0},{"repo":"MindSpore-paper-code-3/code5","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0},{"repo":"code-implementation1/Code7","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0},{"repo":"gan3sh500/custom-pooling","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0},{"repo":"mindspore-ai/models","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0,"harvested_for_other_papers":1,"harvested_for":["2208.08084"],"harvested_for_calls":[{"arxiv_id":"2208.08084","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2208.08084"},"call":"get_harvested_code_for_paper(arxiv_id=\"2208.08084\")"}]},{"repo":"mindspore-courses/External-Attention-MindSpore","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0}],"by_repo_harvested_for_is":"harvested_for: the arXiv ids (as Syntology's graph holds them) of every paper whose samples Syntology's graph links to this repository, in arXiv-id order, complete; the page names the first 3 and says how many more. A link only: it does not say the papers are the same work, that one copied the other, or that the code implements this paper's method; harvested_for_calls gives the get_harvested_code_for_paper call for each arXiv-shaped id among them","by_repo_is":"one row per repository in the archive's code links, Syntology's graph links or the samples; samples 0 means no sample is linked to this paper, a statement about Syntology's coverage, not about the repository: with harvested_for_other_papers present, Syntology harvested the repository for that many other papers, and without it, Syntology harvested nothing from it; placed_by_identical_code counts samples whose link records no repository, placed here because identical code was harvested from this repository for another paper; ran counts executions on a synthesized input and instrument counts failures of Syntology's instrument, not of the code"},"code_links_note":null,"arxiv_metadata":null,"syntology_extracted_results":null,"record_sha256":"48ab25e7c7f373ee1f339ccbdc5dc4f9e2018e9cc0e56e1fb1186726647db395","record_changed_at":"2026-09-28","record_changed_at_basis":"first_hashed"}