"<!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>No Need For Real Anomaly:\nMLLM Empowered Zero-Shot Video Anomaly Detection\nZunkai Dai1 , Ke Li1,† , Jiajia Liu2 , Jie Yang1 , Yuanyuan Qiao1,†\n1\nBeijing University of Posts and Telecommunications\n2\nNorthwestern Polytechnical University\n\narXiv:2602.19248v4 [cs.CV] 23 Mar 2026\n\n{daizk, like1990, janeyang, yyqiao}@bupt.edu.cn, liujiajia@nwpu.edu.cn\n\nTraditional Solution\nAnomaly: Falling, Running, Jumping…\n\nOur Solution\nAnomaly\nExposure\nDataset\n\nVAD\nDataset\n\nAnomaly: Parrot, Elephant, Loading, Dancing…\n\nAnomaly: Falling, Running, Jumping…\nVAD\nDataset\n\nAnomaly Types\nin a Single Scenario\n\nDeep Semantic Understanding\n\nTraditional Model\nEffective\n\nIneffective\n\n“Intentional injury”\n\nMulti-model LLM\n\n≈\n\nModel\n\n“Butch intends to hurt Jerry”\n\nZero-Shot\nVAD Evaluation\nVAD\nAnomaly Types: Fight / Jump / Run / Injured…\n\nTrain Scenario\n\nNovel Scenario\n\nAnomaly: Falling, Running…\n\nAnomaly: Riot, Explosion…\n\nAnomaly Types: Intentional Injury\n\nAnomaly: Fight, Jumping…\n\nAnomaly: Robbery, Shoot…\n\nAnomaly Types:Anomalous Vehicle Behavior\n\nOpen-World Scenario\n\nClose-Set: Cannot Detect Unseen Anomaly/Scenario\n\nAnomaly Types: Explosion / Break / Shoot / Abuse…\n\nOpen-World：Detect Any Anomaly in Divers Scenario\n\nFig. 1. Motivation. Left: Existing VAD methods rely on training with anomaly data from single scenarios, resulting in poor generalization capability to novel anomaly types or unseen scenarios. Right: Our LAVIDA model leverages MLLM to understand deep anomaly\nsemantics, enabling generalization to arbitrary anomaly types across diverse scenarios. The training data consists of pseudo anomaly data\nsynthesized from external datasets, without incorporating any VAD data.\n\nAbstract\nThe collection and detection of video anomaly data has\nlong been a challenging problem due to its rare occurrence\nand spatio-temporal scarcity. Existing video anomaly detection (VAD) methods under perform in open-world scenarios. Key contributing factors include limited dataset diversity, and inadequate understanding of context-dependent\nanomalous semantics. To address these issues, i) we propose LAVIDA, an end-to-end zero-shot video anomaly detection framework. ii) LAVIDA employs an Anomaly Exposure Sampler that transforms segmented objects into\npseudo-anomalies to enhance model adaptability to unseen anomaly categories. It further integrates a Multimodal Large Language Model (MLLM) to bolster semantic comprehension capabilities. Additionally, iii) we design a token compression approach based on reverse attention to handle the spatio-temporal scarcity of anomalous\npatterns and decrease computational cost. The training\n† Corresponding author.\n\nprocess is conducted solely on pseudo anomalies without\nany VAD data. Evaluations across four benchmark VAD\ndatasets demonstrate that LAVIDA achieves SOTA performance in both frame-level and pixel-level anomaly detection under the zero-shot setting. Our code is available in\nhttps://github.com/VitaminCreed/LAVIDA.\n\n1. Introduction\nVideo Anomaly Detection (VAD) aims to identify behaviors\nthat deviate from normal patterns or represent unexpected\nevents in video sequences. Classical VAD methods assume\nstatic scenes, closed-set anomaly categories, and stationary\ndata distributions, yet these assumptions fail in dynamic environments where scenes evolve, behaviors shift, and distributions drift continuously. Recent works have reconceptualized VAD in open-world settings, where systems must\ndetect unseen anomalies, operate without predefined taxonomies, and learn continuously. This capability is critical for safety-critical applications, enabling world models\n\n\fto perceive and adapt to unexpected events.\nRecent open-set VAD [1, 8, 53] and open-vocabulary\nVAD [14, 34, 37] approaches have developed promising capabilities for detecting previously unseen anomaly types.\nHowever, single-scene training limits their generalization\nto unseen scenarios. Some methods [2, 27, 39, 47] leverage multimodal large language models (MLLMs) to obtain\nanomaly scores, achieving training-free detection. However, they heavily rely on frame-wise or clip-wise text outputs generated by MLLMs, which significantly limits their\npractical applicability.\nImproving the generalization performance of VAD models faces three primary challenges: i) Limited diversity in\navailable anomaly datasets: Existing VAD datasets contain limited scenarios and anomaly types, which restricts\nmodel learning capabilities and makes them inadequate for\nreal open-world applications; ii) Context-dependent semantic interpretations of anomalies: Anomaly semantics vary\naccording to different scenarios, while current methods lack\nsufficient semantic understanding, failing to comprehend\nunseen scenarios and novel anomaly types, and struggle to\nadapt detection targets dynamically; and iii) Spatiotemporal sparsity of anomalies: Anomalies often occupy minimal\ntemporal or spatial regions. The abundance of redundant visual information significantly increases computational cost.\nMoreover, detection models struggle to effectively leverage\nthe coarse-grained (video-level) contextual semantic features generated by MLLMs, thereby overlooking localized\nanomalous patterns in spatiotemporal dimensions.\nTo address these challenges, we propose LAVIDA\n(LLM-Assisted VIdeo Anomaly Detection Approach), an\nend-to-end VAD framework that leverages MLLMs and requires no real VAD data during training. To overcome the\nlimited diversity of anomalies in existing datasets, we design an Anomaly Exposure Sampler that transforms widely\naccessible semantic segmentation datasets that contain diverse semantics into pseudo anomalies, thereby expanding VAD scenarios and anomaly types while eliminating\nthe dependence of training on VAD data. To enhance semantic understanding, we employ an MLLM-integrated semantic feature extractor to capture clip-level semantic representations, utilizing MLLMs’ open-world understanding\nto significantly improve anomaly semantic comprehension\nand resolve context-dependency challenges. To enable the\nmodel to focus on local anomaly patterns, considering the\nspatiotemporal sparsity of anomalies, we apply a reverseattention-based token compression method that substantially reduces irrelevant background visual information, and\nleverage learnable query tokens that simultaneously access\nclip-level context and frame-level details. At the end, we execute comprehensive anomaly detection at both frame and\npixel granularities.\nLAVIDA demonstrates exceptional generalization capa-\n\nbilities, achieving state-of-the-art performance in zero-shot\ndetection scenarios. After training on the Anomaly Exposure datasets (external segmentation datasets), evaluations\non four unseen datasets yield: 76.45% AUC on UBnormal,\n85.28% AUC on ShanghaiTech, 82.18% AUC on UCFCrime (outperforming unsupervised methods), 90.62% AP\non XD-Violence (surpassing weakly-supervised methods),\nand 87.68% pixel-level AUC on UCSD Ped2 (current stateof-the-art pixel-level zero-shot performance).\nIn summary, our contributions are as follows:\n• We propose an end-to-end zero-shot VAD framework, LAVIDA, which leverages MLLMs to extract\nvideo anomaly semantic representations and enables\nframe/pixel-level open-world anomaly detection.\n• We introduce an Anomaly Exposure Sampler: a training\nstrategy that repurposes segmentation targets as pseudoanomalies, enabling training without VAD data and improving adaptability to diverse scenarios.\n• We design a token compression method for LLM-based\nVAD model, which mitigates background interference\nand reduces computational costs for LLMs.\n• Extensive experiments show that our method achieves\nstate-of-the-art zero-shot performance, and achieves competitive results w.r.t. unsupervised VAD methods at the\nframe level, and competitive zero-shot performance at the\npixel level.\n\n2. Related Work\n2.1. Traditional VAD Methods\nTraditional video anomaly detection can be categorized into\nunsupervised and weakly-supervised approaches. Unsupervised methods assume that only normal samples exist in\nthe training set and learn normal patterns through one-class\nclassification (OCC) [25, 26, 31, 33, 44] or self-supervised\ntasks [5, 7, 16, 24, 40, 50]. Weakly-supervised VAD (WSVAD) detects anomalies using only video-level annotations\nwithout requiring precise temporal or spatial localization\n[15, 28, 30, 32, 45]. Recent advances leverage pre-trained\nmodels and vision-language models to enhance detection\nperformance [11, 19, 35, 41]. However, unsupervised methods struggle with unseen normal patterns and anomalous\npatterns similar to normal ones, and weakly-supervised\nmethods can only recognize anomaly types present in the\ntraining set.\n\n2.2. Open-World VAD Methods\nTo improve model generalization capabilities for unknown\nanomaly types, researchers have proposed open-set VAD\nand open-vocabulary VAD approaches. Open-set VAD was\nfirst introduced by Acsintoae et al. [1] with a benchmark\ndataset and evaluation framework. Subsequent approaches\nhave explored evidential deep learning with normalizing\n\n\fAnomaly Exposure\nSampler\n\nFeature Encoding\n\nTraining Set\nCar\n\nDog\n\n……\n\nCLIP\nText\nEncoder\n\nAnomaly Category\n\nAnomaly Exposure Dataset\n\nVision\nBackbone\n\nVideo Frame\n\nImage\n\nMLP\n\nCross Attention\nq\nv\nk\n\nParrot\n\nMulti-Scale Semantic\nProjector\n\nLearnable queries\n\nk v q\nSelf-attention\nk\n\nv\n\nq\n\nΦ\n\nCross Attention\n\n*N\n\nMLP\nq\n\nk\n\nv\n\nCross Attention\nIt is &lt;SEG&gt;\n\nLoRA\n\nLLM\n\nToken\nCompression\n\nPrompt\n\nVisual\nEncoder\n\nUSER: Find the anomaly in this\nvideo/image. Anomaly types may\ncontain fight, abuse, explosion…\nASSITANT: Sure, it is &lt;SEG&gt;.\n\nMLP\n\nSemantic Feature Extraction\nVisual Token\n\nz\n\nBackground Tokens\n\nReverse-Attn Weight\nReverse\nAttention\n\nFrame-Level labels\n\nz\n\nMask\nDecoder\nPixel-Level labels\n\nMulti-level Mask Decoder\n\nToken Compression\n\nFig. 2. Overview of LAVIDA Framework. LAVIDA is trained solely on a comprehensive Anomaly Exposure datasets, and consists of\nfive key components: a MLLM, a text encoder, a vision backbone, a SAM2 mask decoder, and a Multi-scale Semantic Projector.\n\nflows [53] and lightweight pose-based normalizing flows\nframeworks [8]. Open vocabulary VAD enhances anomaly\ncategorization by leveraging vision-language models. Wu\net al. [34] first introduce open-vocabulary video anomaly\ndetection (OVVAD) using CLIP. Li et al. [14] leverages visual and textual information with label relations to reduce\ndetection ambiguity. Xu et al. [37] uses learnable prompts\nand graph attention networks. Nevertheless, these methods\nremain restricted to particular scenarios and cannot adaptively adjust detection targets based on contextual changes,\nwhich prevents these methods from achieving truly openworld VAD capabilities.\n\n2.3. LLM-based Video Anomaly Analysis\nCurrent applications of MLLMs in Video Anomaly Detection (VAD) can be categorized into training-free VAD\nmethods and Video Anomaly Understanding (VAU) approaches. Training-free VAD methods utilize MLLMs to\nanalyze video clips or frames, extracting anomaly scores\nfrom the generated textual outputs. Zanella et al. [47]\nextract and refine anomaly scores from frame-wise textual\noutputs. Yang et al. [39] derive anomaly detection rules\nfrom training datasets for inference. Ahn et al. [2] employ CLIP to guide MLLMs toward anomalous regions for\nmore accurate scoring. Shao et al. [27] integrate dynamic\ngraphs to mine event boundaries, enabling MLLMs to focus on event intervals. Despite eliminating training requirements, these methods rely on frame-wise or clip-wise textual outputs, incurring high temporal costs and limiting prediction granularity to frame or clip level, thus preventing\nspatial localization of anomalies. On the other hand, VAU\nmethods focus on the semantic understanding capabilities\n\nof MLLMs to provide explanations for anomalies. Some\nstudies [4, 29] construct interactive instruction data to deliver video-level anomaly explanations. Yuan et al. [43]\nrefines VAU precision to the clip level. Zhang et al. [49]\ncombines detection and understanding by outputting explanations for high-probability anomalous regions. Xing\net al. [36] deploys audio data to enhance the understanding of anomalies. However, these methods prioritize using\nMLLMs for explanation generation while overlooking the\nintrinsic capability to detect unseen anomaly types.\n\n3. Methods\n3.1. Preliminary\nThe training dataset is an pseudo anomaly dataset DE =\n{(xi , yi , ci )}N\ni=1 , where xi represents the input visual data\nencompassing both video and image modalities. For video\nsamples, vi ∈ RT ×C×H×W where T , C, H, W denote\nthe number of frames, channels, height, and width, respectively, while for image samples, Ii ∈ RC×H×W . And\nci = {ci,0 , ci,1 ..., ci,K−1 } indicates the anomaly categories\nto be detected, and yi = (yif , yip ) denotes the corresponding anomaly labels with frame-level label yif ∈ {0, 1}T\nand pixel-level label yip ∈ {0, 1}T ×H×W . During evaluation, the model is tested on unseen VAD datasets Dtest =\n{(vt , yt , ct )}M\nt=1 , where the anomaly categories ct and video\nscenarios are different from the training dataset. Our objective is to predict yt in Dtest under zero-shot conditions,\nwhere the test videos vt and test anomaly categories ct are\nnot observed during training.\n\n\f3.2. Overview\nThe LAVIDA framework comprises five key components,\nas illustrated in Fig. 2. First, an Anomaly Exposure Sampler\nreconstructs anomaly exposure dataset to form the training\nset. The input data then enters the Feature Encoding module, which encodes text, image, and video into feature vectors. Simultaneously, the Semantic Feature Extraction module encodes abnormal description prompts alongside vision\ndata into a unified semantic feature via MLLM, with visual\ntokens being compressed by a token compression module.\nThereafter, the Multi-Scale Semantic Projector fuses these\nsemantic features with learnable query vectors and projects\nthem into the mask decoder’s latent space. Ultimately, a\nMulti-Level Mask Decoder decodes these latent space features to output frame-level and pixel-level anomaly scores.\n\n3.3. Anomaly Exposure Sampler\nVisual semantic segmentation datasets provide rich scene\ndiversity and comprehensive semantic categories. However,\nthese datasets cannot be directly applied to VAD tasks, since\nanomalies occur rarely in datasets. To address this problem, we propose a two-step transformation of the anomaly\nexposure dataset, as illustrated in Fig. 3. We define the\ntraining dataset as DE = {(xi , yip , si )}N\ni=1 , where si represents the text description of video clip vi , and yip represents pixel-level category labels. Our objective is to construct (ci , yif ) for each sample, thereby transforming DE =\nN\n{(xi , yip , si )}N\ni=1 into DE = {(xi , yi , ci )}i=1 .\nFor anomalous samples, only sparse anomaly events exist within the video. This means that ci contains few\ncontent-relevant categories, with the majority being irrelevant. To construct ci for each sample in DE , we introduce irrelevant categories from other samples within the\nsame dataset, thereby requiring models to distinguish genuine anomaly categories from irrelevant ones. This can be\nrepresented as follows:\n\b\n\u0001\nSiirr = sj j ∼ Unif {1, ..., n} \\ {i} , |J| = KE − 1\n(1)\nwhere Siirr represents the set of irrelevant categories for the\ni-th sample, constructed by uniformly sampled from other\nsamples in DE . KE is the total number of categories. In\npractice, KE is set as a random parameter to enable the\nMLLM to handle arbitrary numbers of anomaly types.\nTo model anomaly rarity, each sample is randomly labeled as normal (probability 1 − p) or anomaly (probability\np). For anomalous samples, the category set ci combines\ngenuine and irrelevant categories, with frame labels yif set\nto positive. Normal samples contain only irrelevant categories and are assigned negative labels. Such an operation\nis demonstrated as,\n(\n(Siirr ∪ {si }, 1T ) with p\nf\n(ci , yi ) =\n(2)\n(Siirr , 0T )\nwith 1 − p\n\nDog\nParrot\n\nRabbit\n\nGenuine Category\n\nParrot\n\nQ: Find the anomaly\nin this video/image.\nAnomaly types may\ncontain Dog, Rabbit,\nParrot, Car…\nA: Sure, it is &lt;SEG&gt;.\n\nCar\n···\n\nSample\n\nAnomaly Case\n\nMLLM Prompt\n\nElephant\n\nAnomaly Exposure Dataset\n\nRabbit\n\nDog\n\nDog\n\nRabbit\n\nCar\n\nCar\n\n···\n\n···\n\nIrrelevant Category\n\nNormal Case\n\nQ: Find the anomaly\nin this video/image.\nAnomaly types may\ncontain Dog, Rabbit,\nCar…\nA: Sure, it is &lt;SEG&gt;.\n\nFig. 3. Anomaly Exposure Sampler: We sample irrelevant categories from other samples to create anomaly categories, randomly\ndesignate samples as anomalous or normal based on probability.\n\nwhere (ci , yif ) denotes the output category set and framelevel labels for the i-th sample, T represents the total number of frames, and p controls the anomaly sampling probability.\n\n3.4. Visual Token Compression\nAnomaly objects typically constitute only a small fraction\nof visual data, while backgrounds constitute the vast majority. Excessive irrelevant background tokens degrade MLLM\nreasoning and incur substantial computational costs. We\naim to deploy a training-free approach to compress background tokens while retaining anomaly-relevant features.\nFor VAD tasks, directly identifying anomalous tokens\nis difficult since the sparse spatial-temporal distribution of\nanomalous objects. However, background tokens are characterized by numerical predominance and high feature similarity, making them readily identifiable through density estimation. After visual encoding, the token features are represented as Z ∈ RLz ×Dz , where Lz is the number of visual\ntokens and Dz is the token dimensionality. We compute\nthe local density within the KNN neighborhood Nk (zi ) for\neach token zi as:\nρ(zi ) = P\n\nk\n\nzk ∈Nk (zi ) ∥zi − zk ∥\n\n2\n\n(3)\n\nWe select the top-Lr tokens with the highest density to\nform the background reference set Z b ∈ RLr ×Dz . To identify anomaly candidates, we employ a localized reverse attention mechanism [9]. Specifically, each token in Z is assigned to its nearest neighbor in Z b based on the minimum\nEuclidean distance. For each background token Zib , reverse\nattention is performed exclusively over its corresponding\nassigned tokens to highlight features most dissimilar to the\nbackground. This process is formulated as:\n!\nT\nZib ZN\n′\ni\nZi = Softmax − √\n· ZNi\n(4)\nDz\n\n\fwhere Ni = {j | arg mink ∥Zj − Zkb ∥2 = i} denotes the\nset of indices of tokens in Z that are closest to the i-th\nbackground token, and Z ′ ∈ RLr ×Dz represents the aggregated anomalous features. This mechanism effectively\ncompresses visual tokens into a compact Lr -length representation Z ′ .\n\n3.5. Anomaly Semantics Extraction\nExisting VAD methods are constrained by limited semantic\ncomprehension capabilities, failing to understand anomalies\nin unseen scenarios. To address this limitation, we leverage MLLMs following previous work LISA [12] to extract\nrich anomaly semantic features that enable robust detection\nacross diverse scenarios.\nWe extend the MLLM’s vocabulary with a special token\n&lt; SEG &gt; to extract anomaly semantic features. Given\na sample xi the corresponding anomaly category ci , we\nfill ci into several predefined templates to construct the\ntext prompt for the MLLM. For example: USER: Find the\nanomaly in this video. Anomaly types may contain {ci }.\nASSISTANT: Sure, it is &lt; SEG &gt;.”. The &lt; SEG &gt;\ntoken aggregates semantic information, and we extract its\nlast-layer embedding as the anomaly semantic feature. Such\nan operation is demonstrated as:\nfsem = ΦM LLM (x, c)\n\n(5)\n\nwhere ΦM LLM is the MLLM, x is the input samples, c is\nthe anomaly categories that are used to construct prompts,\nand fsem is the extracted anomaly semantic feature.\n\n3.6. Feature Encoding\nFor the input vision data xi and anomaly categories ci ,\nwe employ a vision backbone Φv to extract visual features\nand a CLIP text encoder Φt to extract textual features for\nanomaly categories:\nfv = Φv (xi ), fc = Φt (ci )\n\n(6)\n\nwhere fv ∈ RT ×Np ×Dv represents vision feature. Np denotes the number of patches within a single frame. fc ∈\nRK×Dt represents anomaly category feature.\n\n3.7. Multi-Scale Semantic Projector\nWhile the MLLM effectively extracts semantic features\nfor video anomalies, these representations remain at the\nvideo level without frame-specific granularity. To address this limitation, we propose a Multi-Scale Semantic Projector that integrates video-level semantic features\nwith frame-level ones, generating frame-specific features\nfproj ∈ RT ×Dm that are projected into the mask decoder\nto guide fine-grained detection in each frame.\nTo extract frame-level local anomaly information from\nthe video sequence, we employ cross-attention mechanisms\n\nbetween the anomaly category features and vision features,\nas demonstrated in the following formulation:\nfa = Wo · CrossAttn (Wc fc , Wv fv , Wv fv )\n\n(7)\n\nwhere fv ∈ RT ×L×Dv is vision features. Wc ∈ RDc ×Dl ,\nWv ∈ RDv ×Dl , and Wo ∈ RDl ×Da are learnable projection matrices. Dl and Da represent the intermediate layer\nfeature dimension of the output MLP and the hidden layer\nfeatures of the multi-scale semantic projector, respectively.\nfa ∈ RT ×K×Da is the output frame-level semantic features, containing the anomaly target information for each\nframe.\nWe expand fsem along the temporal dimension and apply a mapping matrix WLLM . Then we concatenate it with\nfa . The combined features are projected into the latent\nspace of the mask decoder via a Q-Former-like projector.\nDrawing inspiration from SAM, we formulate the projector as a two-way transformer architecture, as illustrated in\nFig. 2, to facilitate the mutual updating of both learnable\nqueries and the extracted features fsem and fa :\nfproj = Φproj ([WLLM fsem , fa ])\n\n(8)\n\nwhere Φproj is the projector and fproj ∈ RT ×Dm represents the projected feature, and Dm is the latent dimension\nof Multi-Level Mask Decoder.\n\n3.8. Multi-Level Mask Decoder\nExisting VAD models typically focus on frame-level\nanomaly scores, limiting their detection granularity. To address this, our approach introduces a Multi-Level Mask Decoder initialized from SAM to enable both frame-level and\npixel-level anomaly detection.\nWe feed fproj as the sparse prompt embedding of SAM2.\nAfter integrating the visual features fv , the mask decoder\nproduces pixel-level scores and object score logits. The\nobject score logits indicate the confidence of target object\npresence within the image or frame, which we leverage as\nthe frame-level anomaly score. This process can be formulated as follows:\nŷif , ŷip = Φd (fproj , fv )\n\n(9)\n\nwhere ŷif represents the frame-level score, ŷip denotes the\npixel-level score, and Φd is the mask decoder of SAM2.\n\n3.9. Objective Function\nThe objective function comprises two components: Ltxt\nand Lseg .\nL = λtxt Ltxt + λseg Lseg\n\n(10)\n\nwhere λtxt and λseg are loss weight, Ltxt represents the\ntext generation loss of the MLLM, and Lseg denotes the\n\n\fMethods\n\nVenue\n\nTraining\n\nMemAE [6]\nICCV’19\nUnsupervised\nGODS [31]\nICCV’19\nUnsupervised\nMSMA [18]\nICLR’21\nUnsupervised\nGCL [46]\nCVPR’22\nUnsupervised\nFastAno [23]\nWACV’22\nUnsupervised\nFPDM [38]\nICCV’23\nUnsupervised\nMULDE [21]\nCVPR’24\nUnsupervised\nAED-MAE [24]\nCVPR’24\nUnsupervised\nMA-PDM [51]\nAAAI’25\nUnsupervised\nCLIP-TSA [11]\nICIP’23 Weakly-Supervised\nTPWNG [41]\nCVPR’24 Weakly-Supervised\nVadCLIP [35]\nAAAI’24 Weakly-Supervised\nHolmes-VAU [49]\nCVPR’25 Weakly-Supervised\nVERA [42]\nCVPR’25 Weakly-Supervised\nPI-VAD [20]\nCVPR’25 Weakly-Supervised\nAnomize [13]\nCVPR’25 Weakly-Supervised\nAnomalyRuler [39] ECCV’24\nFew-Shot\nLAVAD [47]\nCVPR’24\nZero-Shot\nAnyAnomaly [2]\nWACV’26\nZero-Shot\nEventVAD [27]\nACM’25\nZero-Shot\nOurs\nZero-Shot\n\nUBnormal ShanghaiTech UCF-Crime XD-Violence\nAUC (%)\nAUC (%)\nAUC (%)\nAP (%)\n71.2\n70.4\n61.56\n76.7\n64.5\n79.62\n74.2\n72.2\n62.7\n78.6\n74.7\n72.8\n81.3\n78.5\n58.5\n79.1\n63.4\n79.2\n87.58\n82.19\n87.79\n83.68\n88.02\n84.51\n87.68\n88.96\n86.55\n56.27\n90.33\n85.37\n84.49\n69.31\n71.9\n85.2\n80.82\n62.01\n74.5\n79.7\n80.7\n82.03\n64.04\n76.45\n85.28\n82.18\n90.62\n\nTab. 1. Frame-level zero-shot performance compared with state-of-the-art methods. We utilize AUC as the evaluation metric for\nUBnormal, ShanghaiTech and UCF-Crime datasets, and AP for the XD-Violence dataset. The best results are highlighted in bold.\n\nanomaly detection loss that encompasses both frame-level\nand pixel-level performance enhancement. To facilitate optimization, we adopt SAM2’s training loss for Lseg .\n\n4. Experiment\nOur training dataset includes a diverse collection of segmentation datasets without any VAD datasets. Detailed information regarding datasets, configurations, and additional\nresults can be found in the supplementary material.\n\n4.1. Qualitative Results\n4.1.1. Frame-Level Zero-Shot Evaluation\nIn Tab. 1, we present a comprehensive comparison of our\nproposed method against other SOTA approaches under\nzero-shot conditions across the UBnormal, ShanghaiTech,\nUCF-Crime, and XD-Violence datasets. The compared\nmethods encompass four categories: unsupervised methods, weakly-supervised methods, few-shot methods, and\nzero-shot methods.\nThe experimental results demonstrate that our method\nattains 76.45%, 85.28% and 82.18% on the UBnormal,\nShanghaiTech and UCF-Crime datasets, surpassing SOTA\nunsupervised, zero-shot and few-shot methods. On the XDViolence dataset, our approach achieves 90.62%, outperforming SOTA methods. These datasets vary in both scenar-\n\nios and anomaly types. This superior performance demonstrates the effectiveness of our proposed method in handling\nboth unseen scenarios and novel anomaly categories.\nOur method does not surpass weakly-supervised approaches on UCF-Crime, which we attribute to the limitations of existing MLLMs in comprehending low-resolution\nvideos. In contrast, UBnormal, ShanghaiTech, and XDViolence are high-resolution datasets, where small abnormal targets remain distinguishable.\n4.1.2. Pixel-Level Zero-Shot Evaluation\nWe evaluate the zero-shot pixel-level performance of our\nmethod against SOTA approaches on the UCSD Ped2\ndataset, as presented in Tab. 2. Our method achieves a pixellevel AUC of 87.68%, which represents a substantial improvement of 12.57% over the current SOTA method. This\nsignificant enhancement demonstrates that our approach\npossesses strong zero-shot anomaly localization capability\nin the spatial dimension.\n\n4.2. Quantitative Results\nFig. 4 presents quantitative results for anomaly detection\nacross six representative cases from different VAD datasets.\nFor each case, the lower row displays frame-level anomaly\nscores over time with anomalous intervals highlighted in\npink, and the upper row shows pixel-level detection results\n\n\fCycling\n\nRunning\n\nScore\n\nScore\n\nTime Step\n\nScore\n\nScore\n\nFighting\n\nExplosion\n\nTime Step\n\nTime Step\n\nScore\n\nScore\n\nVandalism\n\nRoad Accident\n\nTime Step\n\nTime Step\n\nTime Step\n\nFig. 4. Qualitative Results for Anomaly Detection. For each case, the first row presents pixel-level detection results whitch are masked\nby green. The second row displays frame-level anomaly scores, with temporal intervals of anomalous events marked in pink.\n\nMethod\nAdaCLIP [3]\nAnomalyCLIP [52]\nDDAD [22]\nSimpleNet [17]\nDRAEM [48]\nTAO [10]\nProposed\n\nTraining\nFinetune\nFinetune\nSupervised.\nSupervised\nSupervised\nFinetune\nZero-Shot\n\ncase, the target anomaly category is specified in the text.\nThe left panel shows original images, while the right\npanel presents detection results with anomalies highlighted\nin green. Our method demonstrates robust performance\nand strong reasoning capabilities in identifying arbitrary\nanomaly types across diverse scenarios.\n\nAUC(%)\n53.06\n54.25\n55.87\n52.49\n69.58\n75.11\n87.68\n\nTab. 2. Pixel-level performance on UCSD Ped2.\n\n4.3. Ablation Studies\n4.3.1. Analysis of the Anomaly Exposure Sampler\n\nAnomaly: Car\n\nSure, it is:\n\nAnomaly: Playing Football\n\nSure, it is:\n\nmax(KE )\n\nAnomaly: Dog\n\nSure, it is:\n\nAnomaly: Man in Blue\n\nSure, it is:\n\n10\n20\n30\n40\n\nShanghaiTech UCF-Crime XD-Violence\nAUC (%)\nAUC (%)\nAP (%)\n73.34\n67.11\n55.44\n80.13\n80.02\n91.20\n85.02\n82.06\n90.30\n76.41\n77.93\n75.32\n\nTab. 3. Effect of the number of anomaly categories introduced\nin the anomaly exposure dataset.\nAnomaly: Stop Sign\n\nSure, it is:\n\nAnomaly:Fruit with different color\n\nSure, it is:\n\nFig. 5. Quantitative Visualizations for Open-World Scenarios.\nThe left panel shows the original image, and the right panel highlights detected anomalies with green masks.\n\nat corresponding time steps with anomaly targets masked in\ngreen. Higher scores in pink regions and lower scores elsewhere demonstrate effective frame-level detection. Results\nshow our model accurately identifies anomalous frames in\nunseen scenarios and generates precise pixel-level scores\nthat delineate anomaly boundaries.\nFig. 5 presents open-world detection results. For each\n\nTab. 3 shows the effect of anomaly category count KE in\nthe anomaly exposure dataset. To enable MLLMs to comprehend arbitrary anomaly types, we set KE as a random\nvariable and evaluate the impact by controlling max(KE ).\nResults show that performance is poor when max(KE ) =\n10, improves as the value increases, and reaches optimum around 30. Further increases beyond 30 cause performance degradation, which we attribute to excessively\nlengthy prompts that reduce the model’s focus on individual\nanomaly types.\n4.3.2. Analysis of Token Compression\nFig. 6 illustrates the token compression process. We leverage local density to identify tokens with the highest density values, which correspond closely to the background\nregions. During the reverse attention stage, tokens whose\nfeatures are highly dissimilar to the background tokens are\n\n\fOriginal Video\n\nLocal Density\n\nReverse-Attn Weight\n\nframe-level\npixel-level\nShanghaiTech UCF-Crime XD-Violence\nPed2\nAUC (%)\nAUC (%)\nAP (%)\nAUC (%)\nMLP\n81.99\n79.90\n86.09\n77.09\nQ-Former\n82.63\n75.54\n83.93\n71.85\nProposed\n85.28\n82.06\n90.62\n87.68\nAdapter\n\nTab. 4. Comparison among different adapters.\nnumber of queries\n24\n32\n48\n64\n\nShanghaiTech UCF-Crime XD-Violence\nAUC (%)\nAUC (%)\nAP (%)\n58.85\n66.63\n50.14\n77.41\n77.96\n88.31\n80.64\n80.06\n90.30\n77.96\n67.11\n89.15\n\nTab. 5. Effect of the number of learnable queries.\nFig. 6. Token Compression Process. The first column shows the\noriginal video frames. The second column shows local density,\nand the third shows reverse attention weights. Warmer colors indicate higher values.\n\n(a) Compression ratio vs. model performance.\n\nloss caused by excessive compression. UCF-Crime’s resolution is much lower than other datasets, making it the most\nsusceptible to the visual compression.\nFig. 7b shows the corresponding GPU memory utilization versus the compression ratio. As the number of input visual tokens decreases, GPU memory consumption exhibits a linear reduction. At a compression ratio of 0.2, GPU\nmemory usage is reduced to 54.1% of the baseline, with no\nsubstantial performance loss (UBNormal: +2.44%, ShanghaiTech: +2.24%, XD-Violence: -0.32%, UCF-Crime: 2.49%, Average: +0.47%).\n4.3.3. Analysis of the Multi-Scale Semantic Projector\n\n(b) Compression ratio vs. GPU memory usage.\n\nFig. 7. Impression of compression ratio. We normalize the frame\nsize across all datasets to ensure a consistent number of total visual\ntokens. GPU memory usage is recorded during inference stage.\n\naggregated via reverse attention weight. As shown in the\nthird column of Fig. 6, the reverse attention weights concentrate on regions that exhibit substantial dissimilarity from\nthe background, which are typically anomaly-prone areas.\nFig. 7a presents the variation of performance across\ndatasets with respect to the token compression ratio. For\ncompression ratios above 0.1, performance remains relatively stable, demonstrating effective background token\nreduction without compromising model capability. On\nhigh-resolution datasets (UBnormal, ShanghaiTech, XDViolence), we observe slight improvements, as background\nsuppression enables better focus on small anomaly targets.\nWhen the compression ratio drops below 0.1, a marked performance degradation occurs due to substantial information\n\nTo validate the effectiveness of our Multi-Scale Semantic\nProjector, we compared it against MLP and Q-Former at\nboth frame-level and pixel-level. The experimental results\nare presented in Tab. 4. The improvements at frame-level\ndemonstrate the capability to capture temporal anomaly\ncues, while the enhancements at pixel-level indicate the\nability to detect spatially sparse anomalies.\nTab. 5 presents the effect of learnable query count on\nzero-shot detection performance. With 24 queries, the\nmodel achieves suboptimal results due to limited representational capacity. Performance improves as query count increases, reaching a peak before declining when queries become excessive, causing convergence difficulties.\n\n5. Conclusion\nIn this paper, we propose LAVIDA, an end-to-end zero-shot\nVAD approach that leverages MLLM and token compression algorithm to extract semantic anomaly features and an\nanomaly exposure sampler to enable anomaly detection in\nopen-world scenarios without training VAD data. Multiscale semantic projector is employed to extract hierarchical\ncues for joint frame- and pixel-level prediction. Extensive\nexperiments the effectiveness across multiple benchmarks.\nWe hope our work inspires further researches in developing\nopen-world video anomaly detection and understanding.\n\n\fAcknowledgement This work is supported in part by\nthe National Natural Science Foundation of China (No.\n62272057) and the Beijing Key Laboratory of Multimodal\nData Intelligent Perception and Governance.\n\nReferences\n[1] Andra Acsintoae, Andrei Florescu, Mariana-Iuliana\nGeorgescu, Tudor Mare, Paul Sumedrea, Radu Tudor\nIonescu, Fahad Shahbaz Khan, and Mubarak Shah. Ubnormal: New benchmark for supervised open-set video\nanomaly detection.\nIn Proceedings of the IEEE/CVF\nconference on computer vision and pattern recognition,\npages 20143–20153, 2022. 2\n[2] Sunghyun Ahn, Youngwan Jo, Kijung Lee, Sein Kwon, Inpyo Hong, and Sanghyun Park. Anyanomaly: Zero-shot customizable video anomaly detection with lvlm. arXiv preprint\narXiv:2503.04504, 2025. 2, 3, 6\n[3] Yunkang Cao, Jiangning Zhang, Luca Frittoli, Yuqi Cheng,\nWeiming Shen, and Giacomo Boracchi. Adaclip: Adapting\nclip with hybrid learnable prompts for zero-shot anomaly detection. In European Conference on Computer Vision, pages\n55–72. Springer, 2024. 7\n[4] Hang Du, Sicheng Zhang, Binzhu Xie, Guoshun Nan, Jiayang Zhang, Junrui Xu, Hangyu Liu, Sicong Leng, Jiangming Liu, Hehe Fan, et al. Uncovering what why and how:\nA comprehensive benchmark for causation understanding of\nvideo anomaly. In Proceedings of the IEEE/CVF Conference\non Computer Vision and Pattern Recognition, pages 18793–\n18803, 2024. 3\n[5] Xinyang Feng, Dongjin Song, Yuncong Chen, Zhengzhang\nChen, Jingchao Ni, and Haifeng Chen. Convolutional transformer based dual discriminator generative adversarial networks for video anomaly detection. In Proceedings of the\n29th ACM international conference on multimedia, pages\n5546–5554, 2021. 2\n[6] Dong Gong, Lingqiao Liu, Vuong Le, Budhaditya Saha,\nMoussa Reda Mansour, Svetha Venkatesh, and Anton\nvan den Hengel. Memorizing normality to detect anomaly:\nMemory-augmented deep autoencoder for unsupervised\nanomaly detection, 2019. 6\n[7] Yi Hao, Jie Li, Nannan Wang, Xiaoyu Wang, and Xinbo\nGao. Spatiotemporal consistency-enhanced network for\nvideo anomaly detection. Pattern Recognition, 121:108232,\n2022. 2\n[8] Or Hirschorn and Shai Avidan. Normalizing flows for human\npose anomaly detection. In Proceedings of the IEEE/CVF\nInternational Conference on Computer Vision, pages 13545–\n13554, 2023. 2, 3\n[9] Qin Huang, Chunyang Xia, Chihao Wu, Siyang Li, Ye Wang,\nYuhang Song, and C. C. Jay Kuo. Semantic segmentation\nwith reverse attention, 2017. 4\n[10] Yuzhi Huang, Chenxin Li, Haitao Zhang, Zixu Lin, Yunlong Lin, Hengyu Liu, Wuyang Li, Xinyu Liu, Jiechao Gao,\nYue Huang, et al. Track any anomalous object: A granular video anomaly detection pipeline. In Proceedings of the\nComputer Vision and Pattern Recognition Conference, pages\n8689–8699, 2025. 7\n\n[11] Hyekang Kevin Joo, Khoa Vo, Kashu Yamazaki, and Ngan\nLe. Clip-tsa: Clip-assisted temporal self-attention for\nweakly-supervised video anomaly detection. In 2023 IEEE\nInternational Conference on Image Processing (ICIP), pages\n3230–3234. IEEE, 2023. 2, 6\n[12] Xin Lai, Zhuotao Tian, Yukang Chen, Yanwei Li, Yuhui\nYuan, Shu Liu, and Jiaya Jia. Lisa: Reasoning segmentation\nvia large language model. arXiv preprint arXiv:2308.00692,\n2023. 5\n[13] Fei Li, Wenxuan Liu, Jingjing Chen, Ruixu Zhang, Yuran\nWang, Xian Zhong, and Zheng Wang. Anomize: Better\nopen vocabulary video anomaly detection. In Proceedings\nof the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 29203–29212, 2025. 6\n[14] Fei Li, Wenxuan Liu, Jingjing Chen, Ruixu Zhang, Yuran\nWang, Xian Zhong, and Zheng Wang. Anomize: Better open\nvocabulary video anomaly detection. In Proceedings of the\nComputer Vision and Pattern Recognition Conference, pages\n29203–29212, 2025. 2, 3\n[15] Shuo Li, Fang Liu, and Licheng Jiao. Self-training multisequence learning with transformer for weakly supervised\nvideo anomaly detection. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 1395–1403, 2022. 2\n[16] 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/CVF international conference on computer vision, pages 13588–13597,\n2021. 2\n[17] Zhikang Liu, Yiming Zhou, Yuansheng Xu, and Zilei Wang.\nSimplenet: A simple network for image anomaly detection\nand localization. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages\n20402–20411, 2023. 7\n[18] Ahsan Mahmood, Junier Oliva, and Martin Styner. Multiscale score matching for out-of-distribution detection. arXiv\npreprint arXiv:2010.13132, 2020. 6\n[19] Snehashis Majhi, Giacomo D’Amicantonio, Antitza\nDantcheva, Quan Kong, Lorenzo Garattoni, Gianpiero\nFrancesca, Egor Bondarev, and Francois Bremond. Just\ndance with pi! a poly-modal inductor for weakly-supervised\nvideo anomaly detection. In Proceedings of the Computer\nVision and Pattern Recognition Conference (CVPR), pages\n24265–24274, 2025. 2\n[20] Snehashis Majhi, Giacomo D’Amicantonio, Antitza\nDantcheva, Quan Kong, Lorenzo Garattoni, Gianpiero\nFrancesca, Egor Bondarev, and François Brémond. Just\ndance with pi! a poly-modal inductor for weakly-supervised\nvideo anomaly detection. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages\n24265–24274, 2025. 6\n[21] Jakub Micorek, Horst Possegger, Dominik Narnhofer, Horst\nBischof, and Mateusz Kozinski. Mulde: Multiscale logdensity estimation via denoising score matching for video\nanomaly detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages\n18868–18877, 2024. 6\n\n\f[22] Arian Mousakhan, Thomas Brox, and Jawad Tayyub.\nAnomaly detection with conditioned denoising diffusion\nmodels. In DAGM German Conference on Pattern Recognition, pages 181–195. Springer, 2024. 7\n[23] Chaewon Park, MyeongAh Cho, Minhyeok Lee, and Sangyoun Lee. Fastano: Fast anomaly detection via spatiotemporal patch transformation. In Proceedings of the\nIEEE/CVF Winter Conference on Applications of Computer\nVision, pages 2249–2259, 2022. 6\n[24] Nicolae-C Ristea, Florinel-Alin Croitoru, Radu Tudor\nIonescu, Marius Popescu, Fahad Shahbaz Khan, Mubarak\nShah, et al. Self-distilled masked auto-encoders are efficient\nvideo anomaly detectors. In Proceedings of the IEEE/CVF\nconference on computer vision and pattern recognition,\npages 15984–15995, 2024. 2, 6\n[25] Mohammad Sabokrou, Mohammad Khalooei, Mahmood\nFathy, and Ehsan Adeli. Adversarially learned one-class\nclassifier for novelty detection. In Proceedings of the\nIEEE conference on computer vision and pattern recognition, pages 3379–3388, 2018. 2\n[26] Bernhard Schölkopf, Robert C Williamson, Alex Smola,\nJohn Shawe-Taylor, and John Platt. Support vector method\nfor novelty detection. Advances in neural information processing systems, 12, 1999. 2\n[27] Yihua Shao, Haojin He, Sijie Li, Siyu Chen, Xinwei Long,\nFanhu Zeng, Yuxuan Fan, Muyang Zhang, Ziyang Yan,\nAo Ma, et al. Eventvad: Training-free event-aware video\nanomaly detection. arXiv preprint arXiv:2504.13092, 2025.\n2, 3, 6\n[28] Waqas Sultani, Chen Chen, and Mubarak Shah. Real-world\nanomaly detection in surveillance videos. In Proceedings of\nthe IEEE conference on computer vision and pattern recognition, pages 6479–6488, 2018. 2\n[29] Jiaqi Tang, Hao Lu, Ruizheng Wu, Xiaogang Xu, Ke Ma,\nCheng Fang, Bin Guo, Jiangbo Lu, Qifeng Chen, and Yingcong Chen. Hawk: Learning to understand open-world video\nanomalies. Advances in Neural Information Processing Systems, 37:139751–139785, 2024. 3\n[30] Yu Tian, Guansong Pang, Yuanhong Chen, Rajvinder Singh,\nJohan W Verjans, and Gustavo Carneiro. Weakly-supervised\nvideo anomaly detection with robust temporal feature magnitude learning. In Proceedings of the IEEE/CVF international\nconference on computer vision, pages 4975–4986, 2021. 2\n[31] Jue Wang and Anoop Cherian. Gods: Generalized one-class\ndiscriminative subspaces for anomaly detection. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 8201–8211, 2019. 2, 6\n[32] Peng Wu and Jing Liu. Learning causal temporal relation and\nfeature discrimination for anomaly detection. IEEE Transactions on Image Processing, 30:3513–3527, 2021. 2\n[33] Peng Wu, Jing Liu, and Fang Shen. A deep one-class neural\nnetwork for anomalous event detection in complex scenes.\nIEEE transactions on neural networks and learning systems,\n31(7):2609–2622, 2019. 2\n[34] Peng Wu, Xuerong Zhou, Guansong Pang, Yujia Sun, Jing\nLiu, Peng Wang, and Yanning Zhang. Open-vocabulary\nvideo anomaly detection. In Proceedings of the IEEE/CVF\n\nConference on Computer Vision and Pattern Recognition,\npages 18297–18307, 2024. 2, 3\n[35] Peng Wu, Xuerong Zhou, Guansong Pang, Lingru Zhou,\nQingsen Yan, Peng Wang, and Yanning Zhang. Vadclip:\nAdapting vision-language models for weakly supervised\nvideo anomaly detection. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 6074–6082, 2024. 2,\n6\n[36] Zhenghao Xing, Hao Chen, Binzhu Xie, Jiaqi Xu, Ziyu Guo,\nXuemiao Xu, Jianye Hao, Chi-Wing Fu, Xiaowei Hu, and\nPheng-Ann Heng. Echotraffic: Enhancing traffic anomaly\nunderstanding with audio-visual insights. In Proceedings\nof the Computer Vision and Pattern Recognition Conference\n(CVPR), pages 19098–19108, 2025. 3\n[37] Chenting Xu, Ke Xu, Xinghao Jiang, and Tanfeng Sun. Plovad: Prompting vision-language models for open vocabulary\nvideo anomaly detection. IEEE Transactions on Circuits and\nSystems for Video Technology, 2025. 2, 3\n[38] Cheng Yan, Shiyu Zhang, Yang Liu, Guansong Pang, and\nWenjun Wang. Feature prediction diffusion model for video\nanomaly detection. In Proceedings of the IEEE/CVF international conference on computer vision, pages 5527–5537,\n2023. 6\n[39] Yuchen Yang, Kwonjoon Lee, Behzad Dariush, Yinzhi Cao,\nand Shao-Yuan Lo. Follow the rules: Reasoning for video\nanomaly detection with large language models. In European\nConference on Computer Vision, pages 304–322. Springer,\n2024. 2, 3, 6\n[40] Zhiwei Yang, Jing Liu, Zhaoyang Wu, Peng Wu, and Xiaotao\nLiu. Video event restoration based on keyframes for video\nanomaly detection. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages\n14592–14601, 2023. 2\n[41] Zhiwei Yang, Jing Liu, and Peng Wu. Text prompt with normality guidance for weakly supervised video anomaly detection. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 18899–18908,\n2024. 2, 6\n[42] Muchao Ye, Weiyang Liu, and Pan He. Vera: Explainable\nvideo anomaly detection via verbalized learning of visionlanguage models, 2024. 6\n[43] Tongtong Yuan, Xuange Zhang, Kun Liu, Bo Liu, Chen\nChen, Jian Jin, and Zhenzhen Jiao. Towards surveillance\nvideo-and-language understanding: New dataset baselines\nand challenges. In Proceedings of the IEEE/CVF conference\non computer vision and pattern recognition, pages 22052–\n22061, 2024. 3\n[44] Muhammad Zaigham Zaheer, Jin-ha Lee, Marcella Astrid,\nand Seung-Ik Lee. Old is gold: Redefining the adversarially\nlearned one-class classifier training paradigm. In Proceedings of the IEEE/CVF conference on computer vision and\npattern recognition, pages 14183–14193, 2020. 2\n[45] Muhammad Zaigham Zaheer, Arif Mahmood, Marcella\nAstrid, and Seung-Ik Lee. Claws: Clustering assisted weakly\nsupervised learning with normalcy suppression for anomalous event detection. In European Conference on Computer\nVision, pages 358–376. Springer, 2020. 2\n\n\f[46] M Zaigham Zaheer, Arif Mahmood, M Haris Khan, Mattia\nSegu, Fisher Yu, and Seung-Ik Lee. Generative cooperative\nlearning for unsupervised video anomaly detection. In Proceedings of the IEEE/CVF conference on computer vision\nand pattern recognition, pages 14744–14754, 2022. 6\n[47] Luca Zanella, Willi Menapace, Massimiliano Mancini, Yiming Wang, and Elisa Ricci. Harnessing large language models for training-free video anomaly detection. In Proceedings\nof the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 18527–18536, 2024. 2, 3, 6\n[48] Vitjan Zavrtanik, Matej Kristan, and Danijel Skočaj. Draema discriminatively trained reconstruction embedding for surface anomaly detection. In Proceedings of the IEEE/CVF\ninternational conference on computer vision, pages 8330–\n8339, 2021. 7\n[49] Huaxin Zhang, Xiaohao Xu, Xiang Wang, Jialong Zuo, Xiaonan Huang, Changxin Gao, Shanjun Zhang, Li Yu, and\nNong Sang. Holmes-vau: Towards long-term video anomaly\nunderstanding at any granularity. In Proceedings of the Computer Vision and Pattern Recognition Conference (CVPR),\npages 13843–13853, 2025. 3, 6\n[50] Yuanhong Zhong, Xia Chen, Jinyang Jiang, and Fan Ren.\nA cascade reconstruction model with generalization ability\nevaluation for anomaly detection in videos. Pattern Recognition, 122:108336, 2022. 2\n[51] Hang Zhou, Jiale Cai, Yuteng Ye, Yonghui Feng, Chenxing\nGao, Junqing Yu, Zikai Song, and Wei Yang. Video anomaly\ndetection with motion and appearance guided patch diffusion\nmodel. In Proceedings of the AAAI Conference on Artificial\nIntelligence, pages 10761–10769, 2025. 6\n[52] Qihang Zhou, Guansong Pang, Yu Tian, Shibo He, and\nJiming Chen. Anomalyclip: Object-agnostic prompt learning for zero-shot anomaly detection.\narXiv preprint\narXiv:2310.18961, 2023. 7\n[53] Yuansheng Zhu, Wentao Bao, and Qi Yu. Towards open set\nvideo anomaly detection. In European Conference on Computer Vision, pages 395–412. Springer, 2022. 2, 3\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"