One Proposal for Every Margin: Zero-Shot Amortized Sequential Importance Sampling for Binary Matrices

📅 2026-09-28
📈 Citations: 0
✨ Influential: 0
📄 PDF
🤖 AI Summary
This study addresses the inefficiency of traditional sequential importance sampling for counting and uniform sampling in binary matrices, which stems from manually designed proposal distributions and sensitivity to marginals. To overcome this, we propose MarginFlow, a framework that formally establishes the equivalence between ideal proposal distributions and GFlowNet policies with unit rewards. By leveraging a set Transformer to learn an amortized generative model across varying marginals, MarginFlow transforms fixed distribution design into a learnable process, enabling zero-shot efficient sampling without retraining. Evaluated on 1,190 unseen marginals, our approach achieves a median effective sample proportion exceeding that of the best analytical configuration among 31 baselines in 99.8% of cases. Notably, on challenging instances, this metric improves dramatically from 10.3% to 94.1%, demonstrating substantial gains in sampling efficiency.
📝 Abstract
In ecology, psychometrics, and the analysis of social and financial networks, binary matrices are often analyzed conditional on their observed row and column sums, which restricts the problem to a finite sample space of matrices with the same margins. Two fundamental problems are to count this space and to sample uniformly from it. Sequential importance sampling (SIS) addresses both with independent weighted samples and an unbiased count estimator, but its efficiency depends critically on the proposal distribution. Existing proposals are analytically designed, and their accuracy can vary substantially with the margins. We show that the ideal SIS proposal, under which every weight equals the count and the variance vanishes, is exactly the policy of a generative flow network (GFlowNet) with unit reward on every matrix that has the given margins. We therefore propose MarginFlow, a framework that turns the design of the proposal into a learning problem and amortizes it across margins by exploiting their self-similarity. Every partial matrix is itself an instance with reduced margins, so one set transformer that reads the remaining margins serves every margin. We train MarginFlow on a pool of 1904 margins and evaluate it zero-shot on 1190 held-out margins, synthetic and real, from $3\times3$ to $870\times6$. On 1187 of the 1190 margins it matches or beats the best of 31 analytically designed configurations, chosen post hoc for each margin, and its median effective sample fraction is 99.8%. On the 56 margins where that best loses more than one nat of effective sample size, MarginFlow wins every one and raises the median effective sample fraction from 10.3% to 94.1%.
Problem

Research questions and friction points this paper is trying to address.

binary matrices
sequential importance sampling
proposal distribution
marginal constraints
uniform sampling
Innovation

Methods, ideas, or system contributions that make the work stand out.

Sequential Importance Sampling
Generative Flow Networks
Amortized Inference
Zero-Shot Generalization
Set Transformer
🔎 Similar Papers
No similar papers found.
💼 Related Jobs
No related jobs found.
R
Ruishuo Chen
Institute for Interdisciplinary Information Sciences, Tsinghua University
Weijia Li
Weijia Li
University of Manitoba, Environment and Geography Department
Environmental/Analytical Chemistry
X
Xun Wang
Institute for Interdisciplinary Information Sciences, Tsinghua University
Yu Chen
Yu Chen
Tsinghua university
wearable robothuman-robot interaction
L
Leheng Cai
Department of Statistics and Data Science, Tsinghua University
Longbo Huang
Longbo Huang
Professor, IIIS, Tsinghua University, ACM Distinguished Scientist
Reinforcement Learning (RL)Deep RLMachine LearningStochastic NetworksPerformance Evaluation