"<!DOCTYPE html>\n<html lang=\"zh\" data-theme=\"light\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>fulltext.txt — Vercel Design System</title>\n<link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">\n<link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin>\n<link href=\"https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap\" rel=\"stylesheet\">\n<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css\">\n<style>\n\n:root {\n  /* Vercel Palette */\n  --geist-foreground: #171717;\n  --geist-background: #ffffff;\n  --geist-secondary: #4d4d4d;\n  --geist-tertiary: #666666;\n  --geist-quaternary: #808080;\n  --geist-border: #ebebeb;\n  --geist-surface-tint: #fafafa;\n  \n  /* Workflow Accents */\n  --develop-blue: #0a72ef;\n  --preview-pink: #de1d8d;\n  --ship-red: #ff5b4f;\n  \n  /* Interactive & Status */\n  --link-blue: #0072f5;\n  --ds-focus-color: hsla(212, 100%, 48%, 1);\n  --badge-blue-bg: #ebf5ff;\n  --badge-blue-text: #0068d6;\n  \n  /* Shadow-as-Border Philosophy */\n  --shadow-border: rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;\n  --shadow-border-hover: rgba(0, 0, 0, 0.16) 0px 0px 0px 1px;\n  --shadow-card: rgba(0, 0, 0, 0.08) 0px 0px 0px 1px, rgba(0, 0, 0, 0.04) 0px 2px 2px, #fafafa 0px 0px 0px 1px;\n  --shadow-card-hover: rgba(0, 0, 0, 0.12) 0px 0px 0px 1px, rgba(0, 0, 0, 0.06) 0px 4px 6px, #fafafa 0px 0px 0px 1px;\n  --shadow-card-full: rgba(0, 0, 0, 0.08) 0px 0px 0px 1px, rgba(0, 0, 0, 0.04) 0px 2px 2px, rgba(0, 0, 0, 0.04) 0px 8px 8px -8px, #fafafa 0px 0px 0px 1px;\n  --shadow-ring: rgb(235, 235, 235) 0px 0px 0px 1px;\n  \n  /* Radius Scale */\n  --radius-xs: 2px;\n  --radius-sm: 4px;\n  --radius-md: 6px;\n  --radius-lg: 8px;\n  --radius-xl: 12px;\n  --radius-pill: 9999px;\n}\n\n[data-theme=\"dark\"] {\n  --geist-foreground: #ededed;\n  --geist-background: #000000;\n  --geist-secondary: #a1a1a1;\n  --geist-tertiary: #888888;\n  --geist-quaternary: #666666;\n  --geist-border: #222222;\n  --geist-surface-tint: #0a0a0a;\n  \n  --shadow-border: rgba(255, 255, 255, 0.14) 0px 0px 0px 1px;\n  --shadow-border-hover: rgba(255, 255, 255, 0.28) 0px 0px 0px 1px;\n  --shadow-card: rgba(255, 255, 255, 0.12) 0px 0px 0px 1px, rgba(0, 0, 0, 0.4) 0px 2px 4px, #111111 0px 0px 0px 1px;\n  --shadow-card-hover: rgba(255, 255, 255, 0.2) 0px 0px 0px 1px, rgba(0, 0, 0, 0.5) 0px 6px 12px, #111111 0px 0px 0px 1px;\n  --shadow-card-full: rgba(255, 255, 255, 0.12) 0px 0px 0px 1px, rgba(0, 0, 0, 0.5) 0px 8px 16px -4px, #111111 0px 0px 0px 1px;\n  --shadow-ring: rgb(40, 40, 40) 0px 0px 0px 1px;\n  \n  --badge-blue-bg: rgba(10, 114, 239, 0.15);\n  --badge-blue-text: #70b5ff;\n}\n\n* { box-sizing: border-box; }\nhtml { scroll-behavior: smooth; }\nbody {\n  margin: 0;\n  font-family: \"Geist\", Arial, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif;\n  background-color: var(--geist-background);\n  color: var(--geist-foreground);\n  font-feature-settings: \"liga\" 1;\n  -webkit-font-smoothing: antialiased;\n  min-height: 100vh;\n}\n\na {\n  color: inherit;\n  text-decoration: none;\n  transition: color 0.15s ease;\n}\n\n/* 导航栏 (Vercel Clean Sticky Nav) */\n.vercel-nav {\n  position: sticky;\n  top: 0;\n  background-color: var(--geist-background);\n  box-shadow: var(--shadow-border);\n  z-index: 100;\n  padding: 0 24px;\n  height: 64px;\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n}\n.nav-brand {\n  display: flex;\n  align-items: center;\n  gap: 12px;\n}\n.vercel-triangle {\n  width: 22px;\n  height: 19px;\n  fill: var(--geist-foreground);\n}\n.nav-title {\n  font-size: 16px;\n  font-weight: 600;\n  letter-spacing: -0.32px;\n  color: var(--geist-foreground);\n}\n.nav-badge-pill {\n  font-family: \"Geist Mono\", ui-monospace, monospace;\n  font-size: 11px;\n  font-weight: 500;\n  text-transform: uppercase;\n  background: var(--badge-blue-bg);\n  color: var(--badge-blue-text);\n  padding: 2px 8px;\n  border-radius: var(--radius-pill);\n}\n\n.nav-links {\n  display: flex;\n  align-items: center;\n  gap: 24px;\n}\n.nav-link {\n  font-size: 14px;\n  font-weight: 500;\n  color: var(--geist-secondary);\n  text-decoration: none;\n  transition: color 0.15s;\n}\n.nav-link:hover, .nav-link.active {\n  color: var(--geist-foreground);\n}\n.nav-link.active {\n  font-weight: 600;\n}\n\n.nav-actions {\n  display: flex;\n  align-items: center;\n  gap: 12px;\n}\n\n/* 按钮规范 */\n.btn-primary-dark {\n  background: var(--geist-foreground);\n  color: var(--geist-background);\n  border: none;\n  padding: 8px 16px;\n  border-radius: var(--radius-md);\n  font-size: 14px;\n  font-weight: 500;\n  cursor: pointer;\n  text-decoration: none;\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  transition: opacity 0.15s;\n}\n.btn-primary-dark:hover {\n  opacity: 0.9;\n}\n.btn-secondary-white {\n  background: var(--geist-background);\n  color: var(--geist-foreground);\n  box-shadow: var(--shadow-border);\n  border: none;\n  padding: 8px 16px;\n  border-radius: var(--radius-md);\n  font-size: 14px;\n  font-weight: 500;\n  cursor: pointer;\n  text-decoration: none;\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  transition: background 0.15s, box-shadow 0.15s;\n}\n.btn-secondary-white:hover {\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border-hover);\n}\n.theme-toggle-btn {\n  background: transparent;\n  border: none;\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  width: 36px;\n  height: 36px;\n  cursor: pointer;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  color: var(--geist-foreground);\n}\n\n/* 核心容器 */\n.vercel-container {\n  max-width: 1200px;\n  margin: 0 auto;\n  padding: 56px 24px 100px;\n}\n\n/* Hero Section (Gallery Emptiness + Negative Letter-spacing) */\n.vercel-hero {\n  text-align: center;\n  max-width: 860px;\n  margin: 0 auto 56px;\n}\n.hero-stage-badge {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border);\n  padding: 4px 14px;\n  border-radius: var(--radius-pill);\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-secondary);\n  margin-bottom: 24px;\n}\n.stage-dot {\n  width: 7px;\n  height: 7px;\n  border-radius: 50%;\n}\n.vercel-hero h1 {\n  font-size: 48px;\n  font-weight: 600;\n  line-height: 1.05;\n  letter-spacing: -2.4px;\n  color: var(--geist-foreground);\n  margin: 0 0 16px;\n}\n.vercel-hero p {\n  font-size: 20px;\n  font-weight: 400;\n  line-height: 1.80;\n  color: var(--geist-secondary);\n  margin: 0 auto 28px;\n}\n\n/* Workflow Pipeline (Develop -> Preview -> Ship) */\n.workflow-pipeline {\n  display: grid;\n  grid-template-columns: repeat(3, 1fr);\n  gap: 16px;\n  margin-bottom: 48px;\n}\n@media (max-width: 768px) {\n  .workflow-pipeline { grid-template-columns: 1fr; }\n}\n.workflow-step {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 20px 22px;\n  transition: box-shadow 0.2s;\n}\n.workflow-step:hover {\n  box-shadow: var(--shadow-card-hover);\n}\n.step-mono-label {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 12px;\n  font-weight: 500;\n  text-transform: uppercase;\n  letter-spacing: 0.5px;\n  margin-bottom: 8px;\n  display: flex;\n  align-items: center;\n  gap: 6px;\n}\n.step-title {\n  font-size: 20px;\n  font-weight: 600;\n  letter-spacing: -0.96px;\n  color: var(--geist-foreground);\n  margin-bottom: 6px;\n}\n.step-desc {\n  font-size: 14px;\n  color: var(--geist-secondary);\n  line-height: 1.5;\n}\n\n/* Metric Cards (Section 4 Spec) */\n.metric-grid {\n  display: grid;\n  grid-template-columns: repeat(4, 1fr);\n  gap: 16px;\n  margin-bottom: 48px;\n}\n@media (max-width: 900px) {\n  .metric-grid { grid-template-columns: repeat(2, 1fr); }\n}\n.metric-card {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 20px;\n}\n.metric-number {\n  font-size: 40px;\n  font-weight: 600;\n  line-height: 1.0;\n  letter-spacing: -2.4px;\n  color: var(--geist-foreground);\n  margin-bottom: 8px;\n  font-feature-settings: \"tnum\" 1;\n}\n.metric-label {\n  font-size: 14px;\n  color: var(--geist-secondary);\n  line-height: 1.4;\n}\n\n/* VAD 专栏 Banner (Ship Red & Vercel Clean) */\n.vad-showcase {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card-full);\n  border-radius: var(--radius-xl);\n  padding: 32px;\n  margin-bottom: 48px;\n  position: relative;\n}\n.vad-header-row {\n  display: flex;\n  align-items: baseline;\n  justify-content: space-between;\n  flex-wrap: wrap;\n  gap: 12px;\n  margin-bottom: 12px;\n}\n.vad-header-row h2 {\n  font-size: 32px;\n  font-weight: 600;\n  letter-spacing: -1.28px;\n  color: var(--geist-foreground);\n  margin: 0;\n}\n.vad-pillars-grid {\n  display: grid;\n  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));\n  gap: 14px;\n  margin-top: 24px;\n}\n.vad-pillar-item {\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  padding: 14px 16px;\n}\n.vad-pillar-title {\n  font-size: 14px;\n  font-weight: 600;\n  color: var(--ship-red);\n  margin-bottom: 4px;\n}\n.vad-pillar-text {\n  font-size: 13px;\n  color: var(--geist-secondary);\n  line-height: 1.5;\n}\n.vad-filter-bar {\n  display: flex;\n  flex-wrap: wrap;\n  align-items: center;\n  justify-content: space-between;\n  gap: 12px;\n  margin: 24px 0 16px;\n  padding: 12px 16px;\n  background: var(--geist-surface-tint);\n  border-radius: var(--radius-md);\n  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);\n}\n.vad-filter-btn {\n  font-family: 'Geist', sans-serif;\n  font-size: 13px;\n  font-weight: 500;\n  padding: 6px 14px;\n  border-radius: 9999px;\n  border: none;\n  background: transparent;\n  color: var(--geist-secondary);\n  cursor: pointer;\n  transition: all 0.15s ease;\n}\n.vad-filter-btn:hover {\n  color: var(--geist-foreground);\n  background: rgba(0,0,0,0.05);\n}\n.vad-filter-btn.active {\n  background: #171717;\n  color: #ffffff;\n}\n.vad-search-input {\n  font-family: 'Geist', sans-serif;\n  font-size: 13px;\n  padding: 7px 12px;\n  border-radius: 6px;\n  border: 1px solid var(--geist-border);\n  background: #ffffff;\n  color: var(--geist-foreground);\n  width: 280px;\n  outline: none;\n  transition: border-color 0.15s, box-shadow 0.15s;\n}\n.vad-search-input:focus {\n  border-color: #0a72ef;\n  box-shadow: 0 0 0 2px rgba(10, 114, 239, 0.2);\n}\n\n/* 控制栏：搜索、视图、筛选 */\n.control-bar {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  gap: 16px;\n  margin-bottom: 24px;\n  flex-wrap: wrap;\n}\n.search-input-wrap {\n  position: relative;\n  flex: 1;\n  max-width: 480px;\n}\n.search-input {\n  width: 100%;\n  height: 40px;\n  padding: 0 38px 0 14px;\n  font-family: \"Geist\", sans-serif;\n  font-size: 14px;\n  color: var(--geist-foreground);\n  background: var(--geist-background);\n  box-shadow: var(--shadow-border);\n  border: none;\n  border-radius: var(--radius-md);\n  outline: none;\n  transition: box-shadow 0.15s;\n}\n.search-input:focus {\n  outline: 2px solid var(--ds-focus-color);\n  box-shadow: none;\n}\n.search-kbd {\n  position: absolute;\n  right: 12px;\n  top: 50%;\n  transform: translateY(-50%);\n  font-family: \"Geist Mono\", monospace;\n  font-size: 11px;\n  color: var(--geist-quaternary);\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border);\n  padding: 2px 6px;\n  border-radius: var(--radius-sm);\n}\n\n.view-switcher {\n  display: flex;\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  background: var(--geist-background);\n  padding: 2px;\n}\n.view-btn {\n  background: transparent;\n  border: none;\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-tertiary);\n  padding: 6px 12px;\n  border-radius: var(--radius-sm);\n  cursor: pointer;\n  transition: color 0.15s, background 0.15s;\n}\n.view-btn.active {\n  background: var(--geist-surface-tint);\n  color: var(--geist-foreground);\n  font-weight: 600;\n}\n\n/* 筛选芯片行 (Filter Pill Strip) */\n.filter-group-strip {\n  display: flex;\n  flex-direction: column;\n  gap: 12px;\n  margin-bottom: 28px;\n  padding: 16px 20px;\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-lg);\n}\n.filter-row {\n  display: flex;\n  align-items: center;\n  gap: 8px;\n  flex-wrap: wrap;\n}\n.filter-label-mono {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 11px;\n  font-weight: 500;\n  text-transform: uppercase;\n  color: var(--geist-quaternary);\n  min-width: 68px;\n}\n.pill-badge {\n  background: var(--geist-background);\n  color: var(--geist-secondary);\n  box-shadow: var(--shadow-border);\n  border: none;\n  padding: 3px 12px;\n  border-radius: var(--radius-pill);\n  font-size: 12px;\n  font-weight: 500;\n  cursor: pointer;\n  transition: all 0.15s;\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n}\n.pill-badge:hover {\n  color: var(--geist-foreground);\n  box-shadow: var(--shadow-border-hover);\n}\n.pill-badge.active {\n  background: var(--geist-foreground);\n  color: var(--geist-background);\n  font-weight: 600;\n  box-shadow: none;\n}\n.pill-badge.active-blue {\n  background: var(--develop-blue);\n  color: #ffffff;\n  box-shadow: none;\n}\n.pill-badge.active-red {\n  background: var(--ship-red);\n  color: #ffffff;\n  box-shadow: none;\n}\n\n/* Bento Grid Cards (Section 4 & 6 Spec) */\n.card-grid-bento {\n  display: grid;\n  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));\n  gap: 16px;\n}\n.vercel-card {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 20px;\n  display: flex;\n  flex-direction: column;\n  justify-content: space-between;\n  transition: box-shadow 0.2s, transform 0.2s;\n  text-decoration: none;\n  color: inherit;\n  overflow: hidden;\n  min-width: 0;\n  word-break: break-word;\n}\n.vercel-card:hover {\n  box-shadow: var(--shadow-card-hover);\n  transform: translateY(-2px);\n}\n.card-top {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  margin-bottom: 12px;\n  gap: 8px;\n}\n.card-tag-mono {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 11px;\n  font-weight: 500;\n  text-transform: uppercase;\n  color: var(--geist-quaternary);\n  letter-spacing: 0.5px;\n}\n.status-pill-badge {\n  padding: 2px 8px;\n  border-radius: var(--radius-pill);\n  font-size: 11px;\n  font-weight: 500;\n  flex-shrink: 0;\n}\n.pub-accepted { background: #ebfdf2; color: #027a48; }\n.pub-workshop { background: #eff8ff; color: #175cd3; }\n.pub-submitted { background: #fff8e6; color: #b54708; }\n.pub-preprint { background: #f2f4f7; color: #475467; }\n.pub-other { background: #f9f5ff; color: #6941c6; }\n\n[data-theme=\"dark\"] .pub-accepted { background: rgba(2, 122, 72, 0.2); color: #32d583; }\n[data-theme=\"dark\"] .pub-workshop { background: rgba(23, 92, 211, 0.2); color: #84caff; }\n[data-theme=\"dark\"] .pub-submitted { background: rgba(181, 71, 8, 0.2); color: #fec84b; }\n[data-theme=\"dark\"] .pub-preprint { background: rgba(71, 84, 103, 0.2); color: #98a2b3; }\n[data-theme=\"dark\"] .pub-other { background: rgba(105, 65, 198, 0.2); color: #d6bbfb; }\n\n/* 必读标杆徽章 (Vercel Amber Accent) */\n.milestone-badge {\n  display: inline-flex;\n  align-items: center;\n  gap: 3px;\n  padding: 2px 7px;\n  border-radius: var(--radius-pill);\n  font-size: 11px;\n  font-weight: 600;\n  white-space: nowrap;\n  flex-shrink: 0;\n  transition: all 0.15s ease;\n}\n.milestone-badge.ms-idea, .milestone-badge:not([class*=\"ms-\"]) {\n  color: #b54708;\n  background: #fff8e6;\n  border: 1px solid rgba(247, 144, 9, 0.35);\n  box-shadow: 0 1px 2px rgba(181, 71, 8, 0.05);\n}\n[data-theme=\"dark\"] .milestone-badge.ms-idea, [data-theme=\"dark\"] .milestone-badge:not([class*=\"ms-\"]) {\n  color: #fec84b;\n  background: rgba(181, 71, 8, 0.22);\n  border-color: rgba(254, 200, 75, 0.35);\n}\n.milestone-badge.ms-writing {\n  color: #6941c6;\n  background: #f9f5ff;\n  border: 1px solid rgba(105, 65, 198, 0.3);\n  box-shadow: 0 1px 2px rgba(105, 65, 198, 0.05);\n}\n[data-theme=\"dark\"] .milestone-badge.ms-writing {\n  color: #d6bbfb;\n  background: rgba(105, 65, 198, 0.22);\n  border-color: rgba(214, 187, 251, 0.35);\n}\n.milestone-badge.ms-value {\n  color: #027a48;\n  background: #ebfdf2;\n  border: 1px solid rgba(2, 122, 72, 0.3);\n  box-shadow: 0 1px 2px rgba(2, 122, 72, 0.05);\n}\n[data-theme=\"dark\"] .milestone-badge.ms-value {\n  color: #32d583;\n  background: rgba(2, 122, 72, 0.22);\n  border-color: rgba(50, 213, 131, 0.35);\n}\n\n/* 论文正文图表与插图卡片样式 (Geist Design) */\n.paper-figure, .article-body figure {\n  margin: 32px auto;\n  text-align: center;\n  max-width: 100%;\n}\n.paper-figure img, .article-body img {\n  max-width: 96%;\n  height: auto;\n  border-radius: var(--radius-md);\n  border: 1px solid var(--geist-border);\n  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);\n  background: #ffffff;\n  transition: transform 0.2s ease, box-shadow 0.2s ease;\n  display: block;\n  margin: 0 auto;\n}\n.paper-figure img:hover, .article-body img:hover {\n  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);\n}\n.paper-figure figcaption, .article-body figcaption {\n  font-size: 13px;\n  color: var(--geist-secondary);\n  margin-top: 10px;\n  line-height: 1.6;\n  font-style: italic;\n  max-width: 850px;\n  margin-left: auto;\n  margin-right: auto;\n}\n\n/* VAD 视图切换器 View Switcher */\n.vad-view-switcher {\n  display: inline-flex;\n  padding: 3px;\n  background: var(--geist-secondary-bg);\n  border: 1px solid var(--geist-border);\n  border-radius: 8px;\n  margin-bottom: 20px;\n  gap: 2px;\n}\n.view-switch-btn {\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  padding: 6px 14px;\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-secondary);\n  border-radius: 6px;\n  text-decoration: none;\n  transition: all 0.15s ease;\n}\n.view-switch-btn:hover {\n  color: var(--geist-foreground);\n  background: rgba(0, 0, 0, 0.04);\n}\n[data-theme=\"dark\"] .view-switch-btn:hover {\n  background: rgba(255, 255, 255, 0.06);\n}\n.view-switch-btn.active {\n  background: var(--geist-background);\n  color: var(--geist-foreground);\n  font-weight: 600;\n  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n}\n\n/* 关系图谱 Graph View Styles */\n.graph-container {\n  position: relative;\n  width: 100%;\n  height: 720px;\n  background: var(--geist-background);\n  border: 1px solid var(--geist-border);\n  border-radius: var(--radius-lg);\n  overflow: hidden;\n  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);\n  margin-bottom: 40px;\n}\n.graph-toolbar {\n  position: absolute;\n  top: 14px;\n  left: 14px;\n  right: 14px;\n  z-index: 10;\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  background: var(--geist-background);\n  border: 1px solid var(--geist-border);\n  padding: 8px 14px;\n  border-radius: 8px;\n  box-shadow: 0 4px 16px rgba(0,0,0,0.06);\n  flex-wrap: wrap;\n  gap: 8px;\n}\n.graph-tool-title {\n  font-size: 13px;\n  font-weight: 700;\n  display: flex;\n  align-items: center;\n  gap: 6px;\n  color: var(--geist-foreground);\n}\n.graph-filter-group {\n  display: flex;\n  gap: 6px;\n  align-items: center;\n  flex-wrap: wrap;\n}\n.graph-chip {\n  font-size: 11px;\n  padding: 3px 8px;\n  border-radius: 4px;\n  border: 1px solid var(--geist-border);\n  background: var(--geist-background);\n  color: var(--geist-foreground);\n  cursor: pointer;\n  transition: all 0.15s ease;\n}\n.graph-chip:hover { background: var(--geist-secondary-bg); }\n.graph-chip.active {\n  background: var(--geist-foreground);\n  color: var(--geist-background);\n  border-color: var(--geist-foreground);\n}\n.graph-search-input {\n  padding: 3px 8px;\n  font-size: 11px;\n  border-radius: 4px;\n  border: 1px solid var(--geist-border);\n  background: var(--geist-background);\n  color: var(--geist-foreground);\n  outline: none;\n  width: 150px;\n}\n#vad-graph-svg {\n  width: 100%;\n  height: 100%;\n  cursor: grab;\n}\n#vad-graph-svg:active { cursor: grabbing; }\n.graph-legend {\n  position: absolute;\n  bottom: 14px;\n  left: 14px;\n  background: var(--geist-background);\n  border: 1px solid var(--geist-border);\n  border-radius: 8px;\n  padding: 10px 14px;\n  font-size: 11px;\n  box-shadow: 0 4px 16px rgba(0,0,0,0.06);\n  z-index: 10;\n  line-height: 1.6;\n  pointer-events: none;\n}\n.graph-legend-row { display: flex; align-items: center; gap: 8px; }\n.graph-legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }\n.graph-info-drawer {\n  position: absolute;\n  top: 66px;\n  right: 14px;\n  width: 310px;\n  max-height: 620px;\n  background: var(--geist-background);\n  border: 1px solid var(--geist-border);\n  border-radius: 8px;\n  box-shadow: 0 8px 30px rgba(0,0,0,0.12);\n  z-index: 10;\n  padding: 16px;\n  overflow-y: auto;\n  display: none;\n  backdrop-filter: blur(10px);\n  transition: transform 0.2s ease, opacity 0.2s ease;\n}\n.graph-drawer-close {\n  position: absolute;\n  top: 10px;\n  right: 12px;\n  cursor: pointer;\n  font-size: 16px;\n  color: var(--geist-tertiary);\n}\n.graph-drawer-badge {\n  display: inline-block;\n  padding: 2px 6px;\n  border-radius: 4px;\n  font-size: 10px;\n  font-weight: 600;\n  margin-bottom: 6px;\n}\n.graph-drawer-title {\n  font-size: 13px;\n  font-weight: 700;\n  line-height: 1.4;\n  margin-bottom: 8px;\n  color: var(--geist-foreground);\n}\n.graph-drawer-meta {\n  font-size: 11px;\n  color: var(--geist-secondary);\n  margin-bottom: 12px;\n}\n.graph-drawer-core {\n  font-size: 12px;\n  line-height: 1.6;\n  color: var(--geist-foreground);\n  background: var(--geist-secondary-bg);\n  padding: 8px 10px;\n  border-radius: 6px;\n  margin-bottom: 12px;\n  border: 1px solid var(--geist-border);\n}\n.graph-drawer-link {\n  display: block;\n  text-align: center;\n  padding: 7px 12px;\n  background: var(--geist-foreground);\n  color: var(--geist-background);\n  border-radius: 6px;\n  font-size: 12px;\n  font-weight: 600;\n  text-decoration: none;\n  transition: opacity 0.15s ease;\n  margin-bottom: 6px;\n}\n.graph-drawer-link:hover { opacity: 0.85; }\n.graph-drawer-pdf-link {\n  display: block;\n  text-align: center;\n  padding: 6px 12px;\n  background: var(--geist-secondary-bg);\n  color: var(--geist-foreground);\n  border: 1px solid var(--geist-border);\n  border-radius: 6px;\n  font-size: 11px;\n  font-weight: 500;\n  text-decoration: none;\n  transition: all 0.15s ease;\n}\n.graph-drawer-pdf-link:hover { background: var(--geist-border); }\n.node-circle {\n  cursor: pointer;\n  transition: r 0.2s, stroke-width 0.2s;\n}\n.node-label {\n  font-size: 10px;\n  font-weight: 600;\n  fill: var(--geist-foreground);\n  pointer-events: none;\n  text-shadow: 0 1px 2px var(--geist-background);\n}\n.link-line {\n  stroke: var(--geist-border);\n  stroke-opacity: 0.6;\n  stroke-width: 1.2;\n  transition: stroke 0.2s, stroke-width 0.2s, stroke-opacity 0.2s;\n}\n.link-label {\n  font-size: 9px;\n  fill: var(--geist-tertiary);\n  pointer-events: none;\n  text-anchor: middle;\n}\n\n/* 引用框与警示框 Alerts */\n.callout-alert {\n  margin: 20px 0;\n  padding: 14px 18px;\n  border-radius: var(--radius-md);\n  transition: all 0.15s ease;\n}\n.callout-important, .callout-idea {\n  border-left: 4px solid #b54708;\n  background: rgba(181, 71, 8, 0.06);\n  box-shadow: inset 0 0 0 1px rgba(247, 144, 9, 0.3);\n}\n[data-theme=\"dark\"] .callout-important, [data-theme=\"dark\"] .callout-idea {\n  border-left-color: #fec84b;\n  background: rgba(181, 71, 8, 0.18);\n  box-shadow: inset 0 0 0 1px rgba(254, 200, 75, 0.25);\n}\n.callout-writing {\n  border-left: 4px solid #6941c6;\n  background: rgba(105, 65, 198, 0.06);\n  box-shadow: inset 0 0 0 1px rgba(105, 65, 198, 0.3);\n}\n[data-theme=\"dark\"] .callout-writing {\n  border-left-color: #d6bbfb;\n  background: rgba(105, 65, 198, 0.18);\n  box-shadow: inset 0 0 0 1px rgba(214, 187, 251, 0.25);\n}\n.callout-value {\n  border-left: 4px solid #027a48;\n  background: rgba(2, 122, 72, 0.06);\n  box-shadow: inset 0 0 0 1px rgba(2, 122, 72, 0.3);\n}\n[data-theme=\"dark\"] .callout-value {\n  border-left-color: #32d583;\n  background: rgba(2, 122, 72, 0.18);\n  box-shadow: inset 0 0 0 1px rgba(50, 213, 131, 0.25);\n}\n\n.card-title {\n  font-size: 16.5px;\n  font-weight: 600;\n  line-height: 1.42;\n  letter-spacing: -0.4px;\n  color: var(--geist-foreground);\n  margin: 0 0 10px;\n  word-break: break-word;\n  overflow-wrap: anywhere;\n  hyphens: auto;\n}\n.card-title a {\n  color: var(--geist-foreground);\n  text-decoration: none;\n  display: inline;\n  transition: color 0.15s ease;\n}\n.card-title a:hover {\n  color: var(--develop-blue);\n  text-decoration: none;\n}\n.card-id-mono {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-quaternary);\n  margin-right: 5px;\n}\n.card-meta-row {\n  display: flex;\n  gap: 6px;\n  flex-wrap: wrap;\n  margin-bottom: 12px;\n}\n.meta-token {\n  font-size: 12px;\n  color: var(--geist-tertiary);\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-ring);\n  padding: 2px 7px;\n  border-radius: var(--radius-sm);\n  white-space: nowrap;\n}\n.card-body-text {\n  font-size: 13.5px;\n  color: var(--geist-secondary);\n  line-height: 1.6;\n  margin-bottom: 16px;\n  flex-grow: 1;\n  word-break: break-word;\n  overflow-wrap: anywhere;\n}\n.card-body-text strong {\n  color: var(--geist-foreground);\n  font-weight: 600;\n}\n\n.card-footer {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  border-top: 1px solid var(--geist-border);\n  padding-top: 14px;\n}\n.card-link-action {\n  font-size: 13.5px;\n  font-weight: 500;\n  color: var(--link-blue);\n  display: inline-flex;\n  align-items: center;\n  gap: 4px;\n  text-decoration: none;\n  transition: all 0.15s ease;\n}\n.card-link-action:hover {\n  opacity: 0.85;\n  transform: translateX(2px);\n}\na.meta-token {\n  transition: all 0.15s ease;\n  cursor: pointer;\n  text-decoration: none;\n}\na.meta-token:hover {\n  background: var(--geist-selection);\n  color: var(--geist-foreground);\n  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);\n}\n\n/* 紧凑列表视图 (List View) */\n.card-list-view {\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n}\n.list-row-item {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-md);\n  padding: 12px 18px;\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  gap: 16px;\n  transition: box-shadow 0.15s;\n}\n.list-row-item:hover {\n  box-shadow: var(--shadow-card-hover);\n}\n\n/* 阅读详情页 (Report Detail) */\n.reading-container {\n  display: grid;\n  grid-template-columns: minmax(0, 1fr) 260px;\n  gap: 40px;\n  align-items: start;\n}\n@media (max-width: 960px) {\n  .reading-container { grid-template-columns: 1fr; }\n  .reading-sidebar { display: none; }\n}\n\n.report-header-card {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 28px 32px;\n  margin-bottom: 28px;\n}\n.crumb-bar {\n  font-size: 13px;\n  color: var(--geist-tertiary);\n  margin-bottom: 10px;\n}\n.report-title {\n  font-size: 32px;\n  font-weight: 600;\n  letter-spacing: -1.28px;\n  margin: 0 0 16px;\n  color: var(--geist-foreground);\n}\n.report-action-buttons {\n  display: flex;\n  align-items: center;\n  gap: 10px;\n  flex-wrap: wrap;\n  border-top: 1px solid var(--geist-border);\n  padding-top: 16px;\n  margin-top: 16px;\n}\n\n.article-body {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card-full);\n  border-radius: var(--radius-lg);\n  padding: 36px 42px 80px;\n  font-size: 16px;\n  line-height: 1.75;\n  color: var(--geist-foreground);\n}\n.article-body h1, .article-body h2, .article-body h3 {\n  color: var(--geist-foreground);\n  scroll-margin-top: 80px;\n}\n.article-body h1 { font-size: 28px; font-weight: 600; letter-spacing: -1.28px; border-bottom: 1px solid var(--geist-border); padding-bottom: 8px; margin-top: 32px; }\n.article-body h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.96px; border-bottom: 1px solid var(--geist-border); padding-bottom: 6px; margin-top: 36px; }\n.article-body h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.32px; margin-top: 26px; }\n.article-body table {\n  width: 100%;\n  border-collapse: collapse;\n  margin: 24px 0;\n  font-size: 14px;\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  overflow: hidden;\n}\n.article-body th, .article-body td {\n  padding: 10px 14px;\n  text-align: left;\n  border-bottom: 1px solid var(--geist-border);\n}\n.article-body th {\n  background: var(--geist-surface-tint);\n  font-weight: 600;\n  color: var(--geist-foreground);\n}\n.article-body blockquote {\n  border-left: 2px solid var(--geist-foreground);\n  margin: 20px 0;\n  padding: 8px 18px;\n  color: var(--geist-secondary);\n  font-style: normal;\n}\n.article-body code {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 13.5px;\n  box-shadow: var(--shadow-ring);\n  background: var(--geist-surface-tint);\n  padding: 2px 6px;\n  border-radius: var(--radius-sm);\n}\n.article-body pre {\n  position: relative;\n  background: #000000;\n  color: #ededed;\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  padding: 18px;\n  margin: 24px 0;\n  overflow-x: auto;\n}\n.article-body pre code {\n  background: transparent;\n  box-shadow: none;\n  padding: 0;\n  color: inherit;\n  font-size: 13px;\n}\n.copy-code-btn {\n  position: absolute;\n  top: 8px;\n  right: 10px;\n  font-family: \"Geist Mono\", monospace;\n  font-size: 11px;\n  background: #171717;\n  color: #ffffff;\n  border: 1px solid #333333;\n  padding: 3px 8px;\n  border-radius: var(--radius-sm);\n  cursor: pointer;\n}\n\n/* 侧边大纲 (TOC) */\n.reading-sidebar {\n  position: sticky;\n  top: 80px;\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 20px;\n  max-height: calc(100vh - 100px);\n  overflow-y: auto;\n}\n.sidebar-toc-title {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 12px;\n  font-weight: 500;\n  text-transform: uppercase;\n  letter-spacing: 0.5px;\n  color: var(--geist-quaternary);\n  margin-bottom: 12px;\n}\n.reading-sidebar ul {\n  list-style: none;\n  padding-left: 0;\n  margin: 0;\n  font-size: 13px;\n}\n.reading-sidebar li {\n  margin: 6px 0;\n}\n.reading-sidebar ul ul {\n  padding-left: 14px;\n}\n.reading-sidebar a {\n  color: var(--geist-secondary);\n  text-decoration: none;\n  transition: color 0.15s;\n}\n.reading-sidebar a:hover, .reading-sidebar a.active {\n  color: var(--geist-foreground);\n  font-weight: 600;\n}\n\n/* 后台管理 (/admin) */\n.admin-card-container {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card-full);\n  border-radius: var(--radius-lg);\n  padding: 32px;\n  margin-bottom: 32px;\n}\n.form-row-2 {\n  display: grid;\n  grid-template-columns: 1fr 1fr;\n  gap: 16px;\n  margin-bottom: 16px;\n}\n@media (max-width: 600px) {\n  .form-row-2 { grid-template-columns: 1fr; }\n}\n.form-field {\n  display: flex;\n  flex-direction: column;\n  gap: 6px;\n  margin-bottom: 16px;\n}\n.form-field label {\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-foreground);\n}\n.form-field input, .form-field select, .form-field textarea {\n  font-family: \"Geist\", sans-serif;\n  font-size: 14px;\n  padding: 9px 12px;\n  background: var(--geist-background);\n  box-shadow: var(--shadow-border);\n  border: none;\n  border-radius: var(--radius-md);\n  color: var(--geist-foreground);\n  outline: none;\n}\n.form-field input:focus, .form-field select:focus, .form-field textarea:focus {\n  outline: 2px solid var(--ds-focus-color);\n  box-shadow: none;\n}\n\n/* 语法高亮 (Console Blue / Purple / Pink) */\n.codehilite .k, .codehilite .kd, .codehilite .kn { color: #eb367f; font-weight: 500; }\n.codehilite .s, .codehilite .s1, .codehilite .s2 { color: #0070f3; }\n.codehilite .nf, .codehilite .na { color: #7928ca; font-weight: 500; }\n.codehilite .c, .codehilite .c1 { color: #666666; font-style: italic; }\n.codehilite .mi, .codehilite .mf { color: #ff5b4f; }\n\n</style>\n\n</head>\n<body>\n\n    <nav class=\"vercel-nav\">\n      <div class=\"nav-brand\">\n        <a href=\"/\" style=\"display:flex;align-items:center;gap:10px;text-decoration:none\">\n          <svg class=\"vercel-triangle\" viewBox=\"0 0 76 65\" fill=\"none\">\n            <path d=\"M37.5274 0L75.0548 65H0L37.5274 0Z\" fill=\"currentColor\"/>\n          </svg>\n          <span class=\"nav-title\">Agent Harness KB</span>\n        </a>\n        <span class=\"nav-badge-pill\">Geist 2.0</span>\n      </div>\n\n      <div class=\"nav-links\">\n        <a class=\"nav-link \" href=\"/\">全景总览</a>\n        <a class=\"nav-link \" href=\"/vad\" style=\"color:var(--ship-red)\">🎯 VAD 专栏 (144)</a>\n        <a class=\"nav-link\" href=\"https://m0rtzz.github.io/paper-notes/\" target=\"_blank\" rel=\"noopener\">顶会 669 篇 ↗</a>\n        <a class=\"nav-link\" href=\"/download/all\">整库打包</a>\n        \n      </div>\n\n      <div class=\"nav-actions\">\n        \n        <button class=\"theme-toggle-btn\" id=\"theme-toggle-btn\" onclick=\"toggleTheme()\" title=\"切换亮暗主题\">🌙</button>\n      </div>\n    </nav>\n    \n<main class=\"vercel-container\">\n\n        <div class=\"report-header-card\">\n          <div class=\"crumb-bar\"><a href=\"/\">Home</a> / <b>fulltext.txt</b></div>\n          <h1 class=\"report-title\">fulltext.txt</h1>\n          <div class=\"report-action-buttons\">\n            <a class=\"btn-primary-dark\" href=\"?dl=1\">Download Text</a>\n          </div>\n        </div>\n        <article class=\"article-body\"><pre><code>Published as a conference paper at ICLR 2026\n\nD O F LOW: F LOW- BASED G ENERATIVE M ODELS FOR I N TERVENTIONAL AND C OUNTERFACTUAL F ORECASTING\nON T IME S ERIES\n\narXiv:2511.02137v2 [stat.ML] 1 Mar 2026\n\nDongze Wu &amp; Yao Xie\nH. Milton Stewart School of Industrial and Systems Engineering\nGeorgia Institute of Technology\nAtlanta, GA 30332, USA\ndwu381@gatech.edu, yao.xie@isye.gatech.edu\nFeng Qiu\nNorthwestern–Argonne Institute for Scientific and Engineering Excellence\nEvanston, IL 60208, USA\nfqiu@northwestern.edu\n\nA BSTRACT\nTime-series forecasting increasingly demands not only accurate observational predictions but also causal forecasting under interventional and counterfactual queries\nin multivariate systems. We present DoFlow, a flow-based generative model defined\nover a causal Directed Acyclic Graph (DAG) that delivers coherent observational\nand interventional predictions, as well as counterfactuals through the natural encoding–decoding mechanism of continuous normalizing flows (CNFs). We also\nprovide a supporting counterfactual recovery theory under certain assumptions.\nBeyond forecasting, DoFlow provides explicit likelihoods of future trajectories,\nenabling principled anomaly detection. Experiments on synthetic datasets with\nvarious causal DAG structures and real-world hydropower and cancer-treatment\ntime series show that DoFlow achieves accurate system-wide observational forecasting, enables causal forecasting over interventional and counterfactual queries,\nand effectively detects anomalies. This work contributes to the broader goal of\nunifying causal reasoning and generative modeling for complex dynamical systems.\n\n1\n\nI NTRODUCTION\n\nForecasting the evolution of multivariate time series is a central problem in statistics and machine\nlearning, with extensive development across both classical and modern approaches. In the standard\nsetting, a model observes past values and predicts what future values are likely to be under the\nsame conditions that generated the past data. These models are purely observational: they learn\ncorrelations from past behavior and extrapolate them into the future.\nHowever, many real-world applications require more than observational forecasting. Practitioners\noften need to answer “what if” questions about interventions, i.e., how the system would evolve if\ncertain control variables were set differently. In this work, we focus on two types of causal queries:\n• An interventional query asks: “How will the forecast change under a planned modification of\ncertain variables?” Here, the goal is to predict the future trajectory under a chosen sequence of\nactions. For example, in hydropower time series, turbine-control signals are upstream causes of\ndownstream signals such as power output (Klein et al., 2021). Operators may specify a hypothetical\nturbine-control plan and ask how all downstream signals will evolve. This contrasts with standard\nobservational forecasters, which, given a fixed past context, produce a fixed forecast. They do not\nallow one to modify future control plans and inspect how changes propagate through the system.\n• A counterfactual query instead asks: “What would the system trajectories have looked like\nhad we intervened differently?” Here, we have already observed a factual trajectory and ask\n1\n\n\fPublished as a conference paper at ICLR 2026\n\nhow the same trajectory would have changed under an alternative intervention. For example, in\nhealthcare (Cheng et al., 2020; Jacob Rodrigues et al., 2020), we may observe a patient’s treatment\nand outcome trajectory, and then ask whether this particular patient’s outcome trajectory would\nhave been better or worse under a different dosing schedule. Outcomes depend not only on dosing\nbut also on patient-specific factors that are not directly observed (e.g., baseline health), yet these\nfactors are implicitly reflected in the factual trajectory. By conditioning on the factual trajectory,\nwe can infer such unobserved factors and then re-simulate how this same patient’s trajectory would\nhave evolved under the alternative dosing plan.\nHowever, most modern forecasters are observational: they excel at correlational prediction but cannot\nanswer causal queries. Also, to our knowledge, there exists no general framework for counterfactual\ntime-series forecasting yet. Bridging these regimes calls for a model that is both causally structured\nand generative, capable of generating consistent and system-wide trajectories under causal queries.\nContributions. In this paper, we address this gap by proposing DoFlow, a generative model based\non Continuous Normalizing Flows (CNFs) that explicitly embeds a causal directed acyclic graph\n(DAG) structure. Leveraging the invertibility of CNFs and the temporal conditioning in Neural\nODEs, DoFlow provides a unified framework for observational, interventional, and counterfactual\nforecasting. Beyond forecasting, it also yields explicit likelihoods for future trajectories, enabling\nprincipled anomaly detection. By unifying causal reasoning with deep generative modeling, DoFlow\nadvances toward trustworthy inference and decision support in complex dynamical systems.\n1.1\n\nR ELATED W ORK\n\nTo situate our work, we briefly review related lines of research spanning time-series forecasting and\ncausal generative modeling.\n• Time-series forecasting. Modern approaches can be broadly categorized into four families: (i)\nclassical statistical models such as ARIMA, state-space models, and vector autoregression (Young\nand Shellswell, 1972; Harvey, 1990; Hyndman et al., 2008; Zivot and Wang, 2006; Scott and\nVarian, 2014; Taylor and Letham, 2018); (ii) deep sequence models including RNNs/LSTMs and\nattention-augmented variants (Medsker et al., 2001; Graves, 2012; Qin et al., 2017; Lindemann\net al., 2021); (iii) Transformer-based architectures offering scalability on long sequences (Vaswani\net al., 2017; Zhou et al., 2021; Wu et al., 2021; Nie et al., 2022); and (iv) recent flow and diffusion\nmodels that directly generate trajectories, including autoregressive (Rasul et al., 2020; 2021; Gao\net al., 2025), graph-augmented (Dai and Chen, 2022), and horizon-wide designs (Alcaraz and\nStrodthoff, 2022; Shen and Kwok, 2023). These models typically condition on learned context\nrepresentations and use expressive generative backbones to produce future forecasts, but they\nremain observational, lacking the ability to simulate interventional and counterfactual trajectories.\n• Causal generative modeling. For static data, interventional and counterfactual queries are traditionally addressed via structural equation models and do-calculus. Recent generative extensions\ninclude graph causal encoders (Schölkopf et al., 2021; Sánchez-Martin et al., 2022; Rahman and\nKocaoglu, 2024), diffusion and flow-based models (Khemakhem et al., 2021; Javaloy et al., 2023;\nChao et al., 2024; Wu et al., 2025), and model-agnostic counterfactual generators (Karimi et al.,\n2020; Dasgupta et al., 2025). However, these methods largely target non-temporal settings and\ndo not capture causal dependencies over time. A related work studies counterfactual dynamic\nforecasting (Liu et al., 2023) in constrained physical systems, with interventions only on the initial\nconstrained state. By contrast, DoFlow extends causal generative modeling to general time-indexed\nDAGs, enabling coherent interventional and counterfactual forecasting across dynamic systems.\nWe briefly situate DoFlow relative to two complementary lines a practitioner may combine with our\nmethod: (i) Causal effect estimation—quantifying how external actions change short-term expected\noutcomes, and (ii) Causal discovery—recovering a causal DAG from observational data.\n• Causal effects on time series. Prior research on time-series interventions has primarily focused\non estimating treatment effects under external actions, using variational Bayesian models, and\nclassical time-series approaches like ARIMA (Brodersen et al., 2015; Scott and Varian, 2014;\nLinden, 2015; Bernal et al., 2017; Bica et al., 2020b;a; Menchetti et al., 2021; Wijn et al., 2022;\nGrecov et al., 2022; Giudice et al., 2022; Runge et al., 2023; Hyndman and Rostami-Tabar, 2025).\nThese studies typically model how a discrete action variable At ∈ {0, . . . , J−1}—for example,\n2\n\n\fPublished as a conference paper at ICLR 2026\n\nrepresenting treatment versus control or different policy levels—affects future outcomes of the\nseries. These are often formalized as τt = E[Yt |At−1 = j] − E[Yt |At−1 = k], where Yt denotes\nthe outcome and At the time-varying action. Methodologically, modern approaches estimate the\nexpected outcome under alternative actions, often through conditional generative or variational\nrepresentation-learning models, to compute average or individualized treatment effects (Lim, 2018;\nLiu et al., 2020; Li et al., 2021; Cao et al., 2023; Wu et al., 2024b; Cinquini et al., 2025).\n• Causal discovery. Inferring causal directed acyclic graphs (DAGs) from observational time series\nhas also been actively explored. Existing approaches include statistical dependence–based tests\n(Melkas et al., 2021; Bussmann et al., 2021), optimization-based formulations (Pamfil et al., 2020),\nand deep learning–based frameworks (Tank et al., 2021; Yin and Barucca, 2022; Zhong et al.,\n2023; Cheng et al.; Faruque et al., 2024; Cheng et al., 2024), which collectively advance the\nrecovery of temporal causal structures under various assumptions.\nHowever, existing causal effects on time-series methods focus mainly on discrete, fixed-time actions\nand estimate short-term expected outcome differences. Moreover, to our knowledge, no existing\nwork has modeled the counterfactual trajectory, despite its importance for reliable decision making.\nTherefore, there remains a need for a generative model that explicitly embeds a causal DAG in\ntime-series, supports interventions on individual continuous variables at arbitrary times, and yields\ncoherent interventional and counterfactual predictions across the system.\n\n2\n\nT IME -C ONDITIONED F LOW ON DAG\n\n2.1\n\nS ETTINGS AND GOALS\n\nWe consider a K-dimensional multivariate time series evolving over a causal directed acyclic graph\n(DAG) with nodes {1, . . . , K} in a topologically sorted order. We denote by Xi,t ∈ R the value of\nnode i at time-series step t. Let Xt := {X1,t , . . . , XK,t } denote the collection of all nodes at time t,\nand let Xpa(i),t := {Xj,t : j ∈ pa(i)} denote the values of node i’s parents at time t.\nThe parent set pa(i) encodes the structural dependencies that remain fixed—for instance, in a physical\nsystem, upstream components serve as permanent causal parents of downstream ones. At each step t,\nthe value Xi,t depends on its past trajectory Xi,t− and the past trajectories of its parents Xpa(i),t− :\nXi,t− := {Xi,s , s &lt; t},\n\nXpa(i),t− := {Xj,s , j ∈ pa(i), s &lt; t}.\n\n(1)\n\nWe assume no within-time-step causal effects, meaning that all causal influences occur with at least\none time-step lag. We formalize the dynamics by the structural causal model (SCM):\nXi,t := fi (Xi,t− , Xpa(i),t− , Ui,t ),\n(2)\nwhere Ui,t is an exogenous noise independent across nodes and time. Here, fi is a causal mechanism\nthat takes as inputs the histories of i and its parents, plus an exogenous noise.\nFor training and evaluation, each sequence {X1 , . . . , XT } is divided into a context window\n{X1 , . . . , Xτ } used for conditioning and a forecasting window {Xτ +1 , . . . , XT } used for prediction.\nThe context window consists of observed past values and is never intervened on. Interventions, if\npresent, are applied within the forecasting window and influence all subsequent steps that we aim to\npredict. We use uppercase for random variables Xt and lowercase for realizations xt .\nGoals.\n\nOur goal is to develop a framework for causal time-series prediction that answers:\n\n• Interventional forecasting. We denote the intervention schedule by I ⊆ [K] × {τ + 1, . . . , T },\nwhere each (i, t) ∈ I specifies an intervention on node i at time t. For each (i, t) ∈ I, the variable\nXi,t is intervened to the value γi,t , forming the collection γI := {γi,t }(i,t)∈I . Each intervention\nreplaces the system’s natural evolution with a fixed value do(Xi,t := γi,t ), collectively written as\ndo(XI := γI ). This defines the interventional distribution:\np(Xτ +1:T | x1:τ , do(XI := γI )).\n(3)\nWhen I = ∅, the model reduces to standard observational forecasting.\n• Counterfactual forecasting. Given a factual trajectory xF\nτ +1:T , we aim to answer: “What would\nthis specific sequence have looked like if variables XI had instead been set to γI ?” This induces\nthe counterfactual distribution:\nF\np(XCF\n(4)\nτ +1:T | x1:τ , xτ +1:T , do(XI := γI )).\n3\n\n\fPublished as a conference paper at ICLR 2026\n\n2.2\n\nC ONTINUOUS NORMALIZING FLOW FOUNDATIONS\n\nWe first introduce the continuous normalizing flow (CNF) foundation of DoFlow. It autoregressively\ngenerates future values, with each step conditioned on past temporal information. For each node i in\nthe causal DAG, we learn a time-conditioned CNF that models the conditional distribution of node i\nat each time step t, given its own and its parents’ past temporal context. This context is summarized\nby a hidden state Hi,t−1 , which aggregates information from the historical sequences Xi,t− and\nXpa(i),t− . In practice, Hi,t−1 is obtained using RNN-based encoders, as detailed in Section 2.3.\nAt each time-series step t, a CNF defines a continuous transformation between the target distribution\n(at s=0, corresponding to the target data Xi,t ) and a base distribution (at s=1, typically N (0, 1))\nthrough a neural ordinary differential equation (ODE) (Chen et al., 2018). Here, s denotes the\ncontinuous ODE time, which is distinct from the time-series index t.\ndxi,t (s)\n= vi (xi,t (s), s; Hi,t−1 ) , s ∈ [0, 1],\n(5)\nds\nwhere the velocity field vi is parameterized by a neural network. To predict xi,t , we sample z =\nxi,t (1) ∼ N (0, 1) and integrate the ODE from s = 1 to s = 0. We train the velocity field vi using\nConditional Flow Matching (CFM) loss (Lipman et al., 2023), which directly regresses vi onto an\nanalytically defined reference velocity field. Specifically, a reference path ϕ interpolates between\na data sample xi,t and a base sample z (typically using linear interpolation), whose derivative ∂s ϕ\ndefines the reference velocity. The model minimizes an L2 loss between vi and ∂s ϕ, allowing efficient\ntraining while preserving the invertible mapping from base distribution to data distribution.\n2.3\n\nT IME - CONDITIONED CONTINUOUS NORMALIZING FLOW\n\nRNN to summarize past histories. We learn a continuous normalizing flow (CNF) for each node i\nto autoregressively predict Xi,t for t ∈ {τ + 1, . . . , T }, conditioning each step on the node’s past\nhistory and its parents’ past histories. An RNN (can be either an LSTM or GRU (Dey and Salem,\n2017)) is employed to summarize histories of node i via a recurrent state hi,t :\nhi,t = RNN(xi,t , hi,t−1 ).\nTherefore, for each node i at time t, DoFlow is conditioned on the concatenated hidden states:\n\u0001\nHi,t−1 := concat hi,t−1 , hpa(i),t−1 ,\n\n(6)\n(7)\n\nwhere hpa(i),t−1 := {hj,t−1 : j ∈ pa(i)}.\nCF\nAt forecasting time, we use Ĥi,t (for observational or interventional forecasting) or Ĥi,t\n(for\ncounterfactual forecasting) to denote the hidden states updated from the model predicted values.\nCF\nImportantly, since Ĥi,t−1 (or Ĥi,t−1\n) is autoregressively updated from the model’s generated or\nintervened values, it carries information about any past interventions applied to node i or its parents.\nF\nBesides, we denote Hi,t\nas the factual hidden state computed from the observed factual trajectory.\n\nTime-conditioned CNF. We train a separate CNF for each node i that are shared across time-series\nsteps t, conditioning each step on Hi,t−1 . The Neural ODE of the conditional CNF is defined as:\ndxi,t (s)\n= vi (xi,t (s), s; Hi,t−1 ),\n(8)\nds\ns ∈ [0, 1], t ∈ {τ + 1, . . . , T }, which connects samples from the time-series distribution at time t (at\ns = 0) with the base distribution N (0, 1) (at s = 1).\nTraining loss. At the start of the forecasting window, Hi,τ is initialized from the context sequence\n(Xi,1:τ , Xpa(i),1:τ ). For later steps t ≥ τ + 1, the hidden states Hi,t are updated autoregressively\nduring training using the observed values (Xi,t , Xpa(i),t ). The training loss is calculated over the\nentire forecasting window. For each t ∈ {τ + 1, . . . , T }, we define the reference path ϕ as a\nstraight-line interpolation between the training sample xi,t and Gaussian base sample z ∼ N (0, I):\nϕ(xi,t , z; s) := (1 − s) xi,t + s z,\nwith s ∼ U [0, 1].\n4\n\n∂s ϕ(xi,t , z; s) = z − xi,t ,\n\n(9)\n\n\fPublished as a conference paper at ICLR 2026\n\nHere, ∂s ϕ represents the reference velocity field, which the model’s learned velocity field vi aims to\napproximate. Training thus minimizes the squared L2 distance between vi and ∂s ϕ. Therefore, the\ntraining loss of the flow using conditional flow matching (Lipman et al., 2023) becomes:\n\"\nK X\nT\nX\n1\nLCFM (θ) = EX1:T ∼pX\nK(T − τ ) i=1 t=τ +1\n# (10)\n\u0001\n2\nEs∼U [0,1], z∼N (0,I) vi ϕ(xi,t , z; s), s; Hi,t−1 − ∂s ϕ(xi,t , z; s) 2 ,\nwhere θ encompasses both the parameters of the velocity field vi and the RNN parameter.\nAfter training, we obtain a velocity field vi for each node i on the causal DAG. We next define the\nforward and reverse processes of the Neural ODE.\nForward process. We treat the forward process as an encoding operation, denoted by the function\nZt := Φθ (Xt ; Ht−1 ). Given the velocity field vi , the forward process pushes an observed factual\nF\noutcome xF\ni,t (at s = 0) to a latent embedding zi,t (at s = 1), conditioned on a factual hidden state\nF\nHi,t−1 that summarizes the past observed factual data. Formally,\nZ 1\n\u0001\nF\nF\nF\nF\n(11)\nzi,t\n:= Φθ (xF\n;\nH\n)\n=\nx\n+\nvi xi,t (s), s; Hi,t−1\nds,\ni,t\ni,t−1\ni,t\n0\nF\nF\nwith xi,t (0) = xF\ni,t . Through this process, zi,t encodes the information of the factual observation xi,t .\n\nReverse process. We treat the reverse process as a decoding operation. It is initialized differently\nfor interventional (Section 3.1) and counterfactual prediction (Section 3.2). In general, to predict the\nvalue of node i at time t, given a latent representation zi,t , which can be either sampled from N (0, 1)\nor obtained by encoding a factual sample, the reverse process is defined as:\nZ 1\n\u0001\n\u0001\n(12)\nz\n;\nĤ\n=\nz\n−\nx̂i,t := Φ−1\nvi xi,t (s), s; Ĥi,t−1 ds,\ni,t\ni,t−1\ni,t\nθ\n0\n\nwith xi,t (1) = zi,t . Here, Ĥi,t is autoregressively updated using the predicted values x̂i,t and x̂pa(i),t ,\nand serves as the conditioning state for the next time step.\n\n3\n\nI NTERVENTIONAL AND C OUNTERFACTUAL P REDICTIONS\n\n3.1\n\nO BSERVATIONAL AND INTERVENTIONAL PREDICTION\n\nAt inference time, we forecast each node’s value\none step ahead using the reverse process conditioned on the latest hidden states. Assume that\nour intervention schedule is I with intervened\nvalues {γi,t }, and the purely observational case\nis given by I = ∅.\n\nAlgorithm 1: Time Series Observational/Interventional Forecasting\n1: Input: Context window {xi,1:τ }K\ni=1 ;\n\nintervention schedule I with values {γi,t }\n\n2: Initialize hidden states Ĥi,τ with\n\n(xi,1:τ , xpa(i),1:τ ) for all i = 1, . . . , K\n3: for t = τ + 1 to T do\n4:\nfor i = 1, . . . , K do {topological order}\n5:\nif (i, t) ∈ I then\n6:\nx̂i,t ← γi,t\n7:\nelse\n8:\nSample zi,t ∼ N (0, 1)\n\u0001\n9:\nx̂i,t ← Φ−1\nθ zi,t ; Ĥi,t−1 {Eq. (12)}\n10:\nend if\n11:\nhi,t ← RNN(x̂i,t , hi,t−1 )\n12:\nĤi,t ← (hi,t , hpa(i),t )\n13:\nend for\n14: end for\n15: Output: {x̂i,t }i=1..K, t=τ +1,..,T\n\nThe forecasting at time step t is proceeded in a\ntopologically sorted order, meaning that parent\nnodes are forecasted first, followed by their children. For a node i intervened at time t with value\nγi,t , the forecast is fixed to the intervened value,\ni.e., x̂i,t ← γi,t . For non-intervened nodes, the\nforecast x̂i,t is generated by the flow model using reverse process (Eq. 12), conditioned on its\nhidden state Ĥi,t−1 , which is updated using the\nprevious forecasts x̂i,t−1 and x̂pa(i),t−1 . The\noverall procedure for observational and interventional forecasting over the time series is summarized in Algorithm 1. An illustrative figure is\nshown in Panel B of Figure 1.\n5\n\n\fPublished as a conference paper at ICLR 2026\n\nA. RNN State\n\nhpa(i),t−1\n\nhi,t−2\n\nRNN\n\nB. Observational / Interventional\n\nHi,t−1\n\nhi,t−1\n\nzi,t\n\n̂\nΦ−1\nθ ( ⋅ ; Hi,t−1)\n\nC. Counterfactual\n\n̂\nxi,t\n\nxi,tF\n\n̂ CF\nΦ−1\nθ ( ⋅ ; H i,t−1)\n\nF\nΦθ( ⋅ ; Hi,t−1\n)\n\n̂\nxCF\ni,t\n\nzi,tF\n\nxi,t−1\n\nFigure 1: (A) RNN State Update. (B) Observational/Interventional Forecasting. Forecasts are generated by\ndecoding from latent zi,t ∼ N (0, 1), conditioned on Ĥi,t−1 updated with the last predicted (x̂i,t−1 , x̂pa(i),t−1 ).\nF\nF\n(C) Counterfactual Forecasting. A factual observation xF\ni,t is encoded with its factual state Hi,t−1 into zi,t , then\nCF\nCF\nF\ndecoded under the counterfactual state Ĥi,t−1 to yield x̂i,t . Factual states Hi,t−1 are updated from observed\nF\nCF\nfactual (xF\ni,t−1 , xpa(i),t−1 ), while counterfactual states Ĥi,t−1 are updated from the previously predicted\nCF\nCF\n(x̂i,t−1 , x̂pa(i),t−1 ).\n\n3.2\n\nT IME SERIES FORECASTING FOR COUNTERFACTUAL QUERIES\n\nCounterfactual forecasting follows the standard abduction–action–prediction procedure. Given a\nK\nfactual trajectory {xF\ni,τ +1:T }i=1 , we proceed as follows: (i) abduction – we infer latent variables by\nF\nencoding each observed factual value into its latent representation zi,t\nthrough the forward process\nF\n(11), conditioned on a factual hidden state Hi,t−1 that summarizes past factual observations; (ii)\naction – we apply the specified intervention schedule I; and (iii) prediction – we generate the\ncounterfactual trajectory x̂CF\ni,t through the reverse process (12), starting from the abducted latent\nF\nrepresentations zi,t\n.\nF T −1\nSpecifically, we first compute the factual hidden states {Hi,t\n}t=τ for each i from the observed\nK\nF\ncontext {xi,1:τ }i=1 and the observed factual trajectory {xi,τ +1:T }K\ni=1 . These factual states are\nused only for encoding factual values into their latent representations, which serve as the starting\npoint for counterfactual decoding. At each time-series step t, nodes are predicted in topological\norder. For (i, t) ∈ I, the counterfactual forecast is set as x̂CF\ni,t := γi,t , and its RNN state hi,t is\nF\nupdated accordingly. For non-intervened nodes, the factual value xF\ni,t is first encoded as zi,t =\n−1 F\nF\nF\nCF\nCF\nΦθ (xi,t ; Hi,t−1 ), then decoded under the counterfactual hidden state as x̂i,t = Φθ (zi,t ; Ĥi,t−1 ),\nCF\nfollowed by updating Ĥi,t\n. The overall counterfactual generation procedure is summarized in\nAlgorithm 2 and illustrated in Panel C of Figure 1.\n\nAlgorithm 2: Counterfactual Time Series Generation\nF\nK\n1: Input: Context window {xi,1:τ }K\ni=1 ; factual sample {xi,τ +1:T }i=1 ; intervention schedule I\n\nwith values {γi,t }\nF T −1\n2: Obtain factual hidden states {Hi,t\n}t=τ for each i from context {xi,1:τ }K\ni=1 and observed factual\nK\n{xF\ni,τ +1:T }i=1\nCF\n3: Initialize counterfactual hidden states Ĥi,τ\nwith context (xi,1:τ , xpa(i),1:τ ) for all i = 1, . . . , K\n4: for t = τ + 1 to T do\n5:\nfor i = 1, . . . , K do {topological order}\n6:\nif (i, t) ∈ I then\n7:\nx̂CF\ni,t ← γi,t\n8:\nelse\nF\nF\n9:\nzi,t\n← Φθ (xFi,t , Hi,t−1\n)\n{Eq. (11); Abduction}\n−1 F\nCF\nCF\n10:\nx̂i,t ← Φθ (zi,t , Ĥi,t−1 ) {Eq. (12); Action-Prediction}\n11:\nend if\n12:\nhi,t ← RNN(x̂CF\ni,t , hi,t−1 )\nCF\n13:\nĤi,t ← (hi,t , hpa(i),t )\n14:\nend for\n15: end for\n16: Output: {x̂CF\ni,t }i=1..K, t=τ +1,..T\n\n6\n\n\fPublished as a conference paper at ICLR 2026\n\n3.3\n\nA DDITIONAL PROPERTY: LIKELIHOOD - BASED ANOMALY DETECTION\n\nAnother advantage of our framework is that it assigns an explicit log-density to its predicted future\ntrajectory over the forecasting window. For a single node (index i omitted for clarity), we denote this\nconditional density by pθ,Xτ +1:T (· | Ĥτ ), where Ĥτ is the context state. In DoFlow, zτ +1:T are base\nsamples used to generate the forecast x̂τ +1:T . The explicit form of this learned density, mapping\nfrom latent zτ +1:T to predicted x̂τ +1:T , is given as:\nProposition 3.1. Given base samples zτ +1:T ∼ q(·), the log-density of the generated time series\nobtained via the continuous normalizing flow is:\n\u0014\n\u0015\nZ 1\nT\n\u0010\n\u0011\nX\n\u0001\nlog pθ,Xτ +1:T x̂τ +1:T | Ĥτ =\nlog q(zt ) +\n∇· vθ xt (s), s; Ĥt−1 ds ,\n\n(13)\n\n0\n\nt=τ +1\n\nwhere x̂t = Φ−1\nθ (zt ; Ĥt−1 ), t ∈ {τ + 1, . . . , T }.\nAnomaly Detection. Since anomalies deviate substantially from normal patterns, we expect the\nmodel to assign lower density to its generated forecast trajectories when conditioned on anomalous\ncontexts.\n\n4\n\nT HEORETICAL P ROPERTIES\n\nOur analysis assumes that the underlying SCM on the given DAG satisfies the conditions in Assumption B.1 (see Appendix B.1), which are standard and fundamental in causal inference (Pearl, 2009;\nHernán and Robins, 2010; Imbens and Rubin, 2015; Javaloy et al., 2023; Chao et al., 2024). These\nassumptions ensure that the interventional and counterfactual distributions we study are well-defined.\nIn this section, we present a theoretical result on the counterfactual recovery of our algorithm under\ncertain assumptions. We fix a node and omit the index i for simplicity. Recall that the encoding\nfunction is defined as Φθ : X × H → Z and the decoding function as Φ−1\n: Z × H → X,\nθ\ncorresponding to (11) and (12), respectively. Also, the underlying structural causal model is given\nby Xt := f (Xt− , Xpa,t− , Ut ). In the following, we present a supporting result on the counterfactual\nrecovery properties of DoFlow. We begin by introducing the following assumptions.\nAssumption 4.1.\n(A1) Ut ⊥\n⊥ (Xt− , Xpa,t− ).\n(A2) The structural causal equation f (·, Ut ) is strictly monotone and continuous in Ut .\n(A3) For the encoded latent variable Zt = Φθ (Xt ; Ht−1 ), the conditional distribution satisfies\npθ (Zt | Ht−1 ) = q(Zt ).\nRemark 4.2. Each node Xt ∈ R, so (A2) is assumed in the univariate case. It is automatically\nsatisfied under additive SCMs, i.e., Xt = f ∗ (Xt− , Xpa,t− ) + Ut . Under certain identifiability\nconditions, it also holds for non-linear models (Zhang and Hyvarinen, 2012; Strobl and Lasko, 2023).\nUnder (A2), for any fixed (Xt− , Xpa,t− ), the map u 7→ f (Xt− , Xpa,t− , u) is a bijection on the\nsupport of Ut . One may notice that (A1)–(A2) mirror those in Bijective Generation Mechanisms\n(BGM) (Nasr-Esfahany et al., 2023), which establish model-agnostic identifiability with an additional\nassumption on distribution matching. In contrast, our Corollary 4.5 provides model-specific, pointwise\nrecovery for our CNF under (A1)–(A3) without requiring distribution matching; see Appendix B.2.\nNote that (A3) implies that the encoded Zt = Φθ (Xt ; Ht−1 ) is statistically independent of Ht−1 ,\nand equivalently of (Xt− , Xpa,t− ), in distribution. In the infinite-data limit with exact training, the\ncontinuous normalizing flow maps every Xt , conditioned on any fixed (Xt− , Xpa,t− ), to the same\nbase distribution q(Zt ) = N (0, 1), so that (A3) holds exactly.\nUnder Assumption 4.1, we present the first result in this paper:\nProposition 4.3 (Encoded as a function of the exogenous noise Ut ). Let Assumption 4.1 hold. Without\nloss of generality, suppose the exogenous noise Ut ∼ Unif[0, 1]. At each time t, the observed variable\nis generated by the structural causal model Xt = f (Xt− , Xpa,t− , Ut ), and that the flow encoder\nproduces Zt = Φθ (Xt ; Ht−1 ). Then there exists a continuously differentiable bijection g : U → Z,\nfunctionally invariant to Ht−1 , such that,\n\u0001\n\u0001\n\u0001\nZt = Φθ Xt ; Ht−1 = Φθ f (Xt− , Xpa,t− , Ut ); Ht−1 = g Ut\na.s.\n(14)\n\n7\n\n\fPublished as a conference paper at ICLR 2026\n\nRemark 4.4. Proposition 4.3 states that Zt is a function of the exogenous noise Ut , and for convenience assumes Ut ∼ Unif[0, 1]. This distributional assumption can be relaxed to other noise\ndistributions. For example, if Z ∼ N (0, 1) with CDF F , then U = F (Z) ∼ Unif[0, 1], and any\nassignment f (·, U ) can equivalently be written as f˜(·, Z) = f (·, F (Z)).\nFollowing Proposition 4.3, we state a counterfactual recovery result under monotone SCMs. Given\nan intervention schedule I with values {γt }, the true counterfactual process is defined recursively as:\n(\nXtCF\n\n=\n\nγt ,\n\nt ∈ I,\n\n\u0001\nCF\nCF\nf Xt−\n, Xpa,t−\n, Ut ,\n\notherwise,\n\n(15)\n\nCF\nCF\nwhere Ut is abducted from the factual sample XtF . Also, X̂t−1\nand X̂pa,t−1\ndenote the model\npredicted counterfactual values by Algorithm 2. We can now state the following result:\nCorollary 4.5 (Counterfactual recovery). Let Assumption 4.1 hold. Consider a factual sample\ngenerated by the structural causal model XtF = f (Xt− , Xpa,t− , Ut ), and let its encoded latent be\n\u0001\nF\nCF\nZtF := Φθ XtF ; Ht−1\n. At time step t, we obtain the counterfactual hidden state Ĥt−1\nfrom the\n\u0001\nCF\nCF\npredicted counterfactual past (X̂t− , X̂pa,t− . The decoder recovers the true counterfactual at time\nstep t almost surely:\n\u0001\nF\nCF\nCF\nX̂tCF := Φ−1\n(16)\nθ Zt ; Ĥt−1 = Xt .\n\n5\n\nE XPERIMENTS\n\nIn this section, we evaluate DoFlow on observational forecasting, interventional and counterfactual\nforecasting, and anomaly detection, on both synthetic and real-world datasets. Our code is publicly\navailable at https://github.com/StatFusion/DoFlow_Causal_Time_Series.\nIn real-world, the ground-truth counterfactual is never observable, and the ground-truth interventional\nis only observable if interventions are actively conducted under a correct causal DAG. Therefore, we\nrely on synthetic experiments to obtain quantitative performance metrics. For real-world evaluation,\nwe assess our model on interventional queries and anomaly detection using hydropower datasets\nfrom Argonne National Laboratory, and on interventional treatment effect estimation using the\ncancer-treatment dataset from Bica et al. (2020a).\n5.1\n\nS YNTHETIC DATA E XPERIMENTS\n\nWe consider both the additive noise model, i.e., fi (Xi,t− , Xpa(i),t− , Ui,t ) = fi∗ (Xi,t− , Xpa(i),t− ) +\nUi,t , which satisfies Assumption 4.1 and supports the counterfactual recovery result, as well as more\ngeneral non-linear and non-additive (NLNA) cases of fi (Xi,t− , Xpa(i),t− , Ui,t ) to test the model’s\nrobustness beyond the scope of our counterfactual recovery result.\nWe evaluate the model across multiple structurally diverse causal DAGs using Root Mean Squared\nError (RMSE), Maximum Mean Discrepancy (MMD), and Continuous Ranked Probability Score\n(CRPS). RMSE is reported for all settings. MMD and CRPS are computed only for observational\nand interventional forecasting, since counterfactuals in DoFlow yield a single deterministic trajectory.\nDetailed simulation setups and metric definitions are provided in Appendix D.\nFor baseline comparisons in observational forecasting, we consider: a pure RNN-based method, the\nGated Recurrent Unit (GRU) (Che et al., 2018); transformer-based methods, including the Temporal\nFusion Transformer (TFT) (Lim et al., 2021) and the Time Series Dense Encoder (TiDE) (Das et al.,\n2024); and an all-MLP method with a specialized contextual mixing structure, the Time Series Mixer\n(TSMixer) (Ekambaram et al., 2023). We also compare against probabilistic methods, including\nDeepVAR (Salinas et al., 2019) — a deep RNN-based model with multivariate Gaussian outputs, and\nMQF2 (Kan et al., 2022) — a convex deep neural network that learns multivariate quantile functions.\nWe extend our acknowledgements to the Python packages Darts (Herzen et al., 2022) and GluonTS\n(Alexandrov et al., 2020), which we use to directly test several modern baselines in this paper.\nTo our knowledge, comparatively few works tackle interventional or counterfactual time-series\nforecasting on a causal DAG. Nevertheless, we can adapt strong observational forecasters for interventional task by training a separate model for each node in the causal DAG, conditioned on its parents;\nsee Appendix E.1. However, counterfactual generation remains challenging for these baselines.\n8\n\n\fPublished as a conference paper at ICLR 2026\n\nTable 1: RMSE for observational, interventional, and counterfactual time series forecasting across\ncausal structures: Tree, Diamond, and FC-Layer. Results for the Chain structure are provided in Table\n6 (Appendix). MMD and CRPS results are provided in Table 4 and Table 5 (Appendix), respectively.\nReported values are averaged over 50 test batches, each containing 128 test series.\nTree\n\nDiamond\n\nAdditive\n\nNLNA\n\nFC-Layer\n\nAdditive\n\nNLNA\n\nAdditive\n\nNLNA\n\nObs.\nInt.\nCF.\nObs.\nInt.\nCF.\nObs.\nInt.\nCF.\nObs.\nInt.\nCF.\nObs.\nInt.\nCF.\nObs.\nInt.\nCF.\nDoFlow\n0.57±.09 0.54±.10 0.11±.02 0.59±.13 0.62±.12 0.14±.02 0.55±.10 0.57±.08 0.12±.01 0.31±.07 0.38±.08 0.19±.03 0.39±.12 0.41±.13 0.16±.03 0.49±.08 0.36±.06 0.18±.04\nGRU\n0.65±.08 1.01±.10\nNA\n0.63±.07 1.04±.11\nNA\n0.58±.06 0.94±.11\nNA\n0.37±.05 0.99±.12\nNA\n0.38±.05 0.72±.10\nNA\n0.58±.07 1.05±.13\nNA\nTFT\n0.58±.11 0.97±.17\nNA\n0.63±.15 1.01±.18\nNA\n0.63±.17 1.18±.21\nNA\n0.40±.08 1.09±.20\nNA\n0.47±.14 0.83±.16\nNA\n0.62±.15 1.02±.23\nNA\nTiDE\n0.60±.13 1.15±.21\nNA\n0.68±.14 1.13±.20\nNA\n0.50±.12 1.05±.19\nNA\n0.33±.10 0.99±.16\nNA\n0.43±.12 0.75±.14\nNA\n0.66±.17 1.10±.20\nNA\nTSMixer 0.63±.13 1.08±.18\nNA\n0.65±.13 1.07±.18\nNA\n0.49±.10 1.12±.20\nNA\n0.35±.11 0.97±.15\nNA\n0.42±.11 0.79±.15\nNA\n0.61±.15 1.13±.19\nNA\nDeepVAR 0.64±.07 0.74±.12\nNA\n0.65±.09 0.86±.15\nNA\n0.68±.09 0.86±.17\nNA\n0.45±.08 0.94±.16\nNA\n0.54±.10 1.17±.18\nNA\n0.69±.11 1.57±.21\nNA\nMQF2\n0.58±.10 1.23±.19\nNA\n0.67±.11 1.30±.21\nNA\n0.64±.12 1.20±.16\nNA\n0.38±.06 1.17±.18\nNA\n0.50±.09 1.09±.12\nNA\n0.57±.10 1.33±.22\nNA\n\nTables 1 (main) and 4, 5 (Appendix) report the RMSE, MMD, and CRPS results for observational,\ninterventional, and counterfactual time-series forecasting across multiple causal structures (see Appendix D). DoFlow consistently delivers strong performance in standard observational forecasting\nand interventional forecasting compared with our adapted baselines, and uniquely supports counterfactual forecasting. We present visual results for both interventional and counterfactual forecasting in\nFigure 2 (main text), and in Figures 8 and 9 (Appendix).\nInterventional Forecasting\n\nX1, t(Intervened)\n\nX2, t(Intervened)\n\n1.0\n\n1.0\n\n0.5\n\n0.5\n\n0.0\n\nContext\nConducted Int.\nObs. Future\nInt. start\n\n0.5\n1.0\n70\n\n80\n\n1.0\n\n90\n\n0.0\n\n100 110 120\n\nContext\nInt. Future\nObs. Future\nEst. Int. 90% CI\nEst. Int. 50% CI\n\n0.5\n1.0\n70\n\n80\n\n90\n\n100 110 120\n\n0.0\n\n0.5\n\n0.5\n\n1.0\n\n1.0\n70\n\nX6, t\n\n0.5\n\n0.5\n\n0.0\n\n0.5\n\n80\n\n90\n\n100 110 120\n\n70\n\nX7, t\n\n1.0\n\n2\n\n0.5\n\n1\n\n0.0\n\n0\n\n0.5\n\n1\n\n1.0\n\n80\n\n90\n\n100 110 120\n\nX8, t\n\n2\n70\n\n80\n\n90\n\n100 110 120\n\n70\n\n80\n\n90\n\n100 110 120\n\n1.0\n2.0\n1.5\n1.0\n0.5\n0.0\n0.5\n1.0\n1.5\n2.0\n\nX5, t\n\n70\n\n70\n\n80\n\n80\n\n90\n\n100 110 120\n\n90\n\n100 110 120\n\n2.0\n1.5\n1.0\n0.5\n0.0\n0.5\n1.0\n1.5\n2.0\n\nX2, t\n\n0.5\n\n0\n\n2\n\n90\n\n100 110 120\n\nX10, t\n\n0.0\n\nContext\nConducted Int.\nObs. Future\nCF. start\n\n1\n\n80\n\n70\n\n80\n\n90\n\n0.5\n1.0\n\n100 110 120\n\nX5, t\n\n0.75\n\n0.50\n\n0.50\n\n0.25\n\n0.25\n\n0.50\n0.75\n\n90\n\n100 110 120\n\n80\n\n90\n\n100 110 120\n\nX6, t\n\n0.75\n0.50\n0.25\n0.00\n0.25\n0.50\n0.75\n1.00\n\n0.25\n\n70\n\n80\n\n90\n\n0.50\n0.75\n1.00\n\n100 110 120\n\n70\n\n80\n\n90\n\n100 110 120\n\nX4, t\n\n0.8\n0.6\n0.4\n0.2\n0.0\n0.2\n0.4\n\n70\n\n80\n\n0.8\n0.6\n0.4\n0.2\n0.0\n0.2\n0.4\n0.6\n\n0.00\n\nContext\nCF. Future\nObs. Future\nEst. CF.\n\n0.25\n\n80\n\n70\n\n0.75\n\n0.00\n\n70\n\nX3, t\n\n1.0\n\n1\n\n70\n\nX9, t\n\nCounterfactual Forecasting\n\nX1, t(Intervened)\n2\n\n1.00\n0.75\n0.50\n0.25\n0.00\n0.25\n0.50\n0.75\n\n1.0\n\n0.5\n\n0.0\n\nX4, t\n\nX3, t(Intervened)\n\n1.0\n\n90\n\n100 110 120\n\nX7, t\n\n0.6\n\n70\n\n80\n\nX8, t\n\n90\n\n100 110 120\n\n70\n\n80\n\n90\n\n100 110 120\n\n0.6\n0.4\n0.2\n0.0\n0.2\n0.4\n0.6\n70\n\n80\n\n90\n\n100 110 120\n\nFigure 2: Left: “Layer” interventional forecasting results. Nodes X1,t , X2,t , and X3,t are intervened. DoFlow\nprovides 50% and 90% prediction intervals; the orange lines indicate the true interventional future. Right: “Tree”\ncounterfactual forecasting results. Node X1,t is intervened. DoFlow provides a single forecast in green; the\norange lines indicate the true counterfactual future.\n\n5.2\n\nR EAL A PPLICATION : H YDROPOWER S YSTEM\n\nWe evaluate DoFlow on real-world hydropower time-series data from Argonne National Laboratory.\nIn this system, water drives a turbine that powers a generator and passes through a transformer before\nreaching the grid, with control systems monitoring the process. Signals such as water flow, vibration,\nand electric current are recorded from each component, forming a natural DAG as shown in Fig. 10.\nOur evaluation focuses on two tasks: (1) whether DoFlow can accurately forecast each component’s\ntime series under interventional queries; and (2) whether DoFlow can accurately detect power outages\nin advance using log-density, as discussed in Section 3.3.\nFigure 3 illustrates interventional forecasting in\nthe hydropower system during a true power outage. At this point, the turbine signals (X1,t , X2,t )\nbreak down, leading the entire system into a forced\noutage. Notably, DoFlow successfully predicts\nthe characteristic “spikes” in the generator signals (X4,t and X5,t ) that follow the turbine failure, demonstrating that our DAG-based approach\ncaptures the complex causal relationships across\nsystem. Quantitative metrics, together with the\nanomaly detection visualizations from the second\ntask, are provided in the Appendix F.3.\n\n9\n\nHydropower System Interventional Forecasting\n\nX1, t (Intervened)\n3.0\n\n2.0\n1.5\n1.0\n\nContext\nInt. start\nConducted Int.\n170\n\n180\n\nX5, t\n\n190\n\n2.0\n\n0\n\n1.5\n\n10\n\n200\n\n20\n170\n\n1000\n\n180\n\nX6, t\n\n190\n\n200\n\n180\n\n190\n\n200\n\n190\n\n1.5\n200\n\n170\n\nX8, t\n\n180\n\n190\n\n200\n\n170\n\n180\n\n190\n\n200\n\n62.6\n62.2\n62.0\n61.8\n\n50\n\n61.6\n61.4\n\n100\n\n0\n170\n\n180\n\nX7, t\n\n0\n\n200\n\n2.0\n\n170\n\n2.0\n\n50\n\n400\n\n2.5\n\n2.5\n\nContext\nInt. Future\nEst. Int. 80% CI\nEst. Int. 50% CI\n\n62.4\n\n600\n\n3.0\n\n3.0\n\n100\n\n800\n3.5\n\nX4, t\n\n3.5\n10\n\n1.0\n\n4.0\n\nX3, t\n\nX2, t (Intervened)\n\n2.5\n\n2.5\n\n170\n\n180\n\n190\n\n200\n\n61.2\n170\n\n180\n\n190\n\n200\n\nFigure 3: Hydropower – Interventional.\n\n\fPublished as a conference paper at ICLR 2026\n\n5.3\n\nR EAL A PPLICATION : C ANCER T REATMENT O UTCOMES\n\nOur DoFlow can naturally model interventional forecasting for causal treatment effect estimation\nin time series. The causal effects on time series were thoroughly introduced in Section 1.1. We\nevaluate DoFlow on the cancer-treatment benchmark of Bica et al. (2020a), which contains daily\npatient-level tumor volumes (outcome) and administered therapies (actions). The action variables\nXt−1 = {Xi,t−1 }4i=1 (chemotherapy assignment, radiotherapy assignment, chemotherapy dosage,\nand radiotherapy dosage) act as causal parents of the outcome Yt (tumor volume) on the causal DAG.\nFor each test patient, we use the first 55 days as observational context and perform interventional\nrollouts for the next 5 days under ten distinct treatment options, yielding predicted outcomes Ŷt+1:t+5 .\nThe normalized RMSE between the true Yt+1:t+5 and predicted Ŷt+1:t+5 is reported in Appendix F.4.\nThe detailed settings and results are provided in Appendix F.4. Notably, DoFlow achieves substantial\nimprovements over prior baselines on this causal treatment effect task, as summarized in Table 8.\n5.4\n\nD ISCUSSIONS AND L IMITATIONS\n\n• Training Efficiency. DoFlow trains a separate flow per node in the causal DAG, but each network\ncan be much shallower than transformer models. As shown in Tables 2 and 3, its total model size\nremains modest, and its training and sampling times are comparable to modern baselines.\n• Interventions. We adapt modern baselines for conditional intervention generation, but DoFlow\nperforms notably better: its RNN–flow design jointly encodes causal histories and propagates\ninterventions through recurrent states, while the flow backbone enables coherent decoding.\n• Counterfactuals. As discussed in the Introduction, DoFlow is among the early approaches for\ngenerating counterfactual time-series on a causal DAG, complementing work on treatment effects\nand causal discovery on time series. Such counterfactual generation is crucial for modeling\ncomponent relationships and enabling post-hoc analyses in crucial areas.\n• Limitations - Known DAG. DoFlow currently assumes a known and correctly specified causal\nDAG, as well as causal sufficiency (see Assumption B.1). In practice, the DAG may come from\nknown physical relationships or from upstream causal discovery methods as discussed in Section\n1.1. A natural direction for future work is to couple DoFlow with time-series causal discovery or\ndeconfounding causal generative models (Almodóvar et al., 2025; Xia et al., 2022), allowing the\nmodel to operate on learned temporal causal structures for more reliable causal reasoning.\n\n6\n\nC ONCLUSIONS\n\nWe introduced DoFlow, a flow-based generative framework for causal time-series forecasting that\nunifies observational, interventional, and counterfactual queries on DAG-structured causal systems.\nMoreover, we provide a supporting counterfactual recovery result for DoFlow (Corollary 4.5) under\ncertain assumptions. Experiments on various synthetic DAGs and real applications show strong observational forecasts and effective prediction under causal queries. This framework lays the foundation\nfor domains such as energy, healthcare, and other areas where counterfactual and interventional\nforecasting is critical. The integration of causal structure and generative modeling represents a step\ntoward a general theory of inference and control in complex dynamical environments.\n\nACKNOWLEDGMENT\nThis work is partially supported by NSF CAREER CCF-1650913, NSF DMS-2134037, CMMI2015787, CMMI-2112533, DMS-1938106, DMS-1830210, and the Coca-Cola Foundation.\n\nR EFERENCES\nJuan Miguel Lopez Alcaraz and Nils Strodthoff. Diffusion-based time series imputation and forecasting with structured state space models. arXiv preprint arXiv:2208.09399, 2022.\nAlexander Alexandrov, Konstantinos Benidis, Michael Bohlke-Schneider, Valentin Flunkert, Jan\nGasthaus, Tim Januschowski, Danielle C. Maddix, Syama Rangapuram, David Salinas, Jasper\n10\n\n\fPublished as a conference paper at ICLR 2026\n\nSchulz, Lorenzo Stella, Ali Caner Türkmen, and Yuyang Wang. GluonTS: Probabilistic and Neural\nTime Series Modeling in Python. Journal of Machine Learning Research, 21(116):1–6, 2020. URL\nhttp://jmlr.org/papers/v21/19-820.html.\nAlejandro Almodóvar, Adrián Javaloy, Juan Parras, Santiago Zazo, and Isabel Valera. Decaflow: A\ndeconfounding causal generative model. arXiv preprint arXiv:2503.15114, 2025.\nJames Lopez Bernal, Steven Cummins, and Antonio Gasparrini. Interrupted time series regression\nfor the evaluation of public health interventions: a tutorial. International journal of epidemiology,\n46(1):348–355, 2017.\nIoana Bica, Ahmed Alaa, James Jordon, and Mihaela van der Schaar. Estimating counterfactual\ntreatment outcomes over time through adversarially balanced representations. In International\nConference on Learning Representations, 2020a.\nIoana Bica, Ahmed Alaa, Charles Lambert, and Mihaela van der Schaar. Time series deconfounder:\nEstimating treatment effects over time in the presence of hidden confounders. International\nConference on Machine Learning, 2020b.\nKay H Brodersen, Fabian Gallusser, Jim Koehler, Nicolas Remy, and Steven L Scott. Inferring causal\nimpact using bayesian structural time-series models. 2015.\nBart Bussmann, Jannes Nys, and Steven Latré. Neural additive vector autoregression models for\ncausal discovery in time series. In International Conference on Discovery Science, pages 446–460.\nSpringer, 2021.\nDefu Cao, James Enouen, Yujing Wang, Xiangchen Song, Chuizheng Meng, Hao Niu, and Yan Liu.\nEstimating treatment effects from irregular time series observations with hidden confounders. In\nProceedings of the AAAI Conference on Artificial Intelligence, volume 37, pages 6897–6905, 2023.\nPatrick Chao, Patrick Blöbaum, Sapan Kirit Patel, and Shiva Kasiviswanathan. Modeling causal\nmechanisms with diffusion models for interventional and counterfactual queries. Transactions on\nMachine Learning Research, 2024.\nZhengping Che, Sanjay Purushotham, Kyunghyun Cho, David Sontag, and Yan Liu. Recurrent neural\nnetworks for multivariate time series with missing values. Scientific reports, 8(1):6085, 2018.\nRicky TQ Chen, Yulia Rubanova, Jesse Bettencourt, and David K Duvenaud. Neural ordinary\ndifferential equations. Advances in neural information processing systems, 31, 2018.\nLi-Fang Cheng, Bianca Dumitrascu, Michael Zhang, Corey Chivers, Michael Draugelis, Kai Li, and\nBarbara Engelhardt. Patient-specific effects of medication using latent force models with gaussian\nprocesses. In International Conference on Artificial Intelligence and Statistics, pages 4045–4055.\nPMLR, 2020.\nYuxiao Cheng, Ziqian Wang, Tingxiong Xiao, Qin Zhong, Jinli Suo, and Kunlun He. Causaltime: Realistically generated time-series for benchmarking of causal discovery. In The Twelfth International\nConference on Learning Representations.\nYuxiao Cheng, Lianglong Li, Tingxiong Xiao, Zongren Li, Jinli Suo, Kunlun He, and Qionghai Dai.\nCuts+: High-dimensional causal discovery from irregular time-series. In Proceedings of the AAAI\nConference on Artificial Intelligence, volume 38, pages 11525–11533, 2024.\nMartina Cinquini, Isacco Beretta, Salvatore Ruggieri, and Isabel Valera. A practical approach to\ncausal inference over time. In Proceedings of the AAAI Conference on Artificial Intelligence,\nvolume 39, pages 14832–14839, 2025.\nEnyan Dai and Jie Chen. Graph-augmented normalizing flows for anomaly detection of multiple time\nseries. arXiv preprint arXiv:2202.07857, 2022.\nAbhimanyu Das, Weihao Kong, Andrew Leach, Shaan K Mathur, Rajat Sen, and Rose Yu. Long-term\nforecasting with tide: Time-series dense encoder. Transactions on Machine Learning Research,\n2024.\n11\n\n\fPublished as a conference paper at ICLR 2026\n\nSopam Dasgupta, Sadaf Halim, Joaquín Arias, Elmer Salazar, and Gopal Gupta. Mc3g: Model\nagnostic causally constrained counterfactual generation. arXiv preprint arXiv:2508.17221, 2025.\nRahul Dey and Fathi M Salem. Gate-variants of gated recurrent unit (gru) neural networks. In 2017\nIEEE 60th international midwest symposium on circuits and systems (MWSCAS), pages 1597–1600.\nIEEE, 2017.\nXiaowen Dong, Dorina Thanou, Laura Toni, Michael Bronstein, and Pascal Frossard. Graph signal\nprocessing for machine learning: A review and new perspectives. IEEE Signal processing magazine,\n37(6):117–127, 2020.\nVijay Ekambaram, Arindam Jati, Nam Nguyen, Phanwadee Sinthong, and Jayant Kalagnanam.\nTsmixer: Lightweight mlp-mixer model for multivariate time series forecasting. In Proceedings\nof the 29th ACM SIGKDD conference on knowledge discovery and data mining, pages 459–469,\n2023.\nOmar Faruque, Sahara Ali, Xue Zheng, and Jianwu Wang. Ts-causalnn: Learning temporal causal\nrelations from non-linear non-stationary time series data. arXiv preprint arXiv:2404.01466, 2024.\nJiaxin Gao, Qinglong Cao, and Yuntian Chen. Auto-regressive moving diffusion models for time\nseries forecasting. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 39,\npages 16727–16735, 2025.\nJun Gao, Dongze Wu, Feng Yin, Qinglei Kong, Lexi Xu, and Shuguang Cui. Metaloc: Learning to\nlearn wireless localization. IEEE Journal on Selected Areas in Communications, 41(12):3831–3847,\n2023.\nGianluca Giudice, Sara Geneletti, and Konstantinos Kalogeropoulos. Inference on causal effects of\ninterventions in time using gaussian processes. arXiv preprint arXiv:2210.02850, 2022.\nAlex Graves. Long short-term memory. Supervised sequence labelling with recurrent neural networks,\npages 37–45, 2012.\nPriscila Grecov, Ankitha Nandipura Prasanna, Klaus Ackermann, Sam Campbell, Debbie Scott,\nDan I Lubman, and Christoph Bergmeir. Probabilistic causal effect estimation with global neural\nnetwork forecasting models. IEEE Transactions on Neural Networks and Learning Systems, 35(4):\n4999–5013, 2022.\nAndrew C Harvey. Forecasting, structural time series models and the kalman filter. 1990.\nMiguel A Hernán and James M Robins. Causal inference, 2010.\nJulien Herzen, Francesco Lässig, Samuele Giuliano Piazzetta, Thomas Neuer, Léo Tafti, Guillaume\nRaille, Tomas Van Pottelbergh, Marek Pasieka, Andrzej Skrodzki, Nicolas Huguenin, et al. Darts:\nUser-friendly modern machine learning for time series. Journal of Machine Learning Research, 23\n(124):1–6, 2022.\nRob Hyndman, Anne Koehler, Keith Ord, and Ralph Snyder. Forecasting with exponential smoothing:\nthe state space approach. Springer, 2008.\nRob J Hyndman and Bahman Rostami-Tabar. Forecasting interrupted time series. Journal of the\nOperational Research Society, 76(4):790–803, 2025.\nGuido W Imbens and Donald B Rubin. Causal inference in statistics, social, and biomedical sciences.\nCambridge university press, 2015.\nMariana Jacob Rodrigues, Octavian Postolache, and Francisco Cercas. Physiological and behavior\nmonitoring systems for smart healthcare environments: A review. Sensors, 20(8):2186, 2020.\nAdrián Javaloy, Pablo Sánchez-Martín, and Isabel Valera. Causal normalizing flows: from theory to\npractice. Advances in Neural Information Processing Systems, 36:58833–58864, 2023.\nKelvin Kan, François-Xavier Aubet, Tim Januschowski, Youngsuk Park, Konstantinos Benidis, Lars\nRuthotto, and Jan Gasthaus. Multivariate quantile function forecaster. In International Conference\non Artificial Intelligence and Statistics, pages 10603–10621. PMLR, 2022.\n12\n\n\fPublished as a conference paper at ICLR 2026\n\nAmir-Hossein Karimi, Gilles Barthe, Borja Balle, and Isabel Valera. Model-agnostic counterfactual\nexplanations for consequential decisions. In International conference on artificial intelligence and\nstatistics, pages 895–905. PMLR, 2020.\nIlyes Khemakhem, Ricardo Monti, Robert Leech, and Aapo Hyvarinen. Causal autoregressive flows.\nIn International conference on artificial intelligence and statistics, pages 3520–3528. PMLR, 2021.\nIgor Klein, Stefan Mayr, Ursula Gessner, Andreas Hirner, and Claudia Kuenzer. Water and hydropower reservoirs: High temporal resolution time series derived from modis data to characterize\nseasonality and variability. Remote Sensing of Environment, 253:112207, 2021.\nRui Li, Stephanie Hu, Mingyu Lu, Yuria Utsumi, Prithwish Chakraborty, Daby M Sow, Piyush\nMadan, Jun Li, Mohamed Ghalwash, Zach Shahn, et al. G-net: a recurrent network approach\nto g-computation for counterfactual prediction under a dynamic treatment regime. In Machine\nLearning for Health, pages 282–299. PMLR, 2021.\nBryan Lim. Forecasting treatment responses over time using recurrent marginal structural networks.\nAdvances in neural information processing systems, 31, 2018.\nBryan Lim, Sercan Ö Arık, Nicolas Loeff, and Tomas Pfister. Temporal fusion transformers for\ninterpretable multi-horizon time series forecasting. International journal of forecasting, 37(4):\n1748–1764, 2021.\nBenjamin Lindemann, Timo Müller, Hannes Vietz, Nasser Jazdi, and Michael Weyrich. A survey on\nlong short-term memory networks for time series prediction. Procedia Cirp, 99:650–655, 2021.\nAriel Linden. Conducting interrupted time-series analysis for single-and multiple-group comparisons.\nThe Stata Journal, 15(2):480–500, 2015.\nYaron Lipman, Ricky TQ Chen, Heli Ben-Hamu, Maximilian Nickel, and Matthew Le. Flow matching\nfor generative modeling. In International Conference on Learning Representations, 2023.\nRuoqi Liu, Changchang Yin, and Ping Zhang. Estimating individual treatment effects with timevarying confounders. In 2020 IEEE international conference on data mining (ICDM), pages\n382–391. IEEE, 2020.\nYanzhu Liu, Ying Sun, and Joo-Hwee Lim. Counterfactual dynamics forecasting–a new setting of\nquantitative reasoning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 37,\npages 1764–1771, 2023.\nMohammad Ali Mansournia, Goodarz Danaei, Mohammad Hossein Forouzanfar, Mahmood Mahmoodi, Mohsen Jamali, Nasrin Mansournia, and Kazem Mohammad. Effect of physical activity\non functional performance and knee pain in patients with osteoarthritis: analysis with marginal\nstructural models. Epidemiology, 23(4):631–640, 2012.\nJames E Matheson and Robert L Winkler. Scoring rules for continuous probability distributions.\nManagement science, 22(10):1087–1096, 1976.\nLarry R Medsker, Lakhmi Jain, et al. Recurrent neural networks. Design and applications, 5(64-67):\n2, 2001.\nLaila Melkas, Rafael Savvides, Suyog H Chandramouli, Jarmo Mäkelä, Tuomo Nieminen, Ivan\nMammarella, and Kai Puolamäki. Interactive causal structure discovery in earth system sciences.\nIn The KDD’21 Workshop on Causal Discovery, pages 3–25. PMLR, 2021.\nFiammetta Menchetti, Fabrizio Cipollini, and Fabrizia Mealli. Estimating the causal effect of an\nintervention in a time series setting: the c-arima approach. arXiv preprint arXiv:2103.06740, 2021.\nArash Nasr-Esfahany, Mohammad Alizadeh, and Devavrat Shah. Counterfactual identifiability of\nbijective causal models. In International conference on machine learning, pages 25733–25754.\nPMLR, 2023.\nVenkat Nemani, Luca Biggio, Xun Huan, Zhen Hu, Olga Fink, Anh Tran, Yan Wang, Xiaoge Zhang,\nand Chao Hu. Uncertainty quantification in machine learning for engineering design and health\nprognostics: A tutorial. Mechanical Systems and Signal Processing, 205:110796, 2023.\n13\n\n\fPublished as a conference paper at ICLR 2026\n\nYuqi Nie, Nam H Nguyen, Phanwadee Sinthong, and Jayant Kalagnanam. A time series is worth 64\nwords: Long-term forecasting with transformers. arXiv preprint arXiv:2211.14730, 2022.\nRoxana Pamfil, Nisara Sriwattanaworachai, Shaan Desai, Philip Pilgerstorfer, Konstantinos Georgatzis, Paul Beaumont, and Bryon Aragam. Dynotears: Structure learning from time-series data.\nIn International Conference on Artificial Intelligence and Statistics, pages 1595–1605. Pmlr, 2020.\nJudea Pearl. Causality. Cambridge university press, 2009.\nYao Qin, Dongjin Song, Haifeng Chen, Wei Cheng, Guofei Jiang, and Garrison Cottrell. A\ndual-stage attention-based recurrent neural network for time series prediction. arXiv preprint\narXiv:1704.02971, 2017.\nMd Musfiqur Rahman and Murat Kocaoglu. Modular learning of deep causal generative models for\nhigh-dimensional causal inference. arXiv preprint arXiv:2401.01426, 2024.\nKashif Rasul, Abdul-Saboor Sheikh, Ingmar Schuster, Urs Bergmann, and Roland Vollgraf. Multivariate probabilistic time series forecasting via conditioned normalizing flows. arXiv preprint\narXiv:2002.06103, 2020.\nKashif Rasul, Calvin Seward, Ingmar Schuster, and Roland Vollgraf. Autoregressive denoising\ndiffusion models for multivariate probabilistic time series forecasting. In International conference\non machine learning, pages 8857–8868. PMLR, 2021.\nJakob Runge, Andreas Gerhardus, Gherardo Varando, Veronika Eyring, and Gustau Camps-Valls.\nCausal inference for time series. Nature Reviews Earth &amp; Environment, 4(7):487–505, 2023.\nDavid Salinas, Michael Bohlke-Schneider, Laurent Callot, Roberto Medico, and Jan Gasthaus. Highdimensional multivariate forecasting with low-rank gaussian copula processes. Advances in neural\ninformation processing systems, 32, 2019.\nPablo Sánchez-Martin, Miriam Rateike, and Isabel Valera. Vaca: Designing variational graph\nautoencoders for causal queries. In Proceedings of the AAAI Conference on Artificial Intelligence,\nvolume 36, pages 8159–8168, 2022.\nBernhard Schölkopf, Francesco Locatello, Stefan Bauer, Nan Rosemary Ke, Nal Kalchbrenner,\nAnirudh Goyal, and Yoshua Bengio. Toward causal representation learning. Proceedings of the\nIEEE, 109(5):612–634, 2021.\nSteven L Scott and Hal R Varian. Predicting the present with bayesian structural time series.\nInternational Journal of Mathematical Modelling and Numerical Optimisation, 5(1-2):4–23, 2014.\nLifeng Shen and James Kwok. Non-autoregressive conditional diffusion models for time series\nprediction. In International Conference on Machine Learning, pages 31016–31029. PMLR, 2023.\nEric V Strobl and Thomas A Lasko. Identifying patient-specific root causes with the heteroscedastic\nnoise model. Journal of Computational Science, 72:102099, 2023.\nAlex Tank, Ian Covert, Nicholas Foti, Ali Shojaie, and Emily B Fox. Neural granger causality. IEEE\nTransactions on Pattern Analysis and Machine Intelligence, 44(8):4267–4279, 2021.\nSean J Taylor and Benjamin Letham. Forecasting at scale. The American Statistician, 72(1):37–45,\n2018.\nYifeng Tian, Nishant Panda, and Yen Ting Lin. Liouville flow importance sampler. arXiv preprint\narXiv:2405.06672, 2024.\nAshish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz\nKaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing\nsystems, 30, 2017.\nStan RW Wijn, Maroeska M Rovers, and Gerjon Hannink. Confounding adjustment methods in\nlongitudinal observational data with a time-varying treatment: a mapping review. BMJ open, 12\n(3):e058977, 2022.\n14\n\n\fPublished as a conference paper at ICLR 2026\n\nDongze Wu and Yao Xie. Annealing flow generative models towards sampling high-dimensional and\nmulti-modal distributions. In Forty-second International Conference on Machine Learning, 2025.\nDongze Wu, Jun Gao, and Feng Yin. Bayesian-boosted metaloc: Efficient training and guaranteed\ngeneralization for indoor localization. In ICASSP 2024-2024 IEEE International Conference on\nAcoustics, Speech and Signal Processing (ICASSP), pages 6070–6074. IEEE, 2024a.\nDongze Wu, David I Inouye, and Yao Xie. Po-flow: Flow-based generative models for sampling\npotential outcomes and counterfactuals. arXiv preprint arXiv:2505.16051, 2025.\nHaixu Wu, Jiehui Xu, Jianmin Wang, and Mingsheng Long. Autoformer: Decomposition transformers\nwith auto-correlation for long-term series forecasting. Advances in neural information processing\nsystems, 34:22419–22430, 2021.\nShenghao Wu, Wenbin Zhou, Minshuo Chen, and Shixiang Zhu. Counterfactual generative models\nfor time-varying treatments. In Proceedings of the 30th ACM SIGKDD Conference on Knowledge\nDiscovery and Data Mining, pages 3402–3413, 2024b.\nKevin Xia, Yushu Pan, and Elias Bareinboim. Neural causal models for counterfactual identification\nand estimation. arXiv preprint arXiv:2210.00035, 2022.\nZexuan Yin and Paolo Barucca. Deep recurrent modelling of granger causality with latent confounding. Expert Systems with Applications, 207:118036, 2022.\nP Young and Stephen Shellswell. Time series analysis, forecasting and control. IEEE Transactions\non Automatic Control, 17(2):281–283, 1972.\nKun Zhang and Aapo Hyvarinen. On the identifiability of the post-nonlinear causal model. arXiv\npreprint arXiv:1205.2599, 2012.\nQin Zhong, Yuxiao Cheng, Zongren Li, Dongjin Wang, Chongyou Rao, Yi Jiang, Lianglong Li,\nZiqian Wang, Pan Liu, Yawei Zhao, et al. Ultra-efficient causal deep learning for dynamic csa-aki\ndetection using minimal variables. medRxiv, pages 2023–12, 2023.\nHaoyi Zhou, Shanghang Zhang, Jieqi Peng, Shuai Zhang, Jianxin Li, Hui Xiong, and Wancai Zhang.\nInformer: Beyond efficient transformer for long sequence time-series forecasting. In Proceedings\nof the AAAI conference on artificial intelligence, volume 35, pages 11106–11115, 2021.\nEric Zivot and Jiahui Wang. Vector autoregressive models for multivariate time series. In Modeling\nfinancial time series with S-PLUS®, pages 369–413. Springer, 2006.\n\nA\n\nP ROOFS\n\nProposition 3.1 Given base samples zτ +1:T ∼ q(·), the log-density of the generated time series\nobtained via the continuous normalizing flow is:\n\u0014\n\u0015\nZ 1\nT\n\u0010\n\u0011\nX\n\u0001\nlog pθ,Xτ +1:T x̂τ +1:T | Ĥτ =\nlog q(zt ) +\n∇· vθ xt (s), s; Ĥt−1 ds ,\n0\n\nt=τ +1\n\nwhere x̂t = Φ−1\nθ (zt ; Ĥt−1 ), t ∈ {τ + 1, . . . , T }.\nProof. Samples from Continuous Normalizing Flows (CNFs) evolve according to the following\nNeural ODE:\ndxt (s)\n= v(xt (s), s; Ĥt−1 ), s ∈ [0, 1],\n(17)\nds\nwhich induces a corresponding evolution of the sample density governed by Liouville’s continuity\nequation (Chen et al., 2018):\n\u0001\n∂pθ (xt , s | Ĥt−1 ) + ∇ · pθ (xt , s | Ĥt−1 )v(xt , s; Ĥt−1 ) = 0.\n(18)\nHere, pθ (xt (s), s) denotes the probability density of the sample xt (s) at ODE-time s.\n15\n\n\fPublished as a conference paper at ICLR 2026\n\nNext, we have that the dynamics of the density pθ (·) governed by the velocity field vθ (xt , s; Ĥt−1 ) is\ngiven by:\nd\n∇pθ · ∂s xt (s) + ∂s pθ\nlog pθ (xt (s), s | Ĥt−1 ) =\nds\npθ\n(xt (s),s)\n∇pθ · v − ∇ · (pθ v)\n=\n(by (17) and (18))\npθ\n(xt (s),s)\n∇pθ · v − (∇pθ · v + pθ ∇ · v)\n=\npθ\n(xt (s),s)\n= −∇ · v.\nStarting from a base sample zt ∼ q(·) and integrating from s = 1 to s = 0, we have:\nZ 1\n\u0001\n\u0001\nlog pθ,Xt x̂t | Ĥt−1 = log q(zt ) +\n∇x · v xt (s), s; Ĥt−1 ds.\n\n(19)\n(20)\n(21)\n(22)\n\n(23)\n\n0\n\nBy summing up all the log-densities within the forecasting window, we obtain:\n\u0014\n\u0015\nZ 1\nT\n\u0010\n\u0011\nX\n\u0001\nlog pθ,Xτ +1:T x̂τ +1:T | Ĥτ =\nlog q(zt ) +\n∇· vθ xt (s), s; Ĥt−1 ds ,\n\n(24)\n\n0\n\nt=τ +1\n\nwhere x̂t = Φ−1\nθ (zt ; Ĥt−1 ), t ∈ {τ + 1, . . . , T }.\nProposition 4.3 (Encoded as a function of the exogenous noise U ). Let Assumption 4.1 hold. Without\nloss of generality, suppose the exogenous noise Ut ∼ Unif[0, 1]. At each time t, the observed variable\nis generated by the structural causal model Xt = f (Xt− , Xpa,t− , Ut ), and that the flow encoder\nproduces Zt = Φθ (Xt ; Ht−1 ). Then there exists a continuously differentiable bijection g : U → Z,\nfunctionally invariant to Ht−1 , such that,\n\u0001\n\u0001\n\u0001\nZt = Φθ Xt ; Ht−1 = Φθ f (Xt− , Xpa,t− , Ut ); Ht−1 = g Ut\na.s.\nProof. Fix a node i (index suppressed) and a time t. We write the extended parental state as\nSt := (Xt− , Xpa,t− ). Since the hidden state depends solely on St , we define\n\u0001\nqSt (Ut ) := Zt = Φθ f (Xt− , Xpa,t− , Ut ); Ht−1 .\nTherefore, our goal becomes proving that Zt = qSt (Ut ) is a function invariant of St . By (A3) in\nAssumption 4.1, we have Zt = qSt (Ut ) ⊥⊥ St , and thus:\npZt |St =st (zt ) = pZt (zt ).\n\n(25)\n\nBecause continuous normalizing flows are invertible, the encoding function Φθ : X × H → Z is\ninvertible with respect to X . In 1-D, this implies monotonicity of Φθ in Xt = f (Xt− , Xpa,t− , Ut ).\nWithout loss of generality, we assume that Φθ is strictly increasing in Xt = f . Moreover, by (A2),\nsince f (·, Ut ) is strictly increasing in Ut , it follows by the composition rule that qSt (Ut ) is strictly\nincreasing in Ut and hence bijective in [0, 1].\nSince Zt = qSt (Ut ), we may apply change of variables formula:\n\u0001 d −1 \u0001\nd −1 \u0001\npZt |St =st (zt ) = pUt qs−1\n(zt )\nqst zt = 1 ·\nq zt ,\nt\ndzt\ndzt st\n\n(26)\n\nwhere the last equation follows from the uniform distribution of Ut and the fact that pZt &gt; 0. The\nabsolute value is dropped because of the (WLOG) assumption that qst is strictly increasing.\n\u0001\nThen because of (25), we have that for a fixed zt , dzdt qs−1\nzt is the same for any pair st =\nt\n(xt− , xpa,t− ). It follows that:\nZ zt\nZ zt\nd −1 \u0001\nqs−1\n(z\n)\n=\nq\nx\ndx\n=\nc(x)dx + cst ,\n(27)\nt\nt\ndx st\n16\n\n\fPublished as a conference paper at ICLR 2026\n\n\u0001\nzt is independent of st , and cst is a constant for each st .\nwhere c(zt ) = dzdt qs−1\nt\nBy re-inverting (27), we have:\nqst (ut ) = (qs−1\n)−1 (ut ) =\nt\n\n\u0010Z •\n|\n\nc(x) dx +cst\n{z }\n\n\u0011−1\n\n\u0001\n(ut ) = G−1 ut − cst .\n\n(28)\n\n:=G(•)\n\nSince qSt is a bijection [0, 1] → supp(Zt ) = {z ∈ R : pZt (zt ) &gt; 0}, we have:\nqst (0) = inf supp(Zt ), qst (1) = sup supp(Zt ), for any state st .\n\n(29)\n\nTherefore,\n\nqst (0) = G−1 (−cst ) = inf supp(Zt ).\n(30)\nThe support of Zt does not depend on St because of (25). As a result, for any state st = (xt− , xpa,t− ),\nwe have that cst := c is a constant that does not depend on st .\nTherefore, we can write\ng(Ut ) := G−1 Ut − c\n\n\u0001\n\n= qst (Ut ), ∀st .\n\n(31)\n\nAs a result, we conclude that\nZt = Φθ Xt ; Ht−1\n\n\u0001\n\n= qSt (Ut ) = g Ut\n\n\u0001\n\na.s..\n\n(32)\n\nCorollary 4.5 (Counterfactual recovery). Let Assumption 4.1 hold. Consider a factual sample\ngenerated by the structural causal model XtF = f (Xt− , Xpa,t− , Ut ), and let its encoded latent be\n\u0001\nF\nCF\nZtF := Φθ XtF ; Ht−1\n. At time step t, we obtain the counterfactual hidden state Ĥt−1\nfrom the\n\u0001\nCF\nCF\npredicted counterfactual past (X̂t− , X̂pa,t− . The decoder recovers the true counterfactual at time\nstep t almost surely:\n\u0001\nF\nCF\nCF\nX̂tCF := Φ−1\nθ Zt ; Ĥt−1 = Xt .\nProof. We establish the result by induction over time steps t. Following the definition of the true\nCF\ncounterfactual value XtCF defined in (15), we denote the corresponding true hidden state Ht−1\n, which\nCF\nCF\nis updated using the true counterfactual values Xt−1 and Xpa,t−1 .\nBase case. Let t0 ∈ I be the first interventional step after the context window. By the intervention\nrule,\nXtCF\n= γt0 and X̂tCF\n= γt0 ,\n0\n0\nhence X̂tCF\n= XtCF\n. Moreover, since t0 is the first intervention, the histories up to t0 − 1 are factual\n0\n0\nin both constructions, so\nĤtCF\n= HtCF\n.\n0 −1\n0 −1\nInduction step. Suppose that for time step until t − 1, the estimated counterfactual history matches\nthe true one, i.e.,\nCF\nCF\nX̂t−\n= Xt−\n.\nSince the counterfactual hidden state is a function of past history until t − 1, this implies\nCF\nCF\nĤt−1\n= Ht−1\n,\n\n(33)\n\nwhere the left-hand side is updated recursively from the estimated counterfactual history, and the\nright-hand side denotes the true hidden state under the true counterfactuals.\nBy the deterministic and invertible property of the flow for fixed conditioning input, we have\n\u0001\nΦ−1\nθ Φθ (Xt ; Ht−1 ); Ht−1 = Xt .\nFrom the structural causal model, the factual sample is\nXtF = f (Xt− , Xpa,t− , Ut ),\n17\n\n(34)\n\n\fPublished as a conference paper at ICLR 2026\n\nfor some exogenous noise Ut . Fixing the same Ut , and under the intervention do(Xt− =\nCF\nCF\nXt−\n, Xpa,t− = Xpa,t−\n), the true counterfactual sample is\nCF\nCF\nXtCF = f (Xt−\n, Xpa,t−\n, Ut ).\n\n(35)\n\nBy Proposition 4.3, the latent factual representation satisfies\n\u0001\n\u0001\nF\nF\nZtF = Φθ XtF ; Ht−1\n= Φθ f (Xt− , Xpa,t− , Ut ); Ht−1\n= g(Ut ),\nwhich depends only on Ut and is invariant to (Xt− , Xpa,t− ) and thus to Ht−1 . Consequently, under\nCF\nCF\nthe same intervention do(Xt− = Xt−\n, Xpa,t− = Xpa,t−\n), we also have\n\u0001\nF \u0001\nF \u0001\nCF\nCF\nCF \u0001\nCF\nCF\nΦθ XtF ; Ht−1\n= Φθ f (Xt− , Xpa,t− , Ut ); Ht−1\n= g Ut = Φθ f (Xt−\n, Xpa\n,t− , Ut ); Ht−1 = Φθ (Xt ; Ht−1 ),\n(36)\n\nand more simply, we have:\n\u0001\nF\nCF\nΦθ XtF ; Ht−1\n= Φθ (XtCF ; Ht−1\n).\n\n(37)\n\nCombining (33) and (37), we obtain\n\u0001\n\u0001\n−1\nF\nF\nCF\nCF\nCF\nCF\nΦ−1\nθ Φθ (Xt ; Ht−1 ); Ĥt−1 = Φθ Φθ (Xt ; Ht−1 ); Ht−1 .\n\n(38)\n\nBy (34), the right-hand side of (38) equals XtCF . Since the left-hand side of (38) is precisely the\nalgorithm’s counterfactual encoder-decoder procedure, it follows that\n\u0001\nF\nCF\nCF\nX̂tCF := Φ−1\nθ Zt ; Ĥt−1 = Xt .\nTherefore, the decoder recovers the true counterfactual at time step t. By induction, the claim holds\nfor all t.\n\nB\n\nC AUSAL SCM A SSUMPTIONS AND T HEORETICAL C OMPARISONS TO BGM\n\nB.1\n\nC AUSAL SCM A SSUMPTIONS\n(γ )\n\nI\nLet Xτ +1:T\ndenote the potential trajectory under the intervention do(XI := γI ), where I ⊆\n[K] × {τ +1, . . . , T }. We assume the following standard conditions for the structural causal model\non the given DAG:\nAssumption B.1.\n(1) Unconfoundedness. The exogenous noises (Ui,t ) are mutually independent across (i, t), and all\ncommon causes of observed nodes are included in the DAG, i.e., no unobserved confounders for the\ninterventions considered.\n(2) Consistency. If the system is run under do(XI := γI ), then the observed trajectory equals the\n(γI )\ncorresponding potential trajectory under the regime actually applied: Xτ +1:T = Xτ +1:T\n.\n(3) Positivity. For any (xi,t− , xpa(i),t− ) in the support of (Xi,t− , Xpa(i),t− ), the conditional density\nof Xi,t given these parents is positive in a neighborhood of the intervention value γi,t :\n\u0001\np Xi,t = x Xi,t− = xi,t− , Xpa(i),t− = xpa(i),t− &gt; 0.\n\n(4) No Interference. For any two intervention schedules I and J with the same assigned values on\na given index set, the corresponding potential trajectories coincide on that set. Interventions affect\nother nodes only through the edges of the DAG.\nRemark B.2. Assumption B.1 (1) imposes causal sufficiency: all common causes of the observed\nnodes are included in the DAG, so the exogenous noises (Ui,t ) are mutually independent across\n(i, t). This rules out time–varying latent confounders that simultaneously influence multiple series. In\nsettings where unobserved confounding is suspected, our identification and recovery guarantees for\ninterventional and counterfactual distributions need not hold.\nExtending DoFlow beyond the causal sufficiency assumption to settings with latent confounders is an\nimportant direction for future work. Recent causal generative frameworks such as DeCaFlow (Almodóvar et al., 2025) and Neural Causal Models (Xia et al., 2022) explicitly address hidden confounding\n18\n\n\fPublished as a conference paper at ICLR 2026\n\nproblems. DeCaFlow augments causal normalizing flows with latent confounders and proxy variables\nto recover identifiable interventional and counterfactual queries. Besides, Neural Causal Models use\nneural SCMs with correlated exogenous variables and graphical constraints to decide and estimate\nidentifiable counterfactuals from observational data. A promising direction is to combine such\ndeconfounding mechanisms with our time-indexed CNF parameterization so that DoFlow can handle\ndeconfounded temporal DAG.\nB.2\n\nT HEORETICAL C OMPARISONS TO BGM\n\nBijective Generation Mechanisms (BGM). The BGM framework (Nasr-Esfahany et al., 2023)\nshows that if the true structural mechanism f is in the BGM class (bijective/strictly monotone in the\nexogenous noise), then any learned mechanism fˆ that (i) is also in the BGM class and (ii) matches\nthe observed distribution—i.e., for the same parents value X and action A,\nd\nfˆ(Xt− , Xpa,t− , Ut ) = f (Xt− , Xpa,t− , Ut )\n\ni.e., (fˆ(Xt− , Xpa,t− , ·))# PU = (f (Xt− , Xpa,t− , ·))# PU ,\nyields the same counterfactuals as f . Their result is model-agnostic, at the class level.\nDoFlow. Our findings are specific to a particular methodology and architecture, as this is a methodology paper where we analyze continuous normalizing flows (CNFs). With the additional assumption\n(A3) specific to DoFlow, Proposition 4.3 shows that the DoFlow’s encoded latent Zt is bijective in the\nexogenous noise Ut . Consequently, Corollary 4.5 proves that the encode–decode procedure recovers\nthe true counterfactual.\nRelationships. Because of Proposition 4.3 (enabled by the CNF), DoFlow implements a bijective-innoise mechanism and is thus comparable to BGM in the sense that fˆ is bijective in Ut . However, they\nare not the same: BGM additionally requires observational distribution matching (as formalized in\n(A4)) to obtain class-level identifiability, whereas our proofs of Proposition 4.3 and Corollary 4.5 do\nnot assume (A4) and instead rely on the model-specific condition (A3).\nAlternative route. The counterfactual recovery result (Corollary 4.5) can alternatively be established\nby imposing an additional assumption:\n(A4) Observational matching. For each (Xt− , Xpa,t− ), the DoFlow–induced observational law\nmatches the true one, i.e.\n(fˆ(Xt− , Xpa,t− , ·))# PU = (f (Xt− , Xpa,t− , ·))# PU .\nUnder (A1)–(A3), Proposition 4.3 establishes a continuously differentiable bijection g : Ut → Zt\n(independent of (Xt− , Xpa,t− ), so the induced mechanism fˆ implemented by DoFlow is bijective in\nthe exogenous noise, i.e., DoFlow lies in the BGM class. With the additional assumption (A4), we can\ntherefore directly invoke the counterfactual recovery result of the BGM framework (Nasr-Esfahany\net al., 2023).\n\nC\n\nP RELIMINARIES ON C ONTINUOUS N ORMALIZING F LOWS\n\nFor better logical flow in the main text, we move the CNF preliminaries here. Continuous normalizing\nflows (CNFs) have been successful for statistical sampling (Tian et al., 2024; Wu and Xie, 2025) and\ncounterfactual inference (Wu et al., 2025; Chao et al., 2024). This appendix section reviews CNF\nfundamentals and flow-matching training for general data types.\nC.1\n\nN EURAL ODE AND C ONTINUOUS N ORMALIZING F LOW:\n\nA Neural ODE models the evolution of a sample as the solution to an ordinary differential equation\n(ODE). Concretely, in Rd , given an initial condition x0 = x(0) at s = 0, the transformation to the\noutput x1 = x(1) at s = 1 is governed by:\ndx(s)\n= v(x(s), s),\nds\n19\n\ns ∈ [0, 1],\n\n(39)\n\n\fPublished as a conference paper at ICLR 2026\n\nwhere v : Rd × [0, 1] → Rd is the velocity field parameterized by a neural network. The time horizon\nis rescaled to s ∈ [0, 1] without loss of generality.\nContinuous Normalizing Flow (CNF) is a class of normalizing flows in which the transformation of a\nprobability density is governed by a time-continuous Neural ODE. Let p(x, s) denote the marginal\ndensity of x(s). Then p(x, s) evolves according to the Liouville continuity equation implied by (39):\n\u0001\n∂s p(x, s) + ∇ · p(x, s) v(x, s) = 0, s ∈ [0, 1],\n(40)\nwhere ∇· denotes the divergence operator.\nWhen the Neural ODE is well-posed, it induces a continuous and invertible map from the initial\nsample x0 to the terminal sample x1 . The inverse map is obtained by integrating (39) backward in\ntime. This mechanism allows one to choose x0 ∼ p(·, 0) as the data distribution and x1 ∼ p(·, 1) as\na simple base (noise) distribution, typically N (0, I). For convenience, we write q(·) := p(·, 1) for\nthe base distribution. Throughout, we use the common choice q(·) = N (0, I).\nC.2\n\nF LOW M ATCHING\n\nFlow Matching (FM) (Lipman et al., 2023) trains continuous normalizing flows without simulating\ntrajectories by regressing the model velocity v(x(s), s) toward a prescribed target field u(x(s), s).\nThe FM objective is\n\u0002\n\u0003\nLFM = Es∼U [0,1], x∼p(·,s) ∥v(x(s), s) − u(x(s), s)∥2 ,\n(41)\nwhere u(x(s), s) is analytically specified.\nLinear Interpolant: Because u(x, s) is generally intractable unless we condition on the starting\npoint x0 , Conditional Flow Matching (CFM) (Lipman et al., 2023) was proposed to find a tractable\nvelocity. Given an observed data x0 and an endpoint x1 ∼ q(·) from base distribution, we can choose\nan analytic interpolation between x0 and x1 , and define a reference path. An information-preserving\nand simple choice is the linear interpolant (Lipman et al., 2023):\nϕ(x0 , x1 ; s) = (1 − s)x0 + (s + σmin (1 − s))x1 ,\n(42)\n2\nwhere x1 ∼ N (0, I) and σmin is a small positive hyperparameter ensuring p(ϕ, 0) ∼ N (x0 , σmin\nI).\nSetting σmin = 0 recovers the strict linear path ϕ = (1 − s)x0 + sx1 .\nWe treat ϕ as a fixed reference trajectory that the learned flow is trained to track. Under (42), the\nassociated reference velocity is\ndϕ\n= (1 − σmin )x1 − x0 .\n(43)\nds\nTraining loss: CFM trains the flow v(x(s), s) by directly regressing it onto the reference velocity\nfield (43). The training objective is given by:\ndϕ 2\nLCFM = Es∼U [0,1],x0 ∼p(·,0),x1 ∼q(·) ∥v(ϕ, s) −\n∥ .\n(44)\nds\n\nD\n\nDATA S YNTHESIS AND M ETRICS D EFINITION\n\nWe define four types of causal DAG structures: Tree, Diamond, Fully Connected Layer (FC-Layer),\nand Chain with skip connections (Chain). For each structure, we design both additive models and\nnonlinear, non-additive structural causal models.\nIn the simulations for different graph structures, the root node X1 (for Tree, Diamond, and Chain),\nand the root nodes X1 , X2 , X3 (for FC-Layer) are initialized over the interval [0, t0 ] using a Chain\nprocess:\n\u0001\nXi,t = β1 Xi,t−1 + A sin 2πt\n(45)\nP + ϕ + Ui,t .\nHere, i ∈ {1} for Tree, Diamond, and Chain, and i ∈ {1, 2, 3} for FC-Layer. Besides, A, P , and ϕi\ndenote the amplitude, period, and phase offset of the sinusoidal driver, and Ui,t represents independent\nexogenous noise N (0, 1).\nIn the Tree, Diamond, and Chain structures, the hyperparameters for the root node X1,t - namely A,\n4π\nP , and ϕ, are set to 1.0, 20, and 2π\n9 , respectively. For the FC-Layer, these are set to 1.5, 15, and 9 ,\nrespectively.\n20\n\n\fPublished as a conference paper at ICLR 2026\n\nD.1\n\nT REE\ntime t\n\ntime t + 1\n\nX1,t\n\nX1,t+1\n\nX2,t\n\nX2,t+1\n\nX3,t\n\nX3,t+1\n\nX4,t\n\nX4,t+1\n\nX5,t\n\nX5,t+1\n\nX6,t\n\nX6,t+1\n\nX7,t\n\nX7,t+1\n\nX8,t\n\nX8,t+1\n\nX4\nX2\nX5\nX1\nX6\nX3\nX8\n\nX7\n\nFigure 4: Tree graph over 8 nodes. Exogenous variables Ui,t are omitted for clarity but exist\nfor every node at each time t. Left: Full node-level causal structure between consecutive time,\nwith all variables {X1,t , . . . , X8,t } present at each step. Right: Rolled-up (time-suppressed) view\nover different nodes {X1 , . . . , X8 }. Each arrow Xi → Xj (with i ̸= j) denotes a lag-1 temporal\ndependency Xi,t−1 → Xj,t that holds for all t. Both panels depict the same underlying structure.\nWe consider both additive and nonlinear, non-additive structural causal models:\n• Additive model:\nX\n\nXi,t = f (Xi,t−1 , Xpa(i),t−1 , Ui,t ) = βi Xi,t−1 +\n\nβ̃i←j Xj,t−1 + Ui,t /4.\n\n(46)\n\nj∈pa(i)\n\n• Nonlinear, non-additive model:\nXi,t = f (Xi,t−1 , Xpa(i),t−1 , Ui,t ) = βi Xi,t−1 (|Ui,t | + 0.5) +\n\nX\n\nβ̃i←j Xj,t−1 . (47)\n\nj∈pa(i)\n\nFor the Tree graph, we set the self-lag coefficients βi ∈ {0.5, 0.4, 0.3, 0.2, 0.1, 0.2, 0.2, 0.2} for\ni = 1, . . . , 8 (in order), and define edge-specific parent coefficients β̃i←j only on the directed edges\n1 → 2 (0.3), 1 → 3 (-0.3), 2 → 4 (0.3), 2 → 5 (-0.3), 3 → 6 (0.5), 3 → 7 (-0.5), and 7 → 8 (0.5), with\nβ̃i←j = 0 for all other pairs.\nD.2\n\nD IAMOND\n\nWe consider both additive and nonlinear, non-additive structural causal models:\n• Additive model:\nX\n\nXi,t = f (Xi,t−1 , Xpa(i),t−1 , Ui,t ) = βi Xi,t−1 +\n\nβ̃i←j Xj,t−1 + Ui,t .\n\n(48)\n\nj∈pa(i)\n\n• Nonlinear, non-additive model:\nXi,t = f (Xi,t−1 , Xpa(i),t−1 , Ui,t ) = exp(βi Xi,t−1 ) ·\n\nX\n1\n+\nβ̃i←j Xj,t−1 .\n2 + |Ui,t |\nj∈pa(i)\n\n(49)\n21\n\n\fPublished as a conference paper at ICLR 2026\n\ntime t\n\ntime t + 1\n\nX1,t\n\nX1,t+1\n\nX2,t\n\nX2,t+1\n\nX3,t\n\nX3,t+1\n\nX4,t\n\nX4,t+1\n\nX5,t\n\nX5,t+1\n\nX4\nX8\n\nX2\nX5\nX1\n\nX10\nX6\n\nX6,t\n\nX6,t+1\n\nX7,t\n\nX7,t+1\n\nX8,t\n\nX8,t+1\n\nX9,t\n\nX9,t+1\n\nX10,t\n\nX10,t+1\n\nX9\n\nX3\nX7\n\nFigure 5: Diamond graph over 10 nodes. Exogenous variables Ui,t are omitted for clarity but exist\nfor every node at each time t. Left: Full node-level causal structure between consecutive time,\nwith all variables {X1,t , . . . , X10,t } present at each step. Right: Rolled-up (time-suppressed) view\nover different nodes {X1 , . . . , X10 }. Each arrow Xi → Xj (with i ̸= j) denotes a lag-1 temporal\ndependency Xi,t−1 → Xj,t that holds for all t. Both panels depict the same underlying structure.\nFor the Diamond graph, we set the self-lag coefficients (β1 , . . . , β10 )\n=\n(0.5, 0.4, 0.3, 0.2, 0.1, 0.2, 0.2, 0.2, 0.2, 0.2), and define edge-specific parent coefficients\nβ̃i←j only on the directed edges 1 → 2 (0.3), 1 → 3 (0.3), 2 → 4 (0.3), 2 → 6 (0.3), 3 → 5 (0.5), 3 → 7\n(0.5), 4 → 8 (0.5), 6 → 8 (0.5), 5 → 9 (0.5), 7 → 9 (0.5), 8 → 10 (0.5), and 9 → 10 (0.5), with β̃i←j = 0\nfor all other pairs.\nD.3\n\nF ULLY C ONNECTED L AYER (FC-L AYER )\n\nWe consider both additive and nonlinear, non-additive structural causal models:\n• Additive\nX\nXi,t = f (Xi,t−1 , Xpa(i),t−1 , Ui,t ) = βi Xi,t−1 +\nβ̃i←j Xj,t−1 + Ui,t .\n\n(50)\n\nj∈pa(i)\n\n• Nonlinear, non-additive model:\n!\nXi,t = f (Xi,t−1 , Xpa(i),t−1 , Ui,t ) = βi Xi,t−1 +\n\nX\n\nβ̃i←j Xj,t−1 +\n\nj∈pa(i)\n\n\nγ exp\n\n\n\u0010 X\n\n\u0011\n\u0010 X\n\u0011\nβ̃i←j Xj,t−1 + Ui,t .\nβ̃i←j Xj,t−1 − 1 − 1 − γ tanh\n\nj∈pa(i)\n\nj∈pa(i)\n\n(51)\nFor the FC-Layer graph, we set γ = 0.30 and the self-lag coefficients (β1 , . . . , β10 ) =\n(0.5, 0.6, 0.7, 0.4, 0.45, 0.5, 0.55, 0.3, 0.35, 0.4). We define edge-specific parent coefficients\nβ̃i←j densely between adjacent layers: for every hidden node i ∈ {4, 5, 6, 7} and input j ∈ {1, 2, 3},\nwe set β̃i←j = 0.2 + 0.1 (j − 1) (i.e., 0.2, 0.3, 0.4 for j = 1, 2, 3), and for every output node\ni ∈ {8, 9, 10} and hidden j ∈ {4, 5, 6, 7} we set β̃i←j = 0.2, with β̃i←j = 0 otherwise.\nD.4\n\nC HAIN L INEAR (C HAIN )\n\nWe consider both additive and nonlinear, non-additive structural causal models:\n22\n\n\fPublished as a conference paper at ICLR 2026\n\ntime t\n\ntime t + 1\n\nX1,t\n\nX1,t+1\n\nX2,t\n\nX2,t+1\n\nX3,t\n\nX3,t+1\n\nX4,t\n\nX4,t+1\n\nX5,t\n\nX5,t+1\n\nX6,t\n\nX6,t+1\n\nX7,t\n\nX7,t+1\n\nX8,t\n\nX8,t+1\n\nX9,t\n\nX9,t+1\n\nX10,t\n\nX10,t+1\n\nX4\nX8\n\nX1\nX5\nX2\n\nX9\nX6\n\nX3\n\nX10\nX7\n\nFigure 6: FC-Layer graph over 10 nodes. Exogenous variables Ui,t are omitted for clarity but\nexist for every node at each time t. Left: Full node-level causal structure between consecutive time,\nwith all variables {X1,t , . . . , X10,t } present at each step. Right: Rolled-up (time-suppressed) view\nover different nodes {X1 , . . . , X10 }. Each arrow Xi → Xj (with i ̸= j) denotes a lag-1 temporal\ndependency Xi,t−1 → Xj,t that holds for all t. Both panels depict the same underlying structure.\ntime t\n\ntime t + 1\n\nX1,t\n\nX1,t+1\n\nX2,t\n\nX2,t+1\n\nX3,t\n\nX3,t+1\n\nX4,t\n\nX4,t+1\n\nX5,t\n\nX5,t+1\n\nX50,t\n\nX50,t+1\n\nX1\n\nX2\n\nX3\n\nX50\n\nFigure 7: Chain graph over 50 nodes. Exogenous variables Ui,t are omitted for clarity but exist\nfor every node at each time t. Left: Full node-level causal structure between consecutive time,\nwith all variables {X1,t , . . . , X50,t } present at each step. Right: Rolled-up (time-suppressed) view\nover different nodes {X1 , . . . , X50 }. Each arrow Xi → Xj (with i ̸= j) denotes a lag-1 temporal\ndependency Xi,t−1 → Xj,t that holds for all t. Both panels depict the same underlying structure.\n• Additive model:\nXi,t = f (Xi,t−1 , Xpa(i),t−1 , Ui,t ) = βi Xi,t−1 +\n\nX\n\nβ̃i←j Xj,t−1 + Ui,t .\n\n(52)\n\nj∈pa(i)\n\n• Nonlinear, non-additive model:\n\u0001\nXi,t = f (Xi,t−1 , Xpa(i),t−1 , Ui,t ) = βi Xi,t−1 +0.5 |Ui,t |+β̃i←i−1 Xi−1,t−1 +β̃i←1 X1,t−1\n(53)\n23\n\n\fPublished as a conference paper at ICLR 2026\n\nFor the Chain structure, we set βi = 0.6 for all i = 1, . . . , 50, and draw independent Gaussian noises\nUi,t ∼ N (0, σi2 ) with σi = 0.2. For each non-root node i = 2, . . . , 50, the immediate-predecessor\ncoefficient is fixed as β̃i←i−1 = 0.2, and the skip connection from the root is fixed as β̃i←1 = 0.7.\n\nD.5\n\nI NTERVENTIONAL AND C OUNTERFACTUAL S IMULATIONS\n\nEach time series window has length T = 120. We set the context window to τ = 90 and the\nforecasting window to T − τ = 30. Interventions begin immediately after the context window\n{1, 2, . . . , τ }.\nTo rigorously evaluate DoFlow under challenging causal interventions, we design interventions that\nalter the root node(s) of the causal DAG, since manipulating root causes propagates system-wide\neffects through all downstream variables. Each root node follows a cyclic structural equation (45).\nTo ensure that the intervention produces a fundamentally different dynamic pattern, we construct the\ninterventional trajectory by phase-shifting the root cycle by half a period, i.e., P/2. This yields:\n\u0010\n\u0011\nγi,t = β1 γi,t−1 + A sin 2π(t+P/2)\n+\nϕ\n+ Ui,t ,\nP\n\nt ∈ {τ + 1, . . . , T }\n\n(54)\n\nwhere i ∈ {1} for Tree, Diamond, and Chain, and i ∈ {1, 2, 3} for FC-Layer. This corresponds\nto a complete inversion of the cyclic trend for the root nodes of each graph structure (including a\nnoise term to create different intervention schedules across runs). Consequently, the interventional\ntrajectory exhibits an antiphase pattern relative to the original, creating the most challenging regime\nfor causal forecasting and counterfactual recovery.\nBelow, we illustrate how to simulate the true interventional and counterfactual trajectories using\nthe SCMs defined above. For clarity, we present the procedure for the Chain, Diamond, and Tree\nstructures, where the intervened root node is X1,t . The FC-Layer case follows identically, except that\ninterventions are applied to root nodes i ∈ {1, 2, 3} as defined in (54).\nThe interventional simulation proceeds by first sampling the exogenous noises {Ui,τ +1,T }K\ni=2 . The\nintervened values are then obtained by applying do(X1,τ +1:T = γ1,τ +1:T ) and propagating forward\nwith the sampled noises to generate the intervened trajectories {X̃i,τ +1:T }K\ni=2 . For the FC-Layer\ngraph, the intervened parental set includes {Xi,t }i=1,2,3 .\nCounterfactual simulation begins by recovering the exogenous noises {Ui,t }i&gt;1, t∈[τ +1,T ] from the\nF\nK\nobserved factual future {Xi,τ\n+1:T }i=2 using the structural causal models. Next, the intervention\ndo(X1,τ +1,T = γ1,τ +1:T ) is applied, and the system is propagated forward with the recovered noises\nCF\nK\nto generate the counterfactual trajectories {Xi,τ\n+1:T }i=2 . For the FC-Layer graph, the intervened\nparental set includes {Xi,t }i=1,2,3 .\n\nD.6\n\nM ETRICS\n\nWe evaluate model performance using both Root Mean Squared Error (RMSE) and Maximum Mean\nDiscrepancy (MMD). Let the test batch size be B = 128, the ground-truth value for node i at time t\n(b)\n(b)\nin batch b be xi,t , and the corresponding model prediction be x̂i,t .\n(b)\n\nFor each test sequence b, given the same context {xi,1:τ }K\ni=1 , we generate N = 100 realizations of\nboth the model-estimated and the true observational/interventional forecasting trajectories, in order\nto obtain more accurate evaluation metrics.\nTo ensure comparability across different scales of time series, we apply standard normal scaling to\n(b)\n(b)\neach batch b over the forecasting window, using the mean µi and standard deviation σi computed\nfrom its context window of node i. The generated time series dataset has a total length of 20,000,\nwith a stride of 1, resulting in 15,881 training samples (80%) and 3,881 testing samples (20%).\n24\n\n\fPublished as a conference paper at ICLR 2026\n\nD.6.1\n\nRMSE\n\nThe RMSE of node i for a single realization is defined as\nv\nu\nT\nB\nX\nX\nu\n1\n(b)\n(b) \u00012\nRMSEi = t\nx̂i,t − xi,t .\n(T − τ )B t=τ +1\n\n(55)\n\nb=1\n\nFor observational and interventional testing, we evaluate each method over 50 test batches of batch\nsize B = 128. Within a batch, RMSE is computed by (i) averaging over nodes i = 1, . . . , K, then\n(ii) averaging over N = 100 stochastic realizations, and finally (iii) averaging over the 50 batches.\nThe reported standard deviation (std) reflects variation across the 50 batches.\nFor counterfactual testing, each method produces a single deterministic counterfactual trajectory for\na given test instance, so N = 1. We evaluate performance by averaging RMSE over counterfactual\ntest batches (each with B = 128), and report std across 50 batches.\nD.6.2\n\nMMD\n\nTo calculate MMD, we first flatten each trajectory (length T − τ , dimension D) into a vector in\nR(T −τ )D . The sample size of both the true and the estimated trajectories {xi,τ +1:T }K\ni=1 is BN , since\nfor each batch b we simulate N = 100 realizations. The empirical MMD is then defined as\n2\n\n\\ =\nMMD\n\nBN\nBN\nBN BN\nX\nX\n1\n1\n2 XX\nk(xa , xa′ ) +\nk(x̃b , x̃b′ ) −\nk(xa , x̃b ),\n(BN )(BN − 1) ′\n(BN )(BN − 1) ′\n(BN )2 a=1\na,a =1\na̸=a′\n\nb=1\n\nb,b =1\nb̸=b′\n\n(56)\n\nwhere we use the Gaussian kernel\n\u0010\n\u0011\n′ 2\n∥\nk(x, x′ ) = exp − ∥x−x\n,\n2\n2σ\nand the bandwidth σ is chosen via the pooled median heuristic.\nD.6.3\n\nCRPS\n\nFor probabilistic forecasting, we evaluate the quality of the predictive distribution using the Continuous Ranked Probability Score (CRPS) (Matheson and Winkler, 1976). For a univariate predictive\nCDF F and a realized outcome y ∈ R, the CRPS is defined as\nZ ∞\u0010\n\u00112\nCRPS(F, y) :=\nF (z) − 1{z ≥ y} dz,\n(57)\n−∞\n\nwhere 1{·} is the indicator function.\n(b,n)\n\nIn our experiments, F is represented by an ensemble of samples {x̂i,t }N\nn=1 for node i, time t, and\n(b)\n\ntest sequence b, with realized value xi,t . We use the standard ensemble approximation:\n(b)\n\nCRPSi,t ≈\n\nN\nN\nN\n1 X (b,n)\n1 X X (b,n)\n(b,n′ )\n(b)\nx̂i,t − xi,t −\nx̂i,t − x̂i,t\n.\n2\nN n=1\n2N n=1 ′\n\n(58)\n\nn =1\n\nWe report CRPS averaged over all test sequences b, time steps t ∈ {τ +1, . . . , T }, nodes i = 1, . . . , K,\nand runs, analogous to the aggregation used for RMSE.\nNotably, CRPS is applicable only to probabilistic models. Therefore, we report CRPS results only for\nDoFlow, DeepVAR, and MQF2.\n\nE\n\nM ODEL AND I MPLEMENTATION D ETAILS\n\nThis section summarizes the main implementation and hyperparameter choices used in all experiments.\n25\n\n\fPublished as a conference paper at ICLR 2026\n\nCommon setup. All models are implemented in PyTorch, with continuous normalizing flows\n(CNFs) integrated using torchdiffeq.odeint. Unless otherwise stated, we use: Adam optimizer with learning rate 10−3 , batch size 128, and ReLU activations in the CNF networks. For each\nnode i in the DAG, we instantiate for our algorithm: (i) an LSTM-based RNN encoder that takes as\ninput the node value (and, when applicable, time features), and (ii) a CNF whose velocity field is\nparameterized by a 3-layer MLP with hidden width 64. All time series are normalized per window\nusing a mean–variance scaler over the context window.\nE.1\n\nA DAPTING OBSERVATIONAL BASELINES FOR INTERVENTIONAL ROLLOUTS\n\nFor each baseline method, we enforce the causal factorization by training a separate model for\neach node i, using as input a rolling context window consisting of the node history and its parents’\nhistories, {Xi,1:t−1 , Xpa(i),1:t−1 }, and predicting the next-step target Xi,t . For architectures that\nnatively support multi-horizon prediction, we use the same model class but set the prediction length\nto one step and apply it recursively.\nTo predict interventional future under an intervention schedule I with values {γi,t }, we perform\nmulti-step rollout over the forecast window by iterating t = τ + 1, . . . , T and forecasting nodes\nin topological order: if (i, t) ∈ I we fix x̂i,t = γi,t ; otherwise we predict x̂i,t from the baseline\nmodel using the latest rolled-out histories. The rolled-out predictions (including fixed intervention\nvalues) are then fed back as inputs for subsequent time steps, ensuring that interventions propagate to\ndownstream nodes through the DAG.\nE.2\n\nS YNTHETIC SCM E XPERIMENTS\n\nFor the synthetic DAG experiments (Tree, Diamond, Chain, and FC-Layer graphs), we first generate\nlong multivariate time series using the SCMs in Appendix D. We then extract sliding windows for\ntraining and evaluation.\nEach window has total length T = 120, with a context window of τ = 90 steps and a forecasting\nhorizon of T −τ = 30 steps. We construct windows with stride 1 along the simulated sequence. The\nresulting windows are split along the time index into 80% for training and 20% for testing, using the\nfirst 0.8N time stamps for training and the remaining 0.2N for testing.\nFor all synthetic structures, we set up our algorithm:\n• Per-node RNN encoder: 3-layer LSTM with hidden size 15.\n• Per-node CNF: MLP with hidden dimension 64 and 3 layers; the conditioning dimension is\ncond_dimi = 15 + |pa(i)| · 15.\nWe train DoFlow for 15 epochs on the synthetic datasets. For interventional evaluation, we draw 100\nflow samples per window to plot the confidence interval as well as to calculate the metrics.\nE.3\n\nH YDROPOWER F ORECASTING\n\nFor the hydropower case study, we use processed Argonne hydropower data at individual locations.\nFrom the raw time-stamped series, we extract windows of length\ncontext_length = 180,\n\nprediction_length = 30,\n\nwith stride 5 along time. Thus each training and test window contains 180 context time steps followed\nby a 30-step forecasting horizon.\nWe incorporate the time features, including the time of day and calendar features, to obtain a\ntime-feature dimension of TF = 6. We set up our algorithm:\n• Per-node RNN encoder: 3-layer LSTM with hidden size 15.\n• Per-node CNF: MLP with hidden dimension 64 and 3 layers; the conditioning dimension is\ncond_dimi = 15 + |pa(i)| · 15,\n26\n\n\fPublished as a conference paper at ICLR 2026\n\nincluding the node’s own hidden state, and the hidden states of its parents.\nFor training (performed offline and loaded from checkpoints in the main hydropower experiments),\nwe use batch size 128, Adam with learning rate 10−3 , and Nepochs = 15 with early stopping based on\nnode-wise training loss.\nE.4\n\nC ANCER T REATMENT E FFECT\n\nFor the cancer-treatment experiment, we use the public dataset from Bica et al. (2020a), preprocessed\ninto patient-level sequences with actions and outcomes. We construct per-patient windows of length\ncontext_len = 55,\n\npred_len = 5,\n\nwhere the context contains the past tumor volumes and treatments, and the prediction horizon contains\nthe next 5 steps to be modeled under different treatment policies.\nHere we distinguish between outcome and action histories via two separate RNNs in our algorithm:\n• Outcome RNN: 4-layer LSTM with hidden size H = 15 and input size 1 (normalized cancer\nvolume).\n• Action RNN: 4-layer LSTM with hidden size H = 15 and input size DA = 4 (chemo application,\nradio application, chemo dose, radio dose).\nThe CNF for the cancer outcome Yt is parameterized as a 3-layer MLP with hidden width 64, with\nconditioning dimension\ncond_dim = 15 + 15,\ncorresponding to the concatenation of the current outcome hidden state and action hidden state.\nWe construct a training set of patient windows via CancerTrainDataset with batch size 128 and\nshuffle the patients at each epoch. We train the cancer-treatment model for 15 epochs, using the same\nper-window mean–variance normalization as in the other experiments. All reported interventional\nand counterfactual metrics are computed by rolling out DoFlow over the 5-step prediction horizon\nunder alternative (simulated) treatment policies, as detailed in Section F.4.\n\nF\n\nM ORE E XPERIMENTAL R ESULTS\n\nF.1\n\nC OMPUTATIONAL C OSTS\n\nThe number of training samples is 15,881 for each simulated datasets. We use a batch size of 128,\nand all experiments—including training and sampling time comparisons—are conducted on a single\nA100 GPU.\nTable 2: Comparison of model size.\n\nDoFlow\nGRU\nTFT\nTiDE\nTSMixer\nDeepVAR\nMQF2\n\nTree\n\nDiamond\n\nLayer\n\nChain\n\nHydropower\n\n94, 664\n36, 830\n94, 860\n108, 301\n117, 818\n73, 712\n128, 677\n\n121, 658\n50, 106\n100, 472\n118, 332\n119, 318\n89, 280\n160, 846\n\n133, 946\n51, 732\n124, 775\n118, 332\n119, 318\n89, 280\n160, 846\n\n646, 178\n124, 412\n531, 026\n544, 539\n550, 177\n184, 280\n702, 681\n\n99, 592\n52, 026\n95, 318\n122, 462\n110, 518\n84, 290\n125, 459\n\n27\n\n\fPublished as a conference paper at ICLR 2026\n\nTable 3: Comparison of training time per epoch, epochs to convergence, and observational sampling\ntime (for 1,000 forecast series over a 30-step horizon) across Tree, Diamond, and Layer structures.\nMethods\nDoFlow\nGRU\nTFT\nTiDE\nTSMixer\nDeepVAR\nMQF2\n\nF.2\n\nTraining Time / Epoch\n42.3s\n17.8s\n21.0s\n29.3s\n27.9s\n20.6s\n49.8s\n\nEpochs to Conv.\n10\n15\n15\n25\n25\n20\n20\n\nTotal Training Time\n8.09min\n5.03min\n5.28min\n12.1min\n12.1min\n11.65min\n16.6min\n\nSampling Time\n10.25s\n6.80s\n11.07s\n2.23s\n8.83s\n7.86s\n19.61s\n\nS YNTHETIC DATA E XPERIMENTS\n\nTable 4: MMD for observational, interventional, and counterfactual time series forecasting across\ncausal structures: Tree, Diamond, FC-Layer, and Chain. Reported values are averaged over 50 test\nbatches, each containing 128 test series.\nTree\nAdditive\n\nDiamond\nNLNA\n\nAdditive\n\nFC-Layer\nNLNA\n\nAdditive\n\nChain\nNLNA\n\nAdditive\n\nNLNA\n\nObs.\nInt.\nObs.\nInt.\nObs.\nInt.\nObs.\nInt.\nObs.\nInt.\nObs.\nInt.\nObs.\nInt.\nObs.\nInt.\nDoFlow\n0.07±.01 0.07±.01 0.11±.03 0.13±.03 0.03±.01 0.05±.01 0.14±.03 0.17±.04 0.01±.00 0.03±.01 0.14±.02 0.12±.02 0.09±.02 0.11±.03 0.17±.03 0.19±.03\nGRU\n0.12±.02 0.14±.03 0.19±.04 0.25±.07 0.05±.01 0.10±.03 0.19±.03 0.24±.07 0.01±.00 0.16±.04 0.19±.04 0.27±.10 0.10±.02 0.15±.06 0.25±.06 0.31±.13\nTFT\n0.08±.01 0.13±.04 0.18±.05 0.25±.09 0.08±.03 0.15±.05 0.20±.05 0.26±.10 0.06±.02 0.18±.06 0.20±.06 0.29±.13 0.13±.03 0.19±.09 0.23±.05 0.30±.12\nTiDE\n0.09±.02 0.14±.04 0.19±.05 0.24±.09 0.02±.01 0.12±.04 0.16±.05 0.27±.13 0.03±.01 0.16±.05 0.22±.06 0.30±.12 0.13±.02 0.18±.07 0.22±.05 0.32±.10\nTSMixer 0.10±.03 0.13±.03 0.18±.04 0.24±.08 0.02±.01 0.14±.05 0.17±.05 0.26±.11 0.03±.01 0.18±.05 0.19±.04 0.32±.10 0.15±.03 0.20±.06 0.26±.06 0.35±.10\nDeepVAR 0.12±.02 0.10±.02 0.18±.03 0.19±.03 0.10±.02 0.11±.02 0.22±.04 0.25±.08 0.08±.02 0.23±.04 0.26±.06 0.35±.10 0.11±.02 0.16±.03 0.24±.05 0.29±.05\nMQF2\n0.08±.01 0.16±.03 0.20±.03 0.29±.06 0.09±.02 0.15±.04 0.19±.03 0.30±.10 0.07±.01 0.20±.03 0.21±.03 0.34±.09 0.17±.03 0.22±.05 0.28±.04 0.33±.07\n\nTable 5: CRPS for observational and interventional time–series forecasting across causal structures:\nTree, Diamond, FC-Layer, and Chain. Reported values are averaged over 50 test batches, each\ncontaining 128 test series.\nTree\nAdditive\n\nDiamond\nNLNA\n\nAdditive\n\nFC-Layer\nNLNA\n\nAdditive\n\nChain\nNLNA\n\nAdditive\n\nNLNA\n\nObs.\nInt.\nObs.\nInt.\nObs.\nInt.\nObs.\nInt.\nObs.\nInt.\nObs.\nInt.\nObs.\nInt.\nObs.\nInt.\nDoFlow\n0.22±.01 0.21±.01 0.27±.02 0.29±.02 0.13±.01 0.15±.01 0.17±.01 0.20±.02 0.11±.01 0.14±.01 0.16±.02 0.14±.02 0.24±.02 0.25±.02 0.38±.04 0.39±.04\nDeepVAR 0.24±.02 0.27±.02 0.32±.03 0.35±.03 0.16±.01 0.24±.02 0.21±.02 0.26±.03 0.14±.01 0.19±.02 0.20±.02 0.25±.03 0.27±.02 0.29±.02 0.44±.05 0.47±.06\nMQF2\n0.19±.02 0.29±.02 0.34±.03 0.40±.04 0.17±.02 0.26±.03 0.23±.02 0.31±.04 0.13±.01 0.21±.02 0.22±.02 0.29±.03 0.28±.03 0.32±.03 0.46±.05 0.52±.07\n\nTable 6: RMSE for observational, interventional, and counterfactual time-series forecasting on the\nChain causal structure.\nChain\nAdditive\n\nNLNA\n\nObs.\nInt.\nCF.\nObs.\nInt.\nCF.\nDoFlow\n0.61±.13 0.66±.13 0.30±.06 0.69±.16 0.71±.17 0.41±.07\nGRU\n0.68±.11 1.01±.14\nNA\n0.80±.11 1.21±.16\nNA\nTFT\n0.63±.17 1.10±.24\nNA\n0.78±.15 1.29±.19\nNA\nTiDE\n0.65±.10 1.07±.17\nNA\n0.77±.12 1.16±.18\nNA\nTSMixer 0.67±.11 1.09±.18\nNA\n0.75±.14 1.20±.20\nNA\nDeepVAR 0.62±.12 0.97±.18\nNA\n0.84±.13 1.09±.16\nNA\nMQF2\n0.73±.13 1.18±.19\nNA\n0.90±.15 1.30±.21\nNA\n\n28\n\n\fPublished as a conference paper at ICLR 2026\n\n2.0\n1.5\n1.0\n0.5\n0.0\n0.5\n1.0\n1.5\n2.0\n\nX2, t\n\nX3, t\n\nContext\nConducted Int.\nObs. Future\nInt. start\n80\n\n90\n\n0.5\n\n0.5\n\n0.0\n\n0.0\n\n0.5\n\n0.5\n\n1.0\n\n100 110 120\n\nX5, t\n\n1.0\n70\n\n80\n\n0.75\n\n90\n\n100 110 120\n\nX6, t\n\n0.50\n0.25\n0.00\n\nContext\nInt. Future\nObs. Future\nEst. Int. 90% CI\nEst. Int. 50% CI\n70\n\n80\n\n90\n\n0.25\n0.50\n0.75\n\n100 110 120\n\n1.00\n\n70\n\n80\n\n70\n\n90\n\n100 110 120\n\n0.75\n0.50\n0.25\n0.00\n0.25\n0.50\n0.75\n1.00\n\n70\n\n80\n\n80\n\n90\n\n100 110 120\n\nX7, t\n\n90\n\nX4, t\n\n1.00\n0.75\n0.50\n0.25\n0.00\n0.25\n0.50\n0.75\n\n1.0\n\n1.0\n\n70\n0.8\n0.6\n0.4\n0.2\n0.0\n0.2\n0.4\n0.6\n0.8\n\nInterventional Forecasting\n\nX1, t(Intervened)\n\n0.0\n\nContext\nConducted Int.\nObs. Future\nCF. start\n\n0.5\n1.0\n\n1.25\n1.00\n0.75\n0.50\n0.25\n0.00\n0.25\n0.50\n\n100 110 120\n\n0.5\n\n0.0\n\n80\n\n90\n\n100 110 120\n\nX8, t\n\n70\n\n80\n\n90\n\n0.5\n1.0\n\n100 110 120\n\nX6, t\n\nContext\nCF. Future\nObs. Future\nEst. CF.\n\n0.5\n1.0\n\n100 110 120\n\n90\n\n100 110 120\n\nX7, t\n\n70\n\n80\n\n90\n\n100 110 120\n\nX4, t\n\nX3, t(Intervened)\n\nX5, t\n\n1.0\n\n1.0\n\n1.0\n\n0.5\n\n0.5\n\n0.5\n\n0.0\n\n0.0\n\n0.0\n\n0.5\n\n0.5\n\n1.0\n\n1.0\n\n1.5\n\n70\n\n80\n\n90\n\n100 110 120\n\n0.5\n1.0\n70\n\nX8, t\n\n3\n\n80\n\n90\n\n100 110 120\n\nX9, t\n\n2\n\n2\n\n2\n\n1\n\n1\n\n1\n\n0\n\n0\n\n0\n\n0.5\n\n1\n\n1\n\n1.0\n\n2\n\n2\n\n0.0\n\n0.0\n\n90\n\n80\n\n0.5\n\n0.5\n\n80\n\n70\n1.0\n\n1.0\n\n70\n\nX2, t(Intervened)\n1.0\n\n0.5\n\n70\n\nCounterfactual Forecasting\n\nX1, t(Intervened)\n1.0\n\n70\n\n80\n\n90\n\n100 110 120\n\n3\n\n70\n\n80\n\n90\n\n100 110 120\n\n3\n\n70\n\n80\n\nX10, t\n\n90\n\n100 110 120\n\n70\n\n80\n\n90\n\n100 110 120\n\n1\n2\n70\n\n80\n\n90\n\n100 110 120\n\n3\n\nFigure 8: Left: “Tree” interventional forecasting results. Node X1,t is intervened. DoFlow provides 50% and\n90% prediction intervals; the orange lines indicate the true interventional future. Right: “Layer” counterfactual\nforecasting results. Nodes X1,t , X2,t , and X3,t are intervened. DoFlow provides a single forecast in green; the\norange lines indicate the true counterfactual future.\nX1, t(Intervened)\n0\n1\n\n6\n4\n2\n0\n\n100\n\nX11, t\n\n6\n\n100\n\nX21, t\n\n100\n\nX12, t\n\n120\n\n100\n\nX22, t\n\n120\n\n80\n\n100\n\nX31, t\n\n120\n\n7.5\n\n80\n\n100\n\nX32, t\n\n5.0\n\n0\n\n0.0\n80\n4\n\n100\n\nX41, t\n\n120\n\n80\n\n100\n\nX42, t\n\n2\n\n0\n\n0\n80\n\n100\n\n120\n\n2\n\n2\n\n0\n\n0\n80\n\n100\n\nX33, t\n\n120\n\n80\n\n100\n\n120\n\n100\n\nX24, t\n\n120\n\n100\n\nX43, t\n\n80\n\n100\n\nX34, t\n\n120\n\nX25, t\n\n120\n\n100\n\n8\n6\n4\n2\n0\n\nX44, t\n\nX35, t\n\n80\n\n100\n\nX45, t\n\n120\n\nX26, t\n\n120\n\n80\n\n100\n\n100\n\n80\n\nX36, t\n\n120\n\n100\n\nX46, t\n\n80\n8\n6\n4\n2\n0\n\n120\n\n120\n\n120\n\n100\n\n10.0\n7.5\n5.0\n2.5\n0.0\n120\n\nX27, t\n\nX37, t\n\nX18, t\n\n120\n\nX47, t\n\n120\n\n80\n\n100\n\n120\n\n0\n100\n\nX19, t\n\n120\n\nX28, t\n\n120\n\nX29, t\n\n120\n\nX38, t\n\nX39, t\n\n120\n\n80\n\n100\n\nX49, t\n\n120\n\n100\n\n120\n\n80\n6\n4\n2\n0\n2\n\n4\n\n4\n\n2\n\n2\n\n0\n80\n\n100\n\n120\n\n100\n\n120\n\n100\n\n120\n\n0\n100\n\n0\n\nX48, t\n\n120\n\n120\n\n5\n80\n\n2\n\n100\n\n100\n\nX30, t\n\n10\n\n4\n\n80\n\n80\n15\n\n0\n120\n\n120\n\n0\n100\n\n2\n\n100\n\n100\n\nX20, t\n\n2\n\n80\n4\n\n80\n\n80\n4\n\n0\n100\n\n6\n4\n2\n0\n\n0\n\n5\n\n80\n\n2\n\n80\n\n0\n100\n\nX10, t\n10\n\n4\n\n2\n\n80\n6\n\n120\n\n100\n\n4\n\n2\n100\n\n80\n\n100\n\n4\n\n80\n\nX9, t\n6\n4\n2\n0\n\n7.5\n5.0\n2.5\n0.0\n\n0\n\n80\n\n120\n\nX17, t\n\n2\n\n7.5\n5.0\n2.5\n0.0\n\n0\n\n100\n\n4\n\n80\n\n120\n\n5\n100\n\n100\n\n7.5\n5.0\n2.5\n0.0\n\n10\n\n80\n\n80\n\n120\n\n80\n7.5\n5.0\n2.5\n0.0\n\n7.5\n5.0\n2.5\n0.0\n80\n\n120\n\nX16, t\n\n120\n\n0.0\n100\n\n6\n4\n2\n0\n100\n\n0\n100\n\n2.5\n80\n\n0\n100\n\n2\n80\n\n5.0\n\n2\n\n80\n\n120\n\nX15, t\n\n120\n\n4\n\n80\n\n120\n\n100\n\nX8, t\n6\n4\n2\n0\n\n4\n\n7.5\n\n6\n\n7.5\n5.0\n2.5\n0.0\n80\n\n80\n6\n4\n2\n0\n\n80\n4\n\n7.5\n5.0\n2.5\n0.0\n\n4\n\n2\n\nX23, t\n\n120\n\n4\n\n120\n\nX14, t\n\n120\n\n0\n100\n\n6\n4\n2\n0\n\n2\n\n2.5\n\n100\n\n5\n\n80\n\n120\n\n4\n\n80\n10\n\n0\n80\n\n7.5\n5.0\n2.5\n0.0\n\n0\n\nX13, t\n\n120\n\n5\n\n0\n\n5\n\n100\n\n10\n\n2\n\n10\n\n0\n\n15\n\n4\n\n120\n\n2\n80\n\nX7, t\n\n6\n\n6\n4\n2\n0\n\n6\n4\n2\n0\n\n4\n\n0\n80\n\nCounterfactual\nForecasting\nX5, t\nX6, t\n\nX4, t\n6\n\n2\n\n0\n120\n\nContext\nCF. Future\nObs. Future\nEst. CF.\n80\n\nX3, t\n4\n\n2\n\nContext\nConducted Int.\nObs. Future\nCF. start\n80\n\nX2, t\n\n4\n\n1\n\n80\n\nX40, t\n\nX50, t\n\n0\n80\n\n100\n\n120\n\n80\n\nFigure 9: “Chain” (NLNA) counterfactual forecasting results. Node X1,t is intervened. DoFlow\nprovides a single forecast in green; the orange lines indicate the true counterfactual future.\n\nF.3\n\nH YDROPOWER S YSTEM\ntime t\n\ntime t + 1\n\nX1,t\n\nX1,t+1\n\nX2,t\n\nX2,t+1\n\nX3,t\n\nX3,t+1\n\nX4,t\n\nX4,t+1\n\nX5,t\n\nX5,t+1\n\nX6,t\n\nX6,t+1\n\nX7,t\n\nX7,t+1\n\nX8,t\n\nX8,t+1\n\nGenerator\n\nTurbine\n\nX1\n\nX4\n\nX5\n\nX3\n\nTransformer\n\nX6\n\nX8\n\nX2\n\nX7\nM&amp;C\n\nFigure 10: Hydropower system graph over 8 nodes. Exogenous variables Ui,t are omitted for clarity\nbut exist for every node at each time t. Left: Full node-level causal structure between consecutive\ntime, with all variables {X1,t , . . . , X8,t } present at each step. Right: Rolled-up (time-suppressed)\nview over different nodes {X1 , . . . , X8 }. Each arrow Xi → Xj (with i ̸= j) denotes a lag-1 temporal\ndependency Xi,t−1 → Xj,t that holds for all t. Both panels depict the same underlying structure.\n29\n\n\fPublished as a conference paper at ICLR 2026\n\nReliable modeling and uncertainty quantification are increasingly central to modern signal processing\n(Dong et al., 2020; Nemani et al., 2023; Gao et al., 2023; Wu et al., 2024a). Here, we highlight a\nnew perspective enabled by DoFlow, causal reasoning in time series, through a hydropower signal\nprocessing case study.\nIn Figure 10, X1 and X2 denote the horizontal and vertical rotational vibrations of the hydraulic\nturbine, which directly drive the generator’s operation. X3 represents an auxiliary turbine state that\nis affected by X1 and X2 . The generator’s horizontal and vertical dynamics are represented by\nX4 and X5 , while X6 captures the generator’s current output delivered to the transformer (X8 ) for\nvoltage regulation and transmission to the power grid. The Metering and Control (M&amp;C) unit (X7 )\ncontinuously monitors the turbine’s performance and stability to ensure coordinated operation.\nTable 7 reports the RMSE results for observational\nand interventional time-series forecasting in the\nHydropower System\nhydropower system. For interventional forecasting, we use 12 real power outages where the root\nObs.\nInt.\nnodes X1 and X2 fail, causing the entire system\nDoFlow\n1.13±.18\n1.21±.19\nto an outage. In this setting, the root nodes are\nGRU\n2.05±.32\n2.45±.35\ntreated as intervened by the breakdown signals.\nTFT\n1.82±.25\n2.16±.41\nThe reported averages and standard deviations are\ncomputed over 12 runs with batch size B = 1 for\nTiDE\n1.49±.24\n2.08±.40\nthe interventional case, in contrast to 50 runs with\nTSMixer\n1.51±.25\n2.11±.32\nbatch size B = 128 for the observational case.\n1.78±.26\n\nDeepVAR\n\n2.39±.28\n\nNotably, the hydropower signals are highly unMQF2\n1.97±.24\n2.62±.34\nstable, with turbine flow and generator readings\noften exhibiting abrupt jumps or burnouts without Table 7: RMSE for observational and intervenclear patterns. Consequently, all methods face diffi- tional time-series forecasting in the hydropower\nculty in accurate prediction, and the relatively high system.\nRMSE values reflect this inherent challenge. Nevertheless, our model performs consistently better\nthan others under these conditions.\n\n50\n\n0\n\n10\n\nX5, t\n\n36\n\n40\n\nLogP\nTrue Outage\nModel Detection\n\n44\n46\n0\n\n10\n\n20\n\n30\n\nTime (min)\n\n30\n\nTime (min)\n\n40\n\n40\n\n50\n\n10\n0\n\nLogP\nTrue Outage\nModel Detection\n\n20\n30\n0\n\n10\n\n20\n\n30\n\nTime (min)\n\n0\n\n10\n\n40\n\n50\n\n20\n\n30\n\nTime (min)\n\n40\n\nLogP\nTrue Outage\nModel Detection\n\n44\n\n50\n\n0\n\n10\n\nX7, t\n\n0\n10\n\nLogP\nTrue Outage\nModel Detection\n\n30\n0\n\n10\n\n20\n\n30\n\nTime (min)\n\n30\n\nTime (min)\n\n40\n\n36\n38\n42\n\n50\n\nLogP\nTrue Outage\nModel Detection\n\n40\n0\n\n10\n\nX8, t\n\n10\n\n20\n\n20\n\n34\n\n40\n\n50\n\n5\n\nLogP\nTrue Outage\nModel Detection\n\n5\n0\n\n10\n\n20\n\n30\n\nTime (min)\n\n30\n\nTime (min)\n\n40\n\n35\n40\n\nLogP\nTrue Outage\nModel Detection\n\n45\n\n50\n\n0\n\n10\n\nX5, t\n\n10\n\n0\n\n20\n\n40\n\n36\n\n42\n\n50\n\nLogP\nTrue Outage\nModel Detection\n\n40\n0\n\n10\n\n20\n\n30\n\nTime (min)\n\n20\n\n30\n\nTime (min)\n\n40\n\n40\n\n50\n\n0\n\nLogP\nTrue Outage\nModel Detection\n\n30\n40\n0\n\n10\n\n20\n\n30\n\nTime (min)\n\n20\n25\n\nLogP\nTrue Outage\nModel Detection\n\n30\n0\n\n10\n\n40\n\n50\n\n20\n\n30\n\nTime (min)\n\n40\n\n20\n25\n30\n\nLogP\nTrue Outage\nModel Detection\n\n40\n45\n\n0\n\n10\n\n20\n\n30\n\nTime (min)\n\n35\n40\n\nLogP\nTrue Outage\nModel Detection\n\n45\n0\n\n10\n\n40\n\n50\n\n20\n\n30\n\nTime (min)\n\n40\n\n50\n\n40\n\n50\n\nX8, t\n\n17\n\n15\n\n35\n\n30\n\n50\n\nX7, t\n\n10\n\n10\n20\n\n15\n\n50\n\n10\n\nX4, t\n\n10\n\n35\n\nX6, t\n\n34\n\n38\n\nX3, t\n\n30\n\nLog Probability\n\n42\n\nX2, t\n\n32\n\nLog Probability\n\n40\n\nLog Probability\n\n30\n\n20\n\n20\n\n10\n\nLogP\nTrue Outage\nModel Detection\n\n20\n\n50\n\nX6, t\n\n38\n\n42\n\n20\n\n10\n\nLog Probability\n\n38\n\n38\n\nLog Probability\n\nTime (min)\n\n40\n\nLogP\nTrue Outage\nModel Detection\n\n36\n\n0\n\nLog Probability\n\n30\n\n34\n\n10\n\nX1, t\n\n30\n\nLog Probability\n\n20\n\n32\n\nLog Probability\n\n10\n\n30\n\nLog Probability\n\nLogP\nTrue Outage\nModel Detection\n\n40\n\n28\n\nX4, t\n\nLog Probability\n\n36\n\nHydropower System - Anomaly Detection\n\nX3, t\nLog Probability\n\n34\n\n0\n\nLog Probability\n\nLog Probability\n\n32\n\nLog Probability\n\nLog Probability\n\n30\n\n38\n\nX2, t\n\n26\n\nLog Probability\n\nHydropower System - Anomaly Detection\nX1, t\n\n18\n19\n20\n\nLogP\nTrue Outage\nModel Detection\n\n21\n22\n0\n\n10\n\n20\n\n30\n\nTime (min)\n\nFigure 11: Anomaly detection by DoFlow on real power outages in the hydropower system (two segments\nshown).\n\nFor anomaly detection, we use DoFlow as a likelihood-based scoring model over predicted future windows. Fix a node i and a current time t in the test sequence. We treat the observed past {X1 , . . . , Xt }\nas context, sample a future window of length L = 30 minutes from DoFlow, {X̂i,t+1 , . . . , X̂i,t+L },\nand compute the conditional log-density that DoFlow assigns to this generated forecast trajectory\n(i.e., the model-implied confidence of its own prediction) using the change-of-variables formula.\nFormally, this yields the node-wise anomaly score\n\u0010\n\u0011\nℓi (t) := log pθ,Xi,t+1:t+L x̂i,t+1:t+L | Ĥi,t ,\nwhere x̂i,t+1:t+L denotes the forecast window decoded from sampled base noise zi,t+1:t+L under\nDoFlow conditioned on Ĥi,t . Here, the log-likelihood is computed using the Eq. (13), restricted to\n30\n\n\fPublished as a conference paper at ICLR 2026\n\nthe window [t+1, t+L]:\n\n\u0015\nZ 1\nt+L\n\u0010\n\u0011\nX \u0014\n\u0001\nlog pθ,Xi,t+1:t+L x̂i,t+1:t+L | Ĥi,t =\nlog q(zi,u ) +\n∇· vi,θ xi,u (s), s; Ĥi,u−1 ds , (59)\n0\n\nu=t+1\n\nwith x̂i,u = Φ−1\nθ (zi,u ; Ĥi,u−1 ) and Ĥi,u−1 the RNN summary of the past up to u−1 as defined in\nSection 2.3. Intuitively, ℓi (t) measures how typical the entire upcoming 30-minute trajectory of node\ni appears under the dynamics learned from normal-operation data by the model.\nTo obtain a quantitative decision rule, we first compute ℓi (t) on all test windows that do not overlap\nany outages and collect the empirical distribution of these scores for each node i. Let ηi denote the\n10th percentile of this normal-score distribution. We then flag time t as locally abnormal for node i\nwhenever\n\nℓi (t) &lt; ηi .\n\nTo avoid reacting to isolated noise spikes, we declare an anomaly only if at least one node exhibits 5\nconsecutive minutes of low scores, i.e., there exists i and a run of times t, t+1, . . . , t+4 such that\nℓi (τ ) &lt; ηi for all τ in that run. The anomaly detection time for a given outage is the earliest t at\nwhich this criterion is met; in Figure 11, the corresponding detection markers are plotted relative to\nthe known outage time (minute 50 in each panel).\nIn Figure 11, notably, DoFlow’s log-probability output becomes abnormal well before the outage\noccurs—sometimes as early as 20 minutes prior (e.g., X6,t in the right panel) and as late as 10\nminutes prior. This allows anomalies to be detected in advance of the true outage.\n\nF.4\n\nC ANCER T REATMENT E FFECTS\n\nWe apply DoFlow to interventional forecasting of cancer tumor outcomes. For each test patient, the\n4\nmodel observes the first 55 days of factual history {(Xt , Yt )}55\nt=1 , where Xt = {Xi,t }i=1 represents\nchemotherapy and radiotherapy assignments and dosages, and Yt denotes the tumor volume.\nNotably, unlike our other experiments, here only the tumor-volume node Yt is modeled with a CNF.\nThe treatment actions Xt (chemotherapy and radiotherapy assignments/dosages) are fully observed\nand directly provided at every time step. We still use RNNs to summarize the joint history of past\ntreatments Xt and past tumor outcomes Yt into a hidden state Ĥt−1 , which serves as the conditioning\nvariable for the CNF of Yt .\nDuring the forecasting window (days 56–62), the treatment schedule is replaced by one of ten predefined intervention plans I j = {(i, t) : Xi,t ← mji,t }, where j indicates the j-th treatment plan\nand j ∈ {1, 2, . . . , 10}. At each time step t, DoFlow estimates the interventional tumor outcome by\nsampling from the learned flow model:\nŶt = Φ−1\nθ (zt ; Ĥt−1 ),\n\nzt ∼ N (0, I),\n\n(60)\n\nwhere Φ−1\nθ denotes the learned reverse flow conditioned on the recurrent hidden state Ĥt−1 , which\nencodes the patient’s historical outcomes and past treatments. The hidden state is updated autoregressively using the newly generated Ŷt and the active treatments Xt = mjt .\nThe model implementations are detailed in Appendix E.4.\n31\n\n\fPublished as a conference paper at ICLR 2026\n\ntime t\n\ntime t + 1\n\nX1,t\n\nX1,t+1\n\nX2,t\n\nX2,t+1\n\nX3,t\n\nX3,t+1\n\nX4,t\n\nX4,t+1\n\nYt\n\nYt+1\n\nTreatments\n\nX1\n\nX2\n\nCancer Tumor\n\nY\nX3\n\nX4\n\nFigure 12: Cancer Treatment DAG over 8 nodes. Exogenous variables Ui,t are omitted for clarity\nbut exist for every node at each time t. Left: Full node-level causal structure between consecutive\ntime, with all treatment variables {Xi,t }4i=1 and cancer tumor outcome Yt present at each step. Right:\nRolled-up (time-suppressed) view over different nodes. Each arrow Xi → Y denotes a lag-1 temporal\ndependency Xi,t−1 → Yt that holds for all t. Both panels depict the same underlying structure.\n\nTable 8: Normalized RMSEτ for causal treatment effects on cancer tumor outcome. At future step τ ,\nRMSE is computed across all patient–option pairs as. Column groups represent the chemotherapy\nand radiotherapy application budgets (γc , γr ) in various data simulation scenarios.\nγc = 5, γr = 5\nτ\n3\n4\n5\n6\n7\n\nDoFlow\n1.25%\n1.73%\n2.08%\n2.74%\n3.22%\n\nCRN\n2.43%\n2.83%\n3.18%\n3.51%\n3.93%\n\nRMSN\n3.16%\n3.95%\n4.37%\n5.61%\n6.21%\n\nγc = 5, γr = 0\nMSM\n6.75%\n7.65%\n7.95%\n8.19%\n8.52%\n\nDoFlow\n0.49%\n0.76%\n0.88%\n1.09%\n1.33%\n\nCRN\n1.08%\n1.21%\n1.33%\n1.42%\n1.53%\n\nRMSN\n1.35%\n1.81%\n2.13%\n2.41%\n2.43%\n\nγc = 0, γr = 5\nMSM\n3.68%\n3.84%\n3.91%\n3.97%\n4.04%\n\nDoFlow\n0.94%\n1.10%\n1.27%\n1.69%\n2.01%\n\nCRN\n1.54%\n1.81%\n2.03%\n2.23%\n2.43%\n\nRMSN\n1.59%\n2.25%\n2.71%\n2.73%\n2.88%\n\nMSM\n3.23%\n3.52%\n3.63%\n3.71%\n3.79%\n\nWe compute the normalized root mean-squared error (RMSE) at the τ -th step across all patients and\ntreatment options as\nr\n\u00112\nPN \u0010\n1\nY\n−\nŶ\nn,t+τ\nn,t+τ\nn=1\nN\nRMSEτ =\n,\n(61)\nPN\n1\nn=1 Yn,t+τ\nN\nwhere N is the total number of patient–option pairs in the test set. Smaller NRMSE indicates more\naccurate estimation of causal treatment effects.\nTable 8 reports the normalized RMSE results for causal treatment effect estimation on cancer tumor\noutcomes. We compare our method with three established baselines: CRN (Counterfactual Recurrent\nNetwork) Bica et al. (2020a), RMSN (Recurrent Marginal Structural Network) Lim (2018), and\nMSM (Marginal Structural Model) Mansournia et al. (2012). The datasets follow the construction\nin Bica et al. (2020a), where γc and γr denote the treatment-application budgets for chemotherapy\nand radiotherapy, respectively. Some baseline results in Table 8 are adopted directly from Bica et al.\n(2020a).\n\n32\n\n\f</code></pre></article>\n        \n</main>\n\n<script src=\"https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.js\"></script>\n<script src=\"https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/contrib/auto-render.min.js\"></script>\n<script>\n\nfunction initTheme() {\n  const saved = localStorage.getItem('kb-theme') || 'light';\n  document.documentElement.setAttribute('data-theme', saved);\n  updateThemeIcon(saved);\n}\nfunction toggleTheme() {\n  const cur = document.documentElement.getAttribute('data-theme') || 'light';\n  const next = cur === 'light' ? 'dark' : 'light';\n  document.documentElement.setAttribute('data-theme', next);\n  localStorage.setItem('kb-theme', next);\n  updateThemeIcon(next);\n}\nfunction updateThemeIcon(t) {\n  const btn = document.getElementById('theme-toggle-btn');\n  if (btn) btn.innerHTML = t === 'dark' ? '☀️' : '🌙';\n}\ndocument.addEventListener('DOMContentLoaded', initTheme);\n\nfunction setViewMode(m) {\n  const grid = document.getElementById('bento-grid-view');\n  const list = document.getElementById('list-table-view');\n  const bGrid = document.getElementById('view-grid-btn');\n  const bList = document.getElementById('view-list-btn');\n  if (m === 'list') {\n    if (grid) grid.style.display = 'none';\n    if (list) list.style.display = 'flex';\n    if (bGrid) bGrid.classList.remove('active');\n    if (bList) bList.classList.add('active');\n  } else {\n    if (grid) grid.style.display = 'grid';\n    if (list) list.style.display = 'none';\n    if (bGrid) bGrid.classList.add('active');\n    if (bList) bList.classList.remove('active');\n  }\n  localStorage.setItem('kb-view', m);\n}\ndocument.addEventListener('DOMContentLoaded', () => {\n  const s = localStorage.getItem('kb-view') || 'grid';\n  setViewMode(s);\n});\n\ndocument.addEventListener('DOMContentLoaded', () => {\n  document.querySelectorAll('pre').forEach(pre => {\n    const b = document.createElement('button');\n    b.className = 'copy-code-btn';\n    b.innerText = 'Copy';\n    b.onclick = () => {\n      const c = pre.querySelector('code') ? pre.querySelector('code').innerText : pre.innerText;\n      navigator.clipboard.writeText(c).then(() => {\n        b.innerText = 'Copied!';\n        setTimeout(() => { b.innerText = 'Copy'; }, 2000);\n      });\n    };\n    pre.appendChild(b);\n  });\n});\n\nwindow.addEventListener('keydown', (e) => {\n  if ((e.key === '/' || (e.metaKey && e.key === 'k')) && document.activeElement.tagName !== 'INPUT' && document.activeElement.tagName !== 'TEXTAREA') {\n    e.preventDefault();\n    const q = document.getElementById('global-search-input');\n    if (q) q.focus();\n  }\n});\n\n// Scrollspy for TOC\nwindow.addEventListener('scroll', () => {\n  const headers = document.querySelectorAll('.article-body h1, .article-body h2, .article-body h3');\n  const scrollPos = window.scrollY + 100;\n  headers.forEach(h => {\n    if (h.offsetTop <= scrollPos) {\n      const id = h.getAttribute('id');\n      if (id) {\n        document.querySelectorAll('.reading-sidebar a').forEach(a => {\n          a.classList.toggle('active', a.getAttribute('href') === '#' + id);\n        });\n      }\n    }\n  });\n});\n\ndocument.addEventListener(\"DOMContentLoaded\", function() {\n  if (window.renderMathInElement) {\n    renderMathInElement(document.body, {\n      delimiters: [\n        {left: '$$', right: '$$', display: true},\n        {left: '$', right: '$', display: false},\n      ],\n      throwOnError : false\n    });\n  }\n});\n</script>\n\n</body>\n</html>\n"