"<!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>This CVPR paper is the Open Access version, provided by the Computer Vision Foundation.\nExcept for this watermark, it is identical to the accepted version;\nthe final published version of the proceedings is available on IEEE Xplore.\n\nJoint Learning of General and Diverse Patterns with Mixture of Memory\nExperts for Weakly-Supervised Video Anomaly Detection\nBo Sun1,2 *, Junxi Chen1 *, Zhe Wu2,3†, Feng Gao4 , Fan Yang4 , Li Su1†, Yaowei Wang2,5 ,\n1\nUniversity of Chinese Academy of Sciences\n2\nInstitute of Perceptual Intelligence, Pengcheng Laboratory\n3\nPazhou Lab, 4 Peking University, 5 Harbin Institute of Technology, Shenzhen,\n{sunbo24, chenjunxi22}@mails.ucas.ac.cn, wuzh02@pcl.ac.cn,\n{gaof, fyang.eecs}@pku.edu.cn, suli@ucas.ac.cn, yaoweiwang@gmail.com\n\nAbstract\nWeakly-supervised Video Anomaly Detection (wVAD)\naims to detect abnormal events using only binary labels,\nmaking it challenging to capture both the diversity of\nanomalies and their shared semantic cues. Existing methods either focus on a generic anomaly pattern, achieving\nstrong generalization but weak discrimination, or rely on\nclass-level diversity modeling, which ignores shared semantics and suffers from limited generalization. To overcome these limitations, we propose the Mixture of Memory\nExperts (MoME), a unified framework that jointly learns\ngeneral and diverse patterns. Each expert in MoME possesses an internal memory for fine-grained specialization\nand shares an external memory for general knowledge aggregation. To enhance semantic diversity and improve generalization beyond coarse class-level supervision, we introduce an Anomaly Prototype Router (APR) that leverages\nlarge language models to construct generalized anomaly\nprototypes for semantically guided expert routing. Moreover, balanced routing, expert diversity, and enhanced pattern discriminability are ensured by the regularization loss\nfor APR, the distinctiveness loss for experts, and reconstruction together with memory tasks, respectively. Extensive experiments on UCF-Crime and XD-Violence demonstrate that our approach achieves state-of-the-art performance, validating the effectiveness of jointly modeling generality and diversity for robust anomaly detection.\n\n1. Introduction\nVideo Anomaly Detection (VAD) aims to automatically identify abnormal events, thereby alleviating the\nheavy workload of human monitors and enabling timely\n* Equal contribution.\n† Corresponding authors.\n\nMotion\nChange\n\nExplosion Anomaly\ndegree\n\nShoplifting\n\n(a)\n\nNormal\n\nMotion\nChange\n\nAssault\n\nAnomaly\ndegree\nNormal\n\n(b)\n\nAbuse\n\nArrest\n\nMotion\nChange\n\nArrest\n\nAnomaly\ndegree\n\n(c)\nAnomaly Sample\nNormal Sample\n\nAnomaly General Pattern\nNormal General Pattern\n\nAnomaly Pattern\nNormal Pattern\n\nFigure 1. (a) Conventional wVAD methods learn a single generic\nanomaly pattern, ignoring anomaly diversity. (b) Class-specific\nmethods rely on coarse labels for forced classification, improving\nseparability but missing global semantics and causing confusion.\n(c) Our method models both general and diverse patterns and encourages semantic diversity in the feature space.\n\nresponses. This capability is crucial for a wide range of\napplications, including security surveillance [5, 15], traffic\nmonitoring [24] and industrial process control [7]. Since\ncollecting frame-level annotations for training are arduous,\nrecent studies are mainly turn to weakly-supervised VAD\n(wVAD) [4, 9, 14, 19, 28] which only leverages video-level\nlabels.\nTo identify abnormal events, traditional wVAD methods [9,18,21,28,45], as in Fig. 1(a), typically learn a generic\n\n35638\n\n\fanomaly pattern by treating all abnormal samples as homogeneous under binary supervision. Such a general pattern\npromotes cross-scene generalization but lacks discriminative ability, as real-world anomalies are inherently diverse in\ntheir visual characteristics and semantic cues. For example,\nanomalies like shoplifting involve subtle action semantics,\nwhereas events such as explosions exhibit drastic scene dynamics and salient global changes. A single unified pattern\nis therefore too coarse to represent such diverse phenomena\neffectively.\nRecent works [2, 37, 38] begin to model anomaly diversity under explicit class supervision, as illustrated in\nFig. 1(b). These methods partition the feature space according to class labels [37, 38] or assign different anomaly\ncategories to dedicated subnetworks [2]. Although such\ndesigns enhance discriminative capability, they inevitably\ncompromise generalization. First, predefined class labels\nlack broad conceptual information and often cause overfitting within specific class clusters. For example, the model\nmay overfit to the class shoplifting, leading normal actions\nsuch as picking up an item, which share similar visual contexts, to be misclassified as anomalies. Second, class labels\nis typically too coarse and lacks semantic richness, ignoring\nintra-class variations and inter-class similarities.\nWe argue that a robust anomaly detection model should\nsimultaneously learn both general and diverse patterns,\nwhere the former enhances generalization ability and the\nlatter provides more discriminative representations. Moreover, diversity should be modeled through semantic guidance that captures fine-grained contextual cues rather than\nrelying on coarse class labels. To this end, we propose the\nMixture of Memory Experts (MoME) network, which consists of a Mixture of Normal Memory Experts (MoNE) for\nnormal patterns and a Mixture of Anomaly Memory Experts (MoAE) for anomalies. These components jointly\nmodel general and diverse patterns, achieving stronger discriminability while preserving generalization, as illustrated\nin Fig. 1(c). Specifically, each expert in MoME possesses\nan internal memory to capture feature diversity and shares\nan external memory to encode general representations. To\nobtain more expressive representations beyond coarse class\nlabels, we introduce the Anomaly Prototype Router (APR),\nwhich leverages Large Language Models (LLMs) to obtain generalized anomaly prototypes and employs a learnable expert-prototype matrix constrained by a regularization\nloss to encourage semantic-aware routing. Furthermore, a\nsparse MoE design is incorporated to encourage each expert\nto specialize in distinct representations, with a distinctiveness loss enforcing inter-expert diversity.\nIn summary, our main contributions are as follows:\n• We propose a Mixture of Memory Experts network,\nwhere each expert’s internal memory captures diverse\npatterns, while a shared external memory encodes gen-\n\neral knowledge. This design enables the joint learning\nof general and diverse patterns, preserving generalization ability while enhancing discriminative capacity.\n• We introduce an Anomaly Prototype Router, which\nassigns LLM-generated semantic prototypes to each\nframe and allocates them through a learnable expertprototype matrix constrained by a regularization loss\nto model generalizable semantic diversity.\n• Extensive experiments on two benchmarks demonstrate that our method achieves state-of-the-art performance and strong generalization.\n\n2. Related Work\n2.1. Weakly-Supervised Video Anomaly Detection\nWeakly-supervised Video Anomaly Detection (wVAD)\naims to detect anomalous events using only video-level supervision. Most wVAD methods [9,18,21,28,41] follow the\nMultiple Instance Learning (MIL) paradigm, where a video\nis modeled as a bag of snippets and most anomaly instances\nin positive bags are encouraged to outscore normal ones in\nnegative bags through a ranking-based loss. To improve\ndiscriminability, feature-based approaches [31, 44] exploit\nintrinsic feature statistics, such as feature magnitude [31]\nor deviations from the BatchNorm mean [44]. Meanwhile,\nmultimodal methods [4, 22, 29, 37] incorporate auxiliary\nmodalities, including optical flow [6, 30], audio [4, 34],\nand textual information [22, 29], to enhance robustness\nand semantic understanding. More recently, Large VisionLanguage Models (LVLMs) have been explored [30, 37, 40]\nto exploit rich cross-modal semantic knowledge, improving\ninterpretability and anomaly reasoning capability.\n\n2.2. Mixture of Experts\nThe MoE framework, first introduced by Jacobs et\nal. [11], decomposes complex problems into simpler subtasks handled by specialized experts, while a router assigns inputs to relevant expert. Later, Shazeer et al. [26]\ndemonstrated its scalability for large-scale deep learning\nwith thousands of feed-forward sub-networks, and Lepikhin\net al. [13] extended it to vision via V-MoE with sparse activation. Recently, large-scale models such as GPT [1],\nQwen [3], and DeepSeek [8, 16] have adopted MoE mechanisms to enhance scalability and efficiency. MoE has\nonly recently been explored in video anomaly detection.\nD’Amicantonio et al. [2] employed a dense MoE with classspecific experts trained on class-labeled data, where the expert count was tied to anomaly classes, limiting generalization and diversity due to coarse class granularity. In contrast, we adopt a sparse MoE that integrates anomaly semantics and decouples the number of experts from anomaly\nclasses, leading to improved generalization and flexibility.\n\n35639\n\n\fFigure 2. Overall proposed framework. (1) The MoME framework jointly learns general patterns via the external memory and diverse patterns through multiple experts. (2) The Anomaly Prototype Router (APR) leverages LLM-derived semantic prototypes to capture anomaly\nsemantic diversity beyond coarse class labels. (3) The regularization loss Lreg and expert balance loss Lba ensure balanced routing; the\ndistinctiveness loss Ldiv encourages expert diversity; and the reconstruction and memory tasks enhance pattern discriminability.\n\n3. Method\n3.1. Overview\nGiven normal and anomaly training videos with a fixed\nlength of T frames, denoted as Vn = {Vni }Ti=1 and Va =\n{Vai }Ti=1 , our training objective is to identify the anomalous\na\nsubset Vâ = {Vâi }Ti=1\ncontaining Ta frames, where â denotes truly anomalous. Each frame is labeled with a binary\nlabel Y ∈ {0, 1}, where Y = 1 for anomalous and Y = 0\nfor normal. At inference, the model produces frame-level\nanomaly scores ranging from 0 to 1. As illustrated in Fig. 2,\nframe-level features are first extracted using a frozen visual\nencoder [23], which outputs visual features of dimension d,\ndenoted as Vn , Va ∈ RT ×d . These features are then temporally modeled following [37] to obtain temporal representations Xn , Xa ∈ RT ×d . The proposed Mixture of Normal\nMemory Experts (MoNE) and Mixture of Anomaly Memory Experts (MoAE) jointly learn general and diverse patterns, generating memory-augmented features that are subsequently fed into a detector to produce anomaly scores.\nShared memory blocks capture general patterns, while the\nrouting mechanism, which comprises the router and its corresponding experts, models diverse ones. Moreover, regularization and expert balance losses ensure balanced routing, distinctiveness loss encourages experts diversity, and\n\nreconstruction and memory tasks enhance pattern discriminability.\n\n3.2. Mixture of Memory Experts Network\nMixture of Normal Memory Experts. MoNE is proposed to jointly learn general and diverse normal patterns.\nWe capture diverse normal patterns via a Latent Router\n(LR), a linear layer that adaptively distributes input features\nto multiple latent normal experts, due to the absence of explicit supervision of normal data. Given normal temporal\nfeatures Xn ∈ RT ×d , the latent routing scores are computed as:\n\u0001\nGln = Wl XnT +b, Rnl = Softmax TopKv (Gln , k) , (1)\nwhere Wl ∈ REn ×d and b ∈ R1 are learnable parameters, and En denotes the number of normal experts. Gln ∈\nRT ×En represents the routing scores for all latent normal\nexperts, while Rnl ∈ RT ×k denotes the normalized routing weights of the top k selected experts, where TopKv (·)\nreturns the top k values.\nUsing the routing scores Gln , each normal snippet is\nassigned to its most relevant expert, resulting in expertn\nspecific subsets Xn = {Xni ∈ RTi ×d }E\ni=1 , where Ti denotes the number of snippets assigned to the i-th expert.\nDetails of the snippets-to-experts assignment algorithm are\n\n35640\n\n\fprovided in the supplementary material due to space limitations. Each expert processes its subset using a shared\nN\nexternal normal memory Mext\n∈ Rm×d , consisting of m\nmemory slots, to jointly learn general and diverse normal\npatterns. The pattern-augmented outputs are defined as:\nSnN , HnN =\n\nEn\nX\n\nl\nN\nRn,i\nΦln,i (Xni , Mext\n),\n\nOld External\nMemory\n\nH\nc\nInternal\nMemory\n\nread\n\n×\n\nkey\n\n𝑆𝑒𝑥𝑡\n\n×\n\n×\n\nread\n\n+\n\n×\n×\n\nupdate\n\n·\n\nσ\n\nadd\n\ngate\n\nkey\n\n(2)\n\n×\n\n𝑆𝑒𝑥𝑡\n\nNew External\nMemory\n\n1-σ\n\ni=1\nl\nwhere Rn,i\nis the routing weight of the i-th latent normal\nexpert, and Φln,i (·) denotes its output given Xni and shared\nN\nmemory Mext\n. SnN ∈ RT ×m and HnN ∈ RT ×d denote the\n\nweighted memory similarities across all normal experts and\naggregated normal representations, respectively.\nAnomaly Filter. Given the anomaly features Xa ∈\nRT ×d , they are fed into MoNE to produce SaN and HaN .\nAnomalous snippets are identified as those with the lowest\nsimilarity to normal patterns:\n\u0001\nIâ = TopKI 1 − SaN , Ta ,\n(3)\nTa\n\nwhere Iâ ∈ R represents the indices of the most Ta\nanomalous snippets, with TopKI (·) returns the top k indices. The corresponding refined anomaly-related features\nand similarity matrices are denoted as:\nVâ = Va [Iâ ] ∈ RTa ×d ,\n\nMemory Expert\n\nXâ = Xa [Iâ ] ∈ RTa ×d ,\n\nHâN = HaN [Iâ ] ∈ RTa ×d ,\n\nSâN = SaN [Iâ ] ∈ RTa ×m .\n(4)\nMixture of Anomaly Memory Experts. Given the\nanomaly temporal feature Xâ filtered by MoNE, the final\nanomaly memory-augmented representation is computed\nas:\nEj\nX X\nj\nA\nA\nA\nFâ,i\nSâ , Hâ =\nΦja,i (Xâi , Mext\n),\n(5)\nj∈{l,e} i=1\ne\nl\nwhere Fâ,i\nand Fâ,i\nrepresent the Adaptive-Fuser weights\nassociated with the i-th explicit and latent anomaly experts,\nrespectively, which will be detailed in Section 3.4. Their\ncorresponding outputs, Φea,i (·) and Φla,i (·), are derived from\nA\nthe input Xâ and the shared anomaly memory Mext\n. Here,\nA\nTa ×m\nSâ ∈ R\nrepresents the weighted memory similarity\nacross all anomaly experts, and HâA ∈ RTa ×d denotes the\naggregated anomaly-aware features. Similarly, we compute\nSnA and HnA for normal temporal features Xn .\n\n3.3. Memory Expert\nAs shown in Fig. 3, the memory expert models general\npatterns via the external memory Mext and specific patterns\nvia the internal memory Min , both in Rm×d , where m and d\ndenote the number of memory slots and the feature dimension, respectively. All experts share the same architecture.\nMemory Reading. As an example, consider the i-th normal expert with temporal feature sequence Xni ∈ RTi ×d .\n\n𝑆𝑖𝑛\n\n×\n\nquery\n\nerase\n\nX\n\nFigure 3. Illustration of the architecture of a memory expert. Each\nexpert contains an internal memory module for learning specialized patterns and an external memory input for learning general\npatterns.\n\nBoth Xni and the memory matrices are projected into a\nshared embedding space:\nQ = Xni Wq ,\n\nKin = Min Wk ,\n\nKext = Mext Wk , (6)\n\nd×d\n\nwhere Wq , Wk ∈ R\nare learnable matrices. Here, Q ∈\nRTi ×d is the query, and Kin , Kext ∈ Rm×d are the keys\nfor Min and Mext , respectively. Memory similarities are\ncomputed via scaled dot-product attention:\n\u0010 ⊤\u0011\n\u0010 ⊤ \u0011\nQK\nQKext\n√\nSin = σ √din , Sext = σ\n,\n(7)\nd\nwhere σ(·) is the sigmoid function applied along the memory dimension. The final memory-augmented representation is obtained by reading from both memories and concatenating their outputs:\nH = concat(Sin Min , Sext Mext ),\n\n(8)\n\nTi ×2d\n\nwhere H ∈ R\nencodes both general and expertspecific knowledge.\nMemory Updating. The internal memory is trained via\nbackpropagation to capture expert-specific features, while\nthe external memory is dynamically updated with an eraseand-write mechanism to store more knowledge [27, 33].\nGiven Xni , we compute three features:\nVe = σ(fe (Xni )), Vg = σ(fg (Xni )), Va = tanh(fa (Xni )),\n(9)\nwhere fe , fg , fa are linear layers and Ve , Vg , Va ∈ RTi ×d\nare the erase, gate, and add features. σ(·) constrains values to [0, 1] for selective erasure and writing, while tanh(·)\nmaps values to [−1, 1], enabling positive and negative updates. The external memory similarity scores Sext weight\nthe erase and add features via outer products:\nVE = Sext ⊗ Ve ,\nTi ×m×d\n\nVA = Sext ⊗ Va ,\n\n(10)\n\nwhere VE , VA ∈ R\ndenote the weighted erase and\nadd features, respectively. The add features is modulated by\nthe gate features and normalized for stability:\nVA ⊙ Vg\nV̂A =\n,\n(11)\n||VA ⊙ Vg ||2\n\n35641\n\n\fAveraging across all snippet features yields fused erase and\nadd features V̄E , V̄A ∈ Rm×d . Finally, the external memory\nis updated via the erase-add operation with learning rate α:\n\nexperts:\nLinter =\n\nN \u0012\nX\nk=1\n\nMext = Mext ⊙ (1 − αV̄E ) + αV̄A .\n\nµk −\n\n1\nN\n\n\u00132\n+2\n\nN X\nX\n\n|Ai,k Aj,k |, (16)\n\nk=1 i&lt;j\n\n(12)\n\nwhere µk denotes the mean of the k-th column of A, || · ||F\nis the Frobenius norm. The total regularization loss Lreg is\ncomputed as the sum of the intra and inter terms.\n\nAnomaly videos include class labels that provide explicit guidance for learning diverse anomaly patterns. To\nexploit this supervision, we introduce the Anomaly Prototype Router (APR). Although class-specific information\nhelps model anomaly diversity, directly using class labels,\nas in [2], is often suboptimal since anomalies may span multiple classes, making fixed class-dependent experts difficult\nto train.\nTo address this issue, we prompt several large language\nmodels with the original anomaly class names and manually select the most generalizable outputs, referred to as\nAnomaly Prototypes (APs). APR aims to enhance semantic representations beyond discrete labels, encouraging the\nmodel to capture intra-class diversity and align semantically\nrelated patterns across categories.\nGiven the APs, we extract semantic features T ∈ Rn×d\nand video features Vâ ∈ RTa ×d using CLIP’s text and visual encoders, where n is the number of prototypes. Both\nmodalities are normalized, and the cross-modal similarity is\ncomputed as:\n\u0012\n\u0013⊤ !\nVâ\nT\n1\n·\n,\n(13)\nS = Softmax\nτ ∥Vâ ∥2 ∥T ∥2\n\nWhile the APR explicitly routes samples based on semantic information, some latent anomaly patterns may remain unexplored. To capture these latent relation we also\nintroduce an latent Router (LR), which adaptively learns latent anomaly diversity:\n\u0001\nGlâ = Wl XâT + b, Râl = Softmax TopKv (Glâ , k) , (17)\n\n3.4. Anomaly Prototype Router\n\nwhere τ is a temperature parameter controlling the sharpness of similarity scores, and S ∈ RTa ×n denotes the normalized visual-textual similarity distribution.\nTo associate each AP with its corresponding experts,\nwe introduce a learnable expert-prototype allocation matrix\nA ∈ REe ×n , where Ee is the number of explicit anomaly\nexperts. The expert routing scores are then computed as:\nGeâ = SA⊤ ,\n\nRâe = Softmax(TopKv (Geâ , k)) ,\n\nTo effectively integrate explicit and latent cues, we design an Adaptive Fuser (AF), a conditional network that\nadaptively fuses the routing results from APR and LR.\nGiven the temporal anomaly features Xâ , AF re-evaluates\nthe routing weights of the selected explicit and latent experts.\nXâ is first projected via a linear layer to obtain auxiliary routing features Zx ∈ RTa ×2k . The explicit scores Râe\nare then z-score normalized to match the mean and standard deviation of Râl , and concatenated with it to form the\njoint routing representation Zv ∈ RTa ×2k . In parallel, we\nretrieve expert identity embeddings Zi ∈ RTa ×2k×d from a\nlearnable identity matrix I ∈ R(Ee +El )×d . The fused representation is defined as:\nZ = concat(Zv , Zi , Zx ),\n\nE\n\n(15)\n\nwhere the entropy term encourages sparsity, and the orthogonality term enforces diversity across experts. The interexpert regularization encourages balanced utilization of all\n\n(18)\n\nwhich is passed through a lightweight network to produce\nthe final routing weights:\nFâe , Fâl = Fâ = Wf ReLU(ZWz + bz ) + bf ,\n\n(14)\n\nwhere Geâ ∈ RTa ×Ee denotes the routing scores for all explicit experts, and Râe ∈ RTa ×k represents the normalized\ntop k routing weights.\nTo ensure balanced expert routing, we introduce intraand inter-expert regularizations on the routing matrix A.\nThe intra-expert regularization promotes sparsity and diversity among expert activations:\ne\n1 X\n2\nH(Ai ) + AA⊤ − IE F ,\nLintra = −\nN i=1\n\nwhere Wl ∈ REl ×d and b ∈ R are learnable parameters,\nwith El representing the number of latent anomaly experts.\nGlâ ∈ RTa ×El denotes the routing scores for all latent experts, and Râl ∈ RTa ×k represents the normalized routing\nweights of the selected top k experts.\n\n(19)\n\nwhere Wz ∈ R(d+2)×d , Wf ∈ Rd×1 , and bz ∈ Rd , bf ∈ R1\nare learnable parameters. Here, Fâe , Fâl ∈ RTa ×k denote\nthe re-evaluates routing weights for the Top-k explicit and\nlatent experts, respectively.\n\n3.5. Model Optimization\nWe directly utilize the discriminative memoryaugmented features from MoME for anomaly detection.\nThe final frame-level anomaly scores are computed as:\n\u0001\n\u0001\nyn = MLP HnN , yâ = MLP HâA ,\n(20)\nwhere MLP denotes a lightweight anomaly detector shared\nacross normal and abnormal features, optimized with a bi-\n\n35642\n\n\fnary classification loss:\nLcls = BCE(yn , 0) + BCE(yâ , 1).\n\n(21)\n\nTo guide MoNE and MoAE in learning respective patterns, we introduce a reconstruction task. Two linear\ndecoders dn (·) and da (·) reconstruct features: RnN =\ndn (HnN ), RnA = da (HnA ), RâA = da (HâA ), RâN = dn (HâN ),\nand the reconstruction loss is:\nX\nX\n\u0001\nLrec =\nMSE(Ri , Vi ) + δ 1 −\nMSE(Ri , Vi ) , (22)\ni∈P\n\ni∈N\n\nwhere MSE denotes the mean squared error, δ(·) is the\nReLU function, Vi are CLIP features, and P = {nN , âA }\nand N = {nA , âN } denote the positive and negative sets,\nrespectively. Besides, following [43], we employ memorybased supervision:\nLm = BCE(SnN , 1) + BCE(SâN , 0)\n+ BCE(SnA , 0) + BCE(SâA , 1),\n\n(23)\n\nTo ensure expert diversity, we employ an expert balancing loss [26]. Given routing score matrix G ∈ Rl×e , where l\ndenotes the feature sequence length and e denotes the number of experts, we first aggregate routing scores over all tokens to obtain Ĝ ∈ Re . The balancing loss is then defined\nas:\n\u0001\nLba = CV Ĝ ,\n(24)\nwhere CV(·) denotes the squared coefficient of variation.\nThis loss is applied to the normal latent routing score (Gln ),\nthe anomaly latent routing score (Glâ ), and the fused weight\n(Fâ ):\n\u0001\n\u0001\n\u0001\nLb = Lba Gln + Lba Glâ + Lba Fâ .\n(25)\nAs load balancing does not ensure diversity—similar inputs may still be assigned to overlapping experts—we introduce a memory distinctiveness loss that maximizes the\npairwise ℓ1 distances among expert memories. Let Ea =\nEe + El be the total number of anomaly experts, and\na,i\nn,i\nMin\nand Min\ndenote the i-th anomaly and normal internal\nmemory matrices, respectively. The distinctiveness loss is\ndefined as:\nX\nEk (Ek − 1)\n.\n(26)\nLdiv =\nP\nk,i\nk,j\n∥1\n2 i&lt;j ∥Min\n− Min\nk∈{a,n}\n\ncovers diverse sources including movies, sports events, and\nsurveillance footage, and defines violence broadly, providing a comprehensive benchmark for multimodal and robust\nanomaly detection methods.\nEvaluation Metrics. Consistent with prior work [4, 12,\n28, 34, 36], we report the frame-level area under the ROC\ncurve (AUC) on UCF-Crime. For XD-Violence, we adopt\nthe average precision (AP) metric following the standard\nevaluation protocol.\n\n4.2. Implementation Details\nWe employ the visual and text encoders of the pretrained CLIP model (ViT-B/16) [23] to extract video and\ntext features. During training, the batch size is set to 128.\nThe initial learning rate is 1 × 10−4 for UCF-Crime and\n4 × 10−5 for XD-Violence. The MoNE network comprises\n24 latent experts, while the MoAE includes both explicit\nand latent experts, each with 12 experts. For all three types\nof experts, the number of activated experts is fixed at k = 1\nduring both training and inference. The video length T is\nset to 256, and the number of anomalous frames Ta is fixed\nat 16. Additional implementation details are provided in the\nsupplementary material.\nTable 1. Comparison with other methods. The best results are in\nbold, and the second-best are underlined.\nMethods\n\nFeature\n\nUCF (AUC %)\n\nXD (AP %)\n\nSemi\n\nSVM baseline\nOCSVM [25]\nHasan et al. [10]\n\nCLIP\nCLIP\nCLIP\n\n50.10\n63.20\n51.20\n\n50.80\n28.63\n31.25\n\nWeakly\n\nSultani et al [28]\nRTFM [31]\nUR-DMU [43]\nGS-MOE [2]\n\nC3D\nI3D\nI3D\nI3D\n\n75.41\n84.30\n86.97\n91.58\n\n75.68\n77.81\n81.77\n82.89\n\nWeakly\n\nUMIL [18]\nCLIP-TSA [12]\nOVVAD [35]\nIFS-VAD [42]\nTPWNG [38]\nVadCLIP [37]\nFederatedVAD [32]\nDEN-VAD [39]\nITC [17]\nMoME\n\nCLIP\nCLIP\nCLIP\nCLIP\nCLIP\nCLIP\nCLIP\nCLIP\nCLIP\nCLIP\n\n86.75\n87.58\n86.40\n86.57\n87.79\n88.02\n85.07\n87.86\n89.04\n88.32\n\n82.19\n66.53\n84.14\n83.68\n84.51\n74.23\n86.13\n85.45\n86.15\n\n4.3. Comparisons with SOTA methods\n\n4. Experimental\n4.1. Datasets and Evaluation Metrics\nDatasets. We evaluate MoME on two large-scale video\nanomaly detection benchmarks: UCF-Crime [28] and XDViolence [34]. UCF-Crime contains 1,900 untrimmed\nsurveillance videos across 13 anomaly categories (e.g., Assault, Burglary, Explosion), with video-level weak annotations. Its long normal segments, cluttered backgrounds, and\nlarge intra-class variation make it highly challenging. XDViolence consists of 4,754 untrimmed videos with multimodal annotations (visual, audio, and video-level labels). It\n\nThe proposed method is compared with the following\nSOTA approaches, which can be categorized into semisupervised methods [10, 25] and weakly supervised methods [2, 12, 18, 28, 31, 32, 35, 37–39, 42, 43]. The comparison\nresults are summarized in Table 1. Our method achieves\nthe best performance on the XD-Violence dataset, reaching a peak AP of 86.15%. On the UCF-Crime dataset,\nour MoME remains highly competitive among CLIP-based\napproaches, achieving an AUC of 88.32%. The ITC and\nGS-MoE methods learn class-specific representations. Although they perform strongly on UCF-Crime, their perfor-\n\n35643\n\n\fEvent Count\nVideo Number\nVadCLIP\nMoME\n\n1\n237\n91.62\n95.10\n\n2\n105\n73.22\n81.76\n\n3\n58\n73.18\n76.72\n\n4\n26\n71.47\n82.76\n\n5\n15\n54.24\n70.32\n\n6\n23\n52.03\n60.99\n\n7\n17\n66.82\n75.40\n\n8\n7\n55.18\n58.92\n\n9\n3\n42.90\n46.06\n\n10\n1\n82.03\n74.90\n\n11\n2\n70.01\n68.42\n\n12\n1\n32.76\n38.35\n\n14\n1\n75.21\n73.74\n\n16\n1\n53.93\n66.81\n\n17\n1\n51.80\n56.26\n\n18\n1\n60.30\n41.96\n\n23\n1\n74.36\n65.70\n\nTable 2. Comparison between MoME and VadCLIP across different anomalous event counts per video (%).\n\nMoNE\n\nMoAE\n\n✓\n\n✓\n✓\n\n✓\n✓\n✓\n✓\n✓\n✓\n\n✓\n✓\n✓\n✓\n✓\n\nMext\n\n✓\n✓\n✓\n✓\n\nAF\n\nAPR\n\n✓\n✓\n\nLR\n\n✓\n✓\n✓\n\n✓\n✓\n✓\n\n✓\n✓\n✓\n✓\n\n✓\n✓\n\n✓\n\nUCF (AUC %)\n\nXD (AP %)\n\n69.72\n60.67\n87.08\n87.69\n86.57\n86.78\n88.32\n\n26.95\n33.15\n80.79\n81.94\n82.86\n80.49\n86.15\n\nTable 3. Ablation studies of proposed modules.\nLcls\n\nLm\n\n✓\n✓\n✓\n✓\n✓\n✓\n✓\n\n✓\n✓\n✓\n✓\n✓\n✓\n\nLb\n\n✓\n✓\n✓\n✓\n✓\n\nLdiv\n\nLreg\n\nLrec\n\n✓\n✓\n✓\n\n✓\n✓\n✓\n\n✓\n✓\n\nUCF (AUC %)\n\nXD (AP %)\n\n63.73\n87.58\n87.92\n86.80\n87.72\n88.20\n88.32\n\n26.11\n85.40\n85.55\n85.58\n84.65\n85.88\n86.15\n\nTable 4. Ablation studies of proposed loss functions.\n\n4.4. Ablation Studies\nEffect of proposed modules. Table 3 summarizes the\ninfluence of each module. As our method directly performs anomaly detection on augmented features, using only\nMoNE or MoAE leads to unstable learning and poor performance. Removing the external memory Mext leads to\na notable drop (-1.24% AUC on UCF, -5.36% AP on XD),\nhighlighting its role in capturing general patterns. Further\nexcluding the routing modules (APR, LR) and their experts\nsubstantially degrades performance, showing that both explicit semantic and latent diverse anomaly patterns are indispensable. The Adaptive Fuser (AF) also proves essential\nby balancing these routing pathways. With all modules enabled, our framework achieves the best results of 88.32%\nAUC on UCF-Crime and 86.15% AP on XD-Violence, validating the overall design.\nEffect of proposed tasks. Table 4 summarizes the\ncontribution of each loss term on UCF-Crime and XDViolence. Using only the classification loss Lcls yields poor\nresults (63.73% AUC / 26.11% AP), indicating limited supervision. Adding the memory loss Lm dramatically boosts\nperformance to 87.58% / 85.40%, confirming its key role in\nmemory-guided learning. The balance loss Lb and regularization loss Lreg provide additional gains by encouraging\n\nbalanced expert utilization. The distinctiveness loss Ldiv\npromotes more diverse representations, and the reconstruction loss Lrec further refines feature alignment. When all\nlosses are jointly optimized, the model achieves the best results (88.32% AUC / 86.15% AP), demonstrating the effectiveness of multi-objective optimization.\n100\nAUC (%)\n\nmance drops on XD-Violence, which may be attributed to\nthe lower diversity and higher class separability of UCFCrime. In contrast, our method maintains a more balanced\nperformance across both datasets compared with most previous approaches. These results demonstrate the effectiveness of the proposed joint learning framework in capturing\nboth general and semantically diverse patterns.\n\n50\n\nMoME\n\nVadCLIP\n\nFigure 4. Category-wise performance comparison with VadCLIP.\n\n4.5. Discussions\nRobustness Analysis on Multi-Event Videos. Realworld videos often contain multiple anomalies, making it\nessential to evaluate a model’s ability to detect multiple\nevents within a single video. We assess this capability on\nthe XD-Violence dataset, which includes videos with varying numbers of anomalous events, as shown in Table 2. As\nexpected, detection performance generally decreases as the\nnumber of events increases. For single-event videos, both\nMoME and VadCLIP can achieve AP above 90%, while\nmulti-event cases are more challenging. Although MoME\nperforms slightly lower than VadCLIP in a few cases with\nmore than nine events, such videos are extremely rare and\nhave limited statistical significance. Overall, MoME consistently outperforms the baseline across most event counts,\ndemonstrating stronger robustness in multi-event detection.\nPer-Class Results. Figure 4 presents per-class results of\nMoME and the baseline VadCLIP on UCF-Crime. MoME\nachieves superior performance in most categories, with notable improvements in those involving complex dynamics.\nFor instance, the AUC increases by 53.8% in Assault and by\n10.1% in Robbery. These gains demonstrate the advantage\nof jointly modeling general and semantically diverse patterns. Further analyses are provided in the supplementary\nmaterial.\nCross-dataset results. For a video anomaly detector to\nbe practical in real-world scenarios, strong generalization\nacross different domains is crucial. To assess this capability, we perform cross-dataset evaluations between UCFCrime and XD-Violence, as reported in Table 5. Transferring from UCF to XD is notably more challenging due to\nthe higher diversity and complex anomaly scenes in XDViolence, whereas the reverse direction (XD to UCF) is\nrelatively easier. Despite these challenges, MoME consis-\n\n35644\n\n\fAnomaly Score\n\nBurglary_024\n\nArrest_039\n\nShoplifiting_022\nGT\n\nOurs\n\nStealing_058\n\nNormal_696\n\nVadCLIP\n\nFigure 5. Qualitative results of our method and VadCLIP on the UCF-Crime test videos. The purple shaded regions indicate segments\nwhere abnormal events occur. The Y-axis denotes the anomaly scores, and the X-axis corresponds to the video frame indices.\n\ntently achieves better performance and exhibits comparable performance drops in both transfer directions, indicating\nstronger robustness and cross-domain generalization.\nSource\nTarget\nVadCLIP\nMoME\n\nUCF-Crimes XD-Violence\nUCF-Crimes\n88.02\n88.32\n\n79.95 (↓ 9.17%)\n80.77 (↓,8.55%)\n\nXD-Violence\nUCF-Crimes\nXD-Violence\n84.51\n86.15\n\n53.41 (↓,36.80%)\n54.08 (↓ 37.23%)\n\nTable 5. Cross-dataset comparison results (%).\n\n4.6. Qualitative Results\nAnomaly Scores. We plot the anomaly scores of MoME\nand VadCLIP in Fig. 5. In particular, our method results in\na high abnormal score even for a shoplifting scene where\naction-related cues is important. Moreover, MoME maintains stable low scores on normal videos, whereas VadCLIP\noccasionally produces spurious spikes. Additional examples are provided in the supplementary material.\n\nEmbedding features. To further evaluate our model’s\nability to learn discriminative and semantically diverse representations, we visualize the feature distributions on the\nUCF-Crime test set using t-SNE [20], including the original CLIP features, our model’s augmented features grouped\nby class labels, and those grouped by expert IDs, as illustrated in Fig. 7. The visualization shows that the original\nCLIP features exhibit substantial overlap and confusion between normal and anomalous samples. In contrast, features\nextracted by our model achieve a much clearer separation\nbetween normal and anomalous patterns. However, grouping features by class labels proves suboptimal, as semantically similar samples may be artificially divided. By comparison, grouping by expert IDs yields more coherent and\nsemantically consistent representations.\nNormal\nAbuse\nArrest\nArson\nAssault\nBurglary\nExplosion\nFighting\nRoadAccidents\nRobbery\nShooting\nShoplifting\nStealing\nVandalism\n\nExpert Id\n\nNormal\nAnomaly\n\n(a) Original Visual Feature\n\n(b) MOME-Augmented Feature\nGrouping by Class Label\n\nNormal\nExpert 1\nExpert 2\nExpert 3\nExpert 4\nExpert 5\nExpert 6\nExpert 7\nExpert 8\nExpert 9\nExpert 10\nExpert 11\nExpert 12\n\n(c) MOME-Augmented Feature\nGrouping by Expert ID\n\nFigure 7. Visualization of augmented features on UCF-Crimes.\n\n5. Conclusions\nPrototype Id\n\nPrototype Id\n\nFigure 6. Visualization of expert-prototype allocations. Left:\nwithout regularization; Right: with regularization.\n\nExpert-prototype Allocation Matrix. To illustrate the\neffect of the regularization constraint on the allocation matrix A, we visualize the experts with its most related prototypes in Fig. 6. The left shows training without regularization, while the right includes it. Without regularization, multiple experts focus on similar prototypes, leading\nto redundant allocations and weak expert-prototype associations. With regularization, experts are encouraged to specialize in distinct prototypes, resulting in more strong and\ndiverse allocations. The full results are available in the supplementary material.\n\nIn this paper, we introduced MoME, a sparse Mixtureof-Memory-Experts framework that unifies the learning of\ngeneral and diverse patterns for weakly-supervised video\nanomaly detection. By combining shared external memory\nfor global regularities with expert-specific internal memories for specialization, MoME effectively balances generalization and discrimination. The proposed Anomaly Prototype Router (APR), guided by LLM-derived semantic\nprototypes, enhances explicit diversity learning, while the\nLatent Router enables implicit diversity learning and the\nAdaptive Fuser integrates both explicit and implicit cues.\nComprehensive experiments and analyses demonstrate that\nMoME consistently outperforms prior approaches in both\naccuracy and generalization.\n\n35645\n\n\fAcknowledgments\nThis work was supported in part by the National Nature Science Foundation of China (U25A20441, 62472238,\n62441232) and in part by the Project of Peng Cheng Laboratory (PCL2025A14).\n\nReferences\n[1] Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida,\nJanko Altenschmidt, Sam Altman, Shyamal Anadkat, et al.\nGpt-4 technical report. arXiv preprint arXiv:2303.08774,\n2023. 2\n[2] Giacomo D’ Amicantonio, Snehashis Majhi, Quan Kong,\nLorenzo Garattoni, Gianpiero Francesca, Francois Bremond,\nand Egor Bondarev. Mixture of experts guided by gaussian splatters matters: A new approach to weakly-supervised\nvideo anomaly detection. In Proceedings of the IEEE/CVF\nInternational Conference on Computer Vision, pages 10275–\n10285, 2025. 2, 5, 6\n[3] Jinze Bai, Shuai Bai, Yunfei Chu, Zeyu Cui, Kai Dang,\nXiaodong Deng, Yang Fan, Wenbin Ge, Yu Han, Fei\nHuang, et al. Qwen technical report. arXiv preprint\narXiv:2309.16609, 2023. 2\n[4] Junxi Chen, Liang Li, Li Su, Zheng-jun Zha, and Qingming Huang. Prompt-enhanced multiple instance learning\nfor weakly supervised video anomaly detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and\nPattern Recognition, pages 18319–18329, 2024. 1, 2, 6\n[5] Junxi Chen, Liang Li, Yunbin Tu, Li Su, Zhe Xue, and\nQingming Huang. Generalizing single-frame supervision to\nevent-level understanding for video anomaly detection. In\nThe Thirty-ninth Annual Conference on Neural Information\nProcessing Systems. 1\n[6] MyeongAh Cho, Minjung Kim, Sangwon Hwang, Chaewon Park, Kyungjae Lee, and Sangyoun Lee.\nLook\naround for anomalies: Weakly-supervised anomaly detection via context-motion relational learning. In Proceedings\nof the IEEE/CVF conference on computer vision and pattern\nrecognition, pages 12137–12146, 2023. 2\n[7] Yajie Cui, Zhaoxiang Liu, and Shiguo Lian. A survey on unsupervised anomaly detection algorithms for industrial images. IEEE Access, 11:55297–55315, 2023. 1\n[8] Damai Dai, Chengqi Deng, Chenggang Zhao, RX Xu,\nHuazuo Gao, Deli Chen, Jiashi Li, Wangding Zeng, Xingkai\nYu, Yu Wu, et al. Deepseekmoe: Towards ultimate expert\nspecialization in mixture-of-experts language models. arXiv\npreprint arXiv:2401.06066, 2024. 2\n[9] Jia-Chang Feng, Fa-Ting Hong, and Wei-Shi Zheng. Mist:\nMultiple instance self-training framework for video anomaly\ndetection. In Proceedings of the IEEE/CVF conference\non computer vision and pattern recognition, pages 14009–\n14018, 2021. 1, 2\n[10] Mahmudul Hasan, Jonghyun Choi, Jan Neumann, Amit K\nRoy-Chowdhury, and Larry S Davis. Learning temporal regularity in video sequences. In Proceedings of the IEEE con-\n\nference on computer vision and pattern recognition, pages\n733–742, 2016. 6\n[11] Robert A Jacobs, Michael I Jordan, Steven J Nowlan, and\nGeoffrey E Hinton. Adaptive mixtures of local experts. Neural computation, 3(1):79–87, 1991. 2\n[12] Hyekang Kevin Joo, Khoa Vo, Kashu Yamazaki, and Ngan\nLe. Clip-tsa: Clip-assisted temporal self-attention for\nweakly-supervised video anomaly detection. In 2023 IEEE\nInternational Conference on Image Processing (ICIP), pages\n3230–3234. IEEE, 2023. 6\n[13] Dmitry Lepikhin, HyoukJoong Lee, Yuanzhong Xu, Dehao\nChen, Orhan Firat, Yanping Huang, Maxim Krikun, Noam\nShazeer, and Zhifeng Chen. Gshard: Scaling giant models\nwith conditional computation and automatic sharding. arXiv\npreprint arXiv:2006.16668, 2020. 2\n[14] Shuo Li, Fang Liu, and Licheng Jiao. Self-training multisequence learning with transformer for weakly supervised\nvideo anomaly detection. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 1395–1403, 2022. 1\n[15] Weixin Li, Vijay Mahadevan, and Nuno Vasconcelos.\nAnomaly detection and localization in crowded scenes. IEEE\ntransactions on pattern analysis and machine intelligence,\n36(1):18–32, 2013. 1\n[16] Aixin Liu, Bei Feng, Bin Wang, Bingxuan Wang, Bo Liu,\nChenggang Zhao, Chengqi Dengr, Chong Ruan, Damai Dai,\nDaya Guo, et al. Deepseek-v2: A strong, economical, and\nefficient mixture-of-experts language model. arXiv preprint\narXiv:2405.04434, 2024. 2\n[17] Tianshan Liu, Kin-Man Lam, and Bing-Kun Bao. Injecting text clues for improving anomalous event detection from\nweakly labeled videos. IEEE Transactions on Image Processing, 33:5907–5920, 2024. 6\n[18] Hui Lv, Zhongqi Yue, Qianru Sun, Bin Luo, Zhen Cui, and\nHanwang Zhang. Unbiased multiple instance learning for\nweakly supervised video anomaly detection. In Proceedings\nof the IEEE/CVF conference on computer vision and pattern\nrecognition, pages 8022–8031, 2023. 1, 2, 6\n[19] Hui Lv, Chuanwei Zhou, Zhen Cui, Chunyan Xu, Yong Li,\nand Jian Yang. Localizing anomalies from weakly-labeled\nvideos. IEEE transactions on image processing, 30:4505–\n4515, 2021. 1\n[20] Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. Journal of machine learning research,\n9(Nov):2579–2605, 2008. 8\n[21] Seongheon Park, Hanjae Kim, Minsu Kim, Dahye Kim,\nand Kwanghoon Sohn. Normality guided multiple instance\nlearning for weakly supervised video anomaly detection. In\nProceedings of the IEEE/CVF winter conference on applications of computer vision, pages 2665–2674, 2023. 1, 2\n[22] Yujiang Pu, Xiaoyu Wu, Lulu Yang, and Shengjin Wang.\nLearning prompt-enhanced context features for weaklysupervised video anomaly detection. IEEE Transactions on\nImage Processing, 2024. 2\n[23] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya\nRamesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry,\nAmanda Askell, Pamela Mishkin, Jack Clark, et al. Learning\ntransferable visual models from natural language supervi-\n\n35646\n\n\fsion. In International conference on machine learning, pages\n8748–8763. PmLR, 2021. 3, 6\n[24] Kelathodi Kumaran Santhosh, Debi Prosad Dogra, and\nPartha Pratim Roy. Anomaly detection in road traffic using visual surveillance: A survey. Acm Computing Surveys\n(CSUR), 53(6):1–26, 2020. 1\n[25] Bernhard Schölkopf, Robert C Williamson, Alex Smola,\nJohn Shawe-Taylor, and John Platt. Support vector method\nfor novelty detection. Advances in neural information processing systems, 12, 1999. 6\n[26] Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy\nDavis, Quoc Le, Geoffrey Hinton, and Jeff Dean. Outrageously large neural networks: The sparsely-gated mixtureof-experts layer. arXiv preprint arXiv:1701.06538, 2017. 2,\n6\n[27] Sainbayar Sukhbaatar, Jason Weston, Rob Fergus, et al. Endto-end memory networks. Advances in neural information\nprocessing systems, 28, 2015. 4\n[28] Waqas Sultani, Chen Chen, and Mubarak Shah. Real-world\nanomaly detection in surveillance videos. In Proceedings of\nthe IEEE conference on computer vision and pattern recognition, pages 6479–6488, 2018. 1, 2, 6\n[29] Shengyang Sun, Jiashen Hua, Junyi Feng, Dongxu Wei,\nBaisheng Lai, and Xiaojin Gong. Tdsd: Text-driven scenedecoupled weakly supervised video anomaly detection. In\nProceedings of the 32nd ACM International Conference on\nMultimedia, pages 5055–5064, 2024. 2\n[30] Jiaqi Tang, Hao Lu, Ruizheng Wu, Xiaogang Xu, Ke Ma,\nCheng Fang, Bin Guo, Jiangbo Lu, Qifeng Chen, and Yingcong Chen. Hawk: Learning to understand open-world video\nanomalies. Advances in Neural Information Processing Systems, 37:139751–139785, 2024. 2\n[31] 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 Proceedings of the IEEE/CVF international\nconference on computer vision, pages 4975–4986, 2021. 2,\n6\n[32] Benfeng Wang, Chao Huang, Jie Wen, Wei Wang, Yabo Liu,\nand Yong Xu. Federated weakly supervised video anomaly\ndetection with multimodal prompt. In Proceedings of the\nAAAI Conference on Artificial Intelligence, pages 21017–\n21025, 2025. 6\n[33] Jason Weston, Sumit Chopra, and Antoine Bordes. Memory\nnetworks. arXiv preprint arXiv:1410.3916, 2014. 4\n[34] 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 European conference on computer vision,\npages 322–339. Springer, 2020. 2, 6\n[35] Peng Wu, Xuerong Zhou, Guansong Pang, Yujia Sun, Jing\nLiu, Peng Wang, and Yanning Zhang. Open-vocabulary\nvideo anomaly detection. In Proceedings of the IEEE/CVF\nConference on Computer Vision and Pattern Recognition,\npages 18297–18307, 2024. 6\n[36] Peng Wu, Xuerong Zhou, Guansong Pang, Zhiwei Yang,\nQingsen Yan, Peng Wang, and Yanning Zhang. Weakly\n\nsupervised video anomaly detection and localization with\nspatio-temporal prompts. In Proceedings of the 32nd ACM\nInternational Conference on Multimedia, pages 9301–9310,\n2024. 6\n[37] Peng Wu, Xuerong Zhou, Guansong Pang, Lingru Zhou,\nQingsen Yan, Peng Wang, and Yanning Zhang. Vadclip:\nAdapting vision-language models for weakly supervised\nvideo anomaly detection. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 6074–6082, 2024. 2,\n3, 6\n[38] Zhiwei Yang, Jing Liu, and Peng Wu. Text prompt with normality guidance for weakly supervised video anomaly detection. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 18899–18908,\n2024. 2, 6\n[39] Chen Zhang, Guorong Li, Yuankai Qi, Hanhua Ye, Laiyun\nQing, Ming-Hsuan Yang, and Qingming Huang. Dynamic\nerasing network with adaptive temporal modeling for weakly\nsupervised video anomaly detection. IEEE Transactions on\nNeural Networks and Learning Systems, 2025. 6\n[40] Huaxin Zhang, Xiaohao Xu, Xiang Wang, Jialong Zuo, Xiaonan Huang, Changxin Gao, Shanjun Zhang, Li Yu, and\nNong Sang. Holmes-vau: Towards long-term video anomaly\nunderstanding at any granularity. In Proceedings of the\ncomputer vision and pattern recognition conference, pages\n13843–13853, 2025. 2\n[41] 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 Proceedings of the IEEE/CVF conference on\ncomputer vision and pattern recognition, pages 1237–1246,\n2019. 2\n[42] Yuanhong Zhong, Ruyue Zhu, Ge Yan, Ping Gan, Xuerui\nShen, and Dong Zhu. Inter-clip feature similarity based\nweakly supervised video anomaly detection via multi-scale\ntemporal mlp. IEEE Transactions on Circuits and Systems\nfor Video Technology, 2024. 6\n[43] Hang Zhou, Junqing Yu, and Wei Yang. Dual memory units\nwith uncertainty regulation for weakly supervised video\nanomaly detection. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 37, pages 3769–3777,\n2023. 6\n[44] Yixuan Zhou, Yi Qu, Xing Xu, Fumin Shen, Jingkuan Song,\nand Heng Tao Shen. Batchnorm-based weakly supervised\nvideo anomaly detection. IEEE Transactions on Circuits and\nSystems for Video Technology, 2024. 2\n[45] Yi Zhu and Shawn Newsam.\nMotion-aware feature\nfor improved video anomaly detection. arXiv preprint\narXiv:1907.10211, 2019. 1\n\n35647\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"