"<!DOCTYPE html>\n<html lang=\"zh\" data-theme=\"light\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>fulltext.txt — Vercel Design System</title>\n<link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">\n<link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin>\n<link href=\"https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap\" rel=\"stylesheet\">\n<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css\">\n<style>\n\n:root {\n  /* Vercel Palette */\n  --geist-foreground: #171717;\n  --geist-background: #ffffff;\n  --geist-secondary: #4d4d4d;\n  --geist-tertiary: #666666;\n  --geist-quaternary: #808080;\n  --geist-border: #ebebeb;\n  --geist-surface-tint: #fafafa;\n  \n  /* Workflow Accents */\n  --develop-blue: #0a72ef;\n  --preview-pink: #de1d8d;\n  --ship-red: #ff5b4f;\n  \n  /* Interactive & Status */\n  --link-blue: #0072f5;\n  --ds-focus-color: hsla(212, 100%, 48%, 1);\n  --badge-blue-bg: #ebf5ff;\n  --badge-blue-text: #0068d6;\n  \n  /* Shadow-as-Border Philosophy */\n  --shadow-border: rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;\n  --shadow-border-hover: rgba(0, 0, 0, 0.16) 0px 0px 0px 1px;\n  --shadow-card: rgba(0, 0, 0, 0.08) 0px 0px 0px 1px, rgba(0, 0, 0, 0.04) 0px 2px 2px, #fafafa 0px 0px 0px 1px;\n  --shadow-card-hover: rgba(0, 0, 0, 0.12) 0px 0px 0px 1px, rgba(0, 0, 0, 0.06) 0px 4px 6px, #fafafa 0px 0px 0px 1px;\n  --shadow-card-full: rgba(0, 0, 0, 0.08) 0px 0px 0px 1px, rgba(0, 0, 0, 0.04) 0px 2px 2px, rgba(0, 0, 0, 0.04) 0px 8px 8px -8px, #fafafa 0px 0px 0px 1px;\n  --shadow-ring: rgb(235, 235, 235) 0px 0px 0px 1px;\n  \n  /* Radius Scale */\n  --radius-xs: 2px;\n  --radius-sm: 4px;\n  --radius-md: 6px;\n  --radius-lg: 8px;\n  --radius-xl: 12px;\n  --radius-pill: 9999px;\n}\n\n[data-theme=\"dark\"] {\n  --geist-foreground: #ededed;\n  --geist-background: #000000;\n  --geist-secondary: #a1a1a1;\n  --geist-tertiary: #888888;\n  --geist-quaternary: #666666;\n  --geist-border: #222222;\n  --geist-surface-tint: #0a0a0a;\n  \n  --shadow-border: rgba(255, 255, 255, 0.14) 0px 0px 0px 1px;\n  --shadow-border-hover: rgba(255, 255, 255, 0.28) 0px 0px 0px 1px;\n  --shadow-card: rgba(255, 255, 255, 0.12) 0px 0px 0px 1px, rgba(0, 0, 0, 0.4) 0px 2px 4px, #111111 0px 0px 0px 1px;\n  --shadow-card-hover: rgba(255, 255, 255, 0.2) 0px 0px 0px 1px, rgba(0, 0, 0, 0.5) 0px 6px 12px, #111111 0px 0px 0px 1px;\n  --shadow-card-full: rgba(255, 255, 255, 0.12) 0px 0px 0px 1px, rgba(0, 0, 0, 0.5) 0px 8px 16px -4px, #111111 0px 0px 0px 1px;\n  --shadow-ring: rgb(40, 40, 40) 0px 0px 0px 1px;\n  \n  --badge-blue-bg: rgba(10, 114, 239, 0.15);\n  --badge-blue-text: #70b5ff;\n}\n\n* { box-sizing: border-box; }\nhtml { scroll-behavior: smooth; }\nbody {\n  margin: 0;\n  font-family: \"Geist\", Arial, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif;\n  background-color: var(--geist-background);\n  color: var(--geist-foreground);\n  font-feature-settings: \"liga\" 1;\n  -webkit-font-smoothing: antialiased;\n  min-height: 100vh;\n}\n\na {\n  color: inherit;\n  text-decoration: none;\n  transition: color 0.15s ease;\n}\n\n/* 导航栏 (Vercel Clean Sticky Nav) */\n.vercel-nav {\n  position: sticky;\n  top: 0;\n  background-color: var(--geist-background);\n  box-shadow: var(--shadow-border);\n  z-index: 100;\n  padding: 0 24px;\n  height: 64px;\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n}\n.nav-brand {\n  display: flex;\n  align-items: center;\n  gap: 12px;\n}\n.vercel-triangle {\n  width: 22px;\n  height: 19px;\n  fill: var(--geist-foreground);\n}\n.nav-title {\n  font-size: 16px;\n  font-weight: 600;\n  letter-spacing: -0.32px;\n  color: var(--geist-foreground);\n}\n.nav-badge-pill {\n  font-family: \"Geist Mono\", ui-monospace, monospace;\n  font-size: 11px;\n  font-weight: 500;\n  text-transform: uppercase;\n  background: var(--badge-blue-bg);\n  color: var(--badge-blue-text);\n  padding: 2px 8px;\n  border-radius: var(--radius-pill);\n}\n\n.nav-links {\n  display: flex;\n  align-items: center;\n  gap: 24px;\n}\n.nav-link {\n  font-size: 14px;\n  font-weight: 500;\n  color: var(--geist-secondary);\n  text-decoration: none;\n  transition: color 0.15s;\n}\n.nav-link:hover, .nav-link.active {\n  color: var(--geist-foreground);\n}\n.nav-link.active {\n  font-weight: 600;\n}\n\n.nav-actions {\n  display: flex;\n  align-items: center;\n  gap: 12px;\n}\n\n/* 按钮规范 */\n.btn-primary-dark {\n  background: var(--geist-foreground);\n  color: var(--geist-background);\n  border: none;\n  padding: 8px 16px;\n  border-radius: var(--radius-md);\n  font-size: 14px;\n  font-weight: 500;\n  cursor: pointer;\n  text-decoration: none;\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  transition: opacity 0.15s;\n}\n.btn-primary-dark:hover {\n  opacity: 0.9;\n}\n.btn-secondary-white {\n  background: var(--geist-background);\n  color: var(--geist-foreground);\n  box-shadow: var(--shadow-border);\n  border: none;\n  padding: 8px 16px;\n  border-radius: var(--radius-md);\n  font-size: 14px;\n  font-weight: 500;\n  cursor: pointer;\n  text-decoration: none;\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  transition: background 0.15s, box-shadow 0.15s;\n}\n.btn-secondary-white:hover {\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border-hover);\n}\n.theme-toggle-btn {\n  background: transparent;\n  border: none;\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  width: 36px;\n  height: 36px;\n  cursor: pointer;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  color: var(--geist-foreground);\n}\n\n/* 核心容器 */\n.vercel-container {\n  max-width: 1200px;\n  margin: 0 auto;\n  padding: 56px 24px 100px;\n}\n\n/* Hero Section (Gallery Emptiness + Negative Letter-spacing) */\n.vercel-hero {\n  text-align: center;\n  max-width: 860px;\n  margin: 0 auto 56px;\n}\n.hero-stage-badge {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border);\n  padding: 4px 14px;\n  border-radius: var(--radius-pill);\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-secondary);\n  margin-bottom: 24px;\n}\n.stage-dot {\n  width: 7px;\n  height: 7px;\n  border-radius: 50%;\n}\n.vercel-hero h1 {\n  font-size: 48px;\n  font-weight: 600;\n  line-height: 1.05;\n  letter-spacing: -2.4px;\n  color: var(--geist-foreground);\n  margin: 0 0 16px;\n}\n.vercel-hero p {\n  font-size: 20px;\n  font-weight: 400;\n  line-height: 1.80;\n  color: var(--geist-secondary);\n  margin: 0 auto 28px;\n}\n\n/* Workflow Pipeline (Develop -> Preview -> Ship) */\n.workflow-pipeline {\n  display: grid;\n  grid-template-columns: repeat(3, 1fr);\n  gap: 16px;\n  margin-bottom: 48px;\n}\n@media (max-width: 768px) {\n  .workflow-pipeline { grid-template-columns: 1fr; }\n}\n.workflow-step {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 20px 22px;\n  transition: box-shadow 0.2s;\n}\n.workflow-step:hover {\n  box-shadow: var(--shadow-card-hover);\n}\n.step-mono-label {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 12px;\n  font-weight: 500;\n  text-transform: uppercase;\n  letter-spacing: 0.5px;\n  margin-bottom: 8px;\n  display: flex;\n  align-items: center;\n  gap: 6px;\n}\n.step-title {\n  font-size: 20px;\n  font-weight: 600;\n  letter-spacing: -0.96px;\n  color: var(--geist-foreground);\n  margin-bottom: 6px;\n}\n.step-desc {\n  font-size: 14px;\n  color: var(--geist-secondary);\n  line-height: 1.5;\n}\n\n/* Metric Cards (Section 4 Spec) */\n.metric-grid {\n  display: grid;\n  grid-template-columns: repeat(4, 1fr);\n  gap: 16px;\n  margin-bottom: 48px;\n}\n@media (max-width: 900px) {\n  .metric-grid { grid-template-columns: repeat(2, 1fr); }\n}\n.metric-card {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 20px;\n}\n.metric-number {\n  font-size: 40px;\n  font-weight: 600;\n  line-height: 1.0;\n  letter-spacing: -2.4px;\n  color: var(--geist-foreground);\n  margin-bottom: 8px;\n  font-feature-settings: \"tnum\" 1;\n}\n.metric-label {\n  font-size: 14px;\n  color: var(--geist-secondary);\n  line-height: 1.4;\n}\n\n/* VAD 专栏 Banner (Ship Red & Vercel Clean) */\n.vad-showcase {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card-full);\n  border-radius: var(--radius-xl);\n  padding: 32px;\n  margin-bottom: 48px;\n  position: relative;\n}\n.vad-header-row {\n  display: flex;\n  align-items: baseline;\n  justify-content: space-between;\n  flex-wrap: wrap;\n  gap: 12px;\n  margin-bottom: 12px;\n}\n.vad-header-row h2 {\n  font-size: 32px;\n  font-weight: 600;\n  letter-spacing: -1.28px;\n  color: var(--geist-foreground);\n  margin: 0;\n}\n.vad-pillars-grid {\n  display: grid;\n  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));\n  gap: 14px;\n  margin-top: 24px;\n}\n.vad-pillar-item {\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  padding: 14px 16px;\n}\n.vad-pillar-title {\n  font-size: 14px;\n  font-weight: 600;\n  color: var(--ship-red);\n  margin-bottom: 4px;\n}\n.vad-pillar-text {\n  font-size: 13px;\n  color: var(--geist-secondary);\n  line-height: 1.5;\n}\n.vad-filter-bar {\n  display: flex;\n  flex-wrap: wrap;\n  align-items: center;\n  justify-content: space-between;\n  gap: 12px;\n  margin: 24px 0 16px;\n  padding: 12px 16px;\n  background: var(--geist-surface-tint);\n  border-radius: var(--radius-md);\n  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);\n}\n.vad-filter-btn {\n  font-family: 'Geist', sans-serif;\n  font-size: 13px;\n  font-weight: 500;\n  padding: 6px 14px;\n  border-radius: 9999px;\n  border: none;\n  background: transparent;\n  color: var(--geist-secondary);\n  cursor: pointer;\n  transition: all 0.15s ease;\n}\n.vad-filter-btn:hover {\n  color: var(--geist-foreground);\n  background: rgba(0,0,0,0.05);\n}\n.vad-filter-btn.active {\n  background: #171717;\n  color: #ffffff;\n}\n.vad-search-input {\n  font-family: 'Geist', sans-serif;\n  font-size: 13px;\n  padding: 7px 12px;\n  border-radius: 6px;\n  border: 1px solid var(--geist-border);\n  background: #ffffff;\n  color: var(--geist-foreground);\n  width: 280px;\n  outline: none;\n  transition: border-color 0.15s, box-shadow 0.15s;\n}\n.vad-search-input:focus {\n  border-color: #0a72ef;\n  box-shadow: 0 0 0 2px rgba(10, 114, 239, 0.2);\n}\n\n/* 控制栏：搜索、视图、筛选 */\n.control-bar {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  gap: 16px;\n  margin-bottom: 24px;\n  flex-wrap: wrap;\n}\n.search-input-wrap {\n  position: relative;\n  flex: 1;\n  max-width: 480px;\n}\n.search-input {\n  width: 100%;\n  height: 40px;\n  padding: 0 38px 0 14px;\n  font-family: \"Geist\", sans-serif;\n  font-size: 14px;\n  color: var(--geist-foreground);\n  background: var(--geist-background);\n  box-shadow: var(--shadow-border);\n  border: none;\n  border-radius: var(--radius-md);\n  outline: none;\n  transition: box-shadow 0.15s;\n}\n.search-input:focus {\n  outline: 2px solid var(--ds-focus-color);\n  box-shadow: none;\n}\n.search-kbd {\n  position: absolute;\n  right: 12px;\n  top: 50%;\n  transform: translateY(-50%);\n  font-family: \"Geist Mono\", monospace;\n  font-size: 11px;\n  color: var(--geist-quaternary);\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border);\n  padding: 2px 6px;\n  border-radius: var(--radius-sm);\n}\n\n.view-switcher {\n  display: flex;\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  background: var(--geist-background);\n  padding: 2px;\n}\n.view-btn {\n  background: transparent;\n  border: none;\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-tertiary);\n  padding: 6px 12px;\n  border-radius: var(--radius-sm);\n  cursor: pointer;\n  transition: color 0.15s, background 0.15s;\n}\n.view-btn.active {\n  background: var(--geist-surface-tint);\n  color: var(--geist-foreground);\n  font-weight: 600;\n}\n\n/* 筛选芯片行 (Filter Pill Strip) */\n.filter-group-strip {\n  display: flex;\n  flex-direction: column;\n  gap: 12px;\n  margin-bottom: 28px;\n  padding: 16px 20px;\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-lg);\n}\n.filter-row {\n  display: flex;\n  align-items: center;\n  gap: 8px;\n  flex-wrap: wrap;\n}\n.filter-label-mono {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 11px;\n  font-weight: 500;\n  text-transform: uppercase;\n  color: var(--geist-quaternary);\n  min-width: 68px;\n}\n.pill-badge {\n  background: var(--geist-background);\n  color: var(--geist-secondary);\n  box-shadow: var(--shadow-border);\n  border: none;\n  padding: 3px 12px;\n  border-radius: var(--radius-pill);\n  font-size: 12px;\n  font-weight: 500;\n  cursor: pointer;\n  transition: all 0.15s;\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n}\n.pill-badge:hover {\n  color: var(--geist-foreground);\n  box-shadow: var(--shadow-border-hover);\n}\n.pill-badge.active {\n  background: var(--geist-foreground);\n  color: var(--geist-background);\n  font-weight: 600;\n  box-shadow: none;\n}\n.pill-badge.active-blue {\n  background: var(--develop-blue);\n  color: #ffffff;\n  box-shadow: none;\n}\n.pill-badge.active-red {\n  background: var(--ship-red);\n  color: #ffffff;\n  box-shadow: none;\n}\n\n/* Bento Grid Cards (Section 4 & 6 Spec) */\n.card-grid-bento {\n  display: grid;\n  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));\n  gap: 16px;\n}\n.vercel-card {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 20px;\n  display: flex;\n  flex-direction: column;\n  justify-content: space-between;\n  transition: box-shadow 0.2s, transform 0.2s;\n  text-decoration: none;\n  color: inherit;\n  overflow: hidden;\n  min-width: 0;\n  word-break: break-word;\n}\n.vercel-card:hover {\n  box-shadow: var(--shadow-card-hover);\n  transform: translateY(-2px);\n}\n.card-top {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  margin-bottom: 12px;\n  gap: 8px;\n}\n.card-tag-mono {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 11px;\n  font-weight: 500;\n  text-transform: uppercase;\n  color: var(--geist-quaternary);\n  letter-spacing: 0.5px;\n}\n.status-pill-badge {\n  padding: 2px 8px;\n  border-radius: var(--radius-pill);\n  font-size: 11px;\n  font-weight: 500;\n  flex-shrink: 0;\n}\n.pub-accepted { background: #ebfdf2; color: #027a48; }\n.pub-workshop { background: #eff8ff; color: #175cd3; }\n.pub-submitted { background: #fff8e6; color: #b54708; }\n.pub-preprint { background: #f2f4f7; color: #475467; }\n.pub-other { background: #f9f5ff; color: #6941c6; }\n\n[data-theme=\"dark\"] .pub-accepted { background: rgba(2, 122, 72, 0.2); color: #32d583; }\n[data-theme=\"dark\"] .pub-workshop { background: rgba(23, 92, 211, 0.2); color: #84caff; }\n[data-theme=\"dark\"] .pub-submitted { background: rgba(181, 71, 8, 0.2); color: #fec84b; }\n[data-theme=\"dark\"] .pub-preprint { background: rgba(71, 84, 103, 0.2); color: #98a2b3; }\n[data-theme=\"dark\"] .pub-other { background: rgba(105, 65, 198, 0.2); color: #d6bbfb; }\n\n/* 必读标杆徽章 (Vercel Amber Accent) */\n.milestone-badge {\n  display: inline-flex;\n  align-items: center;\n  gap: 3px;\n  padding: 2px 7px;\n  border-radius: var(--radius-pill);\n  font-size: 11px;\n  font-weight: 600;\n  white-space: nowrap;\n  flex-shrink: 0;\n  transition: all 0.15s ease;\n}\n.milestone-badge.ms-idea, .milestone-badge:not([class*=\"ms-\"]) {\n  color: #b54708;\n  background: #fff8e6;\n  border: 1px solid rgba(247, 144, 9, 0.35);\n  box-shadow: 0 1px 2px rgba(181, 71, 8, 0.05);\n}\n[data-theme=\"dark\"] .milestone-badge.ms-idea, [data-theme=\"dark\"] .milestone-badge:not([class*=\"ms-\"]) {\n  color: #fec84b;\n  background: rgba(181, 71, 8, 0.22);\n  border-color: rgba(254, 200, 75, 0.35);\n}\n.milestone-badge.ms-writing {\n  color: #6941c6;\n  background: #f9f5ff;\n  border: 1px solid rgba(105, 65, 198, 0.3);\n  box-shadow: 0 1px 2px rgba(105, 65, 198, 0.05);\n}\n[data-theme=\"dark\"] .milestone-badge.ms-writing {\n  color: #d6bbfb;\n  background: rgba(105, 65, 198, 0.22);\n  border-color: rgba(214, 187, 251, 0.35);\n}\n.milestone-badge.ms-value {\n  color: #027a48;\n  background: #ebfdf2;\n  border: 1px solid rgba(2, 122, 72, 0.3);\n  box-shadow: 0 1px 2px rgba(2, 122, 72, 0.05);\n}\n[data-theme=\"dark\"] .milestone-badge.ms-value {\n  color: #32d583;\n  background: rgba(2, 122, 72, 0.22);\n  border-color: rgba(50, 213, 131, 0.35);\n}\n\n/* 论文正文图表与插图卡片样式 (Geist Design) */\n.paper-figure, .article-body figure {\n  margin: 32px auto;\n  text-align: center;\n  max-width: 100%;\n}\n.paper-figure img, .article-body img {\n  max-width: 96%;\n  height: auto;\n  border-radius: var(--radius-md);\n  border: 1px solid var(--geist-border);\n  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);\n  background: #ffffff;\n  transition: transform 0.2s ease, box-shadow 0.2s ease;\n  display: block;\n  margin: 0 auto;\n}\n.paper-figure img:hover, .article-body img:hover {\n  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);\n}\n.paper-figure figcaption, .article-body figcaption {\n  font-size: 13px;\n  color: var(--geist-secondary);\n  margin-top: 10px;\n  line-height: 1.6;\n  font-style: italic;\n  max-width: 850px;\n  margin-left: auto;\n  margin-right: auto;\n}\n\n/* VAD 视图切换器 View Switcher */\n.vad-view-switcher {\n  display: inline-flex;\n  padding: 3px;\n  background: var(--geist-secondary-bg);\n  border: 1px solid var(--geist-border);\n  border-radius: 8px;\n  margin-bottom: 20px;\n  gap: 2px;\n}\n.view-switch-btn {\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  padding: 6px 14px;\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-secondary);\n  border-radius: 6px;\n  text-decoration: none;\n  transition: all 0.15s ease;\n}\n.view-switch-btn:hover {\n  color: var(--geist-foreground);\n  background: rgba(0, 0, 0, 0.04);\n}\n[data-theme=\"dark\"] .view-switch-btn:hover {\n  background: rgba(255, 255, 255, 0.06);\n}\n.view-switch-btn.active {\n  background: var(--geist-background);\n  color: var(--geist-foreground);\n  font-weight: 600;\n  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n}\n\n/* 关系图谱 Graph View Styles */\n.graph-container {\n  position: relative;\n  width: 100%;\n  height: 720px;\n  background: var(--geist-background);\n  border: 1px solid var(--geist-border);\n  border-radius: var(--radius-lg);\n  overflow: hidden;\n  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);\n  margin-bottom: 40px;\n}\n.graph-toolbar {\n  position: absolute;\n  top: 14px;\n  left: 14px;\n  right: 14px;\n  z-index: 10;\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  background: var(--geist-background);\n  border: 1px solid var(--geist-border);\n  padding: 8px 14px;\n  border-radius: 8px;\n  box-shadow: 0 4px 16px rgba(0,0,0,0.06);\n  flex-wrap: wrap;\n  gap: 8px;\n}\n.graph-tool-title {\n  font-size: 13px;\n  font-weight: 700;\n  display: flex;\n  align-items: center;\n  gap: 6px;\n  color: var(--geist-foreground);\n}\n.graph-filter-group {\n  display: flex;\n  gap: 6px;\n  align-items: center;\n  flex-wrap: wrap;\n}\n.graph-chip {\n  font-size: 11px;\n  padding: 3px 8px;\n  border-radius: 4px;\n  border: 1px solid var(--geist-border);\n  background: var(--geist-background);\n  color: var(--geist-foreground);\n  cursor: pointer;\n  transition: all 0.15s ease;\n}\n.graph-chip:hover { background: var(--geist-secondary-bg); }\n.graph-chip.active {\n  background: var(--geist-foreground);\n  color: var(--geist-background);\n  border-color: var(--geist-foreground);\n}\n.graph-search-input {\n  padding: 3px 8px;\n  font-size: 11px;\n  border-radius: 4px;\n  border: 1px solid var(--geist-border);\n  background: var(--geist-background);\n  color: var(--geist-foreground);\n  outline: none;\n  width: 150px;\n}\n#vad-graph-svg {\n  width: 100%;\n  height: 100%;\n  cursor: grab;\n}\n#vad-graph-svg:active { cursor: grabbing; }\n.graph-legend {\n  position: absolute;\n  bottom: 14px;\n  left: 14px;\n  background: var(--geist-background);\n  border: 1px solid var(--geist-border);\n  border-radius: 8px;\n  padding: 10px 14px;\n  font-size: 11px;\n  box-shadow: 0 4px 16px rgba(0,0,0,0.06);\n  z-index: 10;\n  line-height: 1.6;\n  pointer-events: none;\n}\n.graph-legend-row { display: flex; align-items: center; gap: 8px; }\n.graph-legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }\n.graph-info-drawer {\n  position: absolute;\n  top: 66px;\n  right: 14px;\n  width: 310px;\n  max-height: 620px;\n  background: var(--geist-background);\n  border: 1px solid var(--geist-border);\n  border-radius: 8px;\n  box-shadow: 0 8px 30px rgba(0,0,0,0.12);\n  z-index: 10;\n  padding: 16px;\n  overflow-y: auto;\n  display: none;\n  backdrop-filter: blur(10px);\n  transition: transform 0.2s ease, opacity 0.2s ease;\n}\n.graph-drawer-close {\n  position: absolute;\n  top: 10px;\n  right: 12px;\n  cursor: pointer;\n  font-size: 16px;\n  color: var(--geist-tertiary);\n}\n.graph-drawer-badge {\n  display: inline-block;\n  padding: 2px 6px;\n  border-radius: 4px;\n  font-size: 10px;\n  font-weight: 600;\n  margin-bottom: 6px;\n}\n.graph-drawer-title {\n  font-size: 13px;\n  font-weight: 700;\n  line-height: 1.4;\n  margin-bottom: 8px;\n  color: var(--geist-foreground);\n}\n.graph-drawer-meta {\n  font-size: 11px;\n  color: var(--geist-secondary);\n  margin-bottom: 12px;\n}\n.graph-drawer-core {\n  font-size: 12px;\n  line-height: 1.6;\n  color: var(--geist-foreground);\n  background: var(--geist-secondary-bg);\n  padding: 8px 10px;\n  border-radius: 6px;\n  margin-bottom: 12px;\n  border: 1px solid var(--geist-border);\n}\n.graph-drawer-link {\n  display: block;\n  text-align: center;\n  padding: 7px 12px;\n  background: var(--geist-foreground);\n  color: var(--geist-background);\n  border-radius: 6px;\n  font-size: 12px;\n  font-weight: 600;\n  text-decoration: none;\n  transition: opacity 0.15s ease;\n  margin-bottom: 6px;\n}\n.graph-drawer-link:hover { opacity: 0.85; }\n.graph-drawer-pdf-link {\n  display: block;\n  text-align: center;\n  padding: 6px 12px;\n  background: var(--geist-secondary-bg);\n  color: var(--geist-foreground);\n  border: 1px solid var(--geist-border);\n  border-radius: 6px;\n  font-size: 11px;\n  font-weight: 500;\n  text-decoration: none;\n  transition: all 0.15s ease;\n}\n.graph-drawer-pdf-link:hover { background: var(--geist-border); }\n.node-circle {\n  cursor: pointer;\n  transition: r 0.2s, stroke-width 0.2s;\n}\n.node-label {\n  font-size: 10px;\n  font-weight: 600;\n  fill: var(--geist-foreground);\n  pointer-events: none;\n  text-shadow: 0 1px 2px var(--geist-background);\n}\n.link-line {\n  stroke: var(--geist-border);\n  stroke-opacity: 0.6;\n  stroke-width: 1.2;\n  transition: stroke 0.2s, stroke-width 0.2s, stroke-opacity 0.2s;\n}\n.link-label {\n  font-size: 9px;\n  fill: var(--geist-tertiary);\n  pointer-events: none;\n  text-anchor: middle;\n}\n\n/* 引用框与警示框 Alerts */\n.callout-alert {\n  margin: 20px 0;\n  padding: 14px 18px;\n  border-radius: var(--radius-md);\n  transition: all 0.15s ease;\n}\n.callout-important, .callout-idea {\n  border-left: 4px solid #b54708;\n  background: rgba(181, 71, 8, 0.06);\n  box-shadow: inset 0 0 0 1px rgba(247, 144, 9, 0.3);\n}\n[data-theme=\"dark\"] .callout-important, [data-theme=\"dark\"] .callout-idea {\n  border-left-color: #fec84b;\n  background: rgba(181, 71, 8, 0.18);\n  box-shadow: inset 0 0 0 1px rgba(254, 200, 75, 0.25);\n}\n.callout-writing {\n  border-left: 4px solid #6941c6;\n  background: rgba(105, 65, 198, 0.06);\n  box-shadow: inset 0 0 0 1px rgba(105, 65, 198, 0.3);\n}\n[data-theme=\"dark\"] .callout-writing {\n  border-left-color: #d6bbfb;\n  background: rgba(105, 65, 198, 0.18);\n  box-shadow: inset 0 0 0 1px rgba(214, 187, 251, 0.25);\n}\n.callout-value {\n  border-left: 4px solid #027a48;\n  background: rgba(2, 122, 72, 0.06);\n  box-shadow: inset 0 0 0 1px rgba(2, 122, 72, 0.3);\n}\n[data-theme=\"dark\"] .callout-value {\n  border-left-color: #32d583;\n  background: rgba(2, 122, 72, 0.18);\n  box-shadow: inset 0 0 0 1px rgba(50, 213, 131, 0.25);\n}\n\n.card-title {\n  font-size: 16.5px;\n  font-weight: 600;\n  line-height: 1.42;\n  letter-spacing: -0.4px;\n  color: var(--geist-foreground);\n  margin: 0 0 10px;\n  word-break: break-word;\n  overflow-wrap: anywhere;\n  hyphens: auto;\n}\n.card-title a {\n  color: var(--geist-foreground);\n  text-decoration: none;\n  display: inline;\n  transition: color 0.15s ease;\n}\n.card-title a:hover {\n  color: var(--develop-blue);\n  text-decoration: none;\n}\n.card-id-mono {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-quaternary);\n  margin-right: 5px;\n}\n.card-meta-row {\n  display: flex;\n  gap: 6px;\n  flex-wrap: wrap;\n  margin-bottom: 12px;\n}\n.meta-token {\n  font-size: 12px;\n  color: var(--geist-tertiary);\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-ring);\n  padding: 2px 7px;\n  border-radius: var(--radius-sm);\n  white-space: nowrap;\n}\n.card-body-text {\n  font-size: 13.5px;\n  color: var(--geist-secondary);\n  line-height: 1.6;\n  margin-bottom: 16px;\n  flex-grow: 1;\n  word-break: break-word;\n  overflow-wrap: anywhere;\n}\n.card-body-text strong {\n  color: var(--geist-foreground);\n  font-weight: 600;\n}\n\n.card-footer {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  border-top: 1px solid var(--geist-border);\n  padding-top: 14px;\n}\n.card-link-action {\n  font-size: 13.5px;\n  font-weight: 500;\n  color: var(--link-blue);\n  display: inline-flex;\n  align-items: center;\n  gap: 4px;\n  text-decoration: none;\n  transition: all 0.15s ease;\n}\n.card-link-action:hover {\n  opacity: 0.85;\n  transform: translateX(2px);\n}\na.meta-token {\n  transition: all 0.15s ease;\n  cursor: pointer;\n  text-decoration: none;\n}\na.meta-token:hover {\n  background: var(--geist-selection);\n  color: var(--geist-foreground);\n  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);\n}\n\n/* 紧凑列表视图 (List View) */\n.card-list-view {\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n}\n.list-row-item {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-md);\n  padding: 12px 18px;\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  gap: 16px;\n  transition: box-shadow 0.15s;\n}\n.list-row-item:hover {\n  box-shadow: var(--shadow-card-hover);\n}\n\n/* 阅读详情页 (Report Detail) */\n.reading-container {\n  display: grid;\n  grid-template-columns: minmax(0, 1fr) 260px;\n  gap: 40px;\n  align-items: start;\n}\n@media (max-width: 960px) {\n  .reading-container { grid-template-columns: 1fr; }\n  .reading-sidebar { display: none; }\n}\n\n.report-header-card {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 28px 32px;\n  margin-bottom: 28px;\n}\n.crumb-bar {\n  font-size: 13px;\n  color: var(--geist-tertiary);\n  margin-bottom: 10px;\n}\n.report-title {\n  font-size: 32px;\n  font-weight: 600;\n  letter-spacing: -1.28px;\n  margin: 0 0 16px;\n  color: var(--geist-foreground);\n}\n.report-action-buttons {\n  display: flex;\n  align-items: center;\n  gap: 10px;\n  flex-wrap: wrap;\n  border-top: 1px solid var(--geist-border);\n  padding-top: 16px;\n  margin-top: 16px;\n}\n\n.article-body {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card-full);\n  border-radius: var(--radius-lg);\n  padding: 36px 42px 80px;\n  font-size: 16px;\n  line-height: 1.75;\n  color: var(--geist-foreground);\n}\n.article-body h1, .article-body h2, .article-body h3 {\n  color: var(--geist-foreground);\n  scroll-margin-top: 80px;\n}\n.article-body h1 { font-size: 28px; font-weight: 600; letter-spacing: -1.28px; border-bottom: 1px solid var(--geist-border); padding-bottom: 8px; margin-top: 32px; }\n.article-body h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.96px; border-bottom: 1px solid var(--geist-border); padding-bottom: 6px; margin-top: 36px; }\n.article-body h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.32px; margin-top: 26px; }\n.article-body table {\n  width: 100%;\n  border-collapse: collapse;\n  margin: 24px 0;\n  font-size: 14px;\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  overflow: hidden;\n}\n.article-body th, .article-body td {\n  padding: 10px 14px;\n  text-align: left;\n  border-bottom: 1px solid var(--geist-border);\n}\n.article-body th {\n  background: var(--geist-surface-tint);\n  font-weight: 600;\n  color: var(--geist-foreground);\n}\n.article-body blockquote {\n  border-left: 2px solid var(--geist-foreground);\n  margin: 20px 0;\n  padding: 8px 18px;\n  color: var(--geist-secondary);\n  font-style: normal;\n}\n.article-body code {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 13.5px;\n  box-shadow: var(--shadow-ring);\n  background: var(--geist-surface-tint);\n  padding: 2px 6px;\n  border-radius: var(--radius-sm);\n}\n.article-body pre {\n  position: relative;\n  background: #000000;\n  color: #ededed;\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  padding: 18px;\n  margin: 24px 0;\n  overflow-x: auto;\n}\n.article-body pre code {\n  background: transparent;\n  box-shadow: none;\n  padding: 0;\n  color: inherit;\n  font-size: 13px;\n}\n.copy-code-btn {\n  position: absolute;\n  top: 8px;\n  right: 10px;\n  font-family: \"Geist Mono\", monospace;\n  font-size: 11px;\n  background: #171717;\n  color: #ffffff;\n  border: 1px solid #333333;\n  padding: 3px 8px;\n  border-radius: var(--radius-sm);\n  cursor: pointer;\n}\n\n/* 侧边大纲 (TOC) */\n.reading-sidebar {\n  position: sticky;\n  top: 80px;\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 20px;\n  max-height: calc(100vh - 100px);\n  overflow-y: auto;\n}\n.sidebar-toc-title {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 12px;\n  font-weight: 500;\n  text-transform: uppercase;\n  letter-spacing: 0.5px;\n  color: var(--geist-quaternary);\n  margin-bottom: 12px;\n}\n.reading-sidebar ul {\n  list-style: none;\n  padding-left: 0;\n  margin: 0;\n  font-size: 13px;\n}\n.reading-sidebar li {\n  margin: 6px 0;\n}\n.reading-sidebar ul ul {\n  padding-left: 14px;\n}\n.reading-sidebar a {\n  color: var(--geist-secondary);\n  text-decoration: none;\n  transition: color 0.15s;\n}\n.reading-sidebar a:hover, .reading-sidebar a.active {\n  color: var(--geist-foreground);\n  font-weight: 600;\n}\n\n/* 后台管理 (/admin) */\n.admin-card-container {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card-full);\n  border-radius: var(--radius-lg);\n  padding: 32px;\n  margin-bottom: 32px;\n}\n.form-row-2 {\n  display: grid;\n  grid-template-columns: 1fr 1fr;\n  gap: 16px;\n  margin-bottom: 16px;\n}\n@media (max-width: 600px) {\n  .form-row-2 { grid-template-columns: 1fr; }\n}\n.form-field {\n  display: flex;\n  flex-direction: column;\n  gap: 6px;\n  margin-bottom: 16px;\n}\n.form-field label {\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-foreground);\n}\n.form-field input, .form-field select, .form-field textarea {\n  font-family: \"Geist\", sans-serif;\n  font-size: 14px;\n  padding: 9px 12px;\n  background: var(--geist-background);\n  box-shadow: var(--shadow-border);\n  border: none;\n  border-radius: var(--radius-md);\n  color: var(--geist-foreground);\n  outline: none;\n}\n.form-field input:focus, .form-field select:focus, .form-field textarea:focus {\n  outline: 2px solid var(--ds-focus-color);\n  box-shadow: none;\n}\n\n/* 语法高亮 (Console Blue / Purple / Pink) */\n.codehilite .k, .codehilite .kd, .codehilite .kn { color: #eb367f; font-weight: 500; }\n.codehilite .s, .codehilite .s1, .codehilite .s2 { color: #0070f3; }\n.codehilite .nf, .codehilite .na { color: #7928ca; font-weight: 500; }\n.codehilite .c, .codehilite .c1 { color: #666666; font-style: italic; }\n.codehilite .mi, .codehilite .mf { color: #ff5b4f; }\n\n</style>\n\n</head>\n<body>\n\n    <nav class=\"vercel-nav\">\n      <div class=\"nav-brand\">\n        <a href=\"/\" style=\"display:flex;align-items:center;gap:10px;text-decoration:none\">\n          <svg class=\"vercel-triangle\" viewBox=\"0 0 76 65\" fill=\"none\">\n            <path d=\"M37.5274 0L75.0548 65H0L37.5274 0Z\" fill=\"currentColor\"/>\n          </svg>\n          <span class=\"nav-title\">Agent Harness KB</span>\n        </a>\n        <span class=\"nav-badge-pill\">Geist 2.0</span>\n      </div>\n\n      <div class=\"nav-links\">\n        <a class=\"nav-link \" href=\"/\">全景总览</a>\n        <a class=\"nav-link \" href=\"/vad\" style=\"color:var(--ship-red)\">🎯 VAD 专栏 (144)</a>\n        <a class=\"nav-link\" href=\"https://m0rtzz.github.io/paper-notes/\" target=\"_blank\" rel=\"noopener\">顶会 669 篇 ↗</a>\n        <a class=\"nav-link\" href=\"/download/all\">整库打包</a>\n        \n      </div>\n\n      <div class=\"nav-actions\">\n        \n        <button class=\"theme-toggle-btn\" id=\"theme-toggle-btn\" onclick=\"toggleTheme()\" title=\"切换亮暗主题\">🌙</button>\n      </div>\n    </nav>\n    \n<main class=\"vercel-container\">\n\n        <div class=\"report-header-card\">\n          <div class=\"crumb-bar\"><a href=\"/\">Home</a> / <b>fulltext.txt</b></div>\n          <h1 class=\"report-title\">fulltext.txt</h1>\n          <div class=\"report-action-buttons\">\n            <a class=\"btn-primary-dark\" href=\"?dl=1\">Download Text</a>\n          </div>\n        </div>\n        <article class=\"article-body\"><pre><code>This CVPR paper is the Open Access version, provided by the Computer Vision Foundation.\nExcept for this watermark, it is identical to the accepted version;\nthe final published version of the proceedings is available on IEEE Xplore.\n\nTLMA: Mitigating the Impact of Weakly Labeled Information\nfor Video Anomaly Detection\nRong Xu1,2,3 Runqi Wang2,3 * Yingjun Zhang2,3 Tao Tao1,2,3 Xiaomeng Li1,2,3 Liping Jing1,2,3\n1\nState Key Laboratory of Advanced Rail Autonomous Operation, Beijing Jiaotong University\n2\nBeijing Key Laboratory of Traffic Data Mining and Embodied Intelligence, Beijing Jiaotong University\n3\nSchool of Computer Science &amp; Technology, Beijing Jiaotong University\n\nAbstract\n\nTrue abnormal “Explosion”\n\nVideo\nVideos\n\nLabeled “Explosion”\n\n（a）\n\n...\n\nWeakly Supervised Video Anomaly Detection (WSVAD)\naims to localize abnormal segments using only video-level\nlabels during training. Although the paradigm significantly\nreduces annotation costs, the coarse-grained labels fail to\nprecisely describe the full videos, resulting in the introduction of substantial Weakly Labeled Information (WLI) during training. The presence of WLI makes it difficult for\nthe model to accurately learn the boundary between normal and abnormal behaviors, leading to misclassifications\nand compromising the precision of anomaly localization. To\ntackle the challenges posed by WLI, we propose a triplet\nlearning strategy that selects hard segments from normal\nvideos as anchors. By combining contrastive learning with\nMultiple Instance Learning (MIL) strategy, we increase the\nprojection distance between abnormal segments and anchor samples, to reduce the interference of WLI in anomaly\ndetection. Moreover, considering that anomalies typically\noccur in dynamic foreground regions, we further design a\nmotion-aware feature enhancement module that extracts dynamic areas within each video segment to emphasize the\nrepresentation of critical features. This not only improves\nthe accuracy of anchors in triplets, but also enhances the\ndiscriminative power of instance features in MIL. Extensive experiments on UCF-Crime, XD-Violence, and MSAD\ndatasets demonstrate the effectiveness of our approach.\n\nabnormal\nnormal\n\nLabeled “Normal”\n\n（b）\n\nFigure 1. Typical forms of WLI. (a) An abnormal video uniformly labeled as “explosion”, while the actual abnormal information only occurs in the foreground of partial segments (red box).\nOther segments and background are included in the label but are\nactually normal, which is known as WLI. (b) All of normal videos\nwith diverse behaviors are labeled as “normal”, where atypical\nsegments (e.g., those with intense motion or uncommon patterns)\nmay deviate from the norm and constitute WLI.\n\n1. Introduction\n\nlevel labels (i.e., a single “abnormal” or “normal” tag per\nvideo), thereby avoiding the need for expensive frame-level\nor pixel-level annotations. Most WSVAD approaches adopt\nthe Multiple Instance Learning (MIL) framework [21],\nwhere a video is treated as a bag of segments: normal videos\ncontain only normal segments, while abnormal videos contain at least one abnormal segment. A ranking loss is used in\nMIL to widen the score gap between high-anomaly-scoring\nsegments from abnormal and normal videos, respectively,\nenabling segment-level detection. Building upon the MIL\nframework, subsequent studies have introduced various improvements [14, 29, 33, 35].\n\nVideo Anomaly Detection (VAD) aims to identify events\nor behaviors that deviate from normal patterns in videos,\nand plays a critical role in intelligent surveillance, public safety, and industrial monitoring [3, 10, 17]. In recent years, Weakly Supervised Video Anomaly Detection\n(WSVAD) has attracted increasing attention for its ability\nto perform effective anomaly detection using only video* Corresponding author.\n\nAlthough the WSVAD paradigm greatly reduces annotation costs by relying on video-level labels, it inevitably\nintroduces substantial Weakly Labeled Information (WLI)\nthat does not accurately match its labels. For example, it\nincludes normal content within abnormal videos, as well\nas atypical content within normal videos. As illustrated in\nFigure 1(a), an abnormal video is assigned the label “explo-\n\n35597\n\n\fFigure 2. Illustration of misclassification cases caused by WLI.\nThe anomaly scores (blue curve) are produced by UR-DMU [33],\nwith pink areas indicating ground-truth anomalies. In (a), a normal\nrefueling scene at a gas station is misclassified as anomalous, in\n(b), the normal scene preceding an explosion in an abnormal video\nis also misclassified.\n\nof our strategy is to select anchors that accurately represent WLI. Conceptually, WLI consists of two components:\n(1) atypical segments in normal videos and (2) normal segments in abnormal videos. However, the latter lack reliable annotations, making them infeasible for direct selection. Therefore, we focus on the former, namely atypical segments in normal videos, and use the high-anomalyscoring, “anomalous-looking” ones as anchors. Although\nthese segments are labeled as normal, they are highly prone\nto misclassification, making them a practical and representative proxy for WLI. The positives are low-anomalyscoring segments from abnormal videos, typically containing no true anomalies and also belonging to WLI. The negatives are high-anomaly-scoring segments from abnormal\nvideos, which most likely reflect true abnormal content that\nis most consistent with the video-level labels. The triplet\nloss encourages the model to pull the anchor and positive\n(both WLI) closer, while pushing them away from the negative (true anomaly), thereby learning a more structured feature space that separates WLI from true anomalies. Our\nstrategy cooperates with the MIL ranking loss to deliver\nmore precise anomaly localization. The MIL loss encourages scores in normal videos to approach zero (thereby suppressing anchors and positives) while amplifying significant\nanomalies.\nIn addition, anomalies in videos typically occur only\nwithin dynamic foreground regions. However, most existing WSVAD methods extract features from entire frames\nby default, where redundant background information may\nintroduce interference. This not only degrades localization\naccuracy but also corrupts the feature quality for triplet construction. To address this, we introduce a motion-aware\nfeature enhancement module, which identifies motionsalient regions by capturing inter-frame edge variations.\nThis module enhances the representation of dynamic foreground regions while suppressing irrelevant background\ncontent, thereby improving the model’s ability to perceive\nabnormal targets. The resulting motion-focused features\npossess stronger discriminability, providing more precise\nfeatures for the triplet loss to operate on. Ultimately, this\nmodule mitigates the impact of WLI, without requiring additional fine-grained annotations.\nTo tackle the challenges posed by WLI as analyzed\nabove, we propose a novel framework named TLMA\n(Triplet Learning with Motion-Aware enhancement) to\nmitigate its impact and enhance anomaly detection under\nweak supervision. Our main contributions are summarized\nas follows:\n• To explicitly separate WLI from truly anomalous content\nin the feature space, we propose a triplet learning strategy\nthat constructs triplets from model outputs. This strategy\nencourages tighter representation of WLI segments and\ngreater separation from true anomalies.\n\nsion” based solely on the presence of anomalous foreground\nobjects in a specific segment. However, the remaining information, which includes normal transitional segments and\nbackground regions, is also described by the video-level\n“explosion” label. The information that is abnormallylabeled yet actually normal constitutes a critical part of\nWLI, which distracts the model from true anomalies. On\nthe other hand, normal videos, which account for nearly half\nof the training data, are uniformly labeled as “normal” despite their high diversity in content and behavior, as shown\nin Figure 1(b). This single label fails to represent the wide\nrange of normal patterns. In particular, atypical normal segments (e.g., those with intense motion or uncommon patterns) deviate significantly from typical normal features in\nthe embedding space and are easily misclassified as anomalous. Such segments further contribute to WLI.\nA more practical issue is that the cost of increasing highquality, fine-grained annotations is extremely high, making\nit infeasible. Therefore, we have to mitigate the impact\nof WLI and enhance anomaly detection performance\nunder weak supervision, without relying on additional\nframe-level or pixel-level annotations. We observe that\nmisclassifications most often occur in WLI, where the distinction between normal and abnormal behaviors is unclear.\nSuch segments lack precise supervision due to coarse videolevel labels and disrupt the model’s learning process. As a\nresult, normal parts of abnormal videos may be misclassified as anomalies, while atypical normal segments are also\nmistaken for anomalies, as shown in Figure 2. Effectively\ndistinguishing WLI from true abnormal cues is therefore\ncrucial to mitigate misclassification in WSVAD.\nTo address this problem, we propose a triplet learning strategy with anchor, positive, and negative samples for\nWSVAD. It explicitly increases the distance between WLI\nand truly abnormal content in the feature space. In the\nabsence of fine-grained labels, the triplets are constructed\ndynamically based on the model’s predictions. The core\n\n35598\n\n\f• We introduce a motion-aware feature enhancement module that focuses on dynamic foreground regions by leveraging inter-frame edge changes, effectively suppressing\nbackground interference and improving anomaly discriminability.\n• Extensive experiments on three WSVAD benchmarks\nshow that our method TLMA achieves competitive performance, consistently validating the effectiveness of\nboth the triplet learning and motion-aware components in\nmitigating WLI interference.\n\n2. Related Work\n\nsupervised video representation learning, such as VideoMAE [23], have been employed to leverage their strong\nspatiotemporal modeling capacity [20]. While these pretrained models improve the overall feature quality, redundant background information in videos still interferes with\nanomaly detection. To address this, we design a motionaware feature enhancement module on top of the ViT-based\nencoder. Our approach highlights motion foregrounds and\nsuppresses background redundancy by simply computing\ninter-frame edge differences, requiring neither additional\nnetworks nor extra training.\n\n3. Method\n\nWeakly Supervised Video Anomaly Detection (WSVAD). WSVAD trains the model using video-level labels from normal and anomalous videos, without requiring frame-level annotations. The pioneering work by Sultani et al. [21] first proposed a Multiple Instance Learning (MIL) framework for video anomaly detection, treating videos as bags of instances and employing a ranking\nloss for model training. Subsequent WSVAD approaches\nhave introduced numerous improvements based on the MIL\nframework [1, 5, 6, 9, 11, 20, 22]. Tian et al. proposed\nRTFM [22], which learns a feature magnitude function to\nsuppress noise and capture multi-scale temporal dependencies for better anomaly detection. Wu et al. [27] aggregate the scores of top-k high-scoring snippets during training. NG-MIL [14] learns prototypes of normal patterns\nand employs a triplet loss to enhance discriminability. URDMU [33] also employs a triplet loss, introducing a dualmemory structure to model both normal and abnormal patterns. Some works, such as MIST [7] and CUPL [31], adopt\npseudo-label-based two-stage training schemes. CUPL [31]\nintroduced MC Dropout to estimate epistemic uncertainty\nand selected confident pseudo-labels for a two-stage training process. Other works [12, 15, 28, 29] have explored\nmulti-modal settings. VadCLIP [29] leverages CLIP and\nutilizes text prompts to align video-text semantics. MajhiD et al. [12] enhances RGB representations by introducing five additional modalities. Although these methods achieve promising results on various benchmarks, they\nstill suffer from the effects of Weakly Labeled Information\n(WLI), which often leads to misclassifications. To mitigate\nthis issue, we propose a triplet-based training strategy that\nexplicitly separates WLI from true anomalies in the feature\nspace, thereby enhancing anomaly localization under weak\nsupervision.\nFeature Extraction. Most WSVAD approaches adopt\npretrained networks as feature extractors. Early methods\ntypically used models such as C3D [24] and I3D [2] trained\non video classification datasets. With the rise of multimodal\nlearning, CLIP [16] has been widely adopted for its ability\nto align visual and textual representations. More recently,\ntransformer-based models [23, 25, 26] pretrained via self-\n\nTo mitigate the adverse effects of WLI on anomaly detection under weak supervision, we propose a unified framework named TLMA, which integrates two key components:\n(1) a Triplet Learning strategy to separate WLI from true\nanomalies, and (2) a Motion-Aware feature enhancement\nmodule to amplify motion-salient foreground cues. The\noverall architecture of TLMA is illustrated in Figure 3.\n\n3.1. MIL Formulation\nIn the WSVAD setting, only video-level labels Y ∈ {0, 1}\nare available, where Y = 1 indicates the presence of\nanomaly in a video, and Y = 0 indicates the video is entirely normal. Following the MIL paradigm, a video is\ndivided into L non-overlapping segments. Each segment\nis encoded into a feature representation and assigned an\nanomaly score sj ∈ [0, 1] by a classifier. To aggregate\nsegment-level predictions into a video-level decision, we\nadopt a top-k pooling strategy [27], where the final videolevel anomaly score SV is computed as the average of the\ntop-k segment scores:\n  S_V = \\text {mean}(\\text {Top-}k(s_1, s_2, \\dots , s_L)). \n\n(1)\n\nThis formulation encourages the model to assign high\nscores to at least a few abnormal segments in abnormal\nvideos, while maintaining low scores across all segments in\nnormal videos. The video-level classification loss is defined\nas:\n  \\mathcal {L}_{\\text {MIL}} = -\\mathbb {E}\\left [ Y \\log S_V + (1 - Y) \\log (1 - S_V) \\right ]. \n\n(2)\n\n3.2. Triplet Learning Strategy\n\n35599\n\nWLI, introduced by coarse video-level supervision in WSVAD, inevitably injects interference into the learning process and often causes misclassifications. To mitigate this\nissue, we propose a triplet learning strategy that helps the\nmodel explicitly separate WLI from truly abnormal patterns\nin the feature space.\nSince fine-grained annotations are unavailable, we construct triplets from model outputs. The strategy hinges on\nselecting anchors that accurately represent WLI. Although\n\n\fMotion-Aware Feature\nEnhancement Module（MA）\n\nAnchor\n\nNegative\n...\n...\n\nfilter\n\ntoken\n\nGL-MHSA\n\nScore\n\nClassifer\n\nLTriplet\n\nVideo\n...\n\nWeighted sum\n\nPositive\n\n...\n\nLMIL\n\n...\n\nmotion\n\nTop-k segments in normal video\n\nBottom-k segments in anomaly video\n\nTop-k segments in anomaly video\n\nFigure 3. Overview of the proposed TLMA framework. It consists of two key components: a Triplet Learning strategy, which explicitly\nseparates WLI from true anomalies in the feature space, and a Motion-Aware feature enhancement module, which emphasizes motionsalient foreground cues while suppressing background interference. The overall model is then optimized under weak supervision to improve\nthe accuracy of anomaly localization.\n\nAnomaly Score\n\nAbnormal Video\n\nTop-k segments\nAnchor\n\nFeature Space\n\nTop-k segments\nNegative\nBottom-k segments\nPositive\n\nFeature Space\n\nFeature Space\n\n0\n\nNormal\n\nNormal\n\nNormal\n\nAbnormal\n\nAbnormal\n\nAbnormal\n\nMIL\n\nAnomaly Score\n\nTriplet\n\nAnomaly Score\n\nNormal Video\n\nWLI conceptually consists of atypical segments in normal\nvideos and normal segments in abnormal videos, the latter cannot be reliably identified due to the lack of segmentlevel annotations. In contrast, the atypical segments in normal videos are both accessible and visually “anomalouslooking” (i.e., assigned high anomaly scores by the model),\nmaking them highly prone to misclassification. Therefore,\nwe designate these segments as anchors in our triplet design, leveraging them as a practical and effective proxy for\nWLI. We then select positives from low-anomaly-scoring\nsegments in abnormal videos. These segments are highly\nlikely to not contain true anomalies and are also considered WLI. However, they are not certain to be WLI and\nthus cannot be used as anchors. Finally, negatives are chosen from high-anomaly-scoring segments from abnormal\nvideos, which most likely correspond to truly anomalous\nregions. As illustrated in Figure 4, rely on the predicted\nanomaly scores, we construct triplets (Fa , Fp , Fn ) as follows:\n• Anchor (Fa ): average feature of the top-ka high-scoring\nsegments from normal videos;\n• Positive (Fp ): average feature of the k lowest-scoring\nsegments extracted from abnormal videos;\n• Negative (Fn ): average feature of the k highest-scoring\nsegments extracted from abnormal videos.\nWe adopt a margin-based triplet loss:\n\n1\nTriplet training\n\nMIL training\n\nOptimized\n\nFigure 4. Illustration of the triplet learning strategy and its synergy with MIL optimization. Triplets are constructed based on\npredicted anomaly scores: top-ka segments from normal videos\nform anchor, bottom-k segments from abnormal videos as positive, and top-k segments from abnormal videos as negative. The\ntriplet loss enlarges the distance between WLI (anchor and positive) and true anomalies (negative) in the feature space, while the\nMIL loss increases anomaly score separation.\n\n  \\mathcal {L}_{\\text {Triplet}} = \\sum _{(a, p, n)} \\max \\left ( \\|F_a - F_p\\|_2 - \\|F_a - F_n\\|_2 + m,\\ 0 \\right ), \n\nlous patterns. In parallel, a MIL-based ranking loss operates at the score level. It suppresses anomaly scores across\nnormal videos, thereby influencing anchors and positives,\nwhile amplifying high scores in abnormal segments. Together, these complementary objectives enable more precise\nanomaly localization.\n\n(3)\nwhere the margin m is set to 1.\nThe triplet loss encourages the model to pull the anchor\nand positive samples (highly likely to be WLI) closer together, while pushing them away from the negative sample (true anomaly). This promotes a more structured feature space that explicitly separates WLI from truly anoma-\n\n3.3. Motion-Aware Feature Enhancement\n\n35600\n\nIn video anomaly detection, abnormal behaviors typically\noccur in dynamic foreground regions. However, existing\nWSVAD methods often extract features from full frames,\nintroducing irrelevant background information. This background interference not only degrades the precision of\nanomaly scoring but also impairs the selection of reliable\ncontrastive samples for the triplet learning strategy. To al-\n\n\fToken feature\n\nf16\n\n...\n\n224\n\n2\n-1\n\n0\n\n1\n\n-1 -2 -1\n\n-2\n\n0\n\n2\n\n0\n\n0\n\n0\n\n-1\n\n0\n\n1\n\n1\n\n2\n\n1\n\n14\n\nTransformer Blocks\n\nf3 ...\n\n3DConv Embed\n\nf2\n\n14\n\n...\n\nVIT\n� ∈ �1×�\n\nSobel filter\n\nNorm\n\nf2-f1\nf4-f3.\n\n...\n\n...\n\n..\nf16-f15\n\n14\n\n  S_x = \\begin {bmatrix} 1 &amp; 0 &amp; -1 \\\\ 2 &amp; 0 &amp; -2 \\\\ 1 &amp; 0 &amp; -1 \\end {bmatrix}, \\quad S_y = \\begin {bmatrix} 1 &amp; 2 &amp; 1 \\\\ 0 &amp; 0 &amp; 0 \\\\ -1 &amp; -2 &amp; -1 \\end {bmatrix}. \n\nf1\n\n224\n\nleviate these issues, we propose a motion-aware feature enhancement module that suppresses static background interference and enhances motion-salient foreground representations.\nSpatiotemporal Feature Tokenization. Following [20],\nwe adopt a ViT-based backbone pretrained with VideoMAEv2 [26] as our base feature extractor, leveraging its\nstrong capacity for long-range spatiotemporal modeling.\nThe masked reconstruction strategy of VideoMAEv2 encourages temporal structure awareness, making the extracted features more generalizable. Given a video sequence\nwith T frames  V = \\{f_1, f_2, \\dots , f_T\\} , we divide it into\nnon-overlapping 16-frame segments and resize frames to\n 224 \\times 224 . Each segment is partitioned into spatiotemporal cubes of size  2 \\times 14 \\times 14 (temporal × spatial), which\nare projected through 3D convolutions into token embeddings {z1 , z2 , . . . , zN }. These embeddings are then passed\nthrough multi-layer transformer blocks ϕ to obtain contextualized token-level features:\n \\tilde {Z} = \\phi (\\{z_1, z_2, \\dots , z_N\\}) \\in \\mathbb {R}^{N \\times D}, \nwhere  N  is the number of spatiotemporal tokens in\na segment, and  D  is the feature dimension.\nMotion-Aware Token Attention. To further enhance\nthe sensitivity of feature representations to foreground dynamics, we introduce a novel motion-aware token attention mechanism that emphasizes dynamic regions aligned\nwith the token structure, as illustrated in Figure 5. Specifically, we apply Sobel filters [19] to each frame to extract\nspatial edge responses, as they offer a simple yet effective\nway to highlight structural contours that are sensitive to motion. Compared to raw intensity values, Sobel responses\nare less affected by illumination changes and better preserve\nmotion-relevant boundaries, making them ideal for motionaware representation. The horizontal and vertical Sobel kernels are defined as:\n\nEdge magnitude map\n\n14\n\nToken motion\n\nFigure 5. Overview of the proposed motion-aware feature enhancement module. The module extracts dynamic regions by\ncomputing inter-frame edge variations, guiding the model to emphasize motion-related anomaly cues while suppressing redundant\nbackground information.\n\nThese motion magnitude maps are then aligned with the\ntoken grid. For each token’s spatial region  \\Omega _i  , its motion\nimportance score ãi is calculated as:\n  a_i = \\sum _{(x,y)\\in \\Omega _i} M(x,y), \\quad \\tilde {a}_i = \\frac {a_i}{\\max _j a_j + \\epsilon }. \\label {eq:ma} \n\n(7)\n\nFinally, the motion-aware enhanced feature is computed\nas a weighted sum of token features:\n  F_{\\text {enhanced}} = \\sum _{i=1}^N \\tilde {a}_i \\cdot \\tilde {z}_i. \n\n(8)\n\n(4)\n\nThis process adaptively emphasizes tokens corresponding to regions with stronger motion, allowing the model to\nfocus on foreground dynamics that are more indicative of\nanomalies. The resulting motion-sensitive features enhance\nthe model’s ability to produce more reliable anomaly score\npredictions, thus benefiting downstream triplet-based contrastive learning. Building upon these motion-aware features, we further incorporate the GL-MHSA module [33] to\nenhance temporal modeling and capture long-range intersegment dependencies.\n\nFor each frame  f_t  , the edge magnitude map is computed as:\n\n  E_t(x,y) = \\sqrt {(S_x * f_t)^2(x,y) + (S_y * f_t)^2(x,y) + \\epsilon }. \n(5)\nTo capture temporal motion, we compute inter-frame differences of edge maps:\n\n3.4. Joint Optimization Objective\n\n  M_k(x,y) = \\big |E_{2k}(x,y) - E_{2k-1}(x,y)\\big |, \\quad k=1,\\dots ,8. \n(6)\nNotably, the temporal resolution of motion computation aligns with the 2-frame temporal window used in the\nViT’s spatiotemporal tokenization, ensuring that each motion score corresponds directly to a specific 3D cube in the\nfeature space.\n\nThe overall training objective of the TLMA framework integrates the MIL loss and the proposed triplet loss. The total\nloss is defined as:\n  \\mathcal {L}_{\\text {Total}} = \\mathcal {L}_{\\text {MIL}} + \\lambda \\cdot \\mathcal {L}_{\\text {Triplet}}, \n\n(9)\n\n35601\n\nwhere λ is a balancing hyperparameter that controls the\ncontribution of the triplet loss. This joint optimization encourages consistency between video-level supervision and\n\n\ffeature-space structuring. The MIL loss guides the model to\nassign discriminative anomaly scores, while the triplet loss\nexplicitly separates WLI from true anomalies. Together,\nthey reinforce each other to enhance anomaly localization\nperformance under weak supervision.\n\nTable 1. Comparison with state-of-the-art WSVAD methods on\nthe UCF-Crime and XD-Violence datasets. The best results are\nwritten in bold.\n\n4. Experiments\n\nDeepMIL [21]\nC3D 75.40 54.25 73.20 78.61\nGCN [32]\nTSN 82.12 59.02\n–\n–\n82.44\n–\n75.41\n–\nHL-Net [27]\nI3D\nMIST [7]\nI3D\n82.30\n–\n–\n–\n84.30 62.96 77.81 78.57\nRTFM [22]\nI3D\nMSL [9]\nV-Swin 85.62\n–\n78.59\n–\nMGFN [5]\nV-Swin 86.67\n–\n80.11\n–\n86.22\n–\n81.43\n–\nCUPL [31]\nI3D\nUMIL [11]\nCLIP 86.75 68.68\n–\n–\n85.63\n–\n78.51\n–\nNG-MIL [14]\nI3D\nUR-DMU [33]\nI3D\n86.97 70.81 81.66 83.94\nPEL4VAD [15]\nI3D\n86.76\n–\n85.59\n–\nTPWNG [30]\nCLIP 87.79\n–\n83.86\n–\n–\nVadCLIP [29]\nCLIP 88.02 70.23 84.51\n\nMethod\n\n4.1. Datasets and Implementation Details\nDatasets. We evaluate our method on three widely\nused public WSVAD datasets: UCF-Crime [21], XDViolence [27], and MSAD [34]. UCF-Crime contains 1,900\nreal-world surveillance video clips with a total duration of\n128 hours, spanning 13 types of anomalous behaviors. XDViolence contains 4,754 untrimmed videos covering six different categories of abnormal or violent behaviors. MSAD\ncontains 720 video clips from 14 distinct scenes, annotated\nwith 11 types of anomalous events.\nEvaluation Metrics. We use the area under the receiver\noperating characteristic (AUC) curve on UCF-Crime and\nMSAD to evaluate performance, as it effectively reflects\nthe balance between true positive rate and false positive\nrate. For XD-Violence, we employ average precision (AP)\nto evaluate the balance between precision and recall. We\nfurther compute AUC_A and AP_A exclusively on abnormal\nvideos, which better reflect the model’s ability to localize\nanomalies. In addition, we report the false alarm rate (FAR)\non normal videos, which measures the proportion of normal\nframes misclassified as anomalies when the anomaly score\nthreshold is fixed at 0.5, as in [21]. All metrics are reported\nin percentages (%).\nImplementation Details. We implement our model in\nPyTorch and train it on an NVIDIA L20 GPU using the\nAdamW optimizer [8] with a learning rate of 1 \\times 10^{-3} . The\nbatch size is set to 64 for UCF-Crime and XD-Violence, and\n32 for MSAD. All models are trained for 3,000 iterations.\nInput frames are resized to 224 \\times 224 pixels, and we adopt\na pre-trained VideoMAEv2 (ViT-G/14) as the backbone token feature encoder. For both the MIL loss \\protect \\mathcal  {L}_{\\text {MIL}} and the\nselection of positive/negative samples in the triplet learning\nstrategy, we set k = \\lfloor L / 16 \\rfloor + 1, where L is the number of\nvideo segments [33]. In contrast, the anchor selection uses\na dataset-specific top-ka scheme: k_a=3 for UCF-Crime,\nk_a=11 for XD-Violence, and k_a=1 for MSAD. The loss\nbalancing weight \\lambda  is set to 0.1 for all three datasets.\n\n4.2. State-of-the-art Comparison\nWe evaluate the performance of our TLMA method on\nthree public benchmarks: UCF-Crime, XD-Violence, and\nMSAD, comparing it against a wide range of state-of-theart WSVAD approaches. As shown in Table 1, TLMA\nachieves strong results on both the UCF-Crime and XDViolence datasets. Specifically, it obtains an AUC of\n\nEncoder\n\nTLMA(ours)\n\nMAE\n\nUCF-Crime XD-Violence\nAUC AUC_A AP AP_A\n\n89.47 76.16 86.78 86.23\n\nTable 2. Comparison with state-of-the-art WSVAD methods on\nthe MSAD dataset. The best results are written in bold.\n\nMethod\n\nAUC\n\nAUC_A\n\nAP\n\nAP_A\n\nRTFM [22]\nMGFN [5]\nTEVAD [4]\nUR-DMU [33]\nGS-MOE [1]\nPI-VAD [12]\n\n86.65\n84.96\n86.82\n85.02\n87.72\n88.68\n\n–\n–\n–\n–\n69.54\n71.25\n\n–\n–\n–\n–\n68.26\n71.26\n\n–\n–\n–\n–\n76.68\n77.86\n\nTLMA(ours)\n\n93.68\n\n79.52\n\n81.3\n\n84.42\n\n89.47% and AUC_A of 76.16% on UCF-Crime, outperforming VadCLIP by 1.45% and 5.93%, respectively. These results demonstrate its effectiveness in recognizing diverse\nanomalous behaviors under complex surveillance conditions. On XD-Violence, TLMA achieves an AP of 86.78%\nand an AP_A of 86.23%, surpassing the previous best AP\n(PEL4VAD: 85.59%) by 1.19% and the highest AP_A (URDMU: 83.94%) by 2.29%, further validating its strong capability in modeling complex violence under weak supervision. On the recently introduced MSAD dataset, which contains diverse scene contexts and anomaly categories, TLMA\nexhibits even greater performance advantages. As shown in\nTable 2, our method achieves an AUC of 93.68% and an AP\nof 81.3%, showing substantial improvements over recent\nmethods such as PI-VAD and GS-MOE. More importantly,\nour method yields the highest metrics computed on abnormal videos, with AUC_A of 79.52% and AP_A of 84.42%,\n\n35602\n\n\fTable 3. Ablation study of the contributions of key components on\nthe UCF-Crime and XD-Violence datasets.\n\nBaseline MA LTriplet\n✓\n✓\n✓\n✓\n\n✓\n✓\n\n✓\n✓\n\nTable 5. Ablation study of anchor selection strategies on UCFCrime dataset.\n\nUCF-Crime XD-Violence\nAUC FAR ↓ AP FAR ↓\n85.69\n86.84\n88.37\n89.47\n\n3.3\n2.62\n1.93\n1.56\n\n83.61\n85.35\n84.64\n86.78\n\nRandom Low-score High-score\nAUC\n\n1.07\n1.11\n0.96\n0.43\n\nUCF(AUC)\n\nXD(AP)\n\nMSAD(AUC)\n\n1\n3\n5\n7\n9\n11\n13\n\n89.38\n89.47\n89.17\n89.26\n89.17\n89.12\n88.92\n\n85.08\n86.13\n86.64\n86.52\n86.50\n86.78\n86.74\n\n93.68\n93.30\n93.32\n93.25\n93.28\n93.32\n93.33\n\n89.47\n\n89.06\n\nTable 6. Impact of the loss weight λ in the joint objective on detection performance.\n\nTable 4. Impact of different anchor-ka values on performance\nacross datasets.\n\nAnchor-ka\n\n89.04\n\nλ\n\nUCF (AUC)\n\nXD (AP)\n\nMSAD (AUC)\n\n1\n0.1\n0.01\n0.001\n\n88.42\n89.47\n88.57\n86.88\n\n83.27\n86.78\n86.01\n85.42\n\n93.13\n93.68\n93.33\n93.25\n\nTable 7. Ablation study of edge filters in the Motion-Aware (MA)\nmodule on the MSAD dataset.\n\nMetric\n\nSobel\n\nScharr\n\nDoG\n\nNo filter\n\nAUC\nAP\n\n93.68\n81.30\n\n93.31\n79.82\n\n93.27\n79.82\n\n93.20\n80.12\n\n3.3% to 1.56% on UCF-Crime and from 1.07% to 0.43%\non XD-Violence. This trend indicates that our method effectively suppresses misclassifications by mitigating the impact of WLI.\nEffect of Anchor Selection. Table 4 presents an analysis of the ka value, which governs the selection of anchors for the triplet construction. The results demonstrate\nthe robustness of our approach, with stable performance\nacross a range of ka values on all data—measured by AUC\nfor UCF-Crime and MSAD, and AP for XD-Violence. On\nUCF-Crime, the highest AUC (89.47%) is achieved when\nka = 3, while on XD-Violence, the best AP (86.78%) is obtained with ka = 11. For MSAD, k = 1 yields the highest\nAUC (93.68%). These results indicate that selecting a suitable ka allows us to better represent diverse WLI segments\nin the normal videos. Smaller ka tends to be more effective in simple scenes (e.g., MSAD), while complex datasets\n(e.g., XD-Violence) may benefit from a larger ka . To further\nvalidate the importance of anchor selection, we conduct an\nablation study comparing different strategies on the UCFCrime dataset, as shown in Table 5. Using high-anomalyscoring segments from normal videos as anchors yields the\nbest AUC (89.47%), outperforming random (89.04%) and\nlow-anomaly-scoring selection (89.06%). This confirms\nthat anomalous-looking segments in normal videos, despite\nbeing labeled as normal, serve as more representative proxies of WLI. They are more likely to be misclassified and\nthus provide stronger supervision signals for triplet-based\nlearning to distinguish WLI from true anomalies.\nEffect of Loss Weight λ. We evaluate the impact of\n\ndemonstrating its superior capability in precise anomaly localization. Overall, TLMA consistently outperforms existing methods across all three benchmarks, confirming the effectiveness and generalizability of the proposed framework.\nSee Appendix for per-category metrics.\n\n4.3. Ablation Experiments\nEffect of proposed module. We conduct an ablation study\non UCF-Crime and XD-Violence to evaluate the effectiveness of each proposed component, as shown in Table 3.\nOur baseline MIL model uses a pre-trained VideoMAEv2\n(ViT-G/14) as the feature extractor. Segment-level features\nare obtained by average-pooling the token features within a\nsegment, followed by optimization with the standard MIL\nranking loss. Building upon this baseline, incorporating the\nMotion-Aware (MA) module consistently improves performance. On XD-Violence, the AP increases from 83.61%\nto 85.35%, indicating that emphasizing motion-related cues\naids in distinguishing true anomalies from background interference. The introduction of the Triplet Learning (TL)\nstrategy (LTriplet ) further boosts performance: on UCFCrime, AUC increases from 85.69% to 88.37%, and on XDViolence the AP also improves compared to the baseline.\nThis demonstrates that explicitly separating WLI from true\nanomalies via triplet learning enhances anomaly localization precision. By integrating both MA and the triplet learning, our full TLMA model achieves the best overall results,\nwith the highest AUC on UCF-Crime (89.47%) and the\nhighest AP on XD-Violence (86.78%). Moreover, the FAR\nsteadily decreases as modules are added, dropping from\n\n35603\n\n\fOrigin frames\n\nFiltered frames\n\nMotion map\n\nFigure 6. Visualization of the proposed motion-aware feature enhancement module. From top to bottom: originaTLMAl video\nframes, Sobel-filtered edge responses, and the resulting motion\nmaps. The motion map highlights dynamic foreground regions\nwhile suppressing static background content.\n\nthe loss weight λ in the joint objective, as shown in Table 6. Setting λ = 0.1 yields the best results across all\ndatasets (89.47% AUC on UCF-Crime, 86.78% AP on XDViolence, 93.68% AUC on MSAD). A large λ overemphasizes triplet loss and harms MIL optimization, while a small\nλ weakens the separation of WLI and true anomalies. Thus,\nwe adopt λ = 0.1 as the default.\nEffect of Edge Filters in MA. To assess the sensitivity\nof the MA module to different edge extraction strategies,\nwe conduct experiments on the MSAD dataset by replacing the Sobel filter with two alternatives: Scharr [18] and\nDifference of Gaussian (DoG) [13], and also test a variant\nwithout edge filtering. As shown in Table 7, Sobel yields\nthe best results (93.68% AUC, 81.30% AP), outperforming\nScharr, DoG, and the no-filter baseline. This indicates that\nSobel provides more discriminative motion cues.\n\nFigure 7. Qualitative results of our method on UCF-Crime test\nvideo. Anomaly scores from our TLMA (blue) and the baseline\n(orange) are shown. The pink region indicates the ground-truth\nanomaly interval, and the red circles highlight specific occurrences\nof anomalies.\n\n4.4. Qualitative Results\n\nanomaly scores outside the provided ground-truth. These\nsegments were confirmed to be actual, unannotated fighting\nevents, which further confirms its superior detection sensitivity. Overall, our method produces significantly fewer\nfalse positives and aligns more closely with the ground-truth\nboundaries. It is evident that TLMA yields a sharper and\nmore temporally accurate response within the abnormal interval compared to the baseline. These results demonstrate\nthat TLMA not only mitigates the effect of WLI but also\nachieves higher anomaly sensitivity and improved temporal\nlocalization. Additional qualitative results are provided in\nthe Appendix.\n\nMotion Map. To better illustrate the effect of the proposed\nmotion-aware feature enhancement module, we visualize its\nintermediate outputs in Figure 6. The top row displays the\noriginal video frames, the middle row shows Sobel-filtered\nedge responses, and the bottom row presents the resulting\nmotion maps. As shown, the motion maps clearly emphasize dynamic foreground regions while suppressing static\nbackground content. This selective enhancement enables\nthe model to better focus on motion-related cues that are\nmore indicative of abnormal behavior, thereby improving\nthe quality of feature representations used for downstream\nanomaly detection.\nAnomaly Score. Figure 7 presents a qualitative comparison of anomaly score predictions on test videos from the\nUCF-Crime dataset. The blue curve represents the anomaly\nscores generated by our proposed TLMA method, while the\norange curve corresponds to the baseline method. As shown\nin Figure 7(c), after the fighting incident ends, people in\nthe video resume normal activity. However, the baseline\ncontinues to assign high anomaly scores, resulting in misclassifications caused by WLI. Notably, TLMA detects high\n\n5. Conclusion\n\n35604\n\nIn this paper, we propose a novel framework, TLMA, for\nweakly supervised video anomaly detection, aiming to mitigate the adverse impact of Weakly Labeled Information\n(WLI) without incurring additional annotation cost. To alleviate frequent misclassifications caused by WLI, we design\na triplet learning strategy that increases the feature distance\nbetween WLI and truly anomalous patterns, thereby enhancing the model’s discriminative capability. In addition,\nwe introduce a motion-aware feature enhancement module to emphasize foreground dynamics and suppress background interference, leading to more robust segment representations. Extensive experiments on three public benchmarks demonstrate that our method achieves state-of-theart performance while significantly reducing false alarms.\nThese results confirm that TLMA effectively mitigates the\ninfluence of WLI and enables more precise and robust\nanomaly localization under weak supervision.\n\n\f6. Acknowledgments\nThis work was partly supported by the National Natural Science Foundation of China under Grant (62436001,\n62536001); the National Key Research and Development\nProgram of China under Grant 2024YFE0202900; the Joint\nFoundation of the Ministry of Education for Innovation\nteam (8091B042235); the Fundamental Research Funds for\nthe Central Universities (No. 2025JBZX064); the National\nNatural Science Foundation of China (62506028); Postdoctoral Innovation Talent Support Program (K25M200080);\nand the Talent Fund of Beijing Jiaotong University\n(2025JBZX029 and No. 2024XKRC090).\n\nference on Artificial Intelligence, pages 1395–1403, 2022. 3,\n6\n[10] Yang Liu, Dingkang Yang, Yan Wang, Jing Liu, Jun Liu,\nAzzedine Boukerche, Peng Sun, and Liang Song. Generalized video anomaly event detection: Systematic taxonomy\nand comparison of deep models. ACM Computing Surveys,\n56(7):1–38, 2024. 1\n[11] Hui Lv, Zhongqi Yue, Qianru Sun, Bin Luo, Zhen Cui, and\nHanwang Zhang. Unbiased multiple instance learning for\nweakly supervised video anomaly detection. In Proceedings\nof the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 8022–8031, 2023. 3, 6\n[12] 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 IEEE/CVF\nConference on Computer Vision and Pattern Recognition,\npages 24265–24274, 2025. 3, 6\n[13] David Marr and Ellen Hildreth. Theory of edge detection.\nProceedings of the Royal Society of London. Series B. Biological Sciences, 207(1167):187–217, 1980. 8\n[14] Seongheon Park, Hanjae Kim, Minsu Kim, Dahye Kim,\nand Kwanghoon Sohn. Normality guided multiple instance\nlearning for weakly supervised video anomaly detection. In\nProceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pages 2665–2674, 2023. 1, 3,\n6\n[15] Yujiang Pu, Xiaoyu Wu, Lulu Yang, and Shengjin Wang.\nLearning prompt-enhanced context features for weaklysupervised video anomaly detection. IEEE Transactions on\nImage Processing, 2024. 3, 6\n[16] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya\nRamesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry,\nAmanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In Proceedings of the International Conference on\nMachine Learning, pages 8748–8763. PmLR, 2021. 3\n[17] Bharathkumar Ramachandra, Michael J Jones, and\nRanga Raju Vatsavai. A survey of single-scene video\nanomaly detection. IEEE Transactions on Pattern Analysis\nand Machine Intelligence, 44(5):2293–2312, 2020. 1\n[18] Hanno Scharr. Optimal operators in digital image processing. PhD thesis, Ruprecht-Karls-Universität Heidelberg,\nGermany, 2000. 8\n[19] Irwin Sobel, Gary Feldman, et al. A 3x3 isotropic gradient\noperator for image processing. a talk at the Stanford Artificial Project in, 1968:271–272, 1968. 5\n[20] Yong Su, Jiahang Li, Simin An, Hengpeng Xu, and Weilong\nPeng. Dual-detector reoptimization for federated weakly supervised video anomaly detection via adaptive dynamic recursive mapping. IEEE Transactions on Industrial Informatics, 2025. 3, 5\n[21] Waqas Sultani, Chen Chen, and Mubarak Shah. Real-world\nanomaly detection in surveillance videos. In Proceedings of\nthe IEEE/CVF Conference on Computer Vision and Pattern\nRecognition, pages 6479–6488, 2018. 1, 3, 6\n\nReferences\n[1] Giacomo D’ Amicantonio, Snehashis Majhi, Quan Kong,\nLorenzo Garattoni, Gianpiero Francesca, François Brémond,\nand Egor Bondarev. Mixture of experts guided by gaussian splatters matters: A new approach to weakly-supervised\nvideo anomaly detection. In Proceedings of the IEEE/CVF\nInternational Conference on Computer Vision, pages 10275–\n10285, 2025. 3, 6\n[2] Joao Carreira and Andrew Zisserman. Quo vadis, action\nrecognition? a new model and the kinetics dataset. In Proceedings of the IEEE Conference on Computer Vision and\nPattern Recognition, pages 6299–6308, 2017. 3\n[3] Varun Chandola, Arindam Banerjee, and Vipin Kumar.\nAnomaly detection: A survey. ACM computing surveys\n(CSUR), 41(3):1–58, 2009. 1\n[4] Weiling Chen, Keng Teck Ma, Zi Jian Yew, Minhoe Hur, and\nDavid Aik-Aun Khoo. Tevad: Improved video anomaly detection with captions. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages\n5549–5559, 2023. 6\n[5] Yingxian Chen, Zhengzhe Liu, Baoheng Zhang, Wilton\nFok, Xiaojuan Qi, and Yik-Chung Wu. Mgfn: Magnitudecontrastive glance-and-focus network for weakly-supervised\nvideo anomaly detection. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 387–395, 2023. 3,\n6\n[6] MyeongAh Cho, Minjung Kim, Sangwon Hwang, Chaewon Park, Kyungjae Lee, and Sangyoun Lee. Look around\nfor anomalies: Weakly-supervised anomaly detection via\ncontext-motion relational learning. In Proceedings of the\nIEEE/CVF Conference on Computer Vision and Pattern\nRecognition, pages 12137–12146, 2023. 3\n[7] Jia-Chang Feng, Fa-Ting Hong, and Wei-Shi Zheng. Mist:\nMultiple instance self-training framework for video anomaly\ndetection. In Proceedings of the IEEE/CVF Conference on\nComputer Vision and Pattern Recognition, pages 14009–\n14018, 2021. 3, 6\n[8] Diederik P. Kingma and Jimmy Ba. Adam: A method for\nstochastic optimization. CoRR, abs/1412.6980, 2014. 6\n[9] Shuo Li, Fang Liu, and Licheng Jiao. Self-training multisequence learning with transformer for weakly supervised\nvideo anomaly detection. In Proceedings of the AAAI Con-\n\n35605\n\n\fcleaner: Train a plug-and-play action classifier for anomaly\ndetection. In Proceedings of the IEEE/CVF Conference\non Computer Vision and Pattern Recognition, pages 1237–\n1246, 2019. 6\n[33] Hang Zhou, Junqing Yu, and Wei Yang. Dual memory units\nwith uncertainty regulation for weakly supervised video\nanomaly detection. In Proceedings of the AAAI Conference\non Artificial Intelligence, pages 3769–3777, 2023. 1, 2, 3, 5,\n6\n[34] Liyun Zhu, Lei Wang, Arjun Raj, Tom Gedeon, and Chen\nChen. Advancing video anomaly detection: A concise review and a new dataset. Advances in Neural Information\nProcessing Systems, 37:89943–89977, 2024. 6\n[35] Yi Zhu and Shawn Newsam. Motion-aware feature for improved video anomaly detection. arXiv preprint, 2019. 1\n\n[22] 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. 3,\n6\n[23] Zhan Tong, Yibing Song, Jue Wang, and Limin Wang.\nVideomae: Masked autoencoders are data-efficient learners\nfor self-supervised video pre-training. Advances in Neural\nInformation Processing Systems, 35:10078–10093, 2022. 3\n[24] Du Tran, Lubomir Bourdev, Rob Fergus, Lorenzo Torresani,\nand Manohar Paluri. Learning spatiotemporal features with\n3d convolutional networks. In Proceedings of the IEEE International Conference on Computer Vision, pages 4489–4497,\n2015. 3\n[25] Jinwen Wang, Youfang Lin, Xiaobo Hu, Siyu Yang, Sheng\nHan, Shuo Wang, and Kai Lv. From pixels to temporal\ncorrelations: Learning informative representations for reinforcement learning pre-training. In Proceedings of the 33rd\nACM International Conference on Multimedia, pages 679–\n688, 2025. 3\n[26] Limin Wang, Bingkun Huang, Zhiyu Zhao, Zhan Tong, Yinan He, Yi Wang, Yali Wang, and Yu Qiao. Videomae v2:\nScaling video masked autoencoders with dual masking. In\nProceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 14549–14560, 2023. 3,\n5\n[27] 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 Proceedings of the European Conference on\nComputer Vision, pages 322–339. Springer, 2020. 3, 6\n[28] Peng Wu, Xuerong Zhou, Guansong Pang, Zhiwei Yang,\nQingsen Yan, Peng Wang, and Yanning Zhang. Weakly\nsupervised video anomaly detection and localization with\nspatio-temporal prompts. In Proceedings of the 32nd ACM\nInternational Conference on Multimedia, pages 9301–9310,\n2024. 3\n[29] 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. 1,\n3, 6\n[30] 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. 6\n[31] Chen Zhang, Guorong Li, Yuankai Qi, Shuhui Wang, Laiyun\nQing, Qingming Huang, and Ming-Hsuan Yang. Exploiting\ncompleteness and uncertainty of pseudo labels for weakly\nsupervised video anomaly detection. In Proceedings of\nthe IEEE/CVF Conference on Computer Vision and Pattern\nRecognition, pages 16271–16280, 2023. 3, 6\n[32] Jia-Xing Zhong, Nannan Li, Weijie Kong, Shan Liu,\nThomas H Li, and Ge Li. Graph convolutional label noise\n\n35606\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"