"<!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>Learning Anomalies with Normality Prior for\nUnsupervised Video Anomaly Detection\nHaoyue Shi1,3† , Le Wang1∗ , Sanping Zhou1 , Gang Hua2 , and Wei Tang3\nNational Key Laboratory of Human-Machine Hybrid Augmented Intelligence,\nNational Engineering Research Center for Visual Information and Applications,\nInstitute of Artificial Intelligence and Robotics, Xi’an Jiaotong University\n2\nMultimodal Experiences Research Lab, Dolby Laboratories\n3\nUniversity of Illinois Chicago\n\n1\n\nAbstract. Unsupervised video anomaly detection (UVAD) aims to detect abnormal events in videos without any annotations. It remains challenging because anomalies are rare, diverse, and usually not well-defined.\nExisting UVAD methods are purely data-driven and perform unsupervised learning by identifying various abnormal patterns in videos. Since\nthese methods largely rely on the feature representation and data distribution, they can only learn salient anomalies that are substantially different from normal events but ignore the less distinct ones. To address this\nchallenge, this paper pursues a different approach that leverages datairrelevant prior knowledge about normal and abnormal events for UVAD.\nWe first propose a new normality prior for UVAD, suggesting that the\nstart and end of a video are predominantly normal. We then propose\nnormality propagation, which propagates normal knowledge based on relationships between video snippets to estimate the normal magnitudes of\nunlabeled snippets. Finally, unsupervised learning of abnormal detection\nis performed based on the propagated labels and a new loss re-weighting\nmethod. These components are complementary to normality propagation\nand mitigate the negative impact of incorrectly propagated labels. Extensive experiments on the ShanghaiTech and UCF-Crime benchmarks\ndemonstrate the superior performance of our method. The code is available at https://github.com/shyern/LANP-UVAD.git.\nKeywords: Video anomaly detection · Self-training · Prior Knowledge\n\n1\n\nIntroduction\n\nVideo anomaly detection aims to detect abnormal events in video sequences along\nthe temporal dimension. This task is essential for intelligent surveillance [55] and\ncrime detection [5]. Most existing methods are trained with partial supervision\nthat requires manual annotations. For instance, one-class methods [23,40,41] use\nnormal videos as the training set, while weakly-supervised methods [5, 33, 36]\nCorresponding author. † Part of this work was done while Haoyue Shi was a visiting\nscholar at University of Illinois Chicago.\n\n∗\n\n\f2\n\nH. Shi et al.\nRandom\nNormality prior\n98.44\n95.80\n89.81\n\nGT\nGCL\nC2FPL\nLBR-SPR\n01_0014\n\n01_0130\n\nFig. 1: Two examples of abnormal videos on ShanghaiTech [20]. The\ngray barcode is the ground truth. The line charts are anomaly scores\nof three methods [1, 46, 47]. The instances in the orange boxes are\neasily predicted incorrectly. This is because these methods are datadriven and highly rely on feature representation and data distribution, often struggling to capture less salient anomalies.\n\nSHT\n\n88.96\n\nUCF\n\nFig. 2: Accuracy of normal\nsnippets\nselected by the\nnormality prior\nand random.\n\nrely on video-level annotations during training. In contrast, unsupervised video\nanomaly detection (UVAD) methods [28, 37, 46, 47] attempt to detect anomalies\nwithout any annotations. It remains challenging because abnormal events in\nUVAD are rare, diverse, and usually not well-defined.\nExisting UVAD methods [1, 28, 35, 37, 38, 46, 47] are based on self-training\nor reconstruction. Reconstruction-based methods [37, 38, 46] learn normal patterns from all training videos by gradually filtering out anomalies with large\nreconstruction errors. Self-training methods [1, 27, 35, 47] first generate pseudolabels, which are then used as supervision for training, achieving state-of-the-art\nperformance recently.\nAll current UVAD methods are purely data-driven, performing unsupervised\nlearning by identifying abnormal patterns in videos. However, these methods\nheavily rely on the feature representation and data distribution, often struggling\nto capture less salient anomalies. In reconstruction-based methods [37, 38, 46],\nwhere normal and abnormal patterns are easily memorized by the autoencoder,\nimperceptible abnormal events may be easily overlooked. Self-training methods\nuse data-driven strategies to generate pseudo-labels. For instance, GCL identifies\nanomalies based on local contrast in video snippets. They focus on high-contrast\nanomalies, potentially leading to the problem of anomalies attenuation, i.e.,\noverlooking less salient anomalies with low contrast. Al et al . [1] separate normal\nand anomalies by clustering over the entire dataset, making it challenging to\ndistinguish them without pre-defined normal events. This challenge is illustrated\nin Figure 1, showing results from previous representative methods [1, 46, 47]. We\ncan see that results from different methods vary significantly, and they can easily\nmiss less salient anomalies.\nIn essence, UVAD is highly ill-posed. There still lacks a common definition\nof “what an anomaly is” in the community, and simply relying on data to detect\nanomalies is prone to failure. We tackle this problem from a different perspective.\nUnlike previous methods driven by data, our idea is to leverage data-irrelevant\nprior knowledge about normal and abnormal events to aid in identifying anomalies. By characterizing what normal and abnormal events look like beyond the\n\n\fLearning Anomalies with Normality Prior for UVAD\n\n3\n\ndata, this prior knowledge helps address ambiguities between normal and abnormal events that cannot be resolved from a purely data-driven perspective,\nleading to more effective anomaly detection.\nWhat is good prior knowledge for UVAD? It should be both informative\nand of high quality. We draw inspiration from the area of saliency detection [7,\n16, 17, 45]. Concretely, inspired by the boundary prior [7, 45] commonly used\nin traditional saliency detection methods, we introduce a normality prior, that\nis, the start and end of a video are mostly normal. It is more robust than the\ncenter prior [14, 19] for anomalies because anomalies can be located far away\nfrom the temporal center but rarely touch the temporal boundary. We validate\nthe normality prior on several datasets, as shown in Figure 2, which shows that\ncompared to random selection, using our normality prior to select normal snippets is significantly more accurate. A more detailed experimental discussion is\npresented in Section 4.3.\nHow should the prior knowledge be used? A straightforward method is to\ndirectly compare other snippets with the normal prior, i.e., start and end snippets of a video. However, since normal frames vary over time, the similarities\nbetween the normal prior and distant normal frames can be very large. They can\nbe easily mislabeled without considering the temporal and semantic consistency\nof video snippets. In this paper, we propose Normality Propagation, which aims\nto propagate the normal information based on relationships between video snippets to estimate the normal magnitudes of unlabeled snippets, which represent\nthe normal degree they received. Different from traditional label propagation in\nsemi-supervised learning, our normality propagation features several innovations:\n1) To overcome the limitation of no labeled snippets, we propose to use the normality prior to specify normal snippets. 2) We propose a temporally-modulated\nfeature-based similarity matrix to model pairwise similarities. 3) We apply the\npropagation in a more efficient way, i.e., over snippets in a video instead of the\nwhole dataset used in traditional label propagation. We then perform unsupervised learning of abnormal detection based on the propagated labels and a new\nloss re-weighting method. They are complementary to normality propagation\nand mitigate the negative impact of incorrectly propagated labels.\nThe main contributions are summarized as follows:\n– Unlike previous UVAD methods that are purely data-driven, we propose to\nuse the data-irrelevant normality prior to identify abnormal events. To the\nbest of our knowledge, such prior has never been studied before in the area\nof UVAD.\n– We introduce normality propagation to effectively propagate the normality\nprior to unlabeled snippets for pseudo label generation.\n– We perform unsupervised learning of abnormal detection based on the propagated labels and a new loss re-weighting method. They are complementary\nto normality propagation and mitigate the negative impact of incorrectly\npropagated labels.\n– Extensive experiments on ShanghaiTech [20] and UCF-Crime [33] demonstrate the effectiveness of the proposed method.\n\n\f4\n\nH. Shi et al.\n\n2\n\nRelated Work\n\nThe literature on video anomaly detection (VAD) is rich. We mostly restrict\nthe discussion to approaches for unsupervised video anomaly detection, label\npropagation, self-training and pseudo labeling.\n2.1\n\nUnsupervised Video Anomaly Detection\n\nVideo Anomaly Detection (VAD) aims to detect abnormal events in video sequences. Full-supervised methods [18, 39] tackle this task with precise annotations. Most existing methods are trained in partial supervision that needs manual annotations. For instance, one-class methods [6, 9, 20, 22, 23, 29, 34, 40, 41, 54]\nuse only normal videos to train the detection model, weakly-supervised methods [5,24,25,31–33,36,42,49,51,55] need video-level annotations during training.\nIn contrast, unsupervised methods [28, 37, 38, 46, 47] attempt to detect anomalies without any manual annotations, which are laborious, expensive, and prone\nto large variations. It remains challenging because abnormal events in UVAD\nare rare, diverse, and usually not well-defined. In the current work, we explore\nunsupervised mode for video anomaly detection.\nExisting UVAD methods [28,37,38,46,47] can be categorized into reconstruction based methods and self-training based methods. These methods are purely\ndata-driven, performing unsupervised learning by identifying abnormal patterns\nin videos. Reconstruction-based methods [37, 38, 46] learn normal patterns from\nall training videos by gradually filtering out anomalies with large reconstruction\nerrors. For instance, Yu et al . [46] design a novel self-paced refinement scheme\nto remove anomalies with the reconstruction model. Tur et al . [37] leverage the\nreconstruction capability of diffusion models to detect anomalies with larger reconstruction errors. They [38] further employ conditional diffusion models to\nimprove detection performance conditioned on compact motion representations.\nHowever, as normal and abnormal patterns are easily memorized by the autoencoder, they easily overlook imperceptible abnormal events.\nSelf-training-based methods [1, 35, 47] have achieved good performance recently. They generate pseudo labels first, then use pseudo labels as self-supervision.\nPseudo labels are generated relying on data-driven strategies. For instance, Zaheer [47] propose a generative cooperative learning method. It identifies anomalies based on the local contrast in video snippets i.e., the difference between consecutive snippets. They may label the boundaries of abnormal events well but\ncan attenuate interior anomalies. Al et al . [1] cluster over the entire dataset to detect anomalies belonging to a smaller cluster. Normal and abnormal videos may\nappear in the same scene, but it is hard to separate them without a pre-defined\nnormal. Thakare et al . [35] use OneClassSVM and iForest to find anomalies that\nlie outside the constructed hypersphere. However, previous UVAD methods are\ndriven by data. They largely rely on feature representation and data distribution.\nThus they easily overlook less salient anomalies. Our idea is to leverage prior\nknowledge about normal events that are irrelevant to the data to help identify\nanomalies.\n\n\fLearning Anomalies with Normality Prior for UVAD\n\n2.2\n\n5\n\nLabel propagation\n\nVariants of label propagation [56] have been applied to various computer vision\ntasks, including learning with noisy labels [11, 26], few-shot learning [3, 21, 30],\nand semi-supervised learning [10, 57]. Method [11] for learning with noisy labels\nproposes a neighbour consistency regularization loss that encourages examples\nwith similar feature representations to have similar predictions. Multi-Objective\nInterpolation Training (MOIT) [26] identifies and refines noisy examples using\nneighbours’ predictions. Liu et al . [21] consider label propagation with stochastic\ngradient descent for episodic few-shot learning. For semi-supervised learning,\nIscen et al . [10] use label propagation to obtain labels for unsupervised data\nbased on their neighbours in the feature space. Label propagation is not directly\napplicable to UVAD as both the initial labels and the similarity matrix are\nunavailable. We propose normality propagation to address these challenges. On\nthe one hand, we propose the data-irrelevant normality prior to specifying the\ninitial labels. On the other hand, we design a temporally-modulated similarity\nmatrix to effectively propagate the normality prior across the video.\n2.3\n\nSelf-training and Pseudo labeling\n\nSelf-training is a simple but effective technique used in unsupervised learning [12,13,52,53], semi-supervised learning [10,43], and weakly-supervised video\nanomaly detection [5, 55]. It initializes pseudo labels first, then uses labels predicted by the model as self-supervision. Zhang et al . [52] first generate saliency\npseudo labels by using contrast-based SOD methods [4,44], then designed a noise\nmodelling module to deal with noises in saliency cues. The unsupervised person\nre-identification method [53] generates pseudo labels based on clustering results,\nthen refines pseudo labels with clustering consensus over training epochs and\ntemporal ensembling techniques. Lee et al . [10] uses the current network to infer\npseudo labels of unlabeled data, and then re-trains the model on both labeled\nand unlabeled data. Zhong et al . [55] propose an alternate training framework for\nweakly supervised VAD, which generates frame-level pseudo labels for abnormal\nvideos according to an action classifier [2]. In this work, we use self-training as an\napproach for UVAD. Our method differs from all prior work in that we propose\na normality prior and introduce normality propagation, which effectively propagates the normality prior to unlabeled snippets for pseudo label generation. We\nalso introduce a loss re-weighting strategy for robust abnormal detection.\n\n3\n\nMethod\n\nProblem Statement. In Unsupervised Video Anomaly Detection (UVAD),\nboth normal and abnormal videos are included in the training set, while annotations are not provided. Assume that we have a set of N training videos, and each\nvideo is divided into a series of non-overlapping snippets. The goal of UVAD is to\nlearn a snippet-level anomaly classifier fθ (·) that predicts the anomaly score of\nthe snippet. A higher score indicates the snippet is more likely to be abnormal.\n\n\f6\n\nH. Shi et al.\n\nSnippet 1\n\nSnippet 2\n\nDetection\nmodel\n\nSnippet T\n\nPredictions\nSupervision\n\nNormality prior\n\nNormality prior\n\nNormal list\n\nTemporally-modulated\nfeature-based similarity\n\n0.8\n\nNormal\nmagnitude\n\nNormality Propagation\n\nPseudo\nlabeling\n\nPropagation\n\nLoss reweighting\n\nCurrent Video\n\nHistory Videos\n\nWeights &amp;\nPseudo labels\n0.9\n0.8\n0.7\n0.3\n\nNormal\n\n0.9\nAbnormal\n\nSnippets\nfeatures\n\nUnsupervised learning\nof anomaly detection\n\nFig. 3: Overview of our method. We first use the normality prior to specify that the\nstart and end of a video are normal. Then we propose a new normality propagation method to propagate the normal information based on the temporally-modulated\nfeature-based similarity for estimating normal magnitudes. After that, We perform unsupervised learning of abnormal detection based on the propagated labels and a new\nloss re-weighting method.\n\nOverview. As previous methods are purely data-driven, they heavily rely on\nfeature representation and data distribution, thereby often struggling to capture\nless distinct anomalies. To address this challenge, our key idea is to leverage datairrelevant prior knowledge about normal/abnormal events to aid in identifying\nanomalies in videos. By characterizing what normal and abnormal events look\nlike beyond the data, this prior knowledge helps address ambiguities between\nnormal and abnormal events that cannot be resolved from a purely data-driven\nperspective, leading to more effective anomaly detection. Figure 3 illustrates an\noverview of our method. We first describe the normality prior in natural videos,\nand use it to specify normal snippets in a video. Then we propose normality\npropagation to propagate normal knowledge based on the temporally-modulated\nfeature-based similarity matrix to estimate the normal magnitudes of unlabeled\nsnippets. After propagation, unsupervised learning of abnormal detection is performed based on the propagated labels and a new re-weighting method.\nFeature Extraction. Following [33, 47], we utilize a fixed-weight backbone\nnetwork to extract features for each snippet. Formally, we denote features in a\nvideo as X ∈ RD×L , where L and D are the number of video snippets of a video\nand the feature dimension.\n3.1\n\nNormality Prior in Our Method\n\nWe propose to use a prior about normal events in natural videos, namely normality prior. Such prior has never been studied in previous methods, but it can\nhelp address challenges faced by purely data-driven methods.\nOur normality prior is that the start and end of a video are mostly normal. It\nis inspired by the boundary prior [7,16,17,45] widely used in traditional saliency\ndetection methods: the image boundary is mostly background. The boundary\n\n\fLearning Anomalies with Normality Prior for UVAD\n\n7\n\nprior is more general that the center prior [14, 19] to identify anomalies because\nanomalies can be located far away from the temporal center, but they rarely\ntouch the temporal boundary. This prior is validated on several anomaly detection datasets, as statistical analysis in Figure 2 and experimental discussion in\nSection 4.3.\n3.2\n\nNormality Propagation\n\nNormality propagation aims to effectively propagate the normality prior to the\nunlabeled snippets for pseudo label generation. Given features of a video with\nL snippets X, we propagate normal knowledge over video snippets based on\npairwise similarities for estimating their normal magnitudes z, which represent\nthe normal degree they received.\nAs normal videos contain normal snippets only, we only specify the first and\nend snippets in a video as normal and do not mark any abnormal ones. We first\ndefine a label vector y ∈ RL with yi = 1 if i = 1 or i = L and yi = 0 otherwise.\nClearly, y is consistent with the initial normal magnitudes of video snippets.\nConsidering that normal and abnormal events are temporally consistent, and\nthey are similar by themselves but frames between them vary greatly, we propose a temporally-modulated feature-based similarity matrix to model pairwise\nsimilarities, as shown in Figure 4. We define a matrix W ∈ RL×L to describe the\nproximity of snippets in the feature space and temporal domain. We construct\nW by computing the snippets’ feature space similarities and then modulating\nthem by their respective temporal positions. Specifically, we define a similarity\nmatrix Wf computed in the feature-space as:\n  \\mathbf {W}^f_{i,j} = \\begin {cases} \\exp \\left ( -\\frac {\\Vert \\mathbf {x}_i - \\mathbf {x}_j \\Vert ^2}{2\\sigma ^2} \\right ), &amp; \\text {if } i \\neq j \\\\ 0, &amp; \\text {otherwise, } \\end {cases} \n\n(1)\n\nwhere xi denotes the i-th snippet feature in a video, σ = 0.1 is a hyper-parameter\nto control the strength of the similarity. A similar matrix Wt is defined in the\ntime-space, and elements are computed from the time stamps. For L snippets,\nthe time stamps are defined as t = {1, 2, · · · , L}, and each element in Wt is\ncomputed as:\n  \\mathbf {W}^t_{i,j} = \\begin {cases} \\exp \\left ( -\\frac {\\vert t_i - t_j \\vert }{L} \\right ), &amp; \\text {if } i \\neq j \\\\ 0, &amp; \\text {otherwise, } \\end {cases} \n\n(2)\n\nwhere ti denotes the i-th snippet time stamp in a video. We then compute\ntemporally-modulated feature-based similarity matrix W as:\n  \\mathbf {W}_{i,j} = \\mathbf {W}^f_{i,j} \\cdot \\mathbf {W}^t_{i,j}. \n\n(3)\n\nWi,j therefore specifies the temporally weighted similarity between snippets i\nand j. Its symmetrically normalized counterpart S = D−1/2 WD−1/2 , in which\nD is a diagonal matrix with its (i, i)-element equal to the sum of the i-th row of\nW.\n\n\f8\n\nH. Shi et al.\n\n0.1\n\nFeature-based\nsimilarity\n\n4\n\n5\n\n6\n\n7\n\nDistance\n\n3\n\n8\n\nTemporal-based\nsimilarity\n\n0.9\n0.8\n0.1\n0.3\n0.1\n\nTemporally-modulated\nfeature-based similarity\n\n0.1\n\nSnippets features\n\nFig. 4: Temporally-modulated featurebased similarity.\n\nNormal list\n\nAdditional\nabnormal scores Pseudo labels\n\nFig. 5: Loss re-weighting strategy.\n\nNormality propagation is to let every snippet iteratively spread its normal\nknowledge to its neighbours until a global stable state is achieved, that is, iterate\nz(n + 1) = αSz(n) + (1 − α)y until convergence, where α is a hyper-parameter\nin the range (0, 1), n is the index of an iteration, and z(0) = y. The iterative\nprocess converges to a simple solution: z∗ = (1 − α)(I − αS)−1 y, which is clearly\nequivalent to\n ~\\label {equ:np} \\mathbf {z}^* = (\\mathbf {I} - \\alpha \\mathbf {S})^{-1} \\mathbf {y}, \n(4)\nwhere I is the identity matrix. z∗ can be efficiently obtained by using the conjugate gradient from the linear system (I − αS)z∗ = y. Derivations refer to the\nsupplementary material.\nIt is interesting to observe that the vector z∗ as defined by Eq.(4) is equivalent\nto the solver of the following objective function:\n \\label {equ:lp1} \\mathcal {Q}(\\mathbf {z}) = \\alpha \\mathbf {z}^T \\mathbf {S} \\mathbf {z} + (1-\\alpha ) (\\mathbf {z} - \\mathbf {y})^T (\\mathbf {z} - \\mathbf {y}), \n\n(5)\n\nThe first term encourages similar snippets to get the same predictions, while\nthe second term attempts to maintain predictions for the specified normal examples [56].\nThe optimized normal magnitudes of snippets in a video z∗ indicate different\ndegrees of normal knowledge that they received from the normality prior and\ntheir neighbours. A higher value means that this snippet is more likely to be\nnormal, and vice versa.\nDiscussion. The normality prior specifies normal snippets effectively. By\ncharacterizing what normal events look like beyond the data, this prior knowledge helps address ambiguities between normal and abnormal events that cannot\nbe resolved from reconstruction-based methods [37,38,46] and the global clusterbased methods [1]. Besides, normality propagation leverages the normality prior\nin a more effective way than directly comparing the video snippets with the normal prior. It estimates the normal magnitudes of each snippet not only based on\nthe labeled normal snippets but also takes into account their neighbours’ normal\nmagnitudes. Thus normal snippets that are far away from specified ones will be\naffected by their normal neighbours and then can be labeled correctly. Besides,\nthe previous “anomalies attenuation” problem is significantly alleviated because\nanomalies in a video are usually different from normal. In addition, normality\npropagation is a transductive method. It is easy to implement, fast and suitable\nfor generating pseudo labels for UVDA.\n\n\fLearning Anomalies with Normality Prior for UVAD\n\n3.3\n\n9\n\nUnsupervised Learning of Abnormal Detection\n\nWe perform unsupervised learning of abnormal detection based on the propagated labels and a new loss re-weighting method. They are complementary to\nnormality propagation and mitigate the negative impact of incorrectly propagated labels.\nPseudo Labeling. We generate pseudo-labels based on normal magnitudes.\nVideo-level pseudo labels are generated first, and then snippet-level pseudo labels\nare generated. Specifically, we select N nor videos that have lower video scores\nthan normal videos, where the video score is defined as the standard deviation\nof normal magnitudes of snippets in a video. Standard deviations of abnormal\nvideos will be large as the abnormal video contains both normal and abnormal\nsnippets. After that, we select snippets that have lower r% normality scores in\nthe abnormal video as abnormal snippets. Finally, we formulate the pseudo label\nof the t-th snippet in the i-th video as\n  \\hat {y}^i_t = \\begin {cases} 1, &amp; \\text {if } i \\in \\mathcal {I}^\\text {abn} \\land t \\in \\mathcal {I}^\\text {abn}_i \\\\ 0, &amp; \\text { otherwise, } \\end {cases} \n\n(6)\n\nwhere I abn is the set of indexes of abnormal videos, Iiabn is the set of indexes of\nabnormal snippets in the i-th video.\nLoss Re-weighting. Because a few videos may not follow the normality\nprior and the normality propagation is imperfect, we will have incorrect pseudo\nlabels. We propose a loss re-weighting strategy to mitigate the negative impact of\nthe noisy pseudo labels. As shown in Figure 5, we first select N hnor high-confident\nnormal videos and use the mean feature of each selected video to construct the\nnormal list M = {m0 , m1 , · · · , mN hnor }. We then estimate additional abnormal\nscores based on the global normal list. For a snippet xq , its additional score is\ndefined as\n  d_{q} = \\min _{\\mathbf {m}_i \\in \\mathcal {M}} 1 - \\langle \\mathbf {x}_q, \\mathbf {m}_i \\rangle , \n(7)\nwhere ⟨·, ·⟩ is the cosine similarity between two vectors. The additional abnormal\nscore estimates the probability of a snippet being abnormal in a global view. It\nis complementary to the pseudo labels generated by normality propagation in a\nlocal view. Then, the reliability is measured by the discrepancy between pseudo\nlabels and additional normal-based anomaly scores. We further formulate the\nloss weight of the snippet xq as\n  w_q = \\exp \\left (-\\vert d_{q} - \\hat {y}_{q} \\vert \\right ). \n\n(8)\n\nThe loss re-weighting strategy penalizes pseudo-labels with high discrepancy to\nguide the learning through reliable pseudo-labels.\nAfter pseudo labels and their loss weights are generated, we train a classification model with the weighted binary cross-entropy loss as\n ~\\label {equ:bce_loss} \\mathcal {L} = \\frac {1}{\\vert \\mathcal {X} \\vert } \\sum _{\\mathbf {x}_i \\in \\mathcal {X}} - w_i \\hat {y}_i \\log (s_i) - w_i (1-\\hat {y}_i) \\log (1-s_i), \n\n(9)\n\n\f10\n\nH. Shi et al.\n\nwhere X is the set of video snippets in a mini-batch, si = fθ (xi ) is the anomaly\nprediction of the i-th snippet.\n\n4\n\nExperiment\n\nIn this section, we first provide experimental details, then draw comparisons\nwith the existing UVAD methods, and finally study different components of our\nmethod.\n4.1\n\nExperimental details\n\nEvaluation Datasets. We evaluate our method on two popular video anomaly\ndetection datasets: ShanghaiTech [20] and UCF-Crime [33].\nShanghaiTech [20] is a popular dataset used in video anomaly detection.\nIt contains 437 campus surveillance videos (330 normal videos, 107 abnormal\nvideos) with different locations spanning and camera angles. Recent UVAD\nmethods follow the data organization of [55] but do not use annotations in the\ntraining set. Specifically, the training set contains 63 abnormal videos and 175\nnormal videos, and the testing set contains 44 abnormal videos and 155 normal\nvideos.\nUCF-Crime [33] is a large-scale video anomaly detection dataset. It consists\nof 1900 real-world surveillance videos (950 normal videos, 950 abnormal videos)\nwith 13 different types of realistic abnormal events. It is a complex dataset due\nto videos containing diverse backgrounds and durations. Recent UVAD methods\nfollow the data organization of [33] but without using training video labels.\nSpecifically, the training split has 810 abnormal and 800 normal videos, while\nthe testing split has 140 abnormal and 150 normal videos.\nEvaluation Metrics. Following prior work [37, 47], we use the frame-level\narea under the ROC curve (AUC) for evaluation and comparisons. Lager AUC\nvalues indicate better performance.\nImplementation Details. We use two backbones, i.e., ResNext3d [8] and\nI3D [2], to extract features for each snippet receptively. Our detection model is\ncomposed of a temporal convolution and two linear layers. During our training\nprocedure, each mini-batch consists of 30 randomly selected videos, and each\nvideo is sampled into 32 snippets. We train the model for 300 epochs with the\nRMSprop optimizer using a learning rate of 0.0001 and a momentum of 0.6. We\nset α = 0.99 for normality propagation, N nor as the number of normal videos in\nthe training set, and the abnormal ratio r% = 40%. Besides, we set the number\nof high confident normal videos N hnor = h ∗ N nor , and h = 0.1.\n4.2\n\nComparison with State-of-the-art Methods\n\nIn Table 1, we compare the proposed method with existing unsupervised video\nanomaly detection methods [37, 38, 47] on two different datasets, i.e., ShanghaiTech [20] and UCF-Crime [33]. Selected weakly-supervised and one-class\n\n\fLearning Anomalies with Normality Prior for UVAD\n\n11\n\nTable 1: Comparison with state-of-the-art methods in AUC (%) on ShanghaiTech and\nUCF-Crime. We divide the methods into weakly-supervised, one-class, and unsupervised. Best results are in bold. We implemented [46] and [1] and computed their AUC\nscores.\n\n89.67\n90.12\n93.13\n91.51\n94.83\n97.21\n91.46\n86.21\n\n75.41\n83.03\n83.37\n81.40\n83.28\n82.30\n84.30\n86.22\n82.61\n84.16\n79.84\n\nLu et al . [23]\nBODS [40]\nGODS [40]\nOGNet [48]\nZaheer et al . [47]\n\nI3D\nI3D\nResNext\nResNext\n\n68.00\n69.90\n79.62\n\n65.51\n68.26\n70.46\n69.47\n74.20\n\nDyAnNet [35]\nC2FPL [1]\nOurs\nKim et al . [15]\nLBR-SPR [46]\nGCL [47]\nTur et al . [37]\nTur et al . [38]\nC2FPL [1]\nOurs\n\nI3D\nI3D\nI3D\nResNext\nResNext\nResNext\nResNext\nResNext\nResNext\nResNext\n\n88.32\n56.47\n77.12\n78.93\n68.88\n66.36\n67.36\n86.46\n\n79.76\n80.65\n80.02\n52.00\n57.18\n71.04\n62.91\n63.52\n74.71\n76.64\n\nUnsupervised\n\nWeakly-supervised\n\nFeatures ShanghaiTech UCF-Crime\n\nOne-class\n\nMethod\n\nSultani et al . [33]\nC3D\nCLAWS [49]\nC3D\nCLAWS Net+ [50] C3D\nMIST [5]\nC3D\nRTFM [36]\nC3D\nMIST [5]\nI3D\nRTFM [36]\nI3D\nZhang et al . [51]\nI3D\nCLAWS [49]\nResNext\nCLAWS Net+ [50] ResNext\nZaheer et al . [47] ResNext\n\nmethods [36,40,48,51] are presented for reference. We reimplement LBR-SPR [46]\non our dataset splits and C2FPL [1] on ResNext features for fair comparisons.\nAs we can see, our method outperforms almost all previous methods on different features. We establish a new state-of-the-art on ShanghaiTech with 86.46%\nAUC and UCF-Crime with 76.64% AUC with ResNext as the backbone. We also\nachieve comparable performance using I3D as the backbone.\nIn addition, Unsupervised methods [1,37,47] still perform inferior to weaklysupervised ones [5, 33] because no annotations are provided in UVAD. But our\nmethod achieves better performance than one-class methods [40, 50], verifying\nthe effectiveness of the unsupervised setting in video anomaly detection.\n4.3\n\nAblation Study and Analysis\n\nWe conduct a series of ablation studies to understand better how the proposed\nmethod works, where we use ResNext [8] as the backbone to extract features.\nValidation of Normality Prior. In this experiment, we validate the normality prior to the experimental performance. Table 2 shows the precision and\n\n\f12\n\nH. Shi et al.\n\nTable 2: Precision (%) and Recall (%) of pseudo labels generated by normality propagation with Random, Data-driven Prior, and Normality Prior as labeled normal snippets, as well as corresponding testing performance (AUC %).\nShanghaiTech\nUCF-Crime\nPrecision Recall TestAUC Precision Recall TestAUC\nRandom\nData-driven Prior\nNormality Prior\n\n17.90\n19.74\n34.39\n\n29.27\n24.64\n42.92\n\n81.69\n83.59\n85.96\n\n13.28\n15.19\n20.37\n\n42.41\n48.23\n54.28\n\n60.33\n68.51\n75.99\n\nTable 3: Ablation study of normality propagation. T, F, and T&amp;F mean Temporalbased, Feature-based, and Temporally-modulated Feature-based pairwise similarities.\nThe metric is AUC (%).\nPairwise Similarity ShanghaiTech UCF-Crime\nDirect Comparison\n\n-\n\n72.33\n\n71.22\n\nNormality Propagation\n\nT\nF\nT&amp;F\n\n79.62\n79.73\n85.96\n\n57.99\n63.01\n75.99\n\nrecall of pseudo labels generated by using normality propagation with random,\nthe data-driven prior, and the normality prior as labeled normal snippets. It\nalso shows the corresponding testing performance. As we can see, specified normal snippets with the normality prior generate better pseudo labels and testing\nperformance. It is more informative than data-driven prior because the latter\noften favors simple, similar normal snippets, e.g., assuming snippets exhibiting\nminimal contrast are considered normal. We also validate its robustness beyond\nthese standard benchmarks in the supplementary material.\nAblation Study of Normality Propagation. How to use the normality\nprior is very important. We compare different strategies for generating pseudo\nlabels using the specified normal snippets, including making direct comparisons\nwith specified normal snippets, normality propagation with temporal-based (T),\nfeature-based (F), and temporally-modulated feature-based (T&amp;F) pairwise similarities. The testing performances are presented in Table 3. Direct comparison\nhas inferior performance than normality propagation with T&amp;F. This is because\ndirect comparison overlooks relationships between unlabeled snippets. In addition, our T&amp;F pairwise similarity outperforms T or F pairwise similarity that\nonly uses the similarity in the time-space or feature-space because we take into\naccount temporal and feature similarities simultaneously. In summary, the proposed normality propagation effectively propagates the normality prior to unlabeled snippets based on the T&amp;F pairwise similarities matrix. It mostly benefits\nfrom knowledge in labeled normal snippets as well as temporal and semantic\nconsistency in unlabeled snippets to generate pseudo labels.\nAblation Study on Loss Re-weighting. In this experiment, we validate\nthe effectiveness of the proposed loss re-weighting strategy. The results are shown\n\n\fLearning Anomalies with Normality Prior for UVAD\nTable 4: Ablation study on the effectiveness of the loss re-weighting (LR) in our\nmethod.\n\nTable 5: Ablation study on different\nvalues of high confident normal videos,\nwhere we set different h.\n\nShanghaiTech UCF-Crime\nOurs w/o LR\nOurs\n\n85.96\n86.46\n\n75.99\n76.64\n\n13\n\n0.1\n\n0.3\n\n0.5\n\nShanghaiTech 86.46 86.18 86.24\nUCF-Crime 76.64 76.63 76.42\n\n01_0177 (ShanghaiTech)\n\nExplosion013 (UCF-Crime)\n\nExplosion021 (UCF-Crime)\n\nNormal_Videos063 (UCF-Crime)\n\nGround-truth\n\nGCL\n\nC2FPL\n\nLBR-SPR\n\nOurs\n\nFig. 6: Qualitative results. Curves represent the predicted anomaly scores. The grey\nbackground corresponds to the ground truth. The white and black arrows denote the\nlocations of normal and abnormal frames displayed on the left.\n\nin Table 4. As we can see, our method with normality propagation achieves good\nperformance over two datasets. By adding the normal-based loss re-weight, we\nobtain better performance. This is because it provides the global normal information for re-weighting pseudo labels, which is complementary to the normality\npropagation that generates pseudo labels in a local view. This also verified that\nour loss re-weighting strategy can mitigate the negative effects of incorrectly\npropagated labels.\nAblation Study of hyperparameters. The number of highly confident\nnormal videos N hnor is an important hyperparameter in our normal-based loss\nre-weighting. We set it as h∗N nor , and N nor is set as the number of normal videos\nof the corresponding dataset. Here we test its sensitivity on two datasets. Results\nare presented in Table 5. Our method consistently achieves AUC higher than 86%\non ShanghaiTech and 76% on UCF-Crime. Thus, our method is insensitive to\nN hnor . More experimental results refer to the supplementary material.\n\n\f14\n\nH. Shi et al.\nNormal_Videos882\n\nGround-truth\n\nGCL\n\nC2FPL\n\nLBR-SPR\n\nOurs\n\nFig. 7: A failure case on UCF-Crime.\n\n4.4\n\nQualitative Analysis\n\nFigure 6 shows some examples of detection results of our method and three\nprevious representative methods, i.e., one reconstruction-based method LBRSPR [46], and two self-training methods GCL [47] and C2FPL [1]. Our method\ncan detect the abnormal event well and predict abnormal scores of the normal\nframes very close to zero. In abnormal examples of Explosion013 (UCF-Crime)\nand 01_0177 (ShanghaiTech), compared with other data-driven methods, our\nmethod locates anomalies more accurately. This is because our method uses\nthe normality prior effectively. It helps address ambiguities between normal and\nabnormal events that cannot be resolved from a purely data-driven perspective,\nleading to more effective anomaly detection.\nLimitation. As our method is built on the semantic consistency of normal\nevents, inevitably, it fails when there are multiple types of normal events in a\nvideo, as shown in Figure 7 shows a typical failure case: A normal video captured\nfrom different angles. Nevertheless, our method performs well in most videos, as\nshown in Figure 6. In the future, we will explore combining with other methods\nthat focus on detecting anomalies in multiple scenes to overcome this limitation.\n\n5\n\nConclusion\n\nUnlike existing methods driven by data, this paper leverages data-irrelevant prior\nknowledge for UVAD. We first propose a new normality prior, suggesting that the\nstart and end of a video are predominantly normal. We then introduce normality\npropagation, which propagates normal knowledge based on relationships between\nvideo snippets to estimate normal magnitudes of unlabeled snippets. Finally, we\nperform unsupervised learning of abnormal detection based on the propagated\nlabels and a new loss re-weighting method. Extensive experiments indicate that\nour method outperforms existing state-of-the-art methods.\n\nAcknowledgements\nThis work was supported in part by National Science and Technology Major\nProject under Grant 2023ZD0121300, National Natural Science Foundation of\nChina under Grants 62088102, 12326608 and 62106192, Natural Science Foundation of Shaanxi Province under Grant 2022JC-41, and Fundamental Research\nFunds for the Central Universities under Grant XTR042021005.\n\n\fLearning Anomalies with Normality Prior for UVAD\n\n15\n\nReferences\n1. Al-Lahham, A., Tastan, N., Zaheer, M.Z., Nandakumar, K.: A coarse-to-fine\npseudo-labeling (c2fpl) framework for unsupervised video anomaly detection. In:\nWACV. pp. 6793–6802 (2024)\n2. Carreira, J., Zisserman, A.: Quo vadis, action recognition? a new model and the\nkinetics dataset. In: CVPR. pp. 6299–6308 (2017)\n3. Chen, C., Yang, X., Xu, C., Huang, X., Ma, Z.: Eckpn: Explicit class knowledge\npropagation network for transductive few-shot learning. In: CVPR. pp. 6596–6605\n(2021)\n4. Cheng, M.M., Mitra, N.J., Huang, X., Torr, P.H., Hu, S.M.: Global contrast based\nsalient region detection. IEEE TPAMI 37(3), 569–582 (2014)\n5. Feng, J.C., Hong, F.T., Zheng, W.S.: Mist: Multiple instance self-training framework for video anomaly detection. In: CVPR. pp. 14009–14018 (2021)\n6. Gong, D., Liu, L., Le, V., Saha, B., Mansour, M.R., Venkatesh, S., Hengel, A.v.d.:\nMemorizing normality to detect anomaly: Memory-augmented deep autoencoder\nfor unsupervised anomaly detection. In: ICCV. pp. 1705–1714 (2019)\n7. Grady, L., Jolly, M.P., Seitz, A.: Segmentation from a box. In: ICCV. pp. 367–374\n(2011)\n8. Hara, K., Kataoka, H., Satoh, Y.: Can spatiotemporal 3d cnns retrace the history\nof 2d cnns and imagenet? In: CVPR. pp. 6546–6555 (2018)\n9. Hasan, M., Choi, J., Neumann, J., Roy-Chowdhury, A.K., Davis, L.S.: Learning\ntemporal regularity in video sequences. In: CVPR. pp. 733–742 (2016)\n10. Iscen, A., Tolias, G., Avrithis, Y., Chum, O.: Label propagation for deep semisupervised learning. In: CVPR. pp. 5070–5079 (2019)\n11. Iscen, A., Valmadre, J., Arnab, A., Schmid, C.: Learning with neighbor consistency\nfor noisy labels. In: CVPR. pp. 4672–4681 (2022)\n12. Ji, H., Wang, L., Zhou, S., Tang, W., Zheng, N., Hua, G.: Meta pairwise relationship distillation for unsupervised person re-identification. In: ICCV. pp. 3661–3670\n(2021)\n13. Ji, W., Li, J., Bi, Q., Guo, C., Liu, J., Cheng, L.: Promoting saliency from depth:\nDeep unsupervised rgb-d saliency detection. In: ICLR (2022)\n14. Judd, T., Ehinger, K., Durand, F., Torralba, A.: Learning to predict where humans\nlook. In: ICCV. pp. 2106–2113 (2009)\n15. Kim, J.H., Kim, D.H., Yi, S., Lee, T.: Semi-orthogonal embedding for efficient\nunsupervised anomaly segmentation. arXiv preprint arXiv:2105.14737 (2021)\n16. Lempitsky, V., Kohli, P., Rother, C., Sharp, T.: Image segmentation with a bounding box prior. In: ICCV. pp. 277–284 (2009)\n17. Li, H., Lu, H., Lin, Z., Shen, X., Price, B.: Inner and inter label propagation: salient\nobject detection in the wild. IEEE TIP 24(10), 3176–3186 (2015)\n18. Liu, K., Ma, H.: Exploring background-bias for anomaly detection in surveillance\nvideos. In: ACM MM. pp. 1490–1499 (2019)\n19. Liu, T., Yuan, Z., Sun, J., Wang, J., Zheng, N., Tang, X., Shum, H.Y.: Learning\nto detect a salient object. IEEE TPAMI 33(2), 353–367 (2010)\n20. Liu, W., Luo, W., Lian, D., Gao, S.: Future frame prediction for anomaly detection–\na new baseline. In: CVPR. pp. 6536–6545 (2018)\n21. Liu, Y., Lee, J., Park, M., Kim, S., Yang, E., Hwang, S.J., Yang, Y.: Learning\nto propagate labels: Transductive propagation network for few-shot learning. In:\nICLR (2019)\n\n\f16\n\nH. Shi et al.\n\n22. Liu, Z., Nie, Y., Long, C., Zhang, Q., Li, G.: A hybrid video anomaly detection\nframework via memory-augmented flow reconstruction and flow-guided frame prediction. In: ICCV. pp. 13588–13597 (2021)\n23. Lu, C., Shi, J., Jia, J.: Abnormal event detection at 150 fps in matlab. In: ICCV.\npp. 2720–2727 (2013)\n24. Lv, H., Yue, Z., Sun, Q., Luo, B., Cui, Z., Zhang, H.: Unbiased multiple instance\nlearning for weakly supervised video anomaly detection. In: CVPR. pp. 8022–8031\n(2023)\n25. Lv, H., Zhou, C., Cui, Z., Xu, C., Li, Y., Yang, J.: Localizing anomalies from\nweakly-labeled videos. IEEE TIP 30, 4505–4515 (2021)\n26. Ortego, D., Arazo, E., Albert, P., O’Connor, N.E., McGuinness, K.: Multi-objective\ninterpolation training for robustness to label noise. In: CVPR. pp. 6606–6615\n(2021)\n27. Pang, G., Shen, C., van den Hengel, A.: Deep anomaly detection with deviation\nnetworks. In: ACM SIGKDD. pp. 353–362 (2019)\n28. Pang, G., Yan, C., Shen, C., Hengel, A.v.d., Bai, X.: Self-trained deep ordinal\nregression for end-to-end video anomaly detection. In: CVPR. pp. 12173–12182\n(2020)\n29. Park, H., Noh, J., Ham, B.: Learning memory-guided normality for anomaly detection. In: CVPR. pp. 14372–14381 (2020)\n30. Rodríguez, P., Laradji, I., Drouin, A., Lacoste, A.: Embedding propagation:\nSmoother manifold for few-shot classification. In: ECCV. pp. 121–138 (2020)\n31. Sapkota, H., Yu, Q.: Bayesian nonparametric submodular video partition for robust\nanomaly detection. In: CVPR. pp. 3212–3221 (2022)\n32. Shi, H., Wang, L., Zhou, S., Hua, G., Tang, W.: Abnormal ratios guided multiphase self-training for weakly-supervised video anomaly detection. IEEE TMM 26,\n5575–5587 (2023)\n33. Sultani, W., Chen, C., Shah, M.: Real-world anomaly detection in surveillance\nvideos. In: CVPR. pp. 6479–6488 (2018)\n34. Sun, S., Gong, X.: Hierarchical semantic contrast for scene-aware video anomaly\ndetection. In: CVPR. pp. 22846–22856 (2023)\n35. Thakare, K.V., Raghuwanshi, Y., Dogra, D.P., Choi, H., Kim, I.J.: Dyannet: A\nscene dynamicity guided self-trained video anomaly detection network. In: WACV.\npp. 5541–5550 (2023)\n36. Tian, Y., Pang, G., Chen, Y., Singh, R., Verjans, J.W., Carneiro, G.: Weaklysupervised video anomaly detection with robust temporal feature magnitude learning. In: ICCV. pp. 4975–4986 (2021)\n37. Tur, A.O., Dall’Asen, N., Beyan, C., Ricci, E.: Exploring diffusion models for unsupervised video anomaly detection. In: ICIP. pp. 2540–2544 (2023)\n38. Tur, A.O., Dall’Asen, N., Beyan, C., Ricci, E.: Unsupervised video anomaly detection with diffusion models conditioned on compact motion representations. In:\nICIAP. pp. 49–62 (2023)\n39. Wan, B., Jiang, W., Fang, Y., Luo, Z., Ding, G.: Anomaly detection in video\nsequences: A benchmark and computational model. IET Image Processing 15(14),\n3454–3465 (2021)\n40. Wang, J., Cherian, A.: GODS: Generalized one-class discriminative subspaces for\nanomaly detection. In: ICCV. pp. 8201–8211 (2019)\n41. Wang, L., Tian, J., Zhou, S., Shi, H., Hua, G.: Memory-augmented appearancemotion network for video anomaly detection. PR 138, 109335 (2023)\n\n\fLearning Anomalies with Normality Prior for UVAD\n\n17\n\n42. Wu, P., Liu, J., Shi, Y., Sun, Y., Shao, F., Wu, Z., Yang, Z.: Not only look, but also\nlisten: Learning multimodal violence detection under weak supervision. In: ECCV.\npp. 322–339 (2020)\n43. Xie, Q., Luong, M.T., Hovy, E., Le, Q.V.: Self-training with noisy student improves\nimagenet classification. In: CVPR. pp. 10687–10698 (2020)\n44. Yan, Q., Xu, L., Shi, J., Jia, J.: Hierarchical saliency detection. In: CVPR. pp.\n1155–1162 (2013)\n45. Yang, C., Zhang, L., Lu, H., Ruan, X., Yang, M.H.: Saliency detection via graphbased manifold ranking. In: CVPR. pp. 3166–3173 (2013)\n46. Yu, G., Wang, S., Cai, Z., Liu, X., Xu, C., Wu, C.: Deep anomaly discovery from\nunlabeled videos via normality advantage and self-paced refinement. In: CVPR.\npp. 13987–13998 (2022)\n47. Zaheer, M.Z., Mahmood, A., Khan, M.H., Segu, M., Yu, F., Lee, S.I.: Generative\ncooperative learning for unsupervised video anomaly detection. In: CVPR. pp.\n14744–14754 (2022)\n48. Zaheer, M.Z., Lee, J.h., Astrid, M., Lee, S.I.: Old is gold: Redefining the adversarially learned one-class classifier training paradigm. In: CVPR. pp. 14183–14193\n(2020)\n49. Zaheer, M.Z., Mahmood, A., Astrid, M., Lee, S.I.: CLAWS: Clustering assisted\nweakly supervised learning with normalcy suppression for anomalous event detection. In: ECCV. pp. 358–376 (2020)\n50. Zaheer, M.Z., Mahmood, A., Astrid, M., Lee, S.I.: Clustering aided weakly supervised training to detect anomalous events in surveillance videos. IEEE TNNLS\n(2022)\n51. Zhang, C., Li, G., Qi, Y., Wang, S., Qing, L., Huang, Q., Yang, M.H.: Exploiting\ncompleteness and uncertainty of pseudo labels for weakly supervised video anomaly\ndetection. In: CVPR. pp. 16271–16280 (2023)\n52. Zhang, J., Zhang, T., Dai, Y., Harandi, M., Hartley, R.: Deep unsupervised saliency\ndetection: A multiple noisy labeling perspective. In: CVPR. pp. 9029–9038 (2018)\n53. Zhang, X., Ge, Y., Qiao, Y., Li, H.: Refining pseudo labels with clustering consensus\nover generations for unsupervised object re-identification. In: CVPR. pp. 3436–\n3445 (2021)\n54. Zhao, Y., Deng, B., Shen, C., Liu, Y., Lu, H., Hua, X.S.: Spatio-temporal autoencoder for video anomaly detection. In: ACM MM. pp. 1933–1941 (2017)\n55. Zhong, J.X., Li, N., Kong, W., Liu, S., Li, T.H., Li, G.: Graph convolutional label\nnoise cleaner: Train a plug-and-play action classifier for anomaly detection. In:\nCVPR. pp. 1237–1246 (2019)\n56. Zhou, D., Bousquet, O., Lal, T., Weston, J., Schölkopf, B.: Learning with local and\nglobal consistency. NeurIPS 16, 321–328 (2003)\n57. Zhuang, F., Moulin, P.: Deep semi-supervised metric learning with mixed label\npropagation. In: CVPR. pp. 3429–3438 (2023)\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"