논문 해설
Tokenised Flow Matching for Hierarchical Simulation Based Inference
계층적 시뮬레이션 기반 추론을 위한 토큰화된 플로우 매칭
- 연구 문제 계층 SBI에서는 부위 수가 늘수록 학습 샘플 하나를 만드는 데 필요한 시뮬레이터 호출이 커지며, 이것이 주된 실용적 병목입니다.
- 연구 방법 TFMPE는 부위별 신경 대리모델로 다중 부위 관측을 합성하는 LF 샘플링, 함수형 관측을 다루는 토큰화, 그리고 flow matching을 결합합니다.
- 주요 결과 계층 벤치마크에서 LF 샘플링 기반 TFMPE는 부위 수가 많을 때 대부분 과제에서 샘플 효율이 높았고, Two Moons에서는 PF 기준선이 우수했습니다. 혈역학 사례에서는 대리 샘플링이 CFD보다 약 1852배 빨랐습니다.
계층 SBI에서 시뮬레이터 호출 비용이 병목이 되는 이유
계층 모델에서는 전역 매개변수가 여러 부위에서 공유되고, 부위마다 지역 매개변수와 관측이 따로 생깁니다. 따라서 부위 수가 늘면 추정해야 할 매개변수 수와 학습 한 개를 만드는 데 필요한 시뮬레이션 횟수가 함께 커집니다. 기존의 여러 계층 SBI 접근은 사후분포를 분해하더라도 학습 샘플 하나를 만들 때 여러 부위를 시뮬레이션해야 합니다. 이 논문은 시뮬레이터 호출 수를 줄이면서도 계층 사후분포의 보정 품질을 유지할 수 있는지를 묻습니다. 또한 연속 좌표에서 불규칙하게 기록되거나 결측된 함수형 관측을 같은 틀에서 다룰 수 있는지도 함께 검토합니다. 연구 범위는 시뮬레이터 호출 예산과 사후 일관성, 그리고 두 실제 응용 사례의 계산 비용입니다.
단일 부위 대리모델로 다중 부위 관측을 합성하는 LF 샘플링
제안 방법인 TFMPE는 우도 인수분해(LF), 토큰화, flow matching을 결합합니다. 조건부 독립성 때문에 전체 우도는 부위별 우도의 곱으로 나뉘므로, 저자들은 단일 부위 시뮬레이션 튜플로 부위별 신경 대리모델을 먼저 학습합니다. 이 대리모델은 우도를 계산하는 데 쓰이지 않고 부위 관측을 샘플링하는 용도로만 쓰입니다. 두 번째 단계에서는 대리모델이 생성한 합성 다중 부위 관측으로 결합 사후 추정기를 학습합니다. 따라서 시뮬레이터 호출은 1단계에서만 필요하고, 2단계의 학습 샘플은 대리모델 샘플로 만들어집니다. 대신 대리모델의 오차가 사후추정으로 전파될 수 있으며, 저자들은 관측 모델이 전역 매개변수에서 전체 관측으로 가는 사상보다 단순할 때 LF가 유리하다고 설명합니다.
토큰화와 그룹 식별자, 벡터장 판독
TFMPE는 전역 매개변수, 지역 매개변수, 관측 값을 하나의 토큰 시퀀스로 펼칩니다. 각 토큰은 값, 변수 식별자, 변수 내 위치, 부위를 나타내는 그룹 식별자, 그리고 함수형 관측이면 연속 입력을 함께 가집니다. 연속 입력은 고정된 무작위 가우시안 기저로 사인과 코사인 특징에 사영됩니다. 이 토큰들은 인코더 전용 트랜스포머에서 전체 자기주의로 처리되고, 매개변수 토큰에서만 벡터장이 공유된 선형 층으로 판독됩니다. 그룹 식별자는 어떤 토큰이 어느 부위에 속하는지를 입력으로 직접 주어, 트랜스포머가 위치 패턴만으로 부위 소속을 추론하지 않아도 되게 합니다.
계층 SBI 벤치마크에서 사후 일관성 비교
벤치마크는 비계층 SBI 과제를 분리(separated) 구조와 부분 풀링(partial pooling) 구조로 적응한 묶음입니다. 사후 일관성은 ℓ-C2ST로 평가하며, 값이 낮을수록 좋습니다. 그림 3의 결과에서 비계층 기준선은 예산이 늘어도 ℓ-C2ST가 0.15 아래로 잘 내려가지 않는다고 저자들이 보고합니다. 반면 LF 샘플링을 쓴 TFMPE는 부위 수가 많을 때 대부분의 과제에서 가장 높은 샘플 효율을 보입니다. 그러나 Two Moons 과제에서는 Heinrich 등의 PF 기준선이 LF보다 우수합니다. 이 결과는 10개 관측에 대한 평균이며, 시뮬레이션 예산 sweep은 부위 수 50에서, 부위 수 sweep은 예산 5,000에서 수행되었습니다.

Figure 3 : Posterior consistency measured byℓ-C2ST (lower is better) across the hierarchical SBI benchmark. LF: Likelihood Factorisation sampling (Section 2.2), implemented with TFMPE. PF: Posterior Factorisation as proposed by Heinrich et al. (2024). NPE: Neural Posterior Estima- tion (Papamakarios & Murray, 2016; Boelts et al., 2024). SNPE: Sequential Neural Posterior Estimation (Papamakarios et al., 2019). Simformer: tokenised non-hierarchical baseline (Gloeckler et al., 2024). FMPE (MLP) and FMPE (Transformer): Flow Matching Posterior Estimation with MLP and transformer velocity fields (Dax et al., 2023). All results are averaged over 10 independently drawn observations per task.Top row:Posterior consistency as simulation budgetN increases, with sites fixed atns = 50(Table 4).Bottom row:Posterior consistency as the number of sites ns increases, with simulation budget fixed atN= 5,000(Table 5).
원문 · CC BY 4.0 · Giovanni Charles, Cosmo Santoni, Seth Flaxman, Elizaveta Semenova · Tokenised Flow Matching for Hierarchical Simulation Based Inference · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.![Table 5: ℓ-C2ST results for site scaling (N = 5,000). Values show mean [95% CI] over 10 observations
per task. Bold indicates best performance](/papers/800f60c6-69fb-48c9-b47d-699047fcdf96/figures/figure-49b4d5cdc1a280ddf99c9234282f8b84.png?thumb=512)
Table 5 : ℓ-C2ST results for site scaling (N = 5,000). Values show mean [95% CI] over 10 observations per task. Bold indicates best performance.
원문 · CC BY 4.0 · Giovanni Charles, Cosmo Santoni, Seth Flaxman, Elizaveta Semenova · Tokenised Flow Matching for Hierarchical Simulation Based Inference · 원문 그림 인용 · 원본 PDF 20쪽에서 그림 영역을 추출했습니다.
Table 6 : Full simulator formulations and prior distributions for the hierarchical SBI benchmark tasks summarised in Table 1. Parameters with subscripts are local parameters replicated independently for each sites∈[n s].
원문 · CC BY 4.0 · Giovanni Charles, Cosmo Santoni, Seth Flaxman, Elizaveta Semenova · Tokenised Flow Matching for Hierarchical Simulation Based Inference · 원문 그림 인용 · 원본 PDF 30쪽에서 그림 영역을 추출했습니다.절제 실험으로 본 대리모델, 그룹 식별자, 트랜스포머의 역할
Direct 절제는 대리모델 대신 실제 시뮬레이터 샘플로 사후추정기를 학습합니다. 이 실험에서 Two Moons의 보정이 회복되므로, 저자들은 LF의 격차를 대리모델 근사 오차의 결과로 해석합니다. 같은 구조에서 인수분해만 PF로 바꾼 PF 절제는 격차를 닫지 못하므로, Heinrich의 우위는 인수분해 전략보다 구조와 학습 차이에서 나온다고 해석합니다. No Grouping 절제는 그룹 식별자 임베딩을 제거하며, 여러 과제에서 성능이 전반적으로 무너집니다. MLP 절제는 트랜스포머를 MLP로 바꾸는데, Gaussian Linear Uniform과 SLCP에서 덜 안정적이고 Gaussian Mixture에서는 사후분포를 안정적으로 포착하지 못했다고 보고됩니다.

Figure 7 : Posterior consistency measured byℓ-C2ST (lower is better) across the hierarchical SBI benchmark for TFMPE ablations. Each experiment is described in Section A.5. All results are averaged over 10 independently drawn observations per task. Posterior consistency was measured as the simulation budgetNincreased, with sites fixed atn s = 50.
원문 · CC BY 4.0 · Giovanni Charles, Cosmo Santoni, Seth Flaxman, Elizaveta Semenova · Tokenised Flow Matching for Hierarchical Simulation Based Inference · 원문 그림 인용 · 원본 PDF 24쪽에서 그림 영역을 추출했습니다.계절성 SEIR 모델의 함수형 발병 관측 추정
계절성 SEIR 사례에서 관측은 검증된 SEIR 시뮬레이터로 생성된 일별 발병 데이터이며, 관측 시점은 부위별로 균일하게 뽑힙니다. 추정 대상은 전역 전파율 β0와 부위별 계절 진폭 A_s이고, 나머지 매개변수는 고정됩니다. 두 부위에서 TFMPE 사후분포를 NUTS 참조 사후분포와 비교한 결과, TFMPE와 NUTS 사이의 MMD2는 0.060이었습니다. 이 값은 400개 표본과 200회 순열로 계산되었습니다. NUTS는 다섯 개 부위를 넘으면 안정적으로 수렴하지 못했다고 보고됩니다. 100개 부위로 확장한 실험에서는 NUTS 대신 TARP 진단을 사용했고, ATC는 0.0382, KS p-value는 0.0097로 보고되었습니다.

Figure 4 : SEIR posterior comparison: a Pairplot of posterior estimates for global parameterβ0 and local parameters A1, A2 comparing TFMPE (tokenised flow matching) and NUTS. True parameter values shown as black crosshairs. b Posterior predictive check showing observed data (black dots) against posterior predictive samples for each method across both sites.
원문 · CC BY 4.0 · Giovanni Charles, Cosmo Santoni, Seth Flaxman, Elizaveta Semenova · Tokenised Flow Matching for Hierarchical Simulation Based Inference · 원문 그림 인용 · 원본 PDF 10쪽에서 그림 영역을 추출했습니다.
Figure 5 : TARP calibration diagnostic for TFMPE on the seasonal SEIR model with 100 sites. TARP metrics: ATC = 0.0382, KS p-value = 0.0097.
원문 · CC BY 4.0 · Giovanni Charles, Cosmo Santoni, Seth Flaxman, Elizaveta Semenova · Tokenised Flow Matching for Hierarchical Simulation Based Inference · 원문 그림 인용 · 원본 PDF 11쪽에서 그림 영역을 추출했습니다.
Table 8 : NUTS hyperparameters for SEIR reference posteriors.
원문 · CC BY 4.0 · Giovanni Charles, Cosmo Santoni, Seth Flaxman, Elizaveta Semenova · Tokenised Flow Matching for Hierarchical Simulation Based Inference · 원문 그림 인용 · 원본 PDF 31쪽에서 그림 영역을 추출했습니다.
Table 9 : MCMC convergence diagnostics for SEIR model.
원문 · CC BY 4.0 · Giovanni Charles, Cosmo Santoni, Seth Flaxman, Elizaveta Semenova · Tokenised Flow Matching for Hierarchical Simulation Based Inference · 원문 그림 인용 · 원본 PDF 31쪽에서 그림 영역을 추출했습니다.혈역학 보정의 계산 비용과 사후 회복
혈역학 사례는 환자마다 1D 혈류 네트워크의 말단 Windkessel 매개변수를 추정하는 과제입니다. 관측은 실제 환자 측정이 아니라 검증된 1D CFD 솔버로 생성되었습니다. 계산 텔레메트리에서 CFD 순방향 시뮬레이션은 환자당 평균 11.88초, 대리 샘플링은 환자당 평균 6.41 ms로 보고되며, 표는 이를 약 1852배 빠른 샘플링으로 정리합니다. 환자 수 2명의 종단간 비용에서는 NPE 학습이 6.6시간, TFMPE 학습이 3.3시간으로 보고되어 2.0배 속도 향상이 나타납니다. 환자 16명으로 확장한 보정에서는 전역 3개와 지역 8개를 합친 11개 매개변수가 모두 95% 신용구간 포함률을 보였습니다.

Table 2 : Compute telemetry for haemodynamics experiments. TFMPE’s two-stage training uses CFD only in Stage 1 (ns=1), then replaces CFD with the learned per-site neural surrogateqϕl(y|θ) in Stage 2, yielding1852×faster per-patient sampling.
원문 · CC BY 4.0 · Giovanni Charles, Cosmo Santoni, Seth Flaxman, Elizaveta Semenova · Tokenised Flow Matching for Hierarchical Simulation Based Inference · 원문 그림 인용 · 원본 PDF 12쪽에서 그림 영역을 추출했습니다.
Table 3 : Posterior recovery for the 16-patient haemodynamics calibration experiment. Global parameters: β (arterial wall stiffness), µ (blood viscosity), Qin (inlet flow amplitude). Local parameters: Windkessel terminal resistance (RT) and compliance (CT) at each of the four aortic arch outlets. All 11 parameters achieve 95% credible interval coverage.
원문 · CC BY 4.0 · Giovanni Charles, Cosmo Santoni, Seth Flaxman, Elizaveta Semenova · Tokenised Flow Matching for Hierarchical Simulation Based Inference · 원문 그림 인용 · 원본 PDF 13쪽에서 그림 영역을 추출했습니다.
Figure 8 : Posterior predictive check for haemodynamics calibration showing observed outlet flow waveforms (black) against posterior predictive samples (blue) across the four terminal vessels of the aortic-arch network:Adescending aorta,Binnominate artery,Cleft common carotid artery, andD left subclavian artery. All 11 inferred global and local parameters achieve 95% CI coverage (Table 3).
원문 · CC BY 4.0 · Giovanni Charles, Cosmo Santoni, Seth Flaxman, Elizaveta Semenova · Tokenised Flow Matching for Hierarchical Simulation Based Inference · 원문 그림 인용 · 원본 PDF 25쪽에서 그림 영역을 추출했습니다.
Figure 9 : Global-parameter posterior for the 16-patient haemodynamics calibration experiment. TFMPE posterior samples align with the simulator ground truth forlogβscale,logµ, andlogQ in.
원문 · CC BY 4.0 · Giovanni Charles, Cosmo Santoni, Seth Flaxman, Elizaveta Semenova · Tokenised Flow Matching for Hierarchical Simulation Based Inference · 원문 그림 인용 · 원본 PDF 26쪽에서 그림 영역을 추출했습니다.
Table 7 : Posterior recovery for haemodynamics calibration scaled tons = 16patients. All parameters successfully achieve 95% credible interval coverage.
원문 · CC BY 4.0 · Giovanni Charles, Cosmo Santoni, Seth Flaxman, Elizaveta Semenova · Tokenised Flow Matching for Hierarchical Simulation Based Inference · 원문 그림 인용 · 원본 PDF 26쪽에서 그림 영역을 추출했습니다.
Figure 10 : Outlet-specific local-parameter posterior for the 16-patient haemodynamics calibration experiment. TFMPE posterior samples remain concentrated around the simulator ground truth across all Windkessel resistance and compliance parameters.
원문 · CC BY 4.0 · Giovanni Charles, Cosmo Santoni, Seth Flaxman, Elizaveta Semenova · Tokenised Flow Matching for Hierarchical Simulation Based Inference · 원문 그림 인용 · 원본 PDF 27쪽에서 그림 영역을 추출했습니다.
Figure 11 : Posterior predictive check for the scaledns = 16haemodynamics cohort across the four terminal vessels of the aortic-arch network:Adescending aorta,Binnominate artery,Cleft common carotid artery, andDleft subclavian artery. Observed outlet flow waveforms (black) are shown against posterior predictive samples (blue). All 11 inferred global and local parameters achieve 95% CI coverage.
원문 · CC BY 4.0 · Giovanni Charles, Cosmo Santoni, Seth Flaxman, Elizaveta Semenova · Tokenised Flow Matching for Hierarchical Simulation Based Inference · 원문 그림 인용 · 원본 PDF 28쪽에서 그림 영역을 추출했습니다.적용 범위와 남은 제약
LF 샘플링의 가장 큰 제약은 대리모델의 근사 오차가 사후추정에 전파될 수 있다는 점입니다. 어텐션 메모리는 배치 크기, 토큰 수, 헤드 수에 따라 커지며, 저자들은 부위 수가 100을 크게 넘는 경우 MLP 벡터장을 권장합니다. 계절성 SEIR와 혈역학 결과는 모두 시뮬레이션된 관측에 기반하므로 실제 감시 자료나 환자 자료의 잡음과 모형 불일치는 검증되지 않았습니다. 또한 NUTS 참조 사후분포는 다섯 개 부위를 넘으면 안정적으로 수렴하지 못했습니다. 따라서 이 결과는 제시된 벤치마크, 두 응용, 설정된 예산 범위에 한정해서 읽어야 합니다.
논문 정보
- 저자
- Giovanni Charles, Cosmo Santoni, Seth Flaxman, Elizaveta Semenova
- 학회·저널
- arXiv · 프리프린트
- 최초 공개일
- 2026년 4월 22일
- 등록일
- 2026년 10월 29일
- 수정일
- 2026년 4월 22일
- 버전
- v1
- arXiv
- 2604.20723
- 분류
- cs.LG · cs.AI
- 원문 이용 조건
- CC BY 4.0
- 제공 범위
- 논문 정보, 해설, 허용된 원문 그림
AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.
초록
The cost of simulator evaluations is a key practical bottleneck for Simulation Based Inference (SBI). In hierarchical settings with shared global parameters and exchangeable site-level parameters and observations, this structure can be exploited to improve simulation efficiency. Existing hierarchical SBI approaches factorise the posterior yet still simulate across multiple sites per training sample; We instead explore likelihood factorisation (LF) to train from single-site simulations. In LF sampling we learn a per-site neural surrogate of the simulator and then assemble synthetic multi-site observations to amortise inference for the full hierarchical posterior. Building on this, we propose Tokenised Flow Matching for Posterior Estimation (TFMPE), a tokenised flow matching approach that supports function-valued observations through likelihood factorisation. To enable systematic evaluation, we introduce a benchmark for hierarchical SBI. We validate TFMPE on this benchmark and on realistic infectious disease and computational fluid dynamics models, finding well-calibrated posteriors while reducing computational cost.
원문 인용
Giovanni Charles, Cosmo Santoni, Seth Flaxman, Elizaveta Semenova (2026). Tokenised Flow Matching for Hierarchical Simulation Based Inference. arXiv:2604.20723v1. https://arxiv.org/abs/2604.20723v1
BibTeX
@misc{charles2026tokenised,
title = {{Tokenised Flow Matching for Hierarchical Simulation Based Inference}},
author = {Giovanni Charles and Cosmo Santoni and Seth Flaxman and Elizaveta Semenova},
year = {2026},
eprint = {2604.20723},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2604.20723v1}
}