{"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":"/method/bam","slug":"bam","name":"BAM","full_name":"Bottleneck Attention Module","full_name_withheld":false,"description_markdown":"Park et al. proposed the bottleneck attention module (BAM), aiming\r\nto efficiently improve the representational capability of networks. \r\nIt uses dilated convolution to enlarge the receptive field of the spatial attention sub-module, and build a bottleneck structure as suggested  by ResNet to save computational cost.\r\n\r\nFor a given input feature map $X$, BAM infers the channel attention $s_c \\in \\mathbb{R}^C$ and spatial attention $s_s\\in \\mathbb{R}^{H\\times W}$ in two parallel streams, then sums the two attention maps after resizing both branch outputs to $\\mathbb{R}^{C\\times H \\times W}$. The channel attention branch, like an SE block, applies global average pooling to the feature map to aggregate global information, and then uses an MLP with channel dimensionality reduction. In order to utilize contextual information effectively, the spatial attention branch combines a bottleneck structure and dilated convolutions. Overall, BAM can be written as\r\n\\begin{align}\r\n    s_c &= \\text{BN}(W_2(W_1\\text{GAP}(X)+b_1)+b_2)\r\n\\end{align}\r\n\r\n\\begin{align}\r\n    s_s &= BN(Conv_2^{1 \\times 1}(DC_2^{3\\times 3}(DC_1^{3 \\times 3}(Conv_1^{1 \\times 1}(X))))) \r\n\\end{align}\r\n\\begin{align}\r\n    s &= \\sigma(\\text{Expand}(s_s)+\\text{Expand}(s_c)) \r\n\\end{align}\r\n\\begin{align}\r\n    Y &= s X+X\r\n\\end{align}\r\nwhere $W_i$, $b_i$ denote  weights and biases of fully connected layers respectively, $Conv_{1}^{1\\times 1}$ and $Conv_{2}^{1\\times 1}$ are convolution layers  used for channel reduction. $DC_i^{3\\times 3}$ denotes a dilated convolution with $3\\times 3$ kernel,  applied to utilize contextual information effectively. $\\text{Expand}$ expands the attention maps $s_s$ and $s_c$ to $\\mathbb{R}^{C\\times H\\times W}$.\r\n\r\nBAM can emphasize or suppress features in both spatial and channel dimensions, as well as improving the representational power. Dimensional reduction applied to both channel and spatial attention branches enables it to be integrated with any convolutional neural network with little extra computational cost. However, although dilated convolutions enlarge the receptive field effectively, it still fails to capture long-range contextual information as well as encoding cross-domain relationships.","description_state":"present","introduced_year":null,"introduced_by":{"title":"BAM: Bottleneck Attention Module","paper":"/paper/bam-bottleneck-attention-module","first_author":"Jongchan Park","n_authors":4,"url_abs":null,"archive_paper_url":"https://paperswithcode.com/paper/bam-bottleneck-attention-module"},"source":{"url":"http://arxiv.org/abs/1807.06514v2","title":"BAM: Bottleneck Attention Module","url_on_a_paper_host":true},"code_snippet_url":null,"code_snippet_url_on_a_code_host":false,"categories":[{"area":"General","area_id":"general","collection":"Attention Mechanisms","url":"/methods/category/attention-mechanisms","pwc_aliases":["attention-mechanisms-1"]}],"n_papers_tagged":33,"archive_num_papers":33,"papers_newest_first":[{"paper":null,"slug":"synthesizing-images-on-perceptual-boundaries","title":"Synthesizing Images on Perceptual Boundaries of ANNs for Uncovering and Manipulating Human Perceptual Variability","date":"2025-05-06","arxiv_id":"2505.03641","n_code_links":0,"syntology":null},{"paper":null,"slug":"reliability-assessment-of-low-cost-pm-sensors","title":"Reliability Assessment of Low-Cost PM Sensors under High Humidity and High PM Level Outdoor Conditions","date":"2025-04-09","arxiv_id":"2504.06615","n_code_links":0,"syntology":null},{"paper":"/paper/adacs-adaptive-normalization-for-enhanced","slug":"adacs-adaptive-normalization-for-enhanced","title":"AdaCS: Adaptive Normalization for Enhanced Code-Switching ASR","date":"2025-01-13","arxiv_id":"2501.07102","n_code_links":1,"syntology":null},{"paper":null,"slug":"scale-wise-bidirectional-alignment-network","title":"Scale-wise Bidirectional Alignment Network for Referring Remote Sensing Image Segmentation","date":"2025-01-01","arxiv_id":"2501.00851","n_code_links":0,"syntology":null},{"paper":null,"slug":"greenback-bears-and-fiscal-hawks-finance-is-a","title":"Greenback Bears and Fiscal Hawks: Finance is a Jungle and Text Embeddings Must Adapt","date":"2024-11-11","arxiv_id":"2411.07142","n_code_links":0,"syntology":null},{"paper":"/paper/batch-match-and-patch-low-rank-approximations","slug":"batch-match-and-patch-low-rank-approximations","title":"Batch, match, and patch: low-rank approximations for score-based variational inference","date":"2024-10-29","arxiv_id":"2410.22292","n_code_links":1,"syntology":null},{"paper":null,"slug":"bam-just-like-that-simple-and-efficient","title":"BAM! Just Like That: Simple and Efficient Parameter Upcycling for Mixture of Experts","date":"2024-08-15","arxiv_id":"2408.08274","n_code_links":0,"syntology":null},{"paper":"/paper/2408-02014","slug":"2408-02014","title":"Unsupervised Representation Learning by Balanced Self Attention Matching","date":"2024-08-04","arxiv_id":"2408.02014","n_code_links":1,"syntology":null},{"paper":null,"slug":"mitigating-catastrophic-forgetting-in-1","title":"Mitigating Catastrophic Forgetting in Language Transfer via Model Merging","date":"2024-07-11","arxiv_id":"2407.08699","n_code_links":0,"syntology":null},{"paper":null,"slug":"bam-box-abstraction-monitors-for-real-time","title":"BAM: Box Abstraction Monitors for Real-time OoD Detection in Object Detection","date":"2024-03-27","arxiv_id":"2403.18373","n_code_links":0,"syntology":null},{"paper":null,"slug":"methylation-operation-wizard-meow","title":"Methylation Operation Wizard (MeOW): Identification of differentially methylated regions in long-read sequencing data","date":"2024-02-27","arxiv_id":"2402.17182","n_code_links":0,"syntology":null},{"paper":"/paper/batch-and-match-black-box-variational","slug":"batch-and-match-black-box-variational","title":"Batch and match: black-box variational inference with a score-based divergence","date":"2024-02-22","arxiv_id":"2402.14758","n_code_links":2,"syntology":{"ran":7,"of":10,"n_ran_checked":5,"n_instrument":2,"unverified":3,"pointer_only":0,"phrase":"7 ran (of which 0 constructed an object rather than computing a result; 5 with no instrument failure: 1 honoured, 0 violated, 4 with no contract checked; 2 where Syntology's instrument failed) · 3 unverified","official":{"repos":["modichirag/gsm-vi","roualdes/bridgestan"],"state":"official (archive's flag): 7 ran","n_ran":7,"n_constructed":0,"n_ran_no_instrument_failure":5,"n_unverified":3,"ran_from_kinds":["official"]}}},{"paper":"/paper/ms-former-memory-supported-transformer-for","slug":"ms-former-memory-supported-transformer-for","title":"MS-Former: Memory-Supported Transformer for Weakly Supervised Change Detection with Patch-Level Annotations","date":"2023-11-16","arxiv_id":"2311.09726","n_code_links":1,"syntology":null},{"paper":"/paper/bias-amplification-enhances-minority-group","slug":"bias-amplification-enhances-minority-group","title":"Bias Amplification Enhances Minority Group Performance","date":"2023-09-13","arxiv_id":"2309.06717","n_code_links":1,"syntology":{"ran":8,"of":9,"n_ran_checked":5,"n_instrument":3,"unverified":1,"pointer_only":9,"phrase":"8 ran (of which 0 constructed an object rather than computing a result; 5 with no instrument failure: 0 honoured, 0 violated, 5 with no contract checked; 3 where Syntology's instrument failed) · 1 unverified","official":{"repos":["motivationss/bam"],"state":"official (archive's flag): 8 ran","n_ran":8,"n_constructed":0,"n_ran_no_instrument_failure":5,"n_unverified":1,"ran_from_kinds":["official"]}}},{"paper":null,"slug":"bias-aware-minimisation-understanding-and","title":"Bias-Aware Minimisation: Understanding and Mitigating Estimator Bias in Private SGD","date":"2023-08-23","arxiv_id":"2308.12018","n_code_links":0,"syntology":null},{"paper":null,"slug":"boundary-attention-mapping-bam-fine-grained","title":"Boundary Attention Mapping (BAM): Fine-grained saliency maps for segmentation of Burn Injuries","date":"2023-05-24","arxiv_id":"2305.15365","n_code_links":0,"syntology":null},{"paper":"/paper/a-convolutional-transformer-network-for-crack","slug":"a-convolutional-transformer-network-for-crack","title":"A Convolutional-Transformer Network for Crack Segmentation with Boundary Awareness","date":"2023-02-23","arxiv_id":"2302.11728","n_code_links":1,"syntology":null},{"paper":null,"slug":"interpretable-diabetic-retinopathy-diagnosis","title":"Interpretable Diabetic Retinopathy Diagnosis based on Biomarker Activation Map","date":"2022-12-13","arxiv_id":"2212.06299","n_code_links":0,"syntology":null},{"paper":null,"slug":"reinforcement-learning-agent-design-and","title":"Reinforcement Learning Agent Design and Optimization with Bandwidth Allocation Model","date":"2022-11-23","arxiv_id":"2211.12987","n_code_links":0,"syntology":null},{"paper":null,"slug":"thermodynamics-of-bidirectional-associative","title":"Thermodynamics of bidirectional associative memories","date":"2022-11-17","arxiv_id":"2211.09694","n_code_links":0,"syntology":null},{"paper":null,"slug":"identifying-ocrs-in-cfdna-wgs-data-by","title":"Identifying OCRs in cfDNA WGS Data by Correlation Clustering","date":"2022-02-19","arxiv_id":"2202.09618","n_code_links":0,"syntology":null},{"paper":null,"slug":"bam-bayes-with-adaptive-memory","title":"BAM: Bayes with Adaptive Memory","date":"2022-02-04","arxiv_id":"2202.02405","n_code_links":0,"syntology":null},{"paper":null,"slug":"bam-bayes-augmented-with-memory","title":"BAM: Bayes Augmented with Memory","date":"2021-09-29","arxiv_id":null,"n_code_links":0,"syntology":null},{"paper":"/paper/few-shot-fine-grained-action-recognition-via","slug":"few-shot-fine-grained-action-recognition-via","title":"Few-Shot Fine-Grained Action Recognition via Bidirectional Attention and Contrastive Meta-Learning","date":"2021-08-15","arxiv_id":"2108.06647","n_code_links":1,"syntology":null},{"paper":"/paper/bam-a-lightweight-and-efficient-balanced","slug":"bam-a-lightweight-and-efficient-balanced","title":"BAM: A Balanced Attention Mechanism for Single Image Super Resolution","date":"2021-04-15","arxiv_id":"2104.07566","n_code_links":1,"syntology":null},{"paper":"/paper/lrez-c-api-and-toolkit-for-analyzing-and","slug":"lrez-c-api-and-toolkit-for-analyzing-and","title":"LRez: C++ API and toolkit for analyzing and managing Linked-Reads data","date":"2021-03-26","arxiv_id":"2103.14419","n_code_links":1,"syntology":null},{"paper":null,"slug":"blind-mask-to-improve-intelligibility-of-non","title":"Blind Mask to Improve Intelligibility of Non-Stationary Noisy Speech","date":"2020-08-20","arxiv_id":"2008.09175","n_code_links":0,"syntology":null},{"paper":"/paper/bilateral-attention-network-for-rgb-d-salient","slug":"bilateral-attention-network-for-rgb-d-salient","title":"Bilateral Attention Network for RGB-D Salient Object Detection","date":"2020-04-30","arxiv_id":"2004.14582","n_code_links":1,"syntology":null},{"paper":"/paper/bim-towards-quantitative-evaluation-of","slug":"bim-towards-quantitative-evaluation-of","title":"Benchmarking Attribution Methods with Relative Feature Importance","date":"2019-07-23","arxiv_id":"1907.09701","n_code_links":2,"syntology":{"ran":3,"of":6,"n_ran_checked":3,"n_instrument":0,"unverified":3,"pointer_only":0,"phrase":"3 ran (of which 0 constructed an object rather than computing a result; 3 with no instrument failure: 1 honoured, 0 violated, 2 with no contract checked; 0 where Syntology's instrument failed) · 3 unverified","official":{"repos":["google-research-datasets/bim"],"state":"official (archive's flag): 2 ran","n_ran":2,"n_constructed":0,"n_ran_no_instrument_failure":2,"n_unverified":3,"ran_from_kinds":["listed","official"]}}},{"paper":null,"slug":"interactive-learning-of-environment-dynamics","title":"Interactive Learning of Environment Dynamics for Sequential Tasks","date":"2019-07-19","arxiv_id":"1907.08478","n_code_links":0,"syntology":null},{"paper":null,"slug":"band-attention-convolutional-networks-for","title":"Band Attention Convolutional Networks For Hyperspectral Image Classification","date":"2019-06-11","arxiv_id":"1906.04379","n_code_links":0,"syntology":null},{"paper":"/paper/bayesian-allocation-model-inference-by","slug":"bayesian-allocation-model-inference-by","title":"Bayesian Allocation Model: Inference by Sequential Monte Carlo for Nonnegative Tensor Factorizations and Topic Models using Polya Urns","date":"2019-03-11","arxiv_id":"1903.04478","n_code_links":1,"syntology":null},{"paper":"/paper/bam-bottleneck-attention-module","slug":"bam-bottleneck-attention-module","title":"BAM: Bottleneck Attention Module","date":"2018-07-17","arxiv_id":"1807.06514","n_code_links":10,"syntology":null}],"papers_shown":33,"papers_order":"date (newest first), then slug","paper_counts":{"archive_papers_tagged":33,"with_a_code_link":14,"where_syntology_ran_a_sample":3,"not_listed_spam_title":0,"listed":33,"listed_where_code_ran":3,"where_syntology_ran_a_sample_split":{"with_a_run_with_no_instrument_failure":3,"every_run_a_failure_of_syntologys_instrument":0,"listed_with_a_run_with_no_instrument_failure":3,"listed_every_run_a_failure_of_syntologys_instrument":0,"filter":{"states":["a run with no instrument failure","any run, instrument failures included"],"default":"a run with no instrument failure","note":"on the 'only where code ran' pages the default hides, in the browser, the rows where every run was a failure of Syntology's instrument; the second state shows them again. Rows are hidden, never re-ordered; these twins list every row"}},"definition":"distinct papers the archive tags; 'where Syntology ran a sample' counts papers with at least one harvested sample that ran, which is not a correctness claim"},"papers_where_code_ran":3,"papers_where_code_ran_first_page":"/method/bam/papers/ran/1","papers_where_code_ran_caption":"We ran code from the paper's repository; we did not isolate this method inside it.","pages":[{"order":"ran","page":1,"of":1,"url":"/method/bam/papers/ran/1","json":"/method/bam/papers/ran/1.json","rows":3}],"tasks":[{"task":"/task/decision-making","name":"Decision Making","papers":2},{"task":"/task/decoder","name":"Decoder","papers":2},{"task":"/task/object","name":"Object","papers":2},{"task":"/task/object-detection","name":"Object Detection","papers":2},{"task":"/task/specificity","name":"Specificity","papers":2},{"task":"/task/variational-inference","name":"Variational Inference","papers":2},{"task":"/task/object-detection-1","name":"object-detection","papers":2},{"task":"/task/action-recognition-in-videos","name":"Action Recognition","papers":1},{"task":"/task/action-understanding","name":"Action Understanding","papers":1},{"task":"/task/automatic-speech-recognition-2","name":"Automatic Speech Recognition","papers":1},{"task":"/task/automatic-speech-recognition","name":"Automatic Speech Recognition (ASR)","papers":1},{"task":"/task/benchmarking","name":"Benchmarking","papers":1},{"task":"/task/change-detection","name":"Change Detection","papers":1},{"task":"/task/classification-1","name":"Classification","papers":1},{"task":"/task/clustering","name":"Clustering","papers":1},{"task":"/task/crack-segmentation","name":"Crack Segmentation","papers":1},{"task":"/task/deep-learning","name":"Deep Learning","papers":1},{"task":"/task/feature-importance","name":"Feature Importance","papers":1},{"task":"/task/fine-grained-action-recognition","name":"Fine-grained Action Recognition","papers":1},{"task":null,"name":"GPU","papers":1}],"tasks_shown":20,"n_tasks":55,"usage_by_year":[{"year":"2018","papers":1},{"year":"2019","papers":4},{"year":"2020","papers":2},{"year":"2021","papers":4},{"year":"2022","papers":5},{"year":"2023","papers":5},{"year":"2024","papers":8},{"year":"2025","papers":4}],"row_source":"methods_table","archive":{"source":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","archive_url":"https://paperswithcode.com/method/bam"},"syntology_read_at":"2026-10-05T00:36:11+00:00","syntology":{"source":"Syntology's have check for this name (the free coverage lookup), read from Syntology's graph","have_url":"https://syntology.ai/api/graph/have?x=BAM","read_at":"2026-10-05T00:52:59+00:00","query":"BAM","kind":"paper","have":"unknown_name","tier":null,"verified_implementation":null,"level":null,"level_meaning":"the served verification level, per answer; never summed across methods","resolved_to":null,"resolution":null,"resolved_name_differs":false,"absence_asserted":false,"absence_unchecked":null,"no_code_is_about_this_method":false,"subject":null,"archive_paper_arxiv_id":"1807.06514","repositories":null,"retrieve_with":null,"name_competition":{"verdict":"unresolved_bearers","may_be_wrong_sense":true,"bearers_found":5,"served":null,"leading_other_bearer":{"arxiv_id":"1807.06514","title":"BAM: Bottleneck Attention Module","citations":1336,"named_by":["title_prefix"],"bearer_name":"BAM: Bottleneck Attention Module","ask_with":"have('1807.06514')"},"n_other_bearers_listed":5,"note":"Nothing resolved to 'BAM' by name, but 5 thing(s) here DECLARE that name -- most cited: the paper 'BAM: Bottleneck Attention Module' (arXiv:1807.06514, 1,336 citations). That is a RESOLUTION miss, not a coverage gap: the corpus holds the name under a spelling the lookup did not reach. Ask again with an entry of `also_named`."},"name_competition_text":"Nothing resolved to this name, but 5 entries in Syntology's graph carry it; the most cited is the paper “BAM: Bottleneck Attention Module” (arXiv:1807.06514, 1,336 citations). The lookup reads this as a miss of its own name matching, not a gap in coverage: the graph holds the name under a spelling the lookup did not reach.","near_matches":["BAM-MRCD","BAM embeddings","Batch and Match (BaM)","Bias-Aware Mechanism (BAM)","BAM (Budget Allocation Model)","BAM (Bayesian Anything Model)","Bayesian Attention Mechanism (BAM)","Boundary Alignment Manipulation (BAM) framework"],"code_nearby":[],"code_nearby_caption":null,"origin_paper":null,"line":"name not resolved (unknown_name). Other entries in Syntology's graph carry this name; the lookup's note below says what that means for this name.","level_legend":null},"syntology_have_state":"loaded","record_sha256":"e73a1a9051ba524d6e0a3d12fb5b585e3e018d4750005e91fcd47542f7868d63","record_changed_at":"2026-10-05","record_changed_at_basis":"changed"}