"<!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>Aligning Effective Tokens with Video Anomaly in Large Language Models\nYingxian Chen1∗ Jiahui Liu1∗ Ruidi Fan1 Yanwei Li2 Chirui Chang1 Shizhen Zhao1\nWilton W.T. Fok1 Xiaojuan Qi1† Yik-Chung Wu1†\n1\nThe University of Hong Kong 2 The Chinese University of Hong Kong\n{chenyx, liujh, xjqi, ycwu}@eee.hku.hk\n\nequal contributions\n\n†\n\ncorresponding authors\n\nUnderstanding abnormal events in videos is a vital and challenging task that has garnered significant attention in a wide\nrange of applications. Although current video understanding\nMulti-modal Large Language Models (MLLMs) are capable\nof analyzing general videos, they often struggle to handle\nanomalies due to the spatial and temporal sparsity of abnormal events, where the redundant information always leads\nto suboptimal outcomes. To address these challenges, exploiting the representation and generalization capabilities of\nVison Language Models (VLMs) and Large Language Models (LLMs), we propose VA-GPT, a novel MLLM designed\nfor summarizing and localizing abnormal events in various\nvideos. Our approach efficiently aligns effective tokens between visual encoders and LLMs through two key proposed\nmodules: Spatial Effective Token Selection (SETS) and Temporal Effective Token Generation (TETG). These modules\nenable our model to effectively capture and analyze both\nspatial and temporal information associated with abnormal\nevents, resulting in more accurate responses and interactions.\nFurthermore, we construct an instruction-following dataset\nspecifically for fine-tuning video-anomaly-aware MLLMs,\nand introduce a cross-domain evaluation benchmark based\non XD-Violence dataset. Our proposed method outperforms\nexisting state-of-the-art methods on various benchmarks.\n\n1. Introduction\nDetecting and summarizing abnormal events in videos is\ncritical and challenging, and it has garnered considerable\nattention across multiple research domains and real-world\napplications, such as security monitoring, video analysis,\nand crime detection.\nAlthough many traditional methods [4, 16, 37, 43, 47,\n73, 86] have been widely explored for video anomaly detection, they exhibit substantial limitations in their effectiveness [22, 51, 60, 66, 71, 84]. These limitations manifest in two aspects: 1) Traditional video anomaly detection\n\nVisual\nEncoder\n\nVisual Tokens\n\nLLM\n\nLLM\n\nOurs\n\nAbstract\n\nBaseline\n\narXiv:2508.06350v2 [cs.CV] 3 Nov 2025\n\n∗\n\n…\n…\n\n…\n\n…\n\n…\nSpatial Effective Tokens\n…\n\nVisual\nEncoder\nTemporal Effective Tokens\n\n…\n\n…\nVideo\n\ns = 0.04\n\n…\n\n…\ns = 0.16\n\ns = 0.92\n\ns = 0.81\n\nFigure 1. Baseline video understanding MLLM feeds forward every\nvisual token (yellow squares) equally to participate in fine-tuning\nand inference (top row). Different from it, our method focuses on\nthe effective area (unobstructed area in medium video frames) in\neach frame and select the Spatial Effective Tokens (orange squares)\nfor the LLM (see Section 3.2) (filtered tokens are shown as gray\nsquares). At the same time, we generate anomaly-aware Temporal\nEffective Tokens (green squares) (see Section 3.3) based on the\nassigned anomaly scores (denoted as s) of each frame from a pretrained classifier for better temporal localization of anomalies.\n\nmethods [6, 13, 57, 63, 64, 86] essentially approach the\ntask as a closed-set detection and classification problem, inherently limiting their ability to achieve a comprehensive\nunderstanding and interpretation of anomalies; 2) These\nmethods [2, 19, 23, 65, 68, 78] are restricted by a limited\nvocabulary, making it difficult for them to handle unseen or\nnovel situations effectively.\nRecent advancements [1, 28, 34, 36, 45, 58] in Vision\nLanguage Models (VLMs) and Large Language Models\n(LLMs) have demonstrated remarkable capabilities in scene\nunderstanding and comprehensive analysis. Multimodal\nLarge Language Models (MLLMs), particularly those designed for video understanding [27, 29, 31, 39, 42, 74], have\nachieved significant progress in general video analysis tasks.\nHowever, while these models exhibit strong performance\n\n\fin general video understanding, they fall short in accurately\ndetecting and interpreting anomalies.\nFor mitigating the above challenges, some works [12,\n55, 67, 75, 79] proposed anomaly-aware video MLLMs to\nbetter understand the anomalies in videos. Although these\nmodels work well for detecting obvious abnormal events,\nsuch as fighting or fire, they typically struggle to effectively\nalign abnormal regions with relevant captions which requires\naddressing spatial redundancy, and accurately identifying\nabnormal time intervals by mitigating temporal redundancy.\nThis is because these methods treat all latent tokens with\nequal priority across spatial and temporal dimensions. This\nleads to performance degradation caused by redundant tokens unrelated to anomalies. However, in most cases, only\nsmall regions within a few frames contain the essential information help to identify an anomaly (as shown in Figure 1).\nThus, we explore: How can multimodal architectures evolve\nselective token generation and processing mechanisms to\ndynamically prioritize anomaly-salient information while\npreserving comprehensive scene understanding capabilities?\nTo address the aforementioned issues, we propose a new\nmodel named VA-GPT for analyzing various Videos for\nAbnormal events by aligning effective and accurate tokens\nwith LLMs across both spatial and temporal dimensions.\nVA-GPT integrates two key components to identify effective\nvisual tokens for alignment while eliminating redundant tokens that could hinder anomaly analysis and distract model\nfrom extracting useful information: 1) we develop the Spatial Effective Token Selection (SETS) module for identifying\ntokens corresponding to regions with challenges for aligning them with LLMs, while filtering out tokens associated\nwith minor dynamics to remove redundancy. This is because\nwe find that abnormal events often result in different visual\nchanges and variations in local areas (see Figure 1); and\n2) we propose the Temporal Effective Token Generation\n(TETG) module which employs a lightweight pre-trained\nclassifier to assign a confidence score to each frame indicating the possibility of containing abnormal events. Then\nTETG generates efficient tokens with prior knowledge of\nthe temporal information of abnormal events directly in the\nlanguage space as additional input to the LLMs, effectively\nenhancing the model’s temporal reasoning and understanding abilities about abnormal events.\nFurthermore, beyond conventional benchmarks (indomain benchmark), we establish a new cross-domain evaluation protocol that systematically evaluates model robustness with domain shifts. Based on a novel video dataset,\nXD-Violence [64], we design comprehensive QAs about abnormal events which include different visual contents from\nour training data and integrate it as a new cross-domain\nbenchmark. Meanwhile, we design temporal-informationoriented QAs on both in- and cross- domain benckmarks for\nevaluating temporal localization abilities. Comprehensive\n\nexperiments demonstrate VA-GPT’s superiority, achieving\nstate-of-the-art performance in both in-domain anomaly localization and cross-domain generalization scenarios.\nThe main contributions are summarized as follows:\n• We propose VA-GPT, a video-anomaly-aware MLLM for\ndetecting and summarizing anomalies in various videos,\nwhich introduces the MLLM to the specific domain of\nvideo anomaly understanding.\n• We introduce the SETS and TETG, which enable our\nMLLM to effectively capture both spatial and temporal information in video sequences, resulting in accurate understanding and localization of abnormal events. Meanwhile,\nwe propose a new instruct-following dataset for video\nanomaly analysis and a comprehensive cross-domain evaluation benchmark for better evaluating the generalization\nabilities of MLLMs on video anomalies.\n• Our extensive experiments demonstrate that our method\noutperforms existing state-of-the-art methods in various\nbenchmarks, highlighting its effectiveness and potential\nfor practical applications in video anomaly understanding.\n\n2. Related Work\n2.1. Large Language Models (LLMs)\nThe domain of Natural Language Processing (NLP) has\nexperienced significant progress, particularly with the emergence of Large Language Models (LLMs). The introduction of the Transformer architecture [3, 18, 59] is a critical\nturning point, followed by other influential language models [3, 10, 25, 80] that exhibited remarkable proficiency. Generative Pre-trained Transformers (GPT) [49] brought about a\nrevolution in NLP by employing auto-regressive prediction,\nestablishing itself as a powerful language modeling approach.\nMore recent groundbreaking contributions, such as ChatGPT [45], GPT-4 [1], LaMDA [56] and LLaMA [58], have\nexpanded the horizon even further. These models, trained on\nextensive textual data, display extraordinary performance in\nintricate linguistic tasks.\n\n2.2. Vision Language Models (VLMs)\nProgress in the fields of computer vision and natural language processing has given rise to the development of\nvision-language models (VLMs) [14, 21, 33, 34, 50, 61, 69].\nThese models combine visual and linguistic systems to facilitate cross-modal comprehension and reasoning. Notable examples include CLIP [50] which pairs BERT [10]\nwith ViT [11]; BLIP-2 [28] incorporating Vision Transformer features into Flan-T5 [8]; MiniGPT4 [85], connecting BLIP-2 with Vicuna [28, 48]; PandaGPT [53] , bridging ImageBind [15] with Vicuna. These models excel in\ntasks like image classification, captioning, and object detection [24, 53, 83]. Recent developments in vision-language\nmodels have extended into video processing with models\n\n\fLLM: Yes, there is an explosion\non the train near time t.\n\nF!\"$\nAnomalyaware\nClassifier\n\nInput Video\n\nF!\"#\nt-2\n\nAll Frames\n\nF!\nPatch Embeddings\n\nTETG\n\nc.ebd\n\nFeed Forward\n\nS ∗!\nt-2\n\nFilter Mask M!\n\nt-1\n\ntime: t\n\nV!\n\nTemporal Effective Tokens\n\nVisual\nEncoder\n\nX ∗!\n\n❄\n\nSETS\n\nText &amp; Visual Attention\n\nX!\n\nSpatial Effective Tokens\n\nProjector\n\nLLM\nt-1\n\ntime: t\n\nUser: Are there any anomalies in the video?\n\nVisual Tokens\n\nFigure 2. Detailed illustration of our proposed model. When a video is fed into the model, patch embeddings and class embeddings (c.ebd)\nare extracted from all frames. 1) Based on the difference in patch embeddings between current frame and its neighbour frame, we can get\na filter mask to filter out unimportant visual tokens (dashed square ) from current frame’s visual tokens , thereby selecting Spatial\nEffective Tokens that are compressed with a projector with pooling into aligned content token for each frame, meanwhile take attention\nwith text input from users for resulting aligned context token for each frame; 2) Based on class embeddings (c.ebd) of all frames, we use\na pre-trained Anomaly-aware Classifier to localize the time period of abnormal events, thereby generating Temporal Effective Tokens to\nfeed forward into the LLM. All of the resulting aligned tokens\nare fed into the LLM for reasoning and inference of the whole model.\n\nlike Video-Chat [29], Video-ChatGPT [42], Otter [26], Valley [39], mPLUG [27], Video-LLaMA [74], and LLaMAVID [31]. These systems enable interactive video querying,\nenhance comprehension through audio-visual-text alignment,\nand support comprehensive video analysis. In this paper, we\nleverage VLMs and LLMs to develop a novel approach for\nvideo anomaly understanding.\n\nnecessitating empirical threshold establishment on test sets\nto differentiate abnormal events. Recent research has begun exploring MLLMs to enhance models’ capabilities in\nidentifying and describing anomalies [12, 55, 67, 75, 79].\n\n3. Method\n3.1. Overview\n\n2.3. Video Anomaly Understanding (VAU)\nAnnotating surveillance video frames is labor-intensive,\nprompting researchers to explore alternatives: one-class\nlearning [72], unsupervised anomaly detection without annotations [4, 5, 16, 20, 37, 38, 47], or weakly supervised methods using only video-level annotations [6, 13, 30, 57, 60,\n62, 63, 71, 76]. In one-class learning, Luo et al. developed\na ConvLSTM network for normal segment learning [40].\nSeveral researchers employed Auto-Encoder networks to\nreconstruct normal frame features [5, 20, 81], while others implemented memory mechanisms [4, 16, 37, 47] or\nmeta-learning [38] to enhance generalizability. For weakly\nsupervised learning, Tian [57] sed multiple-instance learning\nto localize anomalous clips. Zhong et al. uutilized graph\nconvolution networks, though with limited generalization\ncapability. [82]. To address this, Ramachandra et al. developed a Siamese network for normal feature learning. Wan\net al. and Zaheer et al. [60, 71]proposed clustering-based\nframeworks for anomaly identification. Recent studies have\nintroduced new architectures for spatial-temporal feature ensemble learning [6, 13, 30, 57, 62, 63, 76]. However, these\nmethods merely supply anomaly scores during inference,\n\nTask. Video anomaly understanding MLLMs aims to determine whether an input video contains abnormal events,\nmeanwhile describing and interacting with the temporal localization and the entire process of the detected abnormal\nevents (if has). We train the model with an instruct-following\ndataset based on abnormal videos [54], so that the model can\nbetter align the tokens between visual encoders and LLMs\nfor presenting and generalizing information about abnormal\nevents.\nPipeline. Considering the video understanding MLLM\nframework as shown in Figure 2, taking a video (contains\nT frames) as input, a frozen ViT-based [11] visual encoder\n(CLIP [52]) extracts visual tokens Xt from each video frame\nVt (t = 1, ..., T ). For Xt = {xti }i=1,...,N of the current\nframe, there are N visual tokens corresponding to equal\namounts of image patches. Modality alignment converts the\nprocessed visual tokens Xt into the semantic space of LLMs.\nAt the same time, text prompts are processed and encoded\nas text tokens into the same semantic space and serve as a\npart of input to LLMs. Our key design on models consists\nof (1) selecting Spatial Effective Tokens X∗t (SET) from\nXt for each frame participating in fine-tuning and inference\n\n\finstead of Xt (see Section 3.2); and (2) generating Temporal Effective Tokens S∗t (TET) as anomaly-aware temporal\npriors, participating in inference to facilitate the temporal\nlocalization of abnormal events for LLMs (see Section 3.3).\nIn addition, we produce high-quality instruct-following data\non abnormal videos and develop a training strategy for it\nto maximize the effectiveness of our proposed method (see\nSection 3.4).\n\n3.2. Spatial Effective Token Selection (SETS)\nIn classical video classification tasks, context and relationships are critical. However, in our MLLM setting, beyond\nleveraging contextual information, the most crucial problem\nis aligning the visual and language modalities. Therefore,\nthe key aspect of our design is to extract useful information\nfor effectively aligning visual tokens with the LLM. Since\ntext captions primarily describe anomaly events, which occupy only a small portion of the entire video, aligning all\nvisual patterns with text tokens would be unreasonable and\ncomputationally heavy. Thus, we are the first to propose a\nnovel token selection method SETS to achieve efficient and\neffective alignment.\nInter-frame Difference. For a video, we believe that areas\nwith large changes in adjacent frames are more worthy of\nattention. As illustrated in Figure 2, for each frame Vt of the\nvideo, we can regard its previous frame Vt−1 as the reference\nframe for investigating the difference between current timestamp and previous timestamp. Employing DINOv2 [46] as\nthe feature extractor, denoted as FE , we can extract patch\nembeddings:\nFt , Ft−1 = FE (Vt ), FE (Vt−1 ),\n\n(1)\n\nwhere Ft , Ft−1 ∈ RN ×C are the extracted embeddings (N\nindicates the number of image patches and C indicates the\nchannels). Thanks to the distinction and stability of the\nextracted features, we calculate their patch-wise distances as\nthe inter-frame difference map of the current frame:\nDt = dis(Ft , Ft−1 ),\n\n(2)\n\nwhere dis(·) indicates Manhattan distance [17] and Dt ∈\nRN indicates the distances between corresponding patch\npairs in neighbour frames.\nSelect Spatial Effective Tokens. According to the interframe difference map Dt , we can set up a vector Mt =\n[mt1 , mt2 , ..., mtN ] to record the difference of each patch,\nwhere top K ratio of elements with the largest distance are\nassigned with the value of 1, and the rest are assigned as\n0. Thus we get a mask for filtering and updating the visual\ntokens as:\n\b\nX∗t = xti mti = 1, mti ∈ Mt ,\n(3)\nwhere X∗t contains the selected Spatial Effective Tokens\n(SET) which are fed into subsequent processing instead of\n\nXt as shown in Figure 2. SET can efficiently isolate the\nregions highly related to the abnormal events to participate\nin both fine-tuning and inference.\n\n3.3. Temporal Effective Token Generation (TETG)\nAnomaly-aware Classifier. We design a simple but effective MLP FA for learning whether each frame is related to\nan abnormal event. For the class embeddings (denoted as\nz) extracted from the feature encoder, we can split them\nbased on training video caption into normal and anomaly\nembeddings, denoted as zn and za , respectively. Thus we can\noptimize FA using a binary classification loss:\nh\ni\nh\ni\nexp−FA (z)\nL = Ez∼zn − log 1+exp1−FA (z) + Ez∼za − log 1+exp\n. (4)\n−FA (z)\n\nThe anomaly-aware classifier predicts whether each frame is\nrelated to anomalies in a video, which can bring additional\nimportant prior knowledge to LLMs at a very low cost to\nfacilitate its inference.\nGenerate Temporal Effective Tokens. Since the information drawn from the anomaly-aware classifier is\nexplicit, we can easily project it to LLMs’ text token\nspace through natural languages. Based on the prediction\nresults of the anomaly-aware classifier, we select the\nfirst and last frames’ timestamps with high confidence of\ncontaining abnormal events, denoted as &lt;a-start&gt; and\n&lt;a-end&gt;, respectively. Then we tokenize them with a\ntemplate as: \"Known common crime types are:\n‘Shooting’,‘Arson’,‘Arrest’, ... There\nis one of the crime types occurring\nfrom &lt;a-start&gt; to &lt;a-end&gt;\", resulting Temporal\nEffective Tokens (TET) in the text token space of LLMs.\nDuring inference, with the well-trained lightweight\nanomaly-aware classifier, TET is used as an additional\ninput to participate in the forward process of the LLM to\nprovide prior knowledge about abnormal events temporally\n(as shown in Figure 2).\n\n3.4. Training Strategy\nFor modality alignment and instruction tuning, we follow\nthe baseline [31] to ensure visual features are well aligned\nwith the language space. In this work, the training strategy\ncan be divided into two stages: 1) Stage One: Fine-tuning\nwith anomaly video data, and 2) Stage Two: Aligning Spatial\nEffective Tokens with LLMs.\nFine-tuning with Video Anomaly Data. For enhancing the abnormal scene understanding of LLMs, we construct the UCF-crime [70] Question-Answer pairs for finetuning. We also mix different instruction pairs from various\nsources [32], including text conversations, single/multi-turn\nvisual Question-Answer pairs, and video Question-Answer\npairs. Different formats for text, image, and video inputs\nare adopted, and the image token is randomly inserted at the\nbeginning or end of user input during training. All modules,\n\n\fMethod\n\nLLM\n\nVideo-Chat [29]\nVideo-ChatGPT [42]\nOtter [26]\nValley [39]\nmPLUG [27]\nVideo-LLaMA2 [7]\nHawkeye [79]\nLLaMA-VID [31]\nVA-GPT (Ours)\n\nVicuna-7B\nVicuna-7B\nLLaMa-7B\nVicuna-7B\nLLaMa-7B\nVicuna-7B\nLLaVA-7B\nVicuna-7B\nVicuna-7B\n\nIn-domain\nTotal Acc.(%) Temporal Acc.(%)\n22.41\n24.13\n22.41\n20.34\n22.76\n21.38\n28.60\n14.83\n30.69\n\nCross-domain\nTotal Acc.(%) Temporal Acc.(%)\n\n28.51\n22.17\n14.48\n26.62\n30.00\n26.70\n35.00\n\n24.00\n25.20\n21.00\n24.20\n25.30\n18.80\n26.20\n\n29.10\n23.80\n20.20\n23.00\n28.50\n23.60\n31.02\n\nTable 1. Comparing on in-domain (UCF-Crime [54]) and the proposed cross-domain (XD-Violence [64]) benchmarks, our method\nsignificantly outperforms other models and achieve the state-of-the-art performance (accuracy is detonated as Acc.) on anomaly video\nunderstanding and temporal localization with LLMs (Best results are shown in bold).\n\nMethod\n\nDescription\n\nCauses\n\nEffect\n\n79.65\n80.83\n\n58.92\n59.55\n\n50.64\n51.08\n\nA-Guardian [12]\nOurs\n\nTable 2. We evaluate our method on the MMEval [12] benchmark\nand show that our method outperforms the related previous method\nin different aspects.\n\nexcept the frozen visual encoder, are optimized in this stage.\nAfter fine-tuning, the LLM has a preferred perception of\nanomalies, thus ensuring the effectiveness of the temporal\neffective tokens (see Section 3.3) during inference. More\ndataset details are illustrated in Section 4.\nAligning Spatial Effective Tokens with LLMs. For abnormal video scenes, most areas would not be aligned with languages. Therefore, we implement an additional fine-tuning\nstep. This step involves utilizing Spatial Effective Tokens\n(see Section 3.2) derived from each video frame within the\nUCF-Crime dataset. By incorporating these tokens, we aim\nto provide the model with a more refined understanding\nof the spatial context of anomalies. It also brings efficient\noptimization, and the alignment here is only designed for\nvery short-term fine-tuning, which can greatly improve the\nmodel’s ability to detect and understand anomalies.\n\n4. Experiments\nDatasets. We fine-tune our model on our proposed instructfollowing format [34] training dataset including 4077 videos\nand 7730 images based on UCF-Crime [54] dataset. We\nevaluate the models on two anomaly video understanding\nbenchmarks: UCF-Crime [54] for in-domain evaluation and\na proposed benchmark designed based on XD-Violence [64]\ndataset for cross-domain evaluation, respectively. More details are shown in the supplementary.\nBenchmarks and Metrics. To evaluate the ability to review\nvideos and identify anomalies, we utilize a video anomaly understanding evaluation from Video-Bench [44] to assess the\n\ntemporal comprehensive ability, which contains nature language based Question-Answer pairs from UCF-Crime [54]\ndataset. Meanwhile, in order to evaluate the model’s crossdomain video anomaly understanding ability, we contribute\nQuestion-Answer pairs as an extra benchmark based on the\nXD-Violence dataset. These Question-Answer pairs encompass four options, with each presenting the anomaly category\nand the respective time intervals during which the anomalies\ntranspire. For each benchmark, we design different sets of\nquestions for two evaluations: one is an overall evaluation of\nabnormal event detection and understanding, and the other is\na special evaluation focusing on temporal localization ability,\nmeasured by question answering accuracy (denoted as Total\nAcc. and Temporal Acc., respectively, higher is better).\nImplementation Details. For network structure, we incorporate the pre-trained CLIP [52] and DINOv2 [46] as the visual\nencoder and Qformer [9] as the text decoder. We follow [31]\nto freeze the encoder during the modality alignment and to\noptimize the trainable parameters using anomaly videos and\ninstructions for instruction tuning. During the training process, our model utilizes PyTorch on four NVIDIA A100\nGPUs. We employ the AdamW optimizer with a batch size\nof 64. The learning schedule is set to cosine decay, with a\nlearning rate of 2e-5 and a total of 1 epoch.\n\n4.1. Main Results\nResults on In-domain Dataset. We first evaluate our\nmethod on the in-domain dataset, where the test set belongs\nto the same style and recording mode as the data used for\ntraining in Section 3.4. As shown in Table 1, compared\nwith the baseline [31], with fewer visual embedding tokens\nand temporal effective tokens, our method brings more than\ndouble the performance improvement on total accuracy, also\nbrings a significant increase in temporal localization. Driven\nby our proposed training strategy and designed effective tokens, more pure and effective visual-semantic information\n\n\fA 11-seconds video about Road Accident\n\nA 1.5-minutes video about Explosion\n\nA 32-minutes normal video\n\n...\n\n...\n\n...\n\nDescribe the video in detail.\n\nWhat happened in this video?\n\nDescribe the video's main features in detail.\n\nThe video shows a group of people walking\ndown a sidewalk and suddenly a car appears\ndriving very fast towards them. Some\npeople fall onto the ground as the car\ncrashes into them.\n\nThe video shows a large group of trees in\nthe woods that were burnt down in a fire.\nThe fire was so intense that it caused the trees\nto fall over and burn in different directions. The\nvideo also shows a large plume of smoke\ncoming from the forest, indicating that the\nfire was still active.\n\nThe video features a group of workers at a\nbank who are interacting with customers.\nThe workers are seen helping customers with\nvarious transactions, including deposits,\nwithdrawals, and account inquiries. They are\ndressed in uniforms and are sitting behind\na counter. The customers are also seen\ntalking to the workers and using their cell\nphones. The video captures a typical day at a\nbank and the interactions between the workers\nand customers.\n\nAre there any anomalies in the video?\nDescribe the anomaly present in the video.\nYes, there is a car accident in the video. It\nshows a car flipping over and people\nrunning away from the scene.\n\nThe video shows a large explosion in the\nwoods, which is an anomaly.\n\nIs this video normal or abnormal?\nNormal.\n\nFigure 3. Qualitative results in Question-Answer diagrams, the red circles in the figures correspond to the bold text in the answers. From\nshort video of only a dozen seconds to medium video of longer than one minute and long video of about half an hour, our model can reason\nwell and understand the content.\n\nBaseline\n\nMethod\n\nw/o Both w.SETS w.TETG\nTotal Acc. (%)↑\nTemporal Acc. (%)↑\n\n14.83\n26.70\n\n24.83\n27.20\n\n23.79\n27.76\n\nStage One Fine-tuning\n\nStage Two Fine-tuning\n\nw.Both\n\nw.SETS w.TETG\n\nw.Both\n\nw.SETS w.TETG\n\nw.Both\n\n25.12\n28.81\n\n25.86\n29.68\n\n27.50\n30.77\n\n29.31\n31.60\n\n30.69\n35.00\n\n26.10\n30.02\n\n28.96\n33.58\n\nTable 3. Ablation studies on Spatial Effective Token Selection (SETS), Temporal Effective Tokens Generation (TETG), and progressive\ntraining strategies. At different model training stages, starting from the baseline (w/o fine-tuning, w/o both), we compare the performance of\nonly using SETS (w.SETS), only using TETG (w.TETG), and using both (w.Both) on the UCF-Crime benchmark. Stage One: Only anomaly\nvideo fine-tuning. Stage Two: Anomaly video fine-tuning + Fine-tuning with SETS (Best results are shown in bold).\n\nof abnormal events is efficiently aligned with LLMs and\nexhibits powerful anomaly video understanding capabilities.\nAt the same time, we conduct fair comparisons with existing\nvideo understanding models [26, 27, 29, 39, 42, 74] (see\nTable 1), and we demonstrate competitive performance. It is\nworth noting that we use the fewest tokens among all methods to achieve the state-of-the-art results on both total and\ntemporal accuracies.\nResults on Cross-domain Dataset. For evaluating the robustness and generalization of the models, we additionally\ndesign a cross-domain benchmark. We conduct a fair comparison of our method with the baseline [31] and the existing in-domain methods on the proposed cross-domain\nbenchmark. The results presented in Table 1 showcase a\nsubstantial performance improvement over existing methods\non the cross-domain dataset, underscoring the exceptional\ngeneralization and temporal localization capabilities of our\nmethodology. This clear superiority in performance serves\n\nas a compelling validation of the robustness and adaptability\nof our approach across diverse domains.\nInteraction with the Model. We take some interactions\nwith our well-trained model for better evaluation. As shown\nin Figure 3, we demonstrate the performance of our model in\naddressing various video anomaly understanding challenges.\nTo evaluate the model’s effectiveness, we select videos of\ndifferent durations: short (0 to 1 minute), medium (1 to 30\nminutes), and long (over 30 minutes). This variety allows\nus to thoroughly assess the model’s capabilities in handling\ndiverse anomaly understanding scenarios. In the Road Accident video (left side in Figure 3), our method successfully\nidentifies a car driving at high speed and detects people\nfalling, even in low-resolution footage. For the Explosion\nvideo (middle in Figure 3), the model accurately predicts\nthe scene and the anomaly in a medium-length video depicting an explosion. In a normal video exceeding 30 minutes\n(right side in Figure 3), we demonstrate the model’s ability\n\n\fMethod\n\nLLM\n\nFine-tuned Total Acc.(%)↑\n\nVicuna-7B\n\n✓\n\n24.13\n26.23\n\nLLaMA-VID (Baseline) Vicuna-7B\n\n✓\n\n14.83\n23.10\n\nVicuna-7B\n\n✓\n\n25.12\n30.69\n\nVideo-ChatGPT\n\nOurs\n\nTable 4. We fine-tune comparison models with our proposed UCF\ninstruct-following data and evaluate the performance of these models before and after fine-tuning on the UCF benchmark.\n\nto focus on both global and local information by asking it to\nsummarize the content.\nComparison on Other Benchmark. We additionally compare our method on another benchmark (MMEval [12])\nabout anomaly video understanding with LLMs from different aspects. We follow a fair evaluation on our proposed\nmodel and obtain the quantity results as shown in Table 2,\nwhich shows the superiority of our method.\n\n4.2. Ablation Studies\nWe conduct extensive ablation studies to validate the effectiveness of the key components in our method: Spatial\nEffective Token Selection (SETS, Section 3.2) and Temporal Effective Tokens Generation (TETG, Section 3.3) on\nprogressive training strategies in Section 3.4.\nFine-tuning Stages. The utilization of our high-quality UCF\ninstruct-following data has proven to enhance the model’s\nperformance. Fine-tuning with this dataset has effectively\ncontributed to a notable accuracy compared with the baseline.\nAs evidenced in Table 3, with our model designing (both\nSETS and TETG), the total accuracy for anomaly detection\nonly achieves 25.12% without any fine-tuning (denoted as\nBaseline). With anomaly video fine-tuning (denoted as Stage\nOne Fine-tuning), the accuracy increases to 27.5%. Furthermore, an efficient tuning with SETS (denoted as Stage Two\nFine-tuning) can achieve our final performance of 30.69%\ntotal accuracy. Temporal accuracy also shows similar increasing patterns with the scaling tuning stages.\nEffectiveness of Fine-tuning Data. For a fair comparison,\nwe fine-tune some high-performance comparison models\n[31, 42] and compare them with our proposed UCF instructfollowing data. As shown in Table 4, the performance of\nthese comparison models has increased after fine-tuning,\nwhich proves the effectiveness of our proposed data. However, their performance is still not as good as our method,\nwhich proves the effectiveness of our proposed model.\nEffectiveness of SETS. Our proposed SETS demonstrates\nefficiency in extracting useful abnormal information, leading to performance enhancement. As illustrated in Table 3,\nwith the SETS, the accuracy reaches 24.83%, 25.86% and\n29.31% without fine-tuning, anomaly video fine-tuning and\n\n# Sample Rate K\n\n0.1\n\n0.3\n\n0.5\n\n0.7\n\n0.9\n\nTotal Acc.(%)↑\n23.61\nTemporal Acc.(%)↑ 29.03\n\n24.83\n29.93\n\n30.69\n35.00\n\n28.67\n31.23\n\n27.27\n31.03\n\nTable 5. For the sample rate of tokens, K ratios in SETS, we\nsample the patch tokens with ordered distance at a fixed sample\nrate (0.5). The ablation indicates too large sampling rates cause\ntoo much context noise, and too small sampling rates lose visual\ninformation.\n\nfine-tuning with SETS, respectively, which far exceed the\naccuracy of the baseline. Its intuitive mechanism for information filtering can be further analyzed with reference to\nFigure 4. The initial video is often cluttered with irrelevant\nand deceptive data. For example, in Figure 4, case one illustrates a scenario where the overall structure is complex,\nyet only a small segment requires attention. The SETS effectively filters out the dynamic features that do not require\nattention. Similarly, as in case two, the abnormal area is\nquite small. Our proposed SETS mechanism effectively filters out redundant and irrelevant information, significantly\nenhancing the model’s ability to accurately pinpoint and\nrecognize abnormal situations.\nWe also conduct the ablation studies on K ratios about\nSETS as shown in Tabel 5. Too small or too large K ratios\nwill cause performance degradation in both total and temporal accuracy. If K ratios is too small, redundant information\nwill affect the effectiveness of aligning abnormal event information with corresponding captions. In contrast, if K\nratios is too large, some important areas will be filtered out,\nresulting in information loss and suboptimal performance.\nEffectiveness of TETG. Our proposed TETG generates\ntokens directly in the text token space of LLMs as priors\nfor each video, offering robust priors on the temporal aspects of abnormal events. The provision results in performance improvement without the necessity for fine-tuning.\nAs shown in Table 3, the accuracy rises from 14.83% to\n23.79%. Fine-tuning with anomaly video and SETS, the results even achieve 26.10% and 30.69% independently, which\nmanifests the effectiveness of TETG. Besides, the integration\nof SETS and TETG highlights the importance of leveraging\nspatial and temporal information effectively in anomaly detection systems, boosting the results to 25.15%, 27.50% and\n30.69%, respectively.\n\n5. Discussion\nKey tokens play key roles. To the best of our knowledge,\nwe are the first to explore how to assign different learnable knowledge to different tokens for better alignment with\nLLMs on visual contents, thus promoting video anomaly\ndetection and understanding (see Table 1 and Figure 3). We\nassign the most effective roles to different tokens in both spatial and temporal dimensions, enabling the model to handle\n\n\fCase One\nSETS Masks\nVideo Frames\nCase Two\nSETS Masks\nVideo Frames\n\n…\n\n…\n\n…\n\n…\n\n…\n\n…\n\n…\n\n…\n\n…\n\n…\n\n…\n\n…\n\n…\n\n…\n\n…\n\n…\n\nFigure 4. Visualization of the initial videos and our masked results. These two cases illustrate road accident scenarios: one occurring in a\nbustling street and the other in an empty suburb. Our SETS effectively filters redundant and irrelevant regions (with black patch-level masks).\n\nvarious tokens more efficiently. The video contains abundant but redundant information. Our proposed SETS and\nTETG effectively compress the spatial and temporal information of abnormal events respectively, and utilize the existing\nalignment mechanism of MLLMs at a very low cost to participate in LLMs’ reasoning (see Table 3). Our exploration\ninspires more representation learning of MLLMs to facilitate\ndownstream tasks.\nData matters a lot. We construct instruct-following data\nfor anomaly videos, containing approximately 4,000 videos,\nwhich is significantly less than the amount of baseline finetuning video data (e.g., over 90k videos for fine-tuning in\nbaseline model [31]). We still achieve promising performance on both in-domain and cross-domain benchmarks (see\nTable 1). This relies on the high-quality Question-Answer\npairs in our instruct-following data. Meanwhile, SETS also\nimproves data quality during fine-tuning: visual areas irrelevant to Question-Answer pairs are filtered out (see Figure 4),\nwhich allows for significant performance improvements in\nthe second stage of fine-tuning (see Section 3.4) with very\nfew steps (less than 150 iterations).\nBroader impacts. Video anomaly understanding has farreaching implications across various sectors, including security, healthcare, industrial safety, and so on. By enhancing\nthe ability to automatically identify and respond to unusual\nor suspicious activities in real-time, LLMs can significantly\nimprove public safety, crime prevention, patient monitoring,\nhazard detection, loss prevention, traffic management, and\nurban planning. These systems offer substantial benefits in\n\nterms of operational efficiency and safety.\nLimitations. Although our model adeptly portrays the occurrence, type, and area of video abnormal events, it still\nfaces challenges in detecting and describing certain complex\nscenes. Our strategy represents an early successful validation and investigation of large models for video anomaly\nidentification and localization. Consequently, our method\npossesses significant potential for enhancement in recognizing diverse abnormal video scenes. These insights motivate\nus to continue pursuing more powerful and efficient video\nanomaly understanding technologies in the future, aiming to\naddress more challenges in the real world [35, 41, 77].\n\n6. Conclusions\nIn this paper, we propose a novel MLLM for understanding anomalies in videos with LLMs by aligning effective\ntokens in both temporal and spatial space. The proposed\nmethod includes Spatial Effective Token Selection (SETS)\nfor identifying abnormal events in small areas of large scenes\nand Temporal Effective Tokens Generation (TETG) for addressing the sparseness of abnormal events in video time\nsequences. We also develop instruct-following data of video\nanomaly detection to fine-tune the model. Besides, evaluation on the video anomaly understanding benchmark and\na proposed cross-domain benchmark demonstrates the effectiveness of the proposed method. It further presents a\npromising approach for video anomaly understanding using\nMLLMs, showcasing the potential of effective tokens for\nenhancing video understanding tasks.\n\n\fAcknowledgements\nThis work has been supported in part by Hong Kong\nResearch Grant Council - Early Career Scheme\n(Grant No.27209621),\nGeneral Research Fund\nScheme (Grant No.17202422, 17212923, 17215025),\nTheme-based Research (Grant No.T45-701/22-R)\nand Shenzhen Science and Technology Innovation\nCommission (SGDX20220530111405040).\nPart of\nthe described research work is conducted in the JC\nSTEM Lab of Robotics for Soft Materials funded\nby The Hong Kong Jockey Club Charities Trust.\n\nReferences\n[1] Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad,\nIlge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko\nAltenschmidt, Sam Altman, Shyamal Anadkat, et al. Gpt-4\ntechnical report. arXiv preprint arXiv:2303.08774, 2023. 1, 2\n[2] Borislav Antić and Björn Ommer. Video parsing for abnormality detection. In 2011 International Conference on Computer\nVision, pages 2415–2422, 2011. 1\n[3] Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan,\nPranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan,\nRewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu,\nClemens Winter, Christopher Hesse, Mark Chen, Eric Sigler,\nMateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark,\nChristopher Berner, Sam McCandlish, Alec Radford, Ilya\nSutskever, and Dario Amodei. Language models are few-shot\nlearners. CoRR, abs/2005.14165, 2020. 2\n[4] Ruichu Cai, Hao Zhang, Wen Liu, Shenghua Gao, and\nZhifeng Hao. Appearance-motion memory consistency network for video anomaly detection. Proceedings of the AAAI\nConference on Artificial Intelligence, 35(2):938–946, 2021.\n1, 3\n[5] Yunpeng Chang, Zhigang Tu, Wei Xie, and Junsong Yuan.\nClustering driven deep autoencoder for video anomaly detection. In Computer Vision – ECCV 2020, 16th European\nConference, pages 329–345, 2022. 3\n[6] Yingxian Chen, Zhengzhe Liu, Baoheng Zhang, Wilton\nFok, Xiaojuan Qi, and Yik-Chung Wu. Mgfn: Magnitudecontrastive glance-and-focus network for weakly-supervised\nvideo anomaly detection. AAAI2023, 2022. 1, 3\n[7] Zesen Cheng, Sicong Leng, Hang Zhang, Yifei Xin, Xin\nLi, Guanzheng Chen, Yongxin Zhu, Wenqi Zhang, Ziyang\nLuo, Deli Zhao, et al. Videollama 2: Advancing spatialtemporal modeling and audio understanding in video-llms.\narXiv preprint arXiv:2406.07476, 2024. 5\n[8] Hyung Won Chung, Le Hou, Shayne Longpre, Barret\nZoph, Yi Tay, William Fedus, Yunxuan Li, Xuezhi Wang,\nMostafa Dehghani, Siddhartha Brahma, Albert Webson, Shixiang Shane Gu, Zhuyun Dai, Mirac Suzgun, Xinyun Chen,\nAakanksha Chowdhery, Alex Castro-Ros, Marie Pellat, Kevin\nRobinson, Dasha Valter, Sharan Narang, Gaurav Mishra,\nAdams Yu, Vincent Zhao, Yanping Huang, Andrew Dai,\n\nHongkun Yu, Slav Petrov, Ed H. Chi, Jeff Dean, Jacob Devlin,\nAdam Roberts, Denny Zhou, Quoc V. Le, and Jason Wei.\nScaling instruction-finetuned language models, 2022. 2\n[9] Wenliang Dai, Junnan Li, Dongxu Li, Anthony Meng Huat\nTiong, Junqi Zhao, Weisheng Wang, Boyang Li, Pascale Fung,\nand Steven Hoi. Instructblip: Towards general-purpose visionlanguage models with instruction tuning, 2023. 5\n[10] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina\nToutanova. Bert: Pre-training of deep bidirectional transformers for language understanding, 2019. 2\n[11] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov,\nDirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner,\nMostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint\narXiv:2010.11929, 2020. 2, 3\n[12] Hang Du, Sicheng Zhang, Binzhu Xie, Guoshun Nan, Jiayang\nZhang, Junrui Xu, Hangyu Liu, Sicong Leng, Jiangming Liu,\nHehe Fan, Dajiu Huang, Jing Feng, Linli Chen, Can Zhang,\nXuhuan Li, Hao Zhang, Jianhang Chen, Qimei Cui, and Xiaofeng Tao. Uncovering what, why and how: A comprehensive benchmark for causation understanding of video anomaly,\n2024. 2, 3, 5, 7\n[13] JiaChang Feng, FaTing Hong, and WeiShi Zheng. MIST:\nmultiple instance self-training framework for video anomaly\ndetection. In 2021 IEEE Conference on Computer Vision and\nPattern Recognition (CVPR), 2021. 1, 3\n[14] Yuting Gao, Jinfeng Liu, Zihan Xu, Jun Zhang, Ke Li, Rongrong Ji, and Chunhua Shen. Pyramidclip: Hierarchical feature alignment for vision-language model pretraining, 2022.\n2\n[15] Rohit Girdhar, Alaaeldin El-Nouby, Zhuang Liu, Mannat\nSingh, Kalyan Vasudev Alwala, Armand Joulin, and Ishan\nMisra. Imagebind: One embedding space to bind them all,\n2023. 2\n[16] Dong Gong, Lingqiao Liu, Vuong Le, Budhaditya Saha,\nMoussa Reda Mansour, Svetha Venkatesh, and Anton van den\nHengel. Memorizing normality to detect anomaly: Memoryaugmented deep autoencoder for unsupervised anomaly detection. In IEEE International Conference on Computer Vision\n(ICCV), 2019. 1, 3\n[17] Rodolfo Gonzalez and Sandra Palais. A path-building procedure for iterative circuit computers. Technical report, 1962.\n4\n[18] K. Han, Y. Wang, H. Chen, X. Chen, J. Guo, Z. Liu, Y. Tang,\nA. Xiao, C. Xu, Y. Xu, Z. Yang, Y. Zhang, and D. Tao. A\nsurvey on vision transformer. IEEE Transactions on Pattern\nAnalysis &amp; Machine Intelligence, pages 1–1, 2020. 2\n[19] Mahmudul Hasan, Jonghyun Choi, jan Neumann, Amit K\nRoy-Chowdhury, and Larry Davis. Learning temporal regularity in video sequences. In Proceedings of IEEE Computer\nVision and Pattern Recognition, 2016. 1\n[20] Radu Tudor Ionescu, Fahad Shahbaz Khan, Mariana-Iuliana\nGeorgescu, and Ling Shao. Object-centric auto-encoders\nand dummy anomalies for abnormal event detection in video.\nIn The IEEE Conference on Computer Vision and Pattern\nRecognition (CVPR), 2018. 3\n\n\f[21] Chao Jia, Yinfei Yang, Ye Xia, Yi-Ting Chen, Zarana Parekh,\nHieu Pham, Quoc V. Le, Yunhsuan Sung, Zhen Li, and Tom\nDuerig. Scaling up visual and vision-language representation\nlearning with noisy text supervision, 2021. 2\n[22] Hyekang Kevin Joo, Khoa Vo, Kashu Yamazaki, and Ngan\nLe. Clip-tsa: Clip-assisted temporal self-attention for weaklysupervised video anomaly detection, 2023. 1\n[23] Louis Kratz and Ko Nishino. Anomaly detection in extremely\ncrowded scenes using spatio-temporal motion pattern models.\nIn 2009 IEEE Conference on Computer Vision and Pattern\nRecognition, pages 1446–1453, 2009. 1\n[24] Weicheng Kuo, Yin Cui, Xiuye Gu, AJ Piergiovanni, and\nAnelia Angelova. F-vlm: Open-vocabulary object detection\nupon frozen vision and language models, 2023. 2\n[25] Mike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad, Abdelrahman Mohamed, Omer Levy, Ves Stoyanov, and\nLuke Zettlemoyer. Bart: Denoising sequence-to-sequence\npre-training for natural language generation, translation, and\ncomprehension, 2019. 2\n[26] Bo Li, Yuanhan Zhang, Liangyu Chen, Jinghao Wang,\nJingkang Yang, and Ziwei Liu. Otter: A multi-modal model\nwith in-context instruction tuning, 2023. 3, 5, 6\n[27] Chenliang Li, Haiyang Xu, Junfeng Tian, Wei Wang, Ming\nYan, Bin Bi, Jiabo Ye, Hehong Chen, Guohai Xu, Zheng\nCao, Ji Zhang, Songfang Huang, Fei Huang, Jingren Zhou,\nand Luo Si. mplug: Effective and efficient vision-language\nlearning by cross-modal skip-connections, 2022. 1, 3, 5, 6\n[28] Junnan Li, Dongxu Li, Silvio Savarese, and Steven Hoi. Blip2: Bootstrapping language-image pre-training with frozen\nimage encoders and large language models, 2023. 1, 2\n[29] KunChang Li, Yinan He, Yi Wang, Yizhuo Li, Wenhai Wang,\nPing Luo, Yali Wang, Limin Wang, and Yu Qiao. Videochat:\nChat-centric video understanding, 2024. 1, 3, 5, 6\n[30] Shuo Li, Fang Liu, and Licheng Jiao. Self-training multisequence learning with transformer for weakly supervised\nvideo anomaly detection. Proceedings of the AAAI Conference on Artificial Intelligence, 36(2):1395–1403, 2022. 3\n[31] Yanwei Li, Chengyao Wang, and Jiaya Jia. Llama-vid: An\nimage is worth 2 tokens in large language models, 2023. 1, 3,\n4, 5, 6, 7, 8\n[32] Bin Lin, Yang Ye, Bin Zhu, Jiaxi Cui, Munan Ning, Peng Jin,\nand Li Yuan. Video-llava: Learning united visual representation by alignment before projection, 2023. 4\n[33] Bin Lin, Zhenyu Tang, Yang Ye, Jiaxi Cui, Bin Zhu, Peng Jin,\nJinfa Huang, Junwu Zhang, Munan Ning, and Li Yuan. Moellava: Mixture of experts for large vision-language models,\n2024. 2\n[34] Haotian Liu, Chunyuan Li, Qingyang Wu, and Yong Jae Lee.\nVisual instruction tuning, 2023. 1, 2, 5\n[35] Jiahui Liu, Chirui Chang, Jianhui Liu, Xiaoyang Wu, Lan\nMa, and Xiaojuan Qi. Mars3d: A plug-and-play motionaware model for semantic segmentation on multi-scan 3d\npoint clouds. In Proceedings of the IEEE/CVF Conference on\nComputer Vision and Pattern Recognition, pages 9372–9381,\n2023. 8\n[36] Jiahui Liu, Xin Wen, Shizhen Zhao, Yingxian Chen, and\nXiaojuan Qi. Can ood object detectors learn from foundation\n\nmodels? In European Conference on Computer Vision, pages\n213–231. Springer, 2024. 1\n[37] Zhian Liu, Yongwei Nie, Chengjiang Long, Qing Zhang, and\nGuiqing Li. A hybrid video anomaly detection framework\nvia memory-augmented flow reconstruction and flow-guided\nframe prediction. In Proceedings of the IEEE International\nConference on Computer Vision, 2021. 1, 3\n[38] Yiwei Lu, Frank Yu, Mahesh Kumar Krishna Reddy, and\nYang Wang. Few-shot scene-adaptive anomaly detection. In\nEuropean Conference on Computer Vision, 2020. 3\n[39] Ruipu Luo, Ziwang Zhao, Min Yang, Junwei Dong, Da Li,\nPengcheng Lu, Tao Wang, Linmei Hu, Minghui Qiu, and\nZhongyu Wei. Valley: Video assistant with large language\nmodel enhanced ability, 2023. 1, 3, 5, 6\n[40] Weixin Luo, Wen Liu, and Shenghua Gao. Remembering\nhistory with convolutional lstm for anomaly detection. In\n2017 IEEE International Conference on Multimedia and Expo\n(ICME), pages 439–444, 2017. 3\n[41] Xiaoyang Lyu, Chirui Chang, Peng Dai, Yang-Tian Sun,\nand Xiaojuan Qi. Total-decom: decomposed 3d scene reconstruction with minimal interaction. In Proceedings of\nthe IEEE/CVF Conference on Computer Vision and Pattern\nRecognition, pages 20860–20869, 2024. 8\n[42] Muhammad Maaz, Hanoona Rasheed, Salman Khan, and\nFahad Shahbaz Khan. Video-chatgpt: Towards detailed video\nunderstanding via large vision and language models, 2023. 1,\n3, 5, 6, 7\n[43] Trong-Nguyen Nguyen and Jean Meunier. Anomaly detection\nin video sequence with appearance-motion correspondence.\nCoRR, abs/1908.06351, 2019. 1\n[44] Munan Ning, Bin Zhu, Yujia Xie, Bin Lin, Jiaxi Cui, Lu Yuan,\nDongdong Chen, and Li Yuan. Video-bench: A comprehensive benchmark and toolkit for evaluating video-based large\nlanguage models, 2023. 5\n[45] OpenAI. Introducing chatgpt. 2022. 1, 2\n[46] Maxime Oquab, Timothée Darcet, Théo Moutakanni, Huy Vo,\nMarc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel\nHaziza, Francisco Massa, Alaaeldin El-Nouby, Mahmoud\nAssran, Nicolas Ballas, Wojciech Galuba, Russell Howes,\nPo-Yao Huang, Shang-Wen Li, Ishan Misra, Michael Rabbat,\nVasu Sharma, Gabriel Synnaeve, Hu Xu, Hervé Jegou, Julien\nMairal, Patrick Labatut, Armand Joulin, and Piotr Bojanowski.\nDinov2: Learning robust visual features without supervision,\n2024. 4, 5\n[47] Hyunjong Park, Jongyoun Noh, and Bumsub Ham. Learning\nmemory-guided normality for anomaly detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and\nPattern Recognition, pages 14372–14381, 2020. 1, 3\n[48] Baolin Peng, Chunyuan Li, Pengcheng He, Michel Galley,\nand Jianfeng Gao. Instruction tuning with gpt-4, 2023. 2\n[49] Alec Radford and Karthik Narasimhan. Improving language\nunderstanding by generative pre-training. 2018. 2\n[50] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya\nRamesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry,\nAmanda Askell, Pamela Mishkin, Jack Clark, Gretchen\nKrueger, and Ilya Sutskever. Learning transferable visual\nmodels from natural language supervision, 2021. 2\n\n\f[51] Bharathkumar Ramachandra, Michael J. Jones, and\nRanga Raju Vatsavai. Learning a distance function with a\nsiamese network to localize anomalies in videos. In 2020\nIEEE Winter Conference on Applications of Computer Vision\n(WACV), 2020. 1\n[52] Aditya Sanghi, Hang Chu, Joseph G Lambourne, Ye Wang,\nChin-Yi Cheng, and Marco Fumero. Clip-forge: Towards\nzero-shot text-to-shape generation. In CVPR, 2022. 3, 5\n[53] Yixuan Su, Tian Lan, Huayang Li, Jialu Xu, Yan Wang, and\nDeng Cai. Pandagpt: One model to instruction-follow them\nall, 2023. 2\n[54] Waqas Sultani, Chen Chen, and Mubarak Shah. Real-world\nanomaly detection in surveillance videos. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR),\n2018. 3, 5\n[55] 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, 2024. 2, 3\n[56] Romal Thoppilan, Daniel De Freitas, Jamie Hall, Noam\nShazeer, Apoorv Kulshreshtha, Heng-Tze Cheng, Alicia Jin,\nTaylor Bos, Leslie Baker, Yu Du, YaGuang Li, Hongrae Lee,\nHuaixiu Steven Zheng, Amin Ghafouri, Marcelo Menegali,\nYanping Huang, Maxim Krikun, Dmitry Lepikhin, James Qin,\nDehao Chen, Yuanzhong Xu, Zhifeng Chen, Adam Roberts,\nMaarten Bosma, Vincent Zhao, Yanqi Zhou, Chung-Ching\nChang, Igor Krivokon, Will Rusch, Marc Pickett, Pranesh\nSrinivasan, Laichee Man, Kathleen Meier-Hellstern, Meredith Ringel Morris, Tulsee Doshi, Renelito Delos Santos, Toju\nDuke, Johnny Soraker, Ben Zevenbergen, Vinodkumar Prabhakaran, Mark Diaz, Ben Hutchinson, Kristen Olson, Alejandra Molina, Erin Hoffman-John, Josh Lee, Lora Aroyo,\nRavi Rajakumar, Alena Butryna, Matthew Lamm, Viktoriya\nKuzmina, Joe Fenton, Aaron Cohen, Rachel Bernstein, Ray\nKurzweil, Blaise Aguera-Arcas, Claire Cui, Marian Croak,\nEd Chi, and Quoc Le. Lamda: Language models for dialog\napplications, 2022. 2\n[57] 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 (ICCV), pages 4975–4986,\n2021. 1, 3\n[58] Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste\nRozière, Naman Goyal, Eric Hambro, Faisal Azhar, Aurelien\nRodriguez, Armand Joulin, Edouard Grave, and Guillaume\nLample. Llama: Open and efficient foundation language\nmodels, 2023. 1, 2\n[59] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia\nPolosukhin. Attention is all you need. In Advances in Neural\nInformation Processing Systems, 2017. 2\n[60] Boyang Wan, Yuming Fang, Xue Xia, and Jiajie Mei. Weakly\nsupervised video anomaly detection via center-guided discriminative learning. In Proceedings of the IEEE International Conference on Multimedia and Expo, 2020. 1, 3\n\n[61] Wenhai Wang, Zhe Chen, Xiaokang Chen, Jiannan Wu,\nXizhou Zhu, Gang Zeng, Ping Luo, Tong Lu, Jie Zhou, Yu\nQiao, and Jifeng Dai. Visionllm: Large language model is\nalso an open-ended decoder for vision-centric tasks, 2023. 2\n[62] Jie Wu, Wei Zhang, Guanbin Li, Wenhao Wu, Xiao Tan,\nYingying Li, Errui Ding, and Liang Lin. Weakly-supervised\nspatio-temporal anomaly detection in surveillance video. In\nhe Thirtieth International Joint Conference on Artificial Intelligence, 2021. 3\n[63] Peng Wu and Jing Liu. Learning causal temporal relation and\nfeature discrimination for anomaly detection. IEEE Transactions on Image Processing, 30:3513–3527, 2021. 1, 3\n[64] 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\n(ECCV), 2020. 1, 2, 5\n[65] 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, 2023. 1\n[66] Peng Wu, Xuerong Zhou, Guansong Pang, Yujia Sun, Jing\nLiu, Peng Wang, and Yanning Zhang. Open-vocabulary video\nanomaly detection, 2024. 1\n[67] Yuchen Yang, Kwonjoon Lee, Behzad Dariush, Yinzhi Cao,\nand Shao-Yuan Lo. Follow the rules: Reasoning for video\nanomaly detection with large language models, 2024. 2, 3\n[68] Zhiwei Yang, Jing Liu, and Peng Wu. Text prompt with\nnormality guidance for weakly supervised video anomaly\ndetection, 2024. 1\n[69] Lewei Yao, Runhui Huang, Lu Hou, Guansong Lu, Minzhe\nNiu, Hang Xu, Xiaodan Liang, Zhenguo Li, Xin Jiang, and\nChunjing Xu. Filip: Fine-grained interactive language-image\npre-training, 2021. 2\n[70] Tongtong Yuan, Xuange Zhang, Kun Liu, Bo Liu, Chen Chen,\nJian Jin, and Zhenzhen Jiao. Towards surveillance videoand-language understanding: New dataset, baselines, and\nchallenges, 2023. 4\n[71] Muhammad Zaigham Zaheer, Arif Mahmood, Marcella\nAstrid, and Seung-Ik Lee. Claws: Clustering assisted weakly\nsupervised learning with normalcy suppression for anomalous\nevent detection. In European Conference on Computer Vision\n(ECCV), pages 358–376. Springer, 2020. 1, 3\n[72] Muhammad Zaigham Zaheer, Arif Mahmood, Muhammad Haris Khan, Mattia Segu, Fisher Yu, and Seung-Ik\nLee. Generative cooperative learning for unsupervised video\nanomaly detection, 2022. 3\n[73] Muhammad Zaigham Zaheer, Jin-Ha Lee, Marcella Astrid,\nArif Mahmood, and Seung-Ik Lee. Cleaning label noise\nwith clusters for minimally supervised anomaly detection. In\nProceedings of the IEEE Conference on Computer Vision and\nPattern Recognition Workshops, June 2020. 1\n[74] Hang Zhang, Xin Li, and Lidong Bing. Video-llama: An\ninstruction-tuned audio-visual language model for video understanding, 2023. 1, 3, 6\n[75] Huaxin Zhang, Xiaohao Xu, Xiang Wang, Jialong Zuo, Xiaonan Huang, Changxin Gao, Shanjun Zhang, Li Yu, and\n\n\fNong Sang. Holmes-vau: Towards long-term video anomaly\nunderstanding at any granularity, 2024. 2, 3\n[76] Jiangong Zhang, Laiyun Qing, and Jun Miao. Temporal\nconvolutional network with complementary inner bag loss\nfor weakly supervised anomaly detection. In 2019 IEEE\nInternational Conference on Image Processing (ICIP), pages\n4030–4034, 2019. 3\n[77] Jiaqi Zhang, Yan Hu, Xiaojuan Qi, Ting Meng, Lihui Wang,\nHuazhu Fu, Mingming Yang, and Jiang Liu. Polar eyeball\nshape net for 3d posterior ocular shape representation. In\nInternational Conference on Medical Image Computing and\nComputer-Assisted Intervention, pages 180–190. Springer,\n2023. 8\n[78] Bin Zhao, Fei-Fei Li, and Eric P. Xing. Online detection of\nunusual events in videos via dynamic sparse coding. In CVPR\n2011, pages 3313–3320, 2011. 1\n[79] Jianing Zhao, Jingjing Wang, Yujie Jin, Jiamin Luo, and\nGuodong Zhou. Hawkeye: Discovering and grounding\nimplicit anomalous sentiment in recon-videos via sceneenhanced video large language model. In Proceedings of\nACM MM 2024, 2024. 2, 3, 5\n[80] Wayne Xin Zhao, Kun Zhou, Junyi Li, Tianyi Tang, Xiaolei\nWang, Yupeng Hou, Yingqian Min, Beichen Zhang, Junjie\nZhang, Zican Dong, Yifan Du, Chen Yang, Yushuo Chen,\nZhipeng Chen, Jinhao Jiang, Ruiyang Ren, Yifan Li, Xinyu\nTang, Zikang Liu, Peiyu Liu, Jian-Yun Nie, and Ji-Rong Wen.\nA survey of large language models, 2023. 2\n[81] Yiru Zhao, Bing Deng, Chen Shen, Yao Liu, Hongtao Lu,\nand Xian-Sheng Hua. Spatio-temporal autoencoder for video\nanomaly detection. In Proceedings of the 25th ACM International Conference on Multimedia, page 1933–1941, New\nYork, NY, USA, 2017. Association for Computing Machinery.\n3\n[82] 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 The IEEE Conference on Computer Vision and\nPattern Recognition (CVPR), 2019. 3\n[83] Lanfeng Zhong, Xin Liao, Shaoting Zhang, Xiaofan Zhang,\nand Guotai Wang. Vlm-cpl: Consensus pseudo labels from\nvision-language models for human annotation-free pathological image classification, 2024. 2\n[84] Hang Zhou, Junqing Yu, and Wei Yang. Dual memory\nunits with uncertainty regulation for weakly supervised video\nanomaly detection, 2023. 1\n[85] Deyao Zhu, Jun Chen, Xiaoqian Shen, Xiang Li, and Mohamed Elhoseiny. Minigpt-4: Enhancing vision-language\nunderstanding with advanced large language models, 2023. 2\n[86] Yi Zhu and Shawn D. Newsam. Motion-aware feature for\nimproved video anomaly detection. In British Machine Vision\nConference (BMVC), 2019. 1\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"