It Just Takes Two: Scaling Amortized Inference to Large Sets
Antoine Wehenkel, Michael Kagan, Lukas Heinrich, Chris Pollard
NeurIPS page · Open on the map
Category: Time Series, PDEs & Probabilistic ML › Bayesian Inference and Posterior Estimation · Type: new method · Keywords: amortized inference, set-based learning, Deep Sets, scalable training, posterior estimation
Areas: AI for Science › Molecular Systems Modeling › Gaussian Processes
Summary
The paper proposes a simple, theoretically grounded strategy that trains a mean-pool Deep Set on sets of size at most two, enabling amortized inference to scale to large deployment sets with far less compute.
Explained to a 5-year-old
When we have lots of data, like many numbers or pictures, we sometimes want to guess something hidden inside. The computer can learn to guess, but if we have a huge pile of data, it takes a long time and a lot of computer power. Usually the computer must be trained on the same big pile it will later use, which is slow. This paper says we can first teach the computer using only two pieces of data at a time. After learning from those small groups, the computer can use what it learned for any size group.
Explained to a 5-year-old, longer
When we have lots of data, like many numbers or pictures, we sometimes want to guess something hidden inside. The computer can learn to guess, but if we have a huge pile of data, it takes a long time and a lot of computer power. Usually the computer must be trained on the same big pile it will later use, which is slow. This paper says we can first teach the computer using only two pieces of data at a time. After learning from those small groups, the computer can use what it learned for any size group. This trick makes the training fast and cheap. It works for many kinds of data, like simple numbers, images, 3-D shapes, and even molecules. So now we can use the computer to guess hidden things quickly, even when there are thousands of pieces of data. The computer first learns a general way to understand a pair of items, which is easy because there are only two. Then it looks at the whole big group, but only uses the already learned understanding. This way the computer doesn't need to remember every detail of the huge group during training. It can still make good guesses because the small-pair learning captures the important patterns.
For a technical reader
The paper addresses the high memory and compute cost of training amortized inference models on large observation sets. It proposes training a Deep Set encoder on small sets (size ≤2) to learn a general representation, then fine-tuning an inference head on aggregated embeddings. This decouples representation learning from posterior modeling, making training cost independent of the deployment set size N. The method is evaluated on scalar, image, multi-view 3D, molecular, and high-dimensional conditional generation benchmarks, matching or exceeding baseline performance while using far less compute. The result is a practical recipe for scaling amortized inference to thousands of observations without retraining the full model.
Problem
Amortized inference for sets of observations often requires training the estimator at the deployment set size, which quickly becomes memory and compute prohibitive for large sets. This limits scalable inference when the set elements depend on both the target and shared unknown factors.
Method
The approach decouples representation learning from posterior modeling by training a mean-pool Deep Set on small sets (size ≤2) to learn a general encoder, then finetuning an inference head on pre-aggregated embeddings, making training cost independent of the deployment set size N.
Results
The approach matches or outperforms standard baselines while using a fraction of the compute compared to training at full set size.
Contributions
It introduces a theoretically grounded strategy that enables amortized inference to scale to large sets by training on small sets and finetuning on aggregated embeddings, achieving comparable performance with drastically reduced computational cost.
Practical relevance
Enables efficient amortized inference for large sets, making the technique practical for real-world applications that involve thousands of observations.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction