"<!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>arXiv:2408.05191v1 [cs.CV] 9 Aug 2024\n\nCross-Domain Learning for Video Anomaly Detection with Limited Supervision\nYashika Jain\nUniversity of Delhi\n\nAli Dabouei *\nCarnegie Mellon University\n\nMin Xu *\nCarnegie Mellon University\n\nyashikajain201@gmail.com\n\nali.dabouei@gmail.com\n\nmxu1@cs.cmu.edu\n\nAbstract\nVideo Anomaly Detection (VAD) automates the identification of unusual events, such as security threats in surveillance videos. In real-world applications, VAD models must\neffectively operate in cross-domain settings, identifying rare\nanomalies and scenarios not well-represented in the training data. However, existing cross-domain VAD methods focus on unsupervised learning, resulting in performance that\nfalls short of real-world expectations. Since acquiring weak\nsupervision, i.e., video-level labels, for the source domain\nis cost-effective, we conjecture that combining it with external unlabeled data has notable potential to enhance crossdomain performance. To this end, we introduce a novel\nweakly-supervised framework for Cross-Domain Learning\n(CDL) in VAD that incorporates external data during training by estimating its prediction bias and adaptively minimizing that using the predicted uncertainty. We demonstrate\nthe effectiveness of the proposed CDL framework through\ncomprehensive experiments conducted in various configurations on two large-scale VAD datasets: UCF-Crime and\nXD-Violence. Our method significantly surpasses the stateof-the-art works in cross-domain evaluations, achieving an\naverage absolute improvement of 19.6% on UCF-Crime\nand 12.87% on XD-Violence.\n\n1. Introduction\nVideo anomaly detection (VAD) aims to locate anomalous\nevents in the videos [3, 10, 11, 15, 21, 25, 32, 33, 42, 47].\nUnlike manual surveillance, which is costly and timeconsuming, video anomaly detection eliminates the need\nfor extensive human effort, saving resources and time. It\nholds significant potential for playing a vital role in video\nsurveillance by identifying unusual behaviors and activities\nsuch as accidents, burglaries, explosions, and other events\nthat signal security threats.\nVAD has been extensively studied previously [11, 15, 21,\n32, 33, 47]. Owing to the high costs and time associated\n* Corresponding authors.\n\nFigure 1. Anomaly score comparison on a video of XD-Violence\ndataset, with and without employing the proposed CDL framework. The model trained without CDL on UCF-Crime as the\nweakly labeled set consistently yields high anomaly scores. In\ncontrast, the model trained with CDL, using UCF-Crime as the\nweakly labeled set and HACS as the unlabeled set, is better able to\nlocalize the anomalous frames.\n\nwith obtaining frame-level labels, most approaches formulate the problem as either an unsupervised [10, 15, 21] or\nweakly-supervised learning setup [11, 32, 33]. In the unsupervised or one-class classification-based) learning setup,\nonly normal videos are used to model the underlying distribution of normal spatiotemporal patterns, and any deviations from the modeled distribution are regarded as anomalies. Despite the convenience of the unsupervised setup, the\nlack of anomalous videos during training limits the model’s\nability to learn the specific characteristics of anomalies.\nThis results in limited performance which does not meet\nreal-world expectations. To address this issue, weaklysupervised setup has attracted significant attention. In this\nsetup, merely video-level labels indicating the presence of\nanomalies within the videos are incorporated as weak supervision to train models capable of making frame-level\npredictions at inference. Multiple Instance Learning (MIL)\n[32] is a prominent technique in this domain. By treating\neach video as a “bag” and each snippet as a “segment”,\nMIL-based algorithms operate under the premise of a worstcase scenario where the segment with the highest predicted\nprobability of being abnormal is considered as the candidate\nto represent the whole video.\nIn real-world applications, it is inevitable to encounter\nenvironments and scenarios not fully represented in the\nmodel’s training set. However, it is essential that the model\nmakes correct predictions in such novel situations. For in-\n\n\fstance, when the training data lacks samples of rare events\nlike “riots” or accidents in novel scenes, the model should\nbe able to characterize such occurrences as anomalous when\nthey occur. Previous works study these novel situations under the cross-domain problem definition [3, 13, 23].\nExisting cross-domain VAD methods [3, 13, 23, 25] rely\non unsupervised techniques and consequently exhibit limited performance, as demonstrated later in our empirical\nevaluations in Tables 2 and 3. A solution to this could\nbe the adoption of weakly-supervised techniques for crossdomain VAD. While weakly-supervised approaches have\nproven promising in single-domain scenarios [11, 32, 33],\ntheir effectiveness in cross-domain scenarios has not been\nextensively explored. Our evaluations in Tables 2 and 3\nsuggest that directly employing existing weakly-supervised\nmethods to address the cross-domain challenges results in\na significant performance drop when tested in scenarios of\neven similar nature, such as surveillance videos. We argue\nthat this performance gap is due to the following reasons.\nFirst, anomalous events, by their very nature, lack a specific pattern or predefined structure. Hence, the definition of\nanomaly is context-dependent and a naive adaptation of the\nprevious method cannot capture the context-dependencies\nin multiple domains. Second, anomalous events are relatively infrequent, making VAD a class imbalance problem.\nThis issue becomes more severe when dealing with multiple\ndomains. Third, because of the limited amount of weakly\nlabeled training data, the model’s learning capacity to detect\nnovel (open-set) anomalies is also constrained. Due to these\nchallenges, weakly-supervised methods cannot be readily\napplied to cross-domain or cross-dataset scenarios.\nTo overcome these challenges and develop a generalized\nVAD model, substantial amounts of weakly-labeled data are\nrequired. However, acquiring even video-level labels for\na large number of videos is inefficient and labor-intensive.\nOn the other hand, vast streams of unlabeled videos are\ngenerally available. Utilizing the limited weakly-labeled\ndata alongside this abundant unlabeled data provides a notable opportunity to address the aforementioned challenges\nin cross-domain VAD. Prudent utilization of the unlabeled\ndata can provide valuable insights into the underlying data\ndistribution, leading to improved decision-making and identification of anomalous events.\nTo this end, we propose a weakly-supervised CrossDomain Learning (CDL) framework for VAD that integrates external, unlabeled data, from the wild with limited\nweakly-labeled data to provide competitive generalization\nacross the domains. This is achieved by adaptively minimizing the prediction bias over the external data using the\nestimated prediction variance, which serves as an uncertainty regularization score. In the proposed framework, we\nfirst train fine-grained pseudo-label generation models on\nthe weakly-labeled data to obtain sets of segment-level pre-\n\nMethod(s)\nAcsintoae et al. [1]\nrGAN [23], MPN [25]\nzxVAD [3]\nOurs\n\nSup. on D\n\nTarget\n\nunsupervised\nunsupervised\nunsupervised\nweakly-supervised\n\nD\nD′\nD ∪ D′\nD ∪ D′\n\nTable 1. Brief overview of the taxonomy of current works for VAD\nusing a source domain dataset (D) and a secondary domain dataset\n(D′ ). All these methods do not utilize any labels for training on\n(D′ ) and assume distinct distributions for D and D′ .\n\ndictions for the external dataset. Second, we compute the\nvariance of the predictions across multiple predictors as a\nproxy to represent uncertainty associated with the segments\nin the external data. Third, during the optimization process,\ninvolving training on both labeled and external data, we\nadaptively reweigh the bias on each external data using the\nuncertainty regularization scores. This dynamic reweighing ensures that segments from the external dataset closer to\nthe source dataset are emphasized during the training, while\nthose with higher uncertainty are down-weighted. Finally,\nwe iteratively regenerate pseudo-labels using the models\ntrained on labeled and pseudo-labeled data, re-estimate the\nuncertainties, and re-train the model on the union of labeled\nand external datasets. This iterative process helps refine the\npseudo-labels as the training progresses. With this training process, the model learns to generalize to both source\nand external data, given only supervision on the source data.\nFigure 1 illustrates the effectiveness of the CDL framework.\nTo summarize, we make the following contributions:\n• We present a practical CDL framework for weaklysupervised VAD, in which unlabeled external videos are\nemployed to enhance the cross-domain generalization of\nthe model.\n• We design a novel uncertainty quantification method that\nenables the adaptive uncertainty-driven integration of external videos into the training set.\n• Through extensive experiments and ablation studies\non benchmark datasets, we validate the proposed approach, demonstrating state-of-the-art performance in\ncross-domain settings while retaining a competitive performance on the in-domain data.\n\n2. Related Works\nVideo Anomaly Detection (VAD). Video Anomaly Detection (VAD). VAD is a well-established problem, with\nmost works formulating it either as unsupervised learning [15, 21, 22, 41, 44] or weakly-supervised learning\n[29, 32, 33, 43, 48] problem. In unsupervised setups, the\ntraining data consists solely of normal videos, with the\nmajority of works encoding normal patterns through techniques like frame reconstruction [15, 39], future frame pre-\n\n\fdiction [21], dictionary learning [22, 44], and one-class\nclassification [17, 24]. Any deviation from the encoded patterns is considered anomalous. Since the model categorizes\nanything beyond its learned representations as anomalous,\nit can label novel video actions and scenarios encountered\nduring training but in altered environments as anomalous.\nWeakly-supervised VAD methods help mitigate these issues by incorporating video-level labels as weak supervision for the model, with the majority of methods utilizing\nthe Multiple Instance Ranking Loss [11, 32, 35, 47]. Given\nthat a VAD model is expected to encounter previously unseen scenarios during deployment, it is of paramount importance for the model to have a high generalization across\ndomains. Previous works refer this as cross-domain [3] or\ncross-dataset generalization [9]. We provide an overview\nof the existing works employing external data in VAD in\nTable 1. Previous works on cross-domain generalization\nfocus on unsupervised methods based on few-shot targetdomain scene adaptation. [23, 25] employ data from the\ntarget domain via meta-learning to adapt to that specific domain. Aich et al. [3] proposed a zero-shot target domain\nadaptation method that incorporates external data to generate pseudo-abnormal frames. Despite the intriguing setup,\nthese unsupervised cross-domain generalization methods\nlack explicit knowledge about what constitutes an anomaly,\nhindering the model’s ability to learn the specific characteristics of anomalies. To this end, we propose the use\nof weakly-supervised learning for cross-domain generalization. We integrate external datasets from diverse domains to\nenable the cross-domain generalization of a model trained\nin a weakly-supervised fashion.\nPseudo-Labeling and Self-training. Pseudo-labeling [4,\n28] is a common technique where the model trained on labeled data assigns labels to unlabeled data. Subsequently,\nthe model is trained on both the initially labeled data and\nthe pseudo-labeled data. This self-training strategy [26, 40]\noperates iteratively, allowing the model to progressively\nenhance its generalization. In VAD, several works leverage pseudo-labeling and self-training for generating finegrained pseudo-labels [11, 20, 42]. However, in contrast to\nthe previous methods, instead of generating pseudo-labels\nfor the weakly labeled data, we leverage pseudo-labels for\nincorporating the external data.\nUncertainty Estimation. To address pseudo-label noise,\nprior research in different contexts has explored uncertainty\nestimation using various approaches, such as data augmentation [5, 30], inference augmentation [12], and model\naugmentation [46]. While data augmentation is effective\nfor images, it can disrupt temporal relationships in video\nframes and is not efficient for training on high-cardinality\ndata like videos. On the other hand, inference augmentation methods, such as MC Dropout [12, 42], introduce\nperturbations during model inference to obtain slightly dif-\n\nferent predictions, but that is inefficient for training with\nfixed backbones. In contrast, model augmentation uses different models. Since different models may have varying biases and receptive fields, this would result in diverse predictions. This prediction discrepancy can help quantify uncertainty, making model augmentation well-aligned with our\nproblem. To avoid any manual thresholding for learning\nfrom pseudo-labels during training, following [16, 46] we\nuse adaptive reweighing of loss with uncertainty values. In\n[46], Zheng et al. quantify uncertainty by estimating discrepancies between predictions made by two classifiers using Kullback–Leibler (KL) divergence. However, given that\nVAD is a binary classification task, the divergence based on\nonly two outcomes for the posterior probability is not optimally informative. Hence, we propose a method to quantify\nuncertainty in the high-dimensional feature space instead of\nthe probability space.\n\n3. Method\n3.1. Problem Definition\nIn this work, we address a real-world VAD problem, where\nl\na weakly-labeled dataset Dl = {(Xli , Yli )}ni=1\nand an exi nu\nternal unlabeled dataset Du = {Xu }i=1 are available for\ntraining. Here, nl and nu indicate the number of videos\nin the two datasets, respectively, with nu ≫ nl due to the\nconvenience of gathering unlabeled video data. The videolevel labels of Xl are denoted by Yl ∈ {0, 1}. We do not\nmake any assumption about distributions of Dl and Du , and\ntherefore, they can be drawn from different distributions.\nWe aim to find the model F (·|θ), parameterized by θ, that\nprovides accurate predictions on weakly-labeled data while\nadaptively minimizing the prediction bias on the external\ndata using the uncertainty regularization scores. We illustrate the proposed framework in Figure 2.\n\n3.2. Feature Extraction and Temporal Processing\nThe proposed uncertainty quantification method (Section\n3.4) compares two diverse representations of each sample\nto estimate the uncertainty associated with the segmentlevel predictions on external data. To this aim, we employ\ntwo different backbones for feature extraction from videos,\nwhich are widely used for anomaly detection tasks. The first\none is the conventional I3D backbone [6], which extracts\nsegment-level features using 3D convolution, and the other\nis the CLIP backbone [27], which extracts frame-level features using the frozen CLIP Model’s ViT encoder. The contrasting inductive biases of the 3D convolution-based I3D\nand the transformer-based CLIP help to effectively capture\nthe prediction variance. It is to be noted that only the CLIP\nbackbone is used during inference. We develop two prediction heads, namely the main model, Pm , built on top of the\nCLIP backbone, and the auxiliary model, Pa , built on top\n\n\fFigure 2. Overview of the proposed CDL Framework. CDL Step 0: The Ranking Loss, Lrank (Supp Mat. §6), is employed to train two\npseudo-label generation models, Pm and Pa , §3.2, on weakly-labeled data, Dl . CDL Step k, k &gt; 0: Pm and Pa are trained iteratively\non Dl ∪ Du , incorporating pseudo-labels for Du generated at the end of the previous CDL step. To deal with noise in pseudo-labels,\nuncertainty regularization scores are estimated using the divergence between the predictions of the two models, §3.4. When optimizing on\nDu , the prediction bias, Lbce (§3.3), for external data is reweighed using the computed uncertainty regularization scores, §3.5.\n\nof the I3D backbone.\nVideo frames are highly correlated in the temporal dimension. To reduce the redundancy in frame-level features\nextracted by the CLIP backbone, we pool the representations by bilinearly interpolating them to a fixed, empirically\ndetermined length, ns . Each of the ns interpolated features represents one segment. To ensure consistency, we\nalso fix the length of representations extracted by the I3D\nbackbone. Evaluation in Section 4.6 analyzes the role of ns\non the model’s performance. To capture long-range temporal information over the sequence, we employ a lightweight\ntemporal network, i.e., transformer encoder, to implement\nPm and Pa .\n\n3.3. Bias Estimation for External Data\nSimilar to [46], we formulate the prediction bias on external\ndata as:\nBias(Du ) = EXu [F (Xu |θ) − Yu ],\n\n(1)\n\nwhere F (Xu |θ) represents a set of predicted probability distributions, each one corresponding to a distinct segment of\nXu , and Yu denotes the set of unknown segment-level labels of Xu . Bias(Du ) can be re-written as:\nBias(Du ) = EXu [F (Xu |θ) − Ŷ u ] + EXu [Ŷ u − Yu ], (2)\nwhere Ŷ u denotes the set of segment-level pseudo-labels\nfor Xu . Ŷ u can be generated by performing inference on\nthe model trained on Dl . The first term in Equation 2 denotes the difference between the predicted posterior probability and the pseudo-labels, while the second term denotes\nthe error between the pseudo-labels and the ground-truth\nlabels. While minimizing the prediction bias, due to the\n\nlack of ground truth supervision, we employ a self-training\nmechanism, considering Ŷ u as the soft labels, thereby treating the second term as a constant and minimizing the first\nterm. Specifically, we use the binary cross-entropy (BCE)\nloss, Lbce , given by:\nLbce = −Ŷ u log(F (Xu |θ)) − (1 − Ŷ u ) log(1 − F (Xu |θ)),\n(3)\nto estimate the prediction bias associated with each video\nsegment, for both Pm and Pa .\n\n3.4. Uncertainty Estimation\nSince Du and Dl do not necessarily share the same distribution, the generated pseudo-labels are noisy. This noise\ncan adversely affect the subsequent training process as it\ncauses bias to further magnify and propagate within the\nmodel. This issue, known as Confirmation Bias [4], is often mitigated by quantifying the uncertainty associated with\npseudo-labels and then incorporating this uncertainty into\nthe training process to compensate for the noise. As discussed in Section 2, we opt to address the confirmation bias\nby computing uncertainty using model augmentation. To\nquantify uncertainty through model augmentation, following [46], we estimate prediction variance, which is formulated as:\nV ar(Du ) = EXu [(F (Xu |θ) − Yu )2 ].\n\n(4)\n\nDue to the lack of ground-truth labels, Equation 4 can be\napproximated as:\nV ar(Du ) ≈ EXu [(F (Xu |θ) − Ŷ u )2 ].\n\n(5)\n\nWhen optimizing the prediction bias in Equation 2, the variance in Equation 5 will also be minimized, potentially re-\n\n\fsulting in inaccurate quantification of the true prediction\nvariance. To address this, we adopt an alternative approximation, expressed as:\n\u00012\nV ar(Du ) ≈ EXu [ Pm (Xu |θPm ) − Pa (Xu |θPa ) ]. (6)\nSince VAD is a binary classification task, the probability\ndistributions corresponding to each segment have limited\nsupport. Consequently, estimating prediction variance using only the predicted anomaly scores, as in Equation 6,\nmay not be robust. Hence, instead of measuring the divergence between the predicted posterior probabilities for\nthe two classes, we propose quantifying pseudo-label uncertainty in the high-dimensional space. To this end, we\ncompute the cosine similarity between the segments in each\nset of the representations, Zm and Za , obtained from the\npenultimate layer of Pm and Pa , respectively. Here, Zm =\n{z1m , z2m , . . . , znms } and Za = {z1a , z2a , . . . , zna s }.\nTo obtain a set of stabilized, segment-level uncertainty\nregularization scores within a bounded range from the computed cosine similarity, we introduce the following function. Let S = {s1 , s2 , . . . , sns } be the set of surrogate variances that we use as proxies for the uncertainty of segments.\nThe surrogate variance is computed as:\nj\n\nj\n\nsj = eτ (⟨zm ,za ⟩−1) ,\n\n(7)\n\nscores, S, as automatic thresholds as this dynamically adjusts learning from noisy labels by scaling the prediction\nbias associated with external data based on S. This helps filter out unreliable predictions while prioritizing highly confident predictions. To encourage lower prediction variance,\nwhich would in turn lead to increased pseudo-label quality,\nwe explicitly add the prediction variance to the optimization\nobjective corresponding to the external data, Lext , as:\nLext = EXu [\n\n1\n· Bias(Du ) + V ar(Du )].\nV ar(Du )\n\n(8)\n\nEquation 8 is rewritten with the approximated terms as:\nLext = EXu [S · Lbce − λ3 · ⟨Zm , Za ⟩].\n\n(9)\n\nAlternatively, Equation 9 can be rewritten as:\nns \u0010\nnu X\n\u0011\n1 X\ni,j\ni,j\nS i,j · Li,j\nLext =\nbce − λ3 · ⟨Zm , Za ⟩ ,\nns · nu i=1 j=1\n\n(10)\nwhere λ3 is a hyper-parameter to balance the losses. Similar\nto CDL step 0, to optimize the training on Dl , we use Lrank .\nThe total optimization objective for training on Dl ∪ Du can\nbe expressed as:\n\nj\n\nwhere s indicates the uncertainty regularization score for\nthe j th segment, ⟨zjm , zja ⟩ indicates the cosine similarity,\nand τ denotes the temperature parameter.\nHigher uncertainty regularization scores indicate the\nsimilar encoding of data between the models, implying less\nuncertainty in the predicted labels, while, lower scores imply high uncertainty in the predicted labels. Empirical evidence in Section 4.4 demonstrates a significant negative\ncorrelation between uncertainty regularization scores and\nBinary Cross-Entropy (BCE) loss between the predicted labels and ground truths. This affirms that the proposed uncertainty regularization score effectively serves as a proxy\nfor the quality of pseudo-labels.\n\n3.5. Training Process\nCDL Step 0. We initially train Pm and Pa separately on\nthe labeled set, optimizing both of them using the Ranking\nLoss, Lrank , discussed in Supp. Mat. Sec. 6. We then perform inference on the trained models to generate the sets of\nsoft segment-level pseudo-labels for training on Du .\nCDL Step &gt; 0. Following the generation of the sets of\npseudo-labels for Du , we enter an iterative pseudo-label refinement phase, where we train Pm and Pa on Dl ∪ Du\nfor multiple CDL steps. Each CDL step comprises a fixed\nnumber of epochs. In each epoch, we regenerate the sets\nof segment-level uncertainty regularization scores. To enable the uncertainty-driven learning from external data, similar to [46], we use the estimated uncertainty regularization\n\nLTotal = Lrank + λ4 · Lext ,\n\n(11)\n\nwhere λ4 is a trade-off parameter for Lext . We employ the\noptimization objective defined in Equation 11 during training on Dl ∪ Du for each epoch within every CDL step. After each CDL step is completed, we re-generate the set of\nsoft segment-level pseudo-labels using the models trained\non Dl ∪ Du . This iterative refinement process repeats k\ntimes, where k is a hyper-parameter determining the number of CDL steps. With each CDL step, the models’ performance gets further refined as the pseudo-labels get iteratively improved.\n\n3.6. Inference - Extending Segment-level Scores to\nFrame-level Scores\nDuring inference, we compute segment-level anomaly\nscores for the videos using Pm . Since we encounter longuntrimmed videos with varying numbers of frames, for extending the segment-level anomaly score to the frame level,\nfor each video, we divide the total number of frames nf\nby the number of segments ns to obtain the number of\nframes per segment, nf s . We assign the anomaly score of\neach segment to its consecutive frames. The first segment\ncorresponds to the first nf s frames, and so forth until the\nth\n(ns − 1) segment. For the last segment, its anomaly score\nis assigned to any remaining frames, potentially exceeding\nnf s , if there is a remainder.\n\n\f4. Experiments\nWe evaluate the proposed method on the major video\nanomaly datasets, UCF-Crime (UCF) [32] and XDViolence (XDV) [38]. Additionally, we use 11,000 videos\nfrom the HACS [45] dataset as a source of external data.\nWe provide detailed information about the datasets in Supp.\nMat. §7. In §4.1, we discuss the implementation details.\nIn §4.2, we discuss the inherent noise in the test annotations of benchmark datasets. We proceed to compare\nthe proposed framework with prior works in cross-domain\nscenarios (§4.3.1) and open-set scenarios (§4.3.2). Subsequently, in §4.4, we demonstrate a strong correlation between the quality of pseudo labels and the computed uncertainty scores. We then explore the evolution of these uncertainty scores through the training process in §4.5. Finally,\nin §4.6, we conduct ablation studies and hyper-parameter\nanalysis to analyze the impact of individual components of\nthe proposed framework.\n\nCross-Domain\n(Unsup.)\n\nNon\nCrossDomain\n\nCross-Domain\n(Weakly-Sup.)\n\nFeatures\n\nUCF\nAUC(%)\n\nUCF-R\nAUC(%)\n\nXDV\nAP(%)\n\nrGAN [23]\nMPN [25]\nzxVAD [3]\n\n-\n\n64.35∗\n65.67∗\n68.74†\n\n65.19∗\n67.98∗\n69.39†\n\n37.74∗\n38.89∗\n40.68†\n\nSultani et al.[32]\nI3D\nMIST [11]\nI3D\nRTFM [33]\nI3D\nS3R [37]\nI3D\nCU-Net [42]\nI3D\nMGFN [8]\nI3D\nSSRL [19]\nI3D\nCLIP-TSA [18]\nCLIP\nOurs (No ext. data) CLIP\n\n80.70\n82.30\n84.03\n85.99\n86.22\n86.98\n87.43\n87.58\n84.49\n\n84.63∗\n86.17∗\n86.47∗\n87.11∗\n88.15∗\n87.33∗\n87.02∗\n73.20∗\n89.96\n\n53.88∗\n50.33∗\n37.30∗\n49.84∗\n37.98∗\n32.16∗\n51.60∗\n44.33∗\n58.13\n\nOurs (UCF + HACS)CLIP\nOurs (UCF + XDV) CLIP\n\n84.63\n84.73\n\n90.53\n90.26\n\n65.14\n68.37\n\nTable 2. Comparison with prior works on XDV, considering UCFCrime as the source data. Asterisk (∗) indicates that evaluations\nwere conducted by us using the official code. Dagger (†) indicates\nthat evaluations were conducted by our implementation due to the\nlack of an official implementation.\nMethods\n\nFeatures\n\nXDV AP(%)\n\nUCF-R\nAUC(%)\n\nCrossDomain\n(Unsup.)\n\nrGAN [23]\nMPN [25]\nzxVAD [3]\n\n-\n\n40.10∗\n44.79∗\n47.53†\n\n59.82∗\n60.35∗\n63.61†\n\nNon\nCrossDomain\n\nSultani et al.[32]\nRTFM [33]\nMGFN [8]\nS3R [37]\nCLIP-TSA [18]\nOurs (No ext. data)\n\nI3D\nI3D\nI3D\nI3D\nCLIP\nCLIP\n\n73.20\n77.81\n80.11\n80.26\n80.67\n75.13\n\n71.23∗\n70.46∗\n69.12∗\n69.04∗\n67.58∗\n76.39\n\nCross-Domain\n(Weakly-Sup.)\n\nOurs (XDV + UCF) CLIP\nOurs (XDV + HACS) CLIP\n\n77.04\n78.61\n\n88.06\n88.50\n\n4.1. Implementation Details\nWe implement the proposed method using PyTorch. We extract CLIP and I3D features at a fixed frame rate of 30 FPS.\nCLIP features are extracted from the frozen CLIP model’s\nimage encoder (ViT-B/32). For the hyper-parameters, in the\nopen-set scenarios, we empirically set the value of ns to 64,\nτ to 1.25, λ1 and λ2 to 5e − 4, λ3 to 1e − 3, and λ4 to 700.\nAblation studies for selecting ns and λ3 are included in Section 4.6. We use the Adam optimizer with a weight decay\nof 1e − 3, and we set a learning rate of 3e − 5 for the transformer encoder and 5e − 4 for the fully connected layers.\nWe use a batch size of 64. In both Pm and Pa , we explicitly\nencode positional information in the segments using sinusoidal positional encodings [34]. We train on the weaklylabeled source dataset for 200 epochs, followed by training on the union of weakly-labeled and external datasets for\n40 CDL steps, each CDL step comprising 4 epochs. Additional information regarding hyper-parameters is provided\nin Supp. Material Section 8.\nModel Architecture. Both Pm and Pa consist of a transformer encoder layer with four heads, followed by four fully\nconnected layers, each consisting of 4096, 512, 32, and 1\nneurons, respectively. In both the models, for all the layers\nexcept the last, we use ReLU [2] activation while for the\nlast layer, we use Sigmoid activation.\nEvaluation Setup. To reduce bias, we perform each experiment three times with different seeds and average the\nresults. In open-set experiments, we repeat each experiment three times, using different sets of anomaly classes\neach time.\nEvaluation Metric. Following previous works on UCFCrime [32], we adopt the frame-level area under the ROC\ncurve (AUC) to evaluate on UCF-Crime. In line with\nprevious works on XD-Violence [38], we use the frame-\n\nMethods\n\nTable 3. Comparison with prior works on UCF-Crime, considering\nXDV as the source data. Asterisk (∗) indicates that evaluations\nwere conducted by us using the official code. Dagger (†) indicates\nthat evaluations were conducted by our implementation due to the\nlack of an official implementation.\n\nlevel area under the Precision-Recall curve (PRAUC), also\nknown as Average Precision (AP), to evaluate on XDV.\n\n4.2. Noise in the Test Annotations of Benchmark\nDatasets\nOur manual inspection reveals that the frame-level testing annotations of the UCF-Crime (UCF) [32] and XDViolence (XDV) [38] datasets, which are commonly used\nfor benchmarking VAD models, exhibit significant noise.\nThis noise largely stems from the fact that the original annotations do not consistently label the frames leading up to\nthe primary anomalous events and their subsequent consequences as anomalous. For instance, in a video assigned\na label like “shooting”, we assert that frames showing the\nperson holding the gun and frames illustrating the injured\nvictim should also be marked as anomalous. This perspective aligns with the fundamental goal of VAD, which is to\n\n\fUCF (AUC%)\nUCF-R (AUC%)\nc Wu et al.[38] RTFM [33] Zhu et al. [49] Ours (w/o CDL) Ours (CDL) Ours (w/o CDL) Ours (CDL)\n1\n3\n6\n9\n\n73.22\n75.15\n78.46\n79.96\n\n75.91\n76.98\n77.68\n79.55\n\n76.73\n77.78\n78.82\n80.14\n\n75.17\n81.51\n82.97\n83.02\n\n77.45\n82.57\n83.44\n83.37\n\n84.32\n86.84\n87.85\n89.22\n\n85.39\n87.69\n88.21\n89.82\n\nTable 4. Comparison with other methods in Open-set setting on UCF-Crime dataset; c denotes the no. of anomalous classes included for\nweakly-supervised training.\n\nidentify all anomalous frames within a video, irrespective\nof the video’s primary label. However, it should also be\nnoted that in the original annotations, for some videos, certain frames related to the video’s primary anomaly label are\nalso not marked anomalous.\nTo address this, we re-annotate the test set of UCF-Crime\nby assigning each video to three independent annotators.\nWe then combine their annotations to generate more accurate frame-level labels. Compared to the original annotations where 7.58% of the total frames are labeled as anomalous, the proposed annotations label 16.55% of the total\nframes as anomalous. The proposed annotations are available here1 . We provide a comparison of the proposed and\noriginal annotations here2 . For the remainder of this paper,\nwe refer the re-annotated test set of the UCF-Crime dataset\nas UCF-R.\n\n4.3. Comparison with Prior Works\n4.3.1\n\nCross-Domain Scenarios\n\nWhile the UCF-Crime [32] and XD-Violence [38] datasets\nshare similar definitions of what constitutes anomalies, that\ndefinition differs from those of smaller datasets like ShanghaiTech [21], CUHK-Avenue [22], UCSD Pedestrian [7],\nUBnormal [1], where anomalies are more subtle. For instance, running is considered anomalous in UBnormal but\nnot in XD-Violence. Due to these divergent notions of\nanomalies across datasets, we conduct cross-domain experiments by simultaneously evaluating on the UCF-Crime and\nXD-Violence datasets, given their more aligned anomaly\ndefinitions.\nUCF-Crime as the Weakly-Labeled Source Set, XDV\nas the Cross-Domain Set. Table 2 summarizes the results for this scenario. First, we observe that the proposed\nmethod achieves state-of-the-art results on XDV and UCFR even without utilizing any external data (without CDL).\nWe believe this is due to the inductive bias of previous methods towards the noisy annotations of UCF-Crime. Next, we\nobserve that the addition of external data, HACS and XDV,\nleads to a significant enhancement in the performance of\n1 https : / / drive . google . com / drive / folders /\n1IVjQQFHXVcsaT63HUjpfk8C5KH6HsQ7t?usp=drive_link\n2 https://rb.gy/4vkr1r\n\nthe cross-domain dataset, XDV, by 11.26% and 14.49%, respectively, compared to the previous state-of-the-art baseline. Additionally, there is also a marginal improvement in\nthe performance of the source set upon integration of external datasets.\nXDV as the Weakly-Labeled Source Set, UCF-Crime as\nthe Cross-Domain Set. Table 3 summarizes the results for\nthis scenario. Notably, the proposed method achieves stateof-the-art performance on the cross-domain dataset, UCFR, even without the utilization of any external data during\ntraining. This is attributed to the simplicity of the proposed\narchitecture compared to other baselines. The proposed architecture prevents overfitting to the source dataset, thereby\nincreasing its generalizability to the cross-domain dataset.\nAdditionally, integrating external data further enhances performance on both the cross-domain and source sets. Specifically, leveraging the CDL framework with UCF-Crime and\nHACS as external datasets boosts UCF-R’s AUC by 18.94%\nand 19.39% respectively, compared to previous state-of-theart baselines. We also observe that the proposed method’s\nperformance is inferior on XDV. We attribute this to the\nnoise in the annotations of XDV’s test set.\nThese results highlight that the proposed CDL framework is capable of effectively exploiting external data with\nvast domain gaps to achieve a significant cross-domain generalization. It’s noteworthy that the performance gain observed with the proposed CDL framework remains consistent across all tested datasets, suggesting that the performance improvement is not dependent on any specific source\nor external dataset.\n4.3.2\n\nOpen-Set Scenarios\n\nIn Table 4, we evaluate the proposed framework’s performance on the UCF-Crime dataset in a realistic openset scenario, where the model is evaluated on both, previously seen and unseen anomaly classes. To simulate\nthis scenario, we randomly include c anomalous classes\nin the weakly-labeled set, while the remaining anomalous\nclasses are placed in the unlabeled set. In both the weaklysupervised source set and the unlabeled set, the number of\nnormal videos equals the number of anomalous videos. We\nevaluate two model configurations; one trained solely on\n\n\fFigure 3. (a) Correlation between uncertainty scores and BCE loss computed between the estimated scores and ground truth. When\nλ3 = 1e − 3, as expected, a consistently high negative correlation emerges, demonstrating the effectiveness of the proposed uncertainty\nquantification method as a reliable proxy for pseudo-label quality. (b) Cumulative Distribution Function (CDF) plots illustrating the\nprogression of average uncertainty regularization scores for each video during training. CDL step 20 has a higher concentration of scores\naround 1 compared to CDL step 2, while CDL step 2 has a higher concentration around 1 than CDL step 1. This suggests that, as training\nprogresses, there is a higher tendency for scores to have elevated values, indicating more confident pseudo-label predictions. (c) Ablation\nstudy on the coefficient of the cosine similarity loss term, λ3 . (d) Ablation study on the number of segments, ns .\n\nthe weakly-labeled set (without CDL) and the other on the\nunion of weakly-labeled and unlabeled sets using the CDL\nFramework.\nOn UCF-Crime, the proposed model, without CDL, surpasses the state-of-the-art baselines for c &gt; 1. This highlights its efficacy in open-set settings. While, with CDL,\nthe model surpasses the baselines across all values of c by a\nconsiderable margin.\nFor both UCF-Crime and UCF-R, when unlabeled data\nis incorporated, we observe a consistent performance gain\nacross all values of c, suggesting the effectiveness of the\nCDL framework across varying amounts of weakly-labeled\nand unlabeled data.\n\nfirst epoch of three different CDL steps. We conduct this\nexperiment considering UCF-Crime as the weakly-labeled\nsource set and XDV as the external set. We observe that in\nCDL step 1, 16.65% of the uncertainty scores fall within the\nrange [0, 0.1]. As training progresses to CDL steps 2 and\n20, this proportion decreases to 13.06% and 11.39%, respectively. Meanwhile, the proportion of uncertainty scores\nin the range [0.9, 1] increases from 35.11% in CDL step 1\nto 56.70% in CDL step 2 and further to 57.68% in CDL step\n20. This trend indicates a discernible shift towards higher\nuncertainty scores as training progresses, suggesting an improvement in model confidence due to increased pseudolabel quality.\n\n4.4. Correlation between Uncertainty Scores and\nBCE Loss (Proxy to Label Quality)\n\n4.6. Ablation Studies and Hyper-parameter Analysis\n\nTo assess the efficacy of the proposed uncertainty quantification method as a proxy for pseudo-label quality, we\ncompute the non-parametric Spearman correlation between\nestimated uncertainty regularization scores and BCE loss\nbetween the predicted pseudo-labels and the corresponding\nground truths. For this experiment, we consider UCF-Crime\nas the weakly-labeled source set and XDV as the external\nset. In Figure 3(a), with λ3 = 1e − 3, CDL step 1 onwards,\na consistently high negative correlation (-0.46 in CDL step\n6, with a p-value &lt; 1e-5) emerges, indicating the robustness of the proposed uncertainty quantification framework.\nConversely, setting λ3 to 0 results in a sustained positive\ncorrelation, signifying sub-optimal pseudo-labels in the absence of cosine similarity loss term.\n\nFor the sake of consistency, we conduct all ablation studies\non UCF-Crime in an open-set setting, with c = 1. However,\nit should be noted that for different training setups, hyperparameters are tuned separately as well.\nImpact of Various Components of the CDL Framework.\nWe assess the effectiveness of each component of the CDL\nframework by adding them sequentially. The results are\nsummarized in Table 5. We consider training on c = 1\nanomaly class in a weakly-supervised fashion as our baseline. The remaining c − 1 anomalous classes are placed in\nthe external set. We first observe that integrating external\ndata into the source set without accounting for pseudo-label\nuncertainty (S i,j = 1, ∀i, j) and without minimizing cosine similarity between representations (λ3 = 0) yields a\n0.35% gain in AUC, highlighting the effectiveness of external data in improving the model’s performance. Next,\nwe study the impact of uncertainty-aware integration of external data, i.e., adaptively reweighing the prediction bias\nof external data with the computed uncertainty values and\nwith λ3 set to 0. This results in a gain of 0.13% in AUC,\n\n4.5. Progression of Uncertainty Scores\nTo assess the evolution of uncertainty regularization scores\nthrough the training process, in Figure 3(b), we plot the\nCumulative Distribution Function (CDF) of average uncertainty regularization scores for external videos across the\n\n\fExternal data\n\nUncertainty Coeff. Cos. Similarity Loss AUC(%)\n\n✗\n✓\n✓\n✓\n\n✗\n✗\n✓\n✓\n\n✗\n✗\n✗\n✓\n\n84.32\n84.67\n84.80\n85.39\n\nTable 5. Ablation study of various components on the UCF-R\ndataset in an open-set setting (c = 1).\n\ndemonstrating the superiority of uncertainty-driven integration compared to the standard integration. Finally, we assess the impact of adding the cosine similarity loss term\nduring uncertainty-aware training. This further leads to a\nsignificant boost of 0.59%, validating its effectiveness.\nImpact of Cosine Similarity Loss. In Figure 3(c), we explore the impact of varying the coefficient of the cosine similarity loss on the model’s performance. We observe a gradual increase in AUC as λ3 increases from 1e-9 to 1e-3. This\ncould be due to the effect of cosine similarity loss getting\nmore pronounced with higher values of λ3 . However, beyond 1e-3, there is a rapid decline in AUC, likely due to the\ndominance of the cosine similarity loss over other losses\nwhen its coefficient is high. Therefore, we select 1e-3 as\nthe optimal choice for λ3 .\nImpact of Number of Segments. In Figure 3(d), we observe that the performance consistently improves as no. of\nsegments, ns , increases from 16 to 64, but it begins to decline rapidly afterward. Therefore, we set ns as 64.\nImpact of the Size of External Data. To determine the optimal number of unlabeled external videos from the HACS\ndataset to integrate into the weakly-labeled training set of\nUCF-Crime, we conduct an ablation study, depicted in Figure 4. We observe that increasing the size of the external set\nincreases the performance on XDV. However, this increase\ntends to plateau after the inclusion of 11,000 videos. Consequently, we do not include additional videos beyond the\n11,000 threshold.\n\n5. Conclusion\nIn this work, we demonstrated the effectiveness of integrating external, unlabeled data with weakly-labeled source\ndata to enhance the cross-domain generalization of VAD\nmodels. To enable this integration, we proposed a weaklysupervised CDL (Cross-Domain Learning) framework that\nadaptively minimizes the prediction bias on external data by\nscaling it with the prediction variance, which serves as an\nuncertainty regularization score. The proposed method outperforms baseline models significantly in cross-domain and\nopen-set settings while retaining competitive performance\nin in-domain settings.\n\nFigure 4. Ablation study on the impact of the size of external data.\n\nAcknowledgement\nThis work was supported in part by U.S. NIH grants\nR01GM134020 and P41GM103712, NSF grants DBI1949629, DBI-2238093, IIS-2007595, IIS-2211597, and\nMCB-2205148. This work was supported in part by Oracle Cloud credits and related resources provided by Oracle\nfor Research, and the computational resources support from\nAMD HPC Fund. We thank Eshaan Mandal and Bhavay\nMalhotra for their assistance, which has been instrumental\nin completing this work.\n\nReferences\n[1] Andra Acsintoae, Andrei Florescu, Mariana-Iuliana\nGeorgescu, Tudor Mare, Paul Sumedrea, Radu Tudor\nIonescu, Fahad Shahbaz Khan, and Mubarak Shah. Ubnormal: New benchmark for supervised open-set video\nanomaly detection. In CVPR, 2022. 2, 7\n[2] Abien Fred Agarap. Deep learning using rectified linear units\n(relu), 2019. 6\n[3] Abhishek Aich, Kuan-Chuan Peng, and Amit K. RoyChowdhury. Cross-domain video anomaly detection without\ntarget domain adaptation. In Proceedings of the IEEE/CVF\nWinter Conference on Applications of Computer Vision\n(WACV), pages 2579–2591, 2023. 1, 2, 3, 6\n[4] Eric Arazo, Diego Ortego, Paul Albert, Noel E O’Connor,\nand Kevin McGuinness. Pseudo-labeling and confirmation\nbias in deep semi-supervised learning. In IJCNN, 2020. 3, 4\n[5] David Berthelot, Nicholas Carlini, Ekin D. Cubuk, Alex Kurakin, Kihyuk Sohn, Han Zhang, and Colin Raffel. Remixmatch: Semi-supervised learning with distribution matching\nand augmentation anchoring. In ICLR, 2020. 3\n[6] Joao Carreira and Andrew Zisserman. Quo vadis, action\nrecognition? a new model and the kinetics dataset. In CVPR,\npages 6299–6308, 2017. 3\n[7] Antoni B. Chan and Nuno Vasconcelos. Modeling, clustering, and segmenting video with mixtures of dynamic textures. IEEE Transactions on Pattern Analysis and Machine\nIntelligence, pages 909–926, 2008. 7\n\n\f[8] Yingxian Chen, Zhengzhe Liu, Baoheng Zhang, Wilton\nFok, Xiaojuan Qi, and Yik-Chung Wu. Mgfn: magnitudecontrastive glance-and-focus network for weakly-supervised\nvideo anomaly detection. In Proceedings of the ThirtySeventh AAAI Conference on Artificial Intelligence and\nThirty-Fifth Conference on Innovative Applications of Artificial Intelligence and Thirteenth Symposium on Educational\nAdvances in Artificial Intelligence, 2023. 6\n[9] MyeongAh Cho, Minjung Kim, Sangwon Hwang, Chaewon Park, Kyungjae Lee, and Sangyoun Lee. Look around\nfor anomalies: Weakly-supervised anomaly detection via\ncontext-motion relational learning. In CVPR, pages 12137–\n12146, 2023. 3\n[10] Yang Cong, Junsong Yuan, and Ji Liu. Sparse reconstruction\ncost for abnormal event detection. In CVPR, pages 3449–\n3456, 2011. 1\n[11] Jia-Chang Feng, Fa-Ting Hong, and Wei-Shi Zheng. MIST:\nMultiple instance self-training framework for video anomaly\ndetection. In CVPR, pages 14009–14018, 2021. 1, 2, 3, 6,\n14\n[12] Yarin Gal and Zoubin Ghahramani. Dropout as a bayesian\napproximation: Representing model uncertainty in deep\nlearning. In ICML, pages 1050–1059, 2016. 3\n[13] Mariana Iuliana Georgescu, Radu Tudor Ionescu, Fahad Shahbaz Khan, Marius Popescu, and Mubarak Shah.\nA background-agnostic framework with adversarial training\nfor abnormal event detection in video. IEEE Transactions\non Pattern Analysis and Machine Intelligence, pages 4505–\n4523, 2022. 2\n[14] Mahmudul Hasan, Jonghyun Choi, jan Neumann, Amit K\nRoy-Chowdhury, and Larry Davis. Learning temporal regularity in video sequences. In Proceedings of IEEE Computer\nVision and Pattern Recognition, 2016. 14\n[15] Mahmudul Hasan, Jonghyun Choi, Jan Neumann, Amit K.\nRoy-Chowdhury, and Larry S. Davis. Learning temporal regularity in video sequences. In CVPR, 2016. 1, 2\n[16] Kexin Huang, Vishnu Sresht, Brajesh Rai, and Mykola Bordyuh. Uncertainty-aware pseudo-labeling for quantum calculations. In UAI, pages 853–862, 2022. 3\n[17] Radu Tudor Ionescu, Fahad Shahbaz Khan, Mariana-Iuliana\nGeorgescu, and Ling Shao. Object-centric auto-encoders and\ndummy anomalies for abnormal event detection in video. In\nCVPR, pages 7842–7851, 2019. 3\n[18] Hyekang Kevin Joo, Khoa Vo, Kashu Yamazaki, and Ngan\nLe. Clip-tsa: Clip-assisted temporal self-attention for\nweakly-supervised video anomaly detection. In ICIP, pages\n3230–3234, 2023. 6\n[19] Guoqiu Li, Guanxiong Cai, Xingyu Zeng, and Rui Zhao.\nScale-aware spatio-temporal relation learning for video\nanomaly detection. In ECCV, pages 333–350, 2022. 6\n[20] Shuo Li, Fang Liu, and Licheng Jiao. Self-training multisequence learning with transformer for weakly supervised\nvideo anomaly detection. AAAI, pages 1395–1403, 2022. 3,\n14\n[21] Wen Liu, Weixin Luo, Dongze Lian, and Shenghua Gao. Future frame prediction for anomaly detection–a new baseline.\nIn CVPR, pages 6536–6545, 2018. 1, 2, 3, 7\n\n[22] Cewu Lu, Jianping Shi, and Jiaya Jia. Abnormal event detection at 150 fps in matlab. In ICCV, pages 2720–2727, 2013.\n2, 3, 7, 14\n[23] Yiwei Lu, Frank Yu, Mahesh Kumar Krishna Reddy, and\nYang Wang. Few-shot scene-adaptive anomaly detection. In\nECCV, pages 125–141, 2020. 2, 3, 6\n[24] Weixin Luo, Wen Liu, and Shenghua Gao. Remembering\nhistory with convolutional lstm for anomaly detection. In\nICME, pages 439–444, 2017. 3\n[25] Hui Lv, Chen Chen, Zhen Cui, Chunyan Xu, Yong Li, and\nJian Yang. Learning normal dynamics in videos with meta\nprototype network. In CVPR, pages 15425–15434, 2021. 1,\n2, 3, 6\n[26] David McClosky, Eugene Charniak, and Mark Johnson. Effective self-training for parsing. In NAACL, pages 152–159,\n2006. 3\n[27] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya\nRamesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry,\nAmanda Askell, Pamela Mishkin, Jack Clark, Gretchen\nKrueger, and Ilya Sutskever. Learning transferable visual\nmodels from natural language supervision. In ICML, pages\n8748–8763, 2021. 3\n[28] Mamshad Nayeem Rizve, Kevin Duarte, Yogesh S Rawat,\nand Mubarak Shah. In defense of pseudo-labeling: An\nuncertainty-aware pseudo-label selection framework for\nsemi-supervised learning. In ICLR, 2021. 3\n[29] Hitesh Sapkota and Qi Yu. Bayesian nonparametric submodular video partition for robust anomaly detection. In CVPR,\npages 3212–3221, 2022. 2\n[30] Kihyuk Sohn, David Berthelot, Chun-Liang Li, Zizhao\nZhang, Nicholas Carlini, Ekin D. Cubuk, Alex Kurakin,\nHan Zhang, and Colin Raffel. Fixmatch: simplifying semisupervised learning with consistency and confidence. In\nNeurIPS, 2020. 3\n[31] Fahad Sohrab, Jenni Raitoharju, Moncef Gabbouj, and\nAlexandros Iosifidis. Subspace support vector data description. In ICPR, pages 722–727, 2018. 14\n[32] Waqas Sultani, Chen Chen, and Mubarak Shah. Real-world\nanomaly detection in surveillance videos. In CVPR, pages\n6479–6488, 2018. 1, 2, 3, 6, 7, 12\n[33] Yu Tian, Guansong Pang, Yuanhong Chen, Rajvinder Singh,\nJohan W Verjans, and Gustavo Carneiro. Weakly-supervised\nvideo anomaly detection with robust temporal feature magnitude learning. In ICCV, pages 4975–4986, 2021. 1, 2, 6,\n7, 14\n[34] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Łukasz Kaiser, and Illia\nPolosukhin. Attention is all you need. In NeurIPS, page\n6000–6010, 2017. 6, 12\n[35] Boyang Wan, Yuming Fang, Xue Xia, and Jiajie Mei.\nWeakly supervised video anomaly detection via centerguided discriminative learning. ICME, pages 1–6, 2020. 3\n[36] Jue Wang and Anoop Cherian. Gods: Generalized one-class\ndiscriminative subspaces for anomaly detection. In ICCV,\npages 8200–8210, 2019. 14\n[37] Jhih-Ciang Wu, He-Yen Hsieh, Ding-Jie Chen, Chiou-Shann\nFuh, and Tyng-Luh Liu. Self-supervised sparse representa-\n\n\ftion for video anomaly detection. In ECCV, pages 729–745,\n2022. 6\n[38] Peng Wu, jing Liu, Yujia Shi, Yujia Sun, Fangtao Shao,\nZhaoyang Wu, and Zhiwei Yang. Not only look, but also\nlisten: Learning multimodal violence detection under weak\nsupervision. In ECCV, 2020. 6, 7, 12, 14\n[39] Dan Xu, Elisa Ricci, Yan Yan, Jingkuan Song, and Nicu\nSebe. Learning deep representations of appearance and motion for anomalous event detection. In BMVC, pages 8.1–\n8.12, 2015. 2\n[40] David Yarowsky. Unsupervised word sense disambiguation\nrivaling supervised methods. In ACL, page 189–196, 1995.\n3\n[41] Guang Yu, Siqi Wang, Zhiping Cai, En Zhu, Chuanfu Xu,\nJianping Yin, and Marius Kloft. Cloze test helps: Effective video anomaly detection via learning to complete video\nevents. In Proceedings of the 28th ACM International Conference on Multimedia, pages 583–591, 2020. 2\n[42] Chen Zhang, Guorong Li, Yuankai Qi, Shuhui Wang, Laiyun\nQing, Qingming Huang, and Ming-Hsuan Yang. Exploiting\ncompleteness and uncertainty of pseudo labels for weakly\nsupervised video anomaly detection. In CVPR, pages 16271–\n16280, 2023. 1, 3, 6, 14\n[43] Jiangong Zhang, Laiyun Qing, and Jun Miao. Temporal convolutional network with complementary inner bag loss for\nweakly supervised anomaly detection. In ICIP, pages 4030–\n4034, 2019. 2\n[44] Bin Zhao, Fei-Fei Li, and Eric Xing. Online detection of unusual events in videos via dynamic sparse coding. In CVPR,\npages 3313–3320, 2011. 2, 3\n[45] Hang Zhao, Antonio Torralba, Lorenzo Torresani, and\nZhicheng Yan. Hacs: Human action clips and segments\ndataset. In ICCV, pages 8668–8678, 2019. 6, 12\n[46] Zhedong Zheng and Yi Yang. Rectifying pseudo label learning via uncertainty estimation for domain adaptive semantic segmentation. International Journal of Computer Vision\n(IJCV), 2021. 3, 4, 5\n[47] Jia-Xing Zhong, Nannan Li, Weijie Kong, Shan Liu,\nThomas H Li, and Ge Li. Graph convolutional label noise\ncleaner: Train a plug-and-play action classifier for anomaly\ndetection. In CVPR, pages 1237–1246, 2019. 1, 3\n[48] Yi Zhu and Shawn D. Newsam. Motion-aware feature for improved video anomaly detection. In BMVC, page 270, 2019.\n2\n[49] Yuansheng Zhu, Wentao Bao, and Qi Yu. Towards open set\nvideo anomaly detection. In ECCV, pages 395–412, 2022.\n7, 14\n\n\fCross-Domain Learning for Video Anomaly Detection with Limited Supervision\nSupplementary Material\n6. Revisiting Multiple Instance Learning\nSince acquiring frame-level labels requires significant time\nand effort, following Sultani et al. [32], we use Multiple Instance Learning (MIL) to train the classifiers using weakly-supervised video-level labels. By dividing a\nvideo (bag) into multiple temporal non-overlapping segments (instances) and encouraging anomalous video segments to have higher anomaly scores as compared to the\nnormal segments, they formulate anomaly detection as a regression problem.\nThe multiple instance ranking objective function is given\nby:\nmax F (X i,j |θ) &gt; max\nF (X i,j |θ),\ni\nn\n\nX i ∈Dla\n1≤j≤ns\n\n(12)\n\nX ∈Dl\n1≤j≤ns\n\nwhere Dla = {(X, Y ) ∈ Dl : Y = 1} and Dln =\n{(X, Y ) ∈ Dl : Y = 0} are the set of abnormal and normal videos, respectively and max is taken over all video\nsegments in a bag.\nInstead of ranking every segment of the positive and negative bags, ranking is enforced on one segment from each\nbag, having the highest anomaly score. The overall loss\nfunction, Lrank , for a pair of abnormal and normal videos, is\ngiven by:\nLrank = max(0, 1 − max\nF (X i,j |θ) + max\nF (X i,j |θ))\ni\na\ni\nn\nX ∈Dl\n1≤j≤ns\n\nX ∈Dl\n1≤j≤ns\n\n+ λ1 LTs + λ2 LSp ,\n(13)\nwhere LTs is the temporal smoothness constraint, and LSp\nis the sparsity constraint.\n\n7. Datasets\nUCF-Crime [32]: This is a large-scale VAD dataset having a total duration of 128 hours. It contains long and\nuntrimmed real-world surveillance videos across 13 realistic anomaly categories that are specifically chosen due\nto their significant impact on public safety. The dataset\ncomprises 1610 weakly-labeled training videos and 290 test\nvideos annotated at the frame level.\nXD-Violence (XDV) [38]: This is a large-scale and multiscene audio-visual dataset for violence detection, having a\ntotal duration of 217 hours. Its long and untrimmed videos\nare collected from movies, games, and in-the-wild scenarios, with anomalies spread over 6 categories. It comprises\n3954 weakly-labeled training videos and 800 test videos annotated at the frame level.\n\nHACS [45]: This is a large-scale dataset for human action\nrecognition, sourced from YouTube. It features 200 action\nclasses across 140K segments on 50K videos. Due to its\ndiverse range of actions, larger size, and longer video durations compared to other video datasets such as UCF-101,\nKinetics, and ActivityNet, we use a subset of 11K videos\nfrom HACS Segments as external, unlabeled data.\n\n8. Implementation Details\nTo ensure consistency and gradient stability, while training\non Dl ∪ Du , each mini-batch consists of an equal number of samples from Dl and Du . Since the computation\nof Lrank necessitates pairs of abnormal and normal videos,\neach labeled sample within the mini-batch comprises a pair\nof anomalous and normal videos. All the experiments were\nconducted on an NVIDIA RTX A5000 24 GB GPU. For the\nexperiments using UCF-Crime as the weakly-labeled data,\nwe set the batch size to 64, and for the experiments using\nXD-Violence as the weakly-labeled data, we set the batch\nsize to 32. In all our experiments except the open-set, we\nset ns to 64, τ to 1.25, λ1 to 5e-3, λ2 to 1e-3, λ3 to 1e-3.\nWe set λ4 to 2000 for UCF+HACS and UCF+XDV, 1250\nfor XDV+HACS, and 700 for XDV+UCF. For all our experiments, we use the Adam optimizer with a weight decay\nof 1e-3. For the fully connected layers, we use a learning\nrate of 5e-4 when UCF-Crime is used as the weakly-labeled\ndataset and a learning rate of 1e-4 when XDV is used as the\nweakly-labeled dataset. For the transformer encoder layers,\nwe use a learning rate of 3e-5 when UCF-Crime is used as\nthe weakly-labeled dataset and a learning rate of 5e-5 when\nXDV is used as the weakly-labeled dataset. In all our experiments, we explicitly encode positional information in the\nsegments using sinusoidal positional encodings [34]. We\ntrain on the weakly-labeled source dataset for 200 epochs,\nfollowed by training on the union of weakly-labeled and external datasets for 40 CDL steps, each CDL step comprising\n4 epochs. Due to the finer granularity and semantic richness\ninherent in CLIP features, we choose to use CLIP features\nduring inference.\n\n9. Comparison with Unsupervised Baselines in\nOpen-Set Settings\nTable 6 depicts that the proposed method outperforms all\nthe baselines in open-set settings on the UCF-Crime dataset\nby a large margin. As expected, all the weakly-supervised\nmethods outperform the unsupervised methods, even when\na small subset of the data is used for weakly-supervised\ntraining. This highlights the necessity of incorporating\n\n\fFigure 5. A comparison between the original annotations (UCF) and the proposed annotations (UCF-R). The green region represents\nframes labeled as anomalous by both the original and proposed annotations. The red region indicates frames labeled as anomalous by the\nproposed annotations but not by the original annotations. The unshaded (white) region denotes normal frames. For instance, in the first\nrow, while the original annotations just label frames depicting arson (a person setting the Christmas tree on fire) as anomalous, UCF-R also\nlabels the frames depicting the fire and smoke following arson as anomalous.\n\nweak labels during training. Since a direct comparison of\nthe proposed weakly-supervised framework with unsupervised methods is not fair, we did not include unsupervised\nbaselines in Table 4.\n\n10. Comparison of the Original and Proposed\nAnnotations for UCF-Crime Dataset\nFigure 5 illustrates a subset of instances from the UCFCrime’s test set where the original annotations do not label frames as anomalous, despite their actual anomalous\nnature. We also provide a comparison of the proposed and\noriginal annotations superimposed on the videos at this link:\n\n\fTable 6. Comparison with prior works in open-set setting on UCF-Crime dataset; c denotes the number of anomalous classes included for\nweakly-supervised training. The values represent AUC (%).\nc\n\nUnsup.\n\nConv-AE [14]\nSohrab et al. [31]\nLu et al. [22]\nBODS [36]\nGODS [36]\n\nWeakly-Sup.\n\nWu et al. [38] (offline)\nWu et al. [38] (online)\nRTFM [33]\nZhu et al. [49]\nOurs (w/o CDL)\nOurs\n\nhttps://rb.gy/4vkr1r.\n\n11. Limitations\nSimilar to some recent weakly-supervised VAD works [11,\n20, 42], the training process of the proposed CDL framework involves two stages. Consequently, the training does\nnot operate in an end-to-end manner. This incurs additional complexity and challenges for training the model\nin real-world applications. However, since the generalization obtained using this multi-stage training is significant,\nthe complex training setup of the multi-stage framework\nis reasonable. Nonetheless, developing end-to-end training\nframeworks would be an important direction for future research. This can facilitate the advancement of anomaly detection approaches for real-world applications, particularly\nthe ones with limited training budgets.\nAdditionally, the cross-domain performance in case of\ndrastic distribution shifts between the source and target domains may be hindered. For instance, a model primarily\ntrained on videos from stationary surveillance cameras may\nnot effectively work on videos with rapidly evolving scenes\nfrom car dashcams. This is mainly because the uncertaintybased reweighing approach in our framework aims to select\nsamples from the external set that are similar to the source\ndomain. In case of drastic shifts between the two domains,\nfinding informative samples from the target domain would\nnot be trivial.\n\n0\n\n1\n\n3\n\n6\n\n9\n\n50.60\n58.50\n65.51\n68.26\n70.46\n\n-\n\n-\n\n-\n\n-\n\n-\n\n73.22\n73.78\n75.91\n76.73\n75.17\n77.45\n\n75.15\n74.64\n76.98\n77.78\n81.51\n82.57\n\n78.46\n77.84\n77.68\n78.82\n82.97\n83.44\n\n79.96\n79.11\n79.55\n80.14\n83.02\n83.37\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"