atlas

Research map / Architectures and efficiency / Attention and transformers

Memory Efficient Neural Processes via Constant Memory Attention Block

ICML 2024 · Architectures and efficiency › Attention and transformers · approach: Sparse and structured attention · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes CMANPs, attentive neural processes built on a Constant Memory Attention Block whose cross-attention can be updated and computed in constant memory with respect to context size, plus an autoregressive not-diagonal variant.

Problem

Attention-based Neural Processes (TNPs, LBANPs, not-diagonal variants) require memory growing with context or target size, limiting use in low-resource settings and making context updates expensive.

Approach

Exact efficient update for cross-attention with a fixed learned query set (computed via log-space rolling log-sum-exp), enabling a stackable, permutation-invariant CMAB that computes outputs in constant memory and updates in constant computation per new point; an autoregressive block-wise not-diagonal extension (CMANP-AND) keeps memory constant in context size.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use CMANP instead of LBANPCMANP · CelebA 32x32log-likelihood: 3.97 ± 0.02 -> 3.93 ± 0.05No clear effect
Use CMANP instead of LBANPCMANP · CelebA 64x64 and 128x128log-likelihood: 5.09 ± 0.02 -> 5.02 ± 0.14; 5.84 ± 0.01 -> 5.55 ± 0.01Hurt
Use CMANP-AND instead of LBANP-NDCMANP-AND · CelebA 32x32log-likelihood: 5.57 ± 0.03 -> 6.31 ± 0.04Helped
Use CMANP-AND instead of TNP-NDCMANP-AND · EMNIST Seen (0-9)log-likelihood: 1.50 ± 0.00 -> 1.48 ± 0.03No clear effect
Use CMANP-AND instead of TNP-NDCMANP-AND · EMNIST Unseen (10-46)log-likelihood: 1.31 ± 0.00 -> 1.19 ± 0.03Hurt
Use CMANP instead of LBANPCMANP · Meta-regression RBF and Matern 5/2log-likelihood: 1.27 ± 0.02 -> 1.24 ± 0.01; 0.85 ± 0.02 -> 0.80 ± 0.01Hurt
Use CMANP-AND instead of TNP-NDCMANP-AND · Meta-regression RBFlog-likelihood: 1.46 ± 0.00 -> 1.48 ± 0.03Helped
Use CMANP-AND instead of TNP-NDCMANP-AND · Meta-regression Matern 5/2log-likelihood: 1.02 ± 0.00 -> 0.96 ± 0.01Hurt
Replace Transformer layers with CMABTHP on Reddit · RedditRMSE: 0.238 ± 0.028 -> 0.262 ± 0.037Hurt
Replace Transformer layers with CMABTHP on Reddit · RedditNLL: 0.268 ± 0.098 -> 0.528 ± 0.209Hurt
Replace Transformer layers with CMABTHP on Reddit · RedditACC: 0.610 ± 0.002 -> 0.609 ± 0.003No clear effect
Reduce the prediction block size b_Q (ablation)CMANP-AND · Image completion and meta-regressionlog-likelihoodHelped

Surprising findings

Limitations

Experimental setup

Datasets: EMNIST CelebA GP-sampled regression tasks Reddit Mooc

Benchmarks: EMNIST CelebA 1-D meta-regression Reddit Mooc

Metrics: log-likelihood RMSE NLL ACC cumulative regret

Baselines: CNP NP ANP BANP TNP-D LBANP TNP-ND LBANP-ND

Builds on: Attentive Neural Processes Latent Bottlenecked Attentive Neural Processes Transformer Neural Processes Perceiver Transformer Hawkes Process

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy