"<!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\nHyperbolic Defect Feature Synthesis for Few-Shot Defect Classification\nHuimin Li1\nBoxuan Hu1\nYulin Zhang1,2\nXiuzhuang Zhou3,4\nJunlin Hu1,2 *\n1\nSchool of Software, Beihang University 2 Qingdao Research Institute, Beihang University\n3\nBeijing University of Posts and Telecommunications 4 Beijing Ketai Industrial Intelligence (BKII)\n{lihuimin, huboxuan, zhangyulin, hujunlin}@buaa.edu.cn\n\nClassification\n\nAbstract\nDefect synthesis, as a core technology for addressing the\nproblem of few-shot defect classification, has been widely\nadopted in industrial scenarios. It helps alleviate the problem of insufficient model generalization capability owing to\ndata scarcity by establishing a data augmentation pipeline.\nRecently, remarkable progress has been achieved in both\nexplicit defect image generation and implicit defect feature\nsynthesis approaches. However, existing methods are always conducted in Euclidean space. Constrained by the\nflatness of Euclidean space, it is difficult to synthesize defect\ndata containing complex structures. In this paper, we attempt to explore defect generation in hyperbolic space and\npropose a hyperbolic defect feature synthesis (HypDFS)\nmethod. By modeling the potential defect distribution via\na small number of hyperbolic defect prototypes and further\noptimizing the synthetic defect features with the hierarchical defect contrastive loss in hyperbolic space, our HypDFS\nmethod can obtain a better generalized defect representation that is more conducive to downstream few-shot defect\nclassification task. Extensive experiments on the MVTec-FS\nbenchmark and standard MTD dataset under the few-shot\nsettings demonstrate that the proposed HypDFS surpasses\nthe Euclidean baseline by a large margin, showing promising prospects for defect synthesis in hyperbolic space.\n\nPrototypes\nExtraction\n\nxiuzhuang.zhou@bupt.edu.cn\n\nExp. Hyperbolid\nmapping\n\nModeling\nGeodesic\n\nTangent plane\nCropped\narea\n\nSynthetic\n\n…\nPoincaré disk\n(a) Existing methods\n\nCropped\nembedding\n\n(b) Our HypDFS method\n\nFigure 1. An illustration of the differences between (a) the existing\nEuclidean space-based methods and (b) our HypDFS method. Our\nHypDFS learns the tree-like semantic hierarchy of the defective\nimages with additional synthetic features in hyperbolic space.\n\ncult to accurately identify defects in products. Few-shot defect classification has therefore emerged as a key area of\nresearch in the current intelligent industrial field, attracting widespread attention from both academic and industrial\ncommunities.\n\n1. Introduction\n\nNumerous studies [8, 25, 29, 39, 42, 45, 49] have been\nconducted on the few-shot defect classification problem,\namong which the synthesis-based strategy is one of the most\npromising routes. Synthesis-based methods [14, 17, 22,\n25, 54] can be roughly divided into three categories: handcrafted rule-based augmentation, AIGC-based generation,\nand synthetic feature-based augmentation. The handcrafted\nrule-based strategy [22, 29, 51] may involve generating new\nsamples and expanding the training data using operations\nsuch as rotation, flipping, scaling, and noise addition. However, this type of augmentation requires in-depth domain\nknowledge, and incorrect application may corrupt the semantic information of the original data. Although current\nAIGC-based generation methods [8, 17, 53] have shown\npromising results for general image generation tasks, significant challenges remain in industrial applications, particularly for defect generation tasks. Moreover, some of such\n\nIndustrial production is undergoing profound changes due\nto the increasingly diverse and refined demands, gradually\naccelerating from large-scale, single variety production to\nsmall-scale, multi variety production [5, 48]. This poses a\nhuge challenge to defect classification. Traditional methods\n[2, 16, 19, 23, 37, 55, 58] generally require a large amount\nof samples for training. Their performance significantly decreases when dealing with small samples, making it diffi* This work was supported by the National Natural Science Foundation\nof China under Grant 62476020, Grant U25A20446, and Grant 62576049.\n(Corresponding author: Junlin Hu.)\n\n19602\n\n\fmethods cannot operate in scenarios with limited computational resources. Therefore, synthetic feature-based methods strike a balance between computational resources and\nmodel performance in the current context. However, existing synthetic feature-based methods [3, 28] in Euclidean\nspace struggle to capture complex relationships between\nfeatures.\nIn this paper, we explore the problem of few-shot defect classification by synthesizing defect features through a\nsmall number of prototypes. We present a hyperbolic defect\nfeature synthesis (HypDFS) method to capture the semantic\nhierarchy among defective images, which extends the defect feature synthesis to hyperbolic space. Unlike existing\nEuclidean space-based methods limited by the flatness of\nEuclidean space, as shown in Fig. 1, we model the potential\ndistribution patterns of defects under scarce data conditions\nin hyperbolic space. The main contributions of this paper\ncan be summarized as follows.\n• We propose a hyperbolic defect feature synthesis approach that can generate a more desirable defect representation via a small number of hyperbolic defect prototypes, extending the family of defect feature synthesis\ntechniques to the hyperbolic space.\n• We train a residual adapter to dynamically fuse substantial pre-trained general features with industrial defect features. Furthermore, we propose a hyperbolic distancebased hierarchical defect contrastive loss to improve the\nrepresentation of real and synthetic defects, thereby enhancing performance of few-shot defect classification.\n• Extensive experiments on the MVTec-FS benchmark and\nstandard MTD dataset under few-shot settings show that\nour HypDFS method outperforms the Euclidean baseline\nby a large margin, demonstrating the promising prospects\nfor defect synthesis in hyperbolic space.\n\nthesized by these methods are very limited. A prominent alternative paradigm leverages deep generative architectures\n[17, 26, 52, 54, 57], such as generative adversarial networks\nand diffusion models, to learn the intrinsic patterns of defect. For example, Jin et al. [17] present DualAnoDiff, using a dual stream diffusion model and a dynamic defect\ninjection mechanism to achieve highly controllable defect\ngeneration. In addition, feature level defect synthesis is also\nimported in defect data augmentation. For instance, Liu et\nal. [28] propose a SimpleNet, synthesizing the defect features by using pre-trained features and noise. However, in\nthe field of industrial defect generation, existing approaches\nremain confined to Euclidean space, which may hinder the\nprecise capture of defect characteristics and the intricate hierarchical relationships between different defect types. In\nthis paper, we aim to fill this gap by exploring the defect\nsynthesis in hyperbolic space and propose a novel hyperbolic defect feature synthesis method.\n\n2.2. CLIP Adaptation\n\n2. Related Work\n\nAlthough vision-language models like CLIP have attracted\nwidespread attention due to the powerful general semantic understanding and generalization capability, directly applying pre-trained CLIP to specific downstream tasks often leads to performance bottlenecks caused by distribution discrepancies between source and target domains. Recently, large-scale model approaches incorporating finetuning strategies have garnered significant attention in various visual tasks [13, 21, 35, 47]. The advantage of such\nmethods lies in their robust cross-scenario adaptability.\nEven under few-shot conditions with scarce training data,\nthey show outstanding generalization performance. For example, Gao et al. [10] propose CLIP-Adapter to fine-tune\nCLIP features for better generalization performance. Lyu et\nal. [29] achieve satisfactory results on few-shot defect classification task by fine-tuning CLIP. Differing slightly from\nexisting approaches, we fine-tune the AlphaCLIP using synthetic defect features, enabling it to perform more effectively on downstream few-shot defect classification task.\n\n2.1. Defect Synthesis\nDefect synthesis has garnered considerable attention as a\ncore technique to address few-shot classification in industrial scenarios [6, 44, 54]. It alleviates the issue of inadequate model generalization caused by scarce data by constructing a data augmentation framework, offering a practical solution to the few-shot classification in industrial scenarios. Handcrafted rule-based approaches [22, 29, 51] constitute the most prevalent paradigm in defect synthesis. For\nexample, Li et al. [22] propose CutPaste, which synthesizes\ndefect samples by cropping, rotating, and transforming normal images, and then classifies defects by calculating the\ndistance of normal samples and generated defect samples.\nLyu et al. [29] present MVREC that uses multi-scale and\noffsetting operations to generate enhancement defects with\nmultiple view instances. However, the types of defect syn-\n\n2.3. Hyperbolic Feature Embeddings\n\n19603\n\nWith the rapid advancement of deep learning, the demands\nfor data representation and model construction have grown\nincreasingly complex and diverse in recent years [31]. Euclidean space has gradually revealed its limitations when\nhandling certain intricate tasks [1, 31, 33, 40]. The emergence of hyperbolic space as an alternative to Euclidean\nspace expands the existing paradigm of feature representation [31, 36]. Its unique geometric properties and impressive data representation capabilities enable it to gain prominence in various fields such as computer vision [24, 27, 50]\nand multimodal representation [4, 30, 34]. Hyperbolic\nspace has demonstrated enormous potential in the field of\n\n\fcomputer vision [9, 11, 24, 27, 30]. It can handle data with\ncomplex tree-like structures more effectively [18]. Employing the geometric properties of hyperbolic space enables\nthe construction of more robust and efficient visual models, significantly enhancing the accuracy of downstream visual tasks. For example, Li et al. [24] attempt to detect image anomalies in hyperbolic space. Liu et al. [27] present\na hyperbolic framework for generalized category discovery\nproblem. Furthermore, hyperbolic space also performs well\nin multimodal representation. For instance, Mandica et al.\n[30] introduce the hyperbolic space into BLIP-2 architecture and explore the scaling of hyperbolic multimodal representation. Pal et al. [34] present a compositional entailment\nlearning framework to learn and align image-text representation in a shared hyperbolic space. However, for the problem of defect synthesis, there is no relevant work conducted\nin hyperbolic space. To this aim, we propose a hyperbolic\ndefect feature synthesis method to model the latent distribution of defects and refine the generated features via the\ncorresponding defective areas in hyperbolic space, making\nthe model better comprehend the hierarchical relationships\namong defect data.\n\n3. Proposed Method\nThis section first introduces some basic concepts of hyperbolic geometry and our motivation, and then presents our\nHypDFS, a defect feature synthesis method for industrial\nfew-show classification in hyperbolic space. Fig. 2 shows\nthe overall pipeline of the proposed HypDFS method.\n\nconstraints. Given two points x, y ∈ Dnc , their addition\noperation x ⊕c y [9] is defined as\n  \\mathbf {x} \\oplus _c \\mathbf {y} = \\frac {(1+2\\textit {c} \\langle \\mathbf {x}, \\mathbf {y}\\rangle + \\textit {c}\\|\\mathbf {y}\\|^2)\\mathbf {x} + (1-\\textit {c}\\|\\mathbf {x}\\|^2)\\mathbf {y}}{(1+2\\textit {c} \\langle \\mathbf {x}, \\mathbf {y}\\rangle + \\textit {c}^2\\|\\mathbf {x}\\|^2\\|\\mathbf {y}\\|^2)}. \\label {eq1}  (1)\nAccordingly, the distance between two points in the hyperbolic space is defined as\n  \\label {eq2} d_{\\mathbb {D}_{c}}(\\mathbf {x}, \\mathbf {y}) = \\frac {2}{\\sqrt {c}} \\mathsf {arctanh}(\\sqrt {c}\\Vert -\\mathbf {x} \\oplus _c \\mathbf {y}\\Vert ). \n\nIt can be shown that when c tends to zero, the hyperbolic\ndistance dDc (x, y) in Eq. (2) degenerates into the Euclidean\ndistance limc→0 dDc (x, y) = 2∥x − y∥.\nMotivation. Our motivation for exploiting hyperbolic\nspace is straightforward considering its advantages in modeling tree-like hierarchical relationships. Fig. 3 illustrates\nsuch advantages using a defect example from MVTec-FS\nbenchmark [29]. We can see that the leather defect includes\nvarious types such as glue, fold, and color. More granularly, the color defect also includes different colors, shapes,\nand sizes. More quantitatively, the leather defect contains 5\nsubclasses of defects, with the number of instances in each\ncategory ranging from 9 to 12. When the depth of the tree is\n3, the average branching factor is 9.3 for the leather defect,\nindicating its exponential growth characteristic, especially\napparent under the influence of synthetic data.\n\n3.2. HypDFS\nAs illustrated in Fig. 2, our HypDFS method mainly contains three components: hyperbolic defect prototypes, defect manifold modeling in hyperbolic space, and defect\nresidual adapter and hierarchical defect contrastive learning. The details of each component are presented below.\n\n3.1. Preliminary and Motivation\nHyperbolic Preliminary. Hyperbolic space, as a representative of non-Euclidean geometry, is a powerful alternative\nto Euclidean space due to its unique geometric properties\nand powerful feature representation capabilities. Here, we\nintroduce several concepts and basic operations of hyperbolic space used in our work. The n-dimensional hyperbolic space Hn is a smooth Riemannian manifold with constant negative curvature, characterized by an exponential\nexpansion of spatial volume as the radius increases. This\nmakes it particularly well-suited for embedding data with\ntree-like hierarchical structures. Several isometric models\n[9, 18] have been constructed to establish a mapping relationship between hyperbolic and Euclidean space. Here, we\nchoose the well-known Poincaré ball owing to its excellent\nperformance in various vision tasks. Poincaré ball can be\ndefined as Dnc = {x ∈ Rn : c||x||2 &lt; 1}, where the curvature parameter c &gt; 0 and the actual curvature is −c2 following the settings in [9]. In addition, the tangent space at\na given point u ∈ Dnc refers to the linear space comprising\nall tangent vectors at that point.\nUnlike addition in Euclidean space, the corresponding\noperation in hyperbolic space should conform to manifold\n\n(2)\n\n3.2.1. Hyperbolic Defect Prototypes\nPrototype features play a crucial role in the challenging\nrealm of few-shot classification. Effective prototype features can accurately capture the distinctive attributes of each\ndefect type and clearly distinguish the boundaries between\ndifferent categories. To obtain generalized defect prototype\nfeatures, inspired by [29], we first use handcrafted methods such as rotation and translation to augment existing defect data, while avoiding excessive deviation in the direction\nof defect feature generation during subsequent training to\nsome extent. Then, we employ a pre-trained CLIP model to\nextract prototype features, as it demonstrates strong adaptability and scalability in defect image understanding tasks.\nSpecifically, given the input defect image I, we first obtain\nhandcrafted augment data Ihd using augmentation operation AUG(·) such as rotation translation and scaling, and\nthen extract the defect features fhd by the pre-trained CLIP\nextractor CLIP(·) as\n\n19604\n\n  \\label {eq3} \\mathbf {I}_\\mathrm {hd}= \\mathrm {AUG}(\\mathbf {I}), ~~~~ \\mathbf {f}_\\mathrm {hd}= \\mathrm {CLIP}(\\mathbf {I}_\\mathrm {hd}), \n\n(3)\n\n\fTraining\n\nDefect Manifold Modeling\n\nSupport Set\n\nImage\nEncoder\n\nWhole\nImage\n\n…\n\nSynthetic\n\nfsd\n\nRandom\nSampling\n\nHandcrafted\nAugmentation\n\npi\n\nODE\n\nfhd\n\nCropped\nImage\n\nExp\n\nLog\n\n…\n\nRotation…\n\nPrototypes\n\nAdapter\n\nQuery\nEmbeddings\n\nAdapter\n\n…\n\nExp\n\nClassification\n\nImage\nEncoder\n\nQuery Set\n\n…\n\n…\n\nResidual\n\nEvaluation\n…\n\nHierarchical Defect\nContrastive Learning\n\nfreeze\ntrain\nwhole emb.\nsynthetic emb.\ncropped emb.\n\nFigure 2. The pipeline of our HypDFS. During training, a pre-trained image encoder is first adopted to extract whole and corresponding\ncropped features of augmented defective images in support set. These prototype features are then employed to model distribution of each\ndefect manifold in hyperbolic space. Subsequently, synthetic defect features are obtained via a sampling process to assist in training.\nFurthermore, a residual adapter is trained to dynamically integrate pre-trained general features with defective features, and a hierarchical\ndefect contrastive learning is used to optimize real and synthetic feature embeddings, thereby improving the effectiveness of adapter.\nDuring evaluation, input data will be classified into the corresponding category in support set with the guidance of the trained adapter.\n\n3.2.2. Defect Manifold Modeling in Hyperbolic Space\nleather\ndefect\nglue\n\nfold\n\ncolor\n\nglue1 glue2\n\nfold1\n\ncolor1 color2\n\n(a) Semantic Hierarchy\n\nSeveral well-established ways [14, 17, 22] have been developed for various few-shot distribution modeling in industrial scenarios so far. However, these existing methods all\nwork in Euclidean space. Inspired by [12, 32], we attempt\nto model defect feature distribution in hyperbolic space.\nLet Z denote the random variables of the hyperbolic defect prototype feature h. We then utilize a parameterized\nwrapped normal distribution with probability density function P(z|c, h, µ, Σ) to model the Riemann distribution of\ndefect as a projection of a gaussian distribution N on the\ntangent space of the given manifold:\n\n(b) Hyperbolic Space\n\nFigure 3. An illustration of (a) a tree-like semantic hierarchy in the\ncontext of leather defect from the MVTec-FS benchmark, and (b)\nideal relationships among defective images in hyperbolic space.\n\nwhere fhd ∈ RNhd ×C , Nhd and C denote the number of\naugmented features and channels, respectively. The defect\nprototype feature f can be generated by sampling from fhd ,\nto improve generalization ability, and then mapped from\nEuclidean space to hyperbolic space for dynamic feature\nsynthesis using the exponential map as\n\n  \\label {eq5} &amp; \\mathcal {P}(\\boldsymbol {z}|c, \\mathbf {h}, \\boldsymbol {\\mu }, \\boldsymbol {\\Sigma }) = \\nonumber \\\\ &amp; ~~~~~~~~ \\mathcal {N}(\\lambda _{\\mathbf {u}}^{c}\\mathsf {log}_{\\mathbf {u}}^{c}(\\boldsymbol {z})|\\boldsymbol {\\mu },\\boldsymbol {\\Sigma }) \\left (\\frac {\\sqrt {c}~d_{\\mathbb {D}_{c}} (\\mathbf {h},\\boldsymbol {z})}{\\sinh (\\sqrt {c}~d_{\\mathbb {D}_{c}} (\\mathbf {h},\\boldsymbol {z}))}\\right ),\n(5)\n\n  \\label {eq4} \\mathbf {h}=\\mathsf {exp}_{\\mathbf {u}}^c(\\mathbf {f}) = \\mathbf {u} \\oplus _c \\left (\\mathsf {tanh}\\left (\\sqrt {c}\\frac {\\lambda _{\\mathbf {u}}^{c}\\|\\mathbf {f}\\|}{2}\\right )\\frac {\\mathbf {f}}{\\sqrt {c}\\|\\mathbf {f}\\|}\\right ), \\\\  (4)\n\nwhere c is the curvature parameter, λcu is the conformal factor, µ and Σ ∈ RC×C denote the mean and covariance matrix. The logarithmic map logcu (·) projects defect prototype\nfeature from hyperbolic space to Euclidean space as\n  \\label {eq6} \\mathbf {f} &amp;=\\mathsf {log}_{\\mathbf {u}}^c(\\mathbf {h}) \\nonumber \\\\ &amp;= \\frac {2}{\\sqrt {c} \\lambda _{\\mathbf {u}}^{c}}\\mathrm {arctanh}(\\sqrt {c}\\|-\\mathbf {u}\\oplus _{c}\\mathbf {h}\\|)\\frac {-\\mathbf {u}\\oplus _{c}\\mathbf {h}}{\\|-\\mathbf {u}\\oplus _{c}\\mathbf {h}\\|},\n\nwhere c is the curvature parameter of the hyperbolic space,\nλcu = 2/(1 + c∥u∥2 ) is the conformal factor, u can be\nsimply set to 0 as suggested in [9, 18] (i.e. λc0 = 2),\nf ∈ RC is the defect prototype feature in Euclidean space,\nand h ∈ DC\nc is the mapped feature of f in hyperbolic space.\n\n(6)\n\n19605\n\nC\nwhere u can be simply set to 0, h ∈ DC\nc and f ∈ R .\n\n\fFor the parameters µ and Σ in Eq. (5), they can be estimated from a set of defect prototypes {f }, but this may\nresult in a bias due to the small number of defect prototypes. More acceptable, we adopt a neural ordinary differential equation (ODE) to calculate the values of µ and Σ\nfor each defect category. Specially, the Runge-Kutta [12]\n(RK) approach is adopted in our experiments. Given the\ninitial state µ0 and Σ0 of µ and Σ, the final values at the\ni-th iteration can be obtained using\n  \\label {eq7} \\boldsymbol {\\mu }_i,~\\boldsymbol {\\Sigma }_i = \\mathrm {RK}(\\boldsymbol {\\mu }_0, \\boldsymbol {\\Sigma }_0, \\mathrm {ODE}_{\\boldsymbol {\\mu }}, \\mathrm {ODE}_{\\boldsymbol {\\Sigma }}, i), \n\nthermore, the feature synthesis process is constrained by\n  \\label {eq9} L_{s} &amp;= {\\max } \\left (m_d - \\sum _{i}\\sum _{j\\neq i}d_{\\mathbb {D}_{c}}(\\mathbf {h}^i,\\mathbf {h}_\\mathrm {sd}^j), 0\\right ) \\nonumber \\\\ &amp; + \\max \\left (m_d - \\sum _{i}\\sum _{j\\neq i}d_{\\mathbb {D}_{c}}(\\mathbf {h}_\\mathrm {sd}^i, \\mathbf {h}_\\mathrm {sd}^j), 0\\right ),\n\n(9)\nwhere {hi } and {hisd } denote two sets of real defect prototype and synthetic defect\nin hyperbolic space,\nP features\nP\nand the margin md =\nd\n(hi , hj ). The first\nD\nc\ni\nj̸=i\nterm prevents the synthetic features from clustering near the\nprototypes excessively, and the second term prevents the\nsynthetic features from being too close to each other and\nclustering together. In addition, we exploit a defect contrastive loss function based on hyperbolic distance to better\ncapture the hierarchical relationships between defective images. Specifically, let hwd and hcd denote the whole defective feature and the corresponding cropped defective region\nfeature in hyperbolic space. Then our proposed hierarchical\ndefect contrastive loss function can be formulated as\n\n(7)\n\nwhere ODEµ and ODEΣ denote the neural networks to\nlearn the parameters µ and Σ, respectively. µ0 and Σ0 are\nobtained from the given defect prototypes {f }.\nAfter model training, we can obtain the synthetic defect feature hsd in hyperbolic space through sampling using Eq. (5). Concretely, a sample is first sampled from\nthe gaussian distribution in the Euclidean space, and then\nmapped to hyperbolic space via an exponential map Eq. (4).\nIt is noted that here we adopt a reparameterization technique\nto address the issue of non-differentiability in the sampling\nprocess following the practices in [12, 20, 41].\n3.2.3. Defect Residual Adapter and Hierarchical Defect\nContrastive Learning\nDefect Residual Adapter. To fully utilize the rich knowledge contained in pre-trained CLIP model for few-shot defect classification task, while achieving rapid and efficient\nadaptation of the model to specific domain, we train a\nlightweight residual adapter using real and synthetic defect\ndata, which can guide the model to better learn defect related features according to the needs of specific industrial\nscenario. Given the real defect feature f and the synthesis defect feature fsd in Euclidean space, in which fsd is\nobtained from the hyperbolic synthesis defect feature hsd\nusing the logarithmic map Eq. (6), we then obtain the finetuned adapted defect feature fout using:\n  \\label {eq8} \\mathbf {f_\\mathrm {in}} = \\mathrm {CON}(\\mathbf {f}, \\mathbf {f_\\mathrm {sd}}), ~~~~ \\mathbf {f_\\mathrm {out}} = \\mathrm {SiLU}(\\mathbf {W} \\mathbf {f_\\mathrm {in}}) + \\mathbf {f_\\mathrm {in}}, \n\n(8)\n\nwhere CON represents the feature concatenation operation,\nSiLU(·) is an activation function, W ∈ RC×C denotes the\nlearnable weight parameter, and fout is used in the calculation of vanilla cross-entropy loss Lce .\nHierarchical Defect Contrastive Learning. In our\nHypDFS method, the learning process mainly involves\nthree objectives: defect feature adaptation, defect feature\nsynthesis, and defect hierarchical representation. Among\nthem, feature adaptation is a common goal in the finetuning of large-scale pre-trained model. Here, we optimize\na vanilla cross-entropy loss Lce to achieve this goal. Fur-\n\n  \\label {eq10} L_{hdcl}=L_{ce} + \\alpha L_{s}+ \\beta L_{cl}, \n\n(10)\n\nin which α and β are hyperparameters, and the contrastive\nloss between hwd and hcd is given by\n  \\label {eq11} L_{cl}(\\mathbf {h}_\\mathrm {wd}, \\mathbf {h}_\\mathrm {cd})=-\\sum _{i}\\log \\frac {\\exp \\left (d_{\\mathbb {D}_{c}}(\\mathbf {h}_\\mathrm {wd}^i,\\mathbf {h}_\\mathrm {cd}^i)/\\tau \\right )}{\\sum _{j\\neq i}\\exp (d_{\\mathbb {D}_{c}}(\\mathbf {h}_\\mathrm {wd}^i,\\mathbf {h}_\\mathrm {cd}^j)/\\tau )}, \n(11)\nwhere hwd ∈ {h, hsd }, dDc is the hyperbolic distance using\nEq. (2), and τ is a temperature hyperparameter.\n\n4. Experiments\n4.1. Experimental Settings\nIn this section, we empirically evaluate the effectiveness\nof our HypDFS method. Specifically, we conduct experiments on the MVTec-FS benchmark and the standard MTD\ndataset under few-shot settings. Following the evaluation\nprotocol in [29], we adopt the mean classification accuracy\nto measure the performance of the different methods.\n4.1.1. Datasets\nMVTec-FS [29] is an important few-shot benchmark for\nindustrial defect classification. It is officially released in\n2025 as a few-shot version of the prevalent MVTec-AD.\nThe MVTec-FS dataset comprises 14 industrial product categories: 5 texture categories and 9 object categories. A total\nof 46 defect types have been annotated, including common\ndefects such as scratches, dents, dirt, and deformation. The\nnumber of instances for each defect type ranges from 9 to\n58, totaling 1,228 defect images. It simulates the challenge\n\n19606\n\n\fTable 1. Mean classification accuracy (%) comparison with state-of-the-art methods on MVTec-FS and MTD under few-shot settings.\n\nDataset\n\nK\n\nCLIP-A [10]\n\nCLIPProtoNet [43]\n\nCLIPKNN [29]\n\nCLIPLinearProb[29]\n\nTip-A-F\n[56]\n\nZip-A-F\n[29]\n\nHypDFS\n(Ours)\n\nMVTec-FS\n\n1\n3\n5\n\n61.5\n75.7\n81.0\n\n60.6\n76.0\n79.9\n\n60.4\n76.0\n76.7\n\n62.2\n78.0\n82.5\n\n62.0\n77.5\n81.9\n\n73.7\n86.1\n89.4\n\n79.3 (+5.6)\n89.3 (+3.2)\n91.7 (+2.3)\n\nMTD\n\n1\n3\n5\n\n51.7\n67.8\n76.8\n\n50.6\n64.9\n74.2\n\n50.6\n55.4\n65.2\n\n54.5\n69.9\n78.0\n\n52.9\n67.9\n76.6\n\n55.4\n67.6\n78.6\n\n59.4 (+4.0)\n78.6 (+8.7)\n86.4 (+7.8)\n\nTable 2. Classification accuracy (%) comparison with state-of-the-art methods on 9 object categories of MVTec-FS benchmark.\n\nK\n\n1\n\n3\n\n5\n\nMethod\n\nBottle\n\nCable\n\nCapsule\n\nHazelnut\n\nMetalNut\n\nPill\n\nScrew\n\nTransistor\n\nZipper\n\nCLIP-A [10]\nCLIP-ProtoNet [43]\nCLIP-KNN [29]\nCLIP-LinearProb [29]\nTip-A-F [56]\nZip-A-F [29]\nHypDFS (Ours)\n\n51.9\n50.6\n50.6\n55.0\n51.3\n58.1\n66.8\n\n61.8\n62.8\n62.8\n62.8\n63.2\n77.5\n88.1\n\n44.5\n46.8\n47.2\n49.1\n46.8\n60.4\n64.9\n\n66.3\n62.9\n62.9\n69.1\n65.1\n77.1\n83.4\n\n59.6\n62.0\n61.6\n60.0\n61.2\n71.6\n80.8\n\n54.3\n59.3\n58.5\n63.7\n62.7\n72.4\n77.5\n\n72.7\n74.7\n75.0\n73.0\n74.3\n67.3\n78.3\n\n63.8\n55.2\n55.2\n56.2\n61.0\n89.5\n85.7\n\n77.3\n74.6\n74.4\n73.9\n76.6\n79.3\n82.6\n\nCLIP-A [10]\nCLIP-ProtoNet [43]\nCLIP-KNN [29]\nCLIP-LinearProb [29]\nTip-A-F [56]\nZip-A-F [29]\nHypDFS (Ours)\n\n68.1\n70.0\n70.0\n71.3\n71.9\n76.9\n77.5\n\n77.9\n80.0\n80.0\n82.1\n81.8\n93.0\n93.0\n\n61.5\n63.0\n63.0\n63.4\n61.5\n74.0\n81.1\n\n76.0\n77.7\n77.7\n78.3\n78.3\n82.3\n88.0\n\n72.0\n71.2\n71.2\n73.6\n73.2\n83.6\n94.0\n\n68.6\n69.1\n69.1\n75.6\n73.3\n83.5\n85.4\n\n85.7\n87.0\n87.0\n86.7\n87.0\n88.3\n92.3\n\n88.6\n85.7\n85.7\n87.6\n87.6\n100.0\n99.1\n\n85.1\n83.4\n83.4\n83.4\n85.4\n88.8\n91.5\n\nCLIP-A [10]\nCLIP-ProtoNet [43]\nCLIP-KNN [29]\nCLIP-LinearProb [29]\nTip-A-F [56]\nZip-A-F [29]\nHypDFS (Ours)\n\n67.5\n67.5\n65.6\n70.0\n68.1\n77.5\n81.8\n\n83.9\n84.9\n78.3\n86.7\n85.6\n93.0\n92.3\n\n69.8\n72.1\n62.3\n69.8\n70.2\n81.1\n84.9\n\n78.9\n74.9\n73.1\n78.9\n77.1\n88.6\n92.0\n\n78.8\n78.4\n79.2\n80.0\n80.8\n91.2\n98.8\n\n77.3\n74.6\n67.6\n81.2\n80.7\n84.7\n87.9\n\n90.7\n89.3\n89.7\n92.7\n91.0\n92.0\n94.0\n\n93.3\n99.1\n97.1\n92.4\n96.2\n100.0\n100.0\n\n87.6\n87.1\n79.8\n86.3\n87.6\n90.0\n93.6\n\nof scarce defect samples in actual production. For example, the carpet defect contains 5 subclasses of defects, with\naround 10 images of each type in the training and test sets,\nrespectively.\nMTD [15] is a standard dataset for promoting intelligent\nmanufacturing and quality control. It is designed for defect\ndetection in the production process of magnetic tiles, covering five typical types of defects including blowhole, crack,\nbreak, fray, and uneven, totaling 392 defective images. Accurate classification in few-shot settings is more challenging due to low visibility and significant differences in defect\nshapes. Note that each defective image in MVTec-FS and\nMTD datasets contains pixel level annotations, outlining the\nboundaries and morphology of the defect area accurately.\n\n4.1.2. Implementation Details\nWe adopt the AdamW optimizer for training, and the initial\nlearning rate is 1e-4 with a cosine annealing decay schedule. The batch size is 32 by default, which is slightly larger\nthan the maximum value in the training set for each defect\ncategory to facilitate unified training. Note that the actual\nbatch size and the batch samples may vary depending on\nthe shot values. We use AlphaCLIP [46] equipped with\nViTL/14 [7] as the default feature extractor. For the neural networks ODEµ and ODEΣ , we adopt fully-connected\nlayer and self-attention layer following the settings in [12].\nThe curvature parameter c of the hyperbolic space is set to\n0.05 by default, obtained by a heuristic way. The parameters α, β, and τ are set to 0.1, 0.1, and 0.3, respectively.\n\n19607\n\n\fTable 3. Classification accuracy (%) comparison with state-of-theart methods on 5 texture categories of MVTec-FS benchmark.\n\nWe adopt N -way K-shot settings for few-shot defect classification in our experiments, in which N is the number of\ndefect categories and K ∈ {1, 3, 5} represents the number\nof training images for each category. Following the common settings in [29], the model is first trained in the support\nset that is sampled from the training set during training and\nthen evaluated in the query set during evaluation. Specially,\nfor the MTD dataset, the number of images in each class\nvaries significantly, ranging from 37 to 115. If training and\ntest data are divided into roughly equal proportions, the image diversity in the training set of some categories will be\nsignificantly higher than that of other categories. Therefore,\nwe do not divide them in equal proportions. In our experiments, we simply utilize the first 25 images in each category\nfor training and the remaining images for testing, re-testing\nthe results using open-source code from [29]. Such settings\nrender a more reasonable comparison under few-shot classification task. All experiments are conducted on a single\nNVIDIA GeForce RTX 3090 GPU.\n\nK\n\n1\n\n4.2. Results and Analysis\n\n3\n\n5\n\n4.2.1. Comparison with State-of-the-art Methods\nTab. 1 highlights the mean classification accuracy of current widely adopted methods on the MVTec-FS benchmark\nand MTD dataset under few-shot settings. More detailed\nresults on 9 object categories and 5 texture categories of\nMVTec-FS can be found in Tab. 2 and Tab. 3, respectively.\nIt can be seen from Tab. 1 that our HypDFS method obtains the highest scores and surpasses the existing Euclidean\nspace based methods by increasing the gains of 5.6%, 3.2%,\nand 2.3% on the MVTec-FS benchmark and 4.0%, 8.7%,\nand 7.8% on the MTD dataset, respectively. The empirical experiments demonstrate the superiority of our proposed\nHypDFS method by synthesizing the additional hyperbolic\ndefect features. More specifically, this hyperbolic modeling\nscheme captures the hierarchical relationships between defective images, yielding more favorable representations for\ndownstream defect classification tasks.\n\nMethod\n\nCar.\n\nGri.\n\nLea.\n\nTil.\n\nWo.\n\nCLIP-A\nCLIP-ProtoNet\nCLIP-KNN\nCLIP-ProbLinear\nTip-A-F\nZip-A-F\nHypDFS (Ours)\nCLIP-A\nCLIP-ProtoNet\nCLIP-KNN\nCLIP-ProbLinear\nTip-A-F\nZip-A-F\nHypDFS (Ours)\n\n66.4\n60.5\n59.6\n60.5\n60.9\n78.6\n85.0\n70.9\n71.4\n71.4\n74.1\n72.7\n85.0\n84.1\n\n42.9\n42.0\n42.0\n41.6\n44.9\n50.6\n52.6\n57.6\n57.6\n57.6\n60.0\n60.8\n71.8\n76.7\n\n65.5\n62.7\n62.7\n64.6\n63.2\n82.3\n91.3\n77.3\n78.2\n78.2\n82.3\n80.5\n90.9\n94.1\n\n70.5\n71.0\n69.5\n73.3\n72.9\n96.2\n96.2\n89.5\n86.7\n86.7\n91.0\n89.1\n97.6\n97.6\n\n64.0\n63.4\n62.9\n68.0\n64.6\n71.4\n76.6\n81.4\n82.3\n82.3\n83.1\n82.3\n90.0\n95.7\n\nCLIP-A\nCLIP-ProtoNet\nCLIP-KNN\nCLIP-ProbLinear\nTip-A-F\nZip-A-F\nHypDFS (Ours)\n\n75.5\n73.6\n74.1\n79.6\n74.5\n85.9\n86.8\n\n64.9\n59.6\n55.5\n66.9\n65.3\n80.8\n82.4\n\n87.7\n83.6\n81.8\n88.6\n88.2\n92.7\n92.7\n\n91.0\n89.1\n89.5\n93.3\n91.0\n97.6\n97.6\n\n86.9\n84.9\n79.7\n88.3\n89.7\n96.6\n98.5\n\nTable 4. Mean classification accuracy (%) of different pre-trained\narchitectures on MTD dataset when K = 5.\n\nType\n\nBackbone\n\nAccuracy\n\nVanillaClip\n\nResNet50\nResNet101\nViT-B/16\nViT-L/14\nViT-L/14@336\n\n24.3\n33.2\n52.7\n52.5\n51.1\n\nAlphaCLIP\n\nViT-B/16\nViT-L/14\n\n65.0\n69.5\n\nAlphaCLIP-S\n\nViT-B/16\nViT-L/14\n\n50.0\n51.9\n\n4.2.2. Effect of Different Pre-trained Architectures\nThe current pre-trained large-scale multimodal models play\na crucial role in cross domain few-shot classification tasks.\nHence, to explore the impact of different pre-trained architectures, we evaluate two popular CLIP models: VanillaClip\n[38] and AlphaCLIP [46], a derived version that focuses\nmore on specific regions. Tab. 4 presents the mean classification accuracy under the different pre-trained models on\nthe popular MTD dataset when K=5. Note that in Tab. 4, we\ndo not fine tune the model and only adopt a vanilla crossentropy loss for classification. It can be seen from these\nresults that 1) different pre-trained CLIP models perform\nsignificantly differently, and 2) the pre-trained ViT architecture is better than ResNet-based architectures. To further\n\nvalidate the ability of AlphaCLIP to focus on specific defect\nareas, we conduct an additional experiment with the same\nweight assigned to the mask (i.e. AlphaCLIP-S in Tab. 4).\nFrom the results, it can be seen that with the help of mask,\nAlphaCLIP has extracted more effective feature representations that are more focused on defect regions, obtaining a\nperformance of 17.6% (69.5% vs. 51.9%) improvement on\nViT-L/14. Hence, we select the AlphaCLIP with ViT-L/14\nbackbone as default setting in subsequent experiments.\n4.2.3. Effect of Curvature Parameter\n\n19608\n\nTo show the effect of different values of curvature parameter c, we evaluate three strategies on curvature parame-\n\n\fTable 6. Mean classification accuracy (%) of defect residual\nadapter under different training strategies on MTD dataset.\n\nTable 5. Mean classification accuracy (%) of different curvature\nvalues on MTD dataset when K = 5.\n\nType\n\nCurvature c\n\nAccuracy\n\nZero\n\n0\n\n78.1\n\nFixed\n\n0.01\n0.05\n0.1\n0.3\n0.5\n0.7\n1.0\n\n79.0\n79.2\n79.1\n78.9\n79.1\n79.0\n79.0\n\nLearnable\n\n0.05\n\n78.9\n\nDataset\n\nK\n\nNO\n\nReal\n\nReal &amp; Syn\n\nMTD\n\n1\n3\n5\n\n51.0\n59.3\n69.5\n\n55.0\n67.4\n78.1\n\n59.4\n78.6\n86.4\n\nTable 7. Mean classification accuracy (%) comparison of the proposed hierarchical defect contrastive loss with the Euclidean and\nhyperbolic settings on MTD dataset.\n\nDataset\n\nK\n\nEuclidean\n\nHyperbolic\n\nHDCL\n\nMTD\n\n1\n3\n5\n\n55.0\n67.4\n78.1\n\n55.9\n68.2\n79.2\n\n59.4\n78.6\n86.4\n\nter, i.e. zero, fixed and learnable. We use a fixed learning\nrate uniformly without a scheduled strategy for more stable curvature parameter learning. Tab. 5 presents the corresponding results on MTD dataset when K=5. It can be\nseen that a proper curvature parameter value can improve\nthe classification accuracy. When c is set to 0.1, the score\ncan be increased by 1.0% (78.1% vs. 79.1%) compared to\nthe Euclidean baseline (i.e. c=0). In addition, simply setting\ncurvature value as a learnable parameter does not result in\nbetter performance (79.2% vs. 78.9%) in our experiments.\nTherefore, it remains a challenge to automatically find the\noptimal curvature value of hyperbolic metric space that is\nmore suitable for few-shot classification tasks. In our future\nwork, we will explore other adaptive ways to find a more\nideally and interpretable curvature value.\n\nout using synthetic features, and ‘HDCL’ (i.e. HypDFS)\nmeans using our proposed hierarchical defect contrastive\nloss. Note that the additional cropped defective region feature extracted by the pre-trained feature extractor CLIP(·)\nhas been adopted in HDCL. We can see that the mean classification accuracy has improved by 7.2% (86.4% vs. 79.2%)\nwith the help of the proposed Lhdcl under hyperbolic settings (HDCL vs. Hyperbolic), surpassing the Euclidean\nspace baseline (i.e. Euclidean) by a large margin. This implies the superiority of modeling and synthesizing defect\nfeatures in hyperbolic space, which is further amplified by\nthe proposed hierarchical defect contrastive loss.\n\n4.2.4. Effect of Defect Residual Adapter\n\n5. Conclusion\n\nCurrently, the adaptation of pre-trained general features to\ndefective features plays an important role in the application of large-scale models. To evaluate such effects, we\ntrain a defect residual adapter and present the results in\nTab. 6, where notation ‘NO’ denotes that the adapter is not\nused for fine-tuning, and notation ‘Real’ and ‘Real &amp; Syn’\nmean adopting real and synthetic defect features to finetune the adapter. From these results, we can see that just a\nsimple adaptation can significantly increase gains by 8.6%\n(69.5% vs. 78.1%) when K=5. Furthermore, the mean classification score can be further improved by 8.3% (78.1%\nvs. 86.4%) after using additional synthetic defect features,\nshowing the effectiveness of the proposed HypDFS method\nand the potential for defect synthesis in hyperbolic space.\n4.2.5. Effect of Hierarchical Defect Contrastive Learning\n\nIn this paper, we have explored the defect synthesis in hyperbolic space and presented a hyperbolic defect feature\nsynthesis (HypDFS) method. Specifically, we first train a\nresidual adapter to dynamically fuse substantial pre-trained\ngeneral features with industrial defect features. Then we\nmodel the potential distribution of the defects via a small\nnumber of hyperbolic defect prototypes and further optimize the real and synthetic defect features with the proposed\nhierarchical defect contrastive loss in hyperbolic space,\nyielding a better generalized defect representation that is\nmore conducive to downstream few-shot classification task.\nExtensive experiments on benchmarking datasets show the\nsuperiority of our HypDFS and the promising prospects for\ndefect synthesis in hyperbolic space.\nLimitations. In this paper, we only consider defect feature synthesis in two industrial image benchmarks. The\nperformance of our HypDFS method in more benchmarks\nneeds to be further evaluated. Furthermore, exploring other\nadaptive ways to find a more ideally curvature may be an\nalternative direction for this work in the future.\n\nTab. 7 clearly shows the effectiveness of the proposed hierarchical defect contrastive loss Lhdcl , in which ‘Euclidean’\nrepresents using cross-entropy loss only in Euclidean space,\n‘Hyperbolic’ denotes optimizing defect embeddings using\nhyperbolic space and hyperbolic distance Eq. (2) but with-\n\n19609\n\n\fReferences\n[1] Qi Bi, Jingjun Yi, Haolan Zhan, Wei Ji, and Gui-Song Xia.\nLearning fine-grained domain generalization via hyperbolic\nstate space hallucination. In AAAI Conference on Artificial\nIntelligence, pages 1853–1861, 2025. 2\n[2] Meiyun Chen, Zijian Liang, Zhenxiao Fu, Deqing Kong,\nand Dawei Zhang. An efficient defect detection method for\nMLCC based on EHL-DETR deep learning model. IEEE\nTransactions on Instrumentation and Measurement, 74:1–9,\n2025. 1\n[3] Thomas Defard, Aleksandr Setkov, Angelique Loesch, and\nRomaric Audigier. Padim: a patch distribution modeling\nframework for anomaly detection and localization. In International Conference on Pattern Recognition, pages 475–489,\n2021. 2\n[4] Karan Desai, Maximilian Nickel, Tanmay Rajpurohit, Justin\nJohnson, and Shanmukha Ramakrishna Vedantam. Hyperbolic image-text representations. In International Conference on Machine Learning, pages 7694–7731, 2023. 2\n[5] Jan Diers and Christian Pigorsch. A survey of methods for\nautomated quality control based on images. International\nJournal of Computer Vision, 131(10):2553–2581, 2023. 1\n[6] Yuran Dong, Cheng Xie, Luyao Xu, Hongming Cai, Weiming Shen, and Haoyuan Tang. Generative and contrastive\ncombined support sample synthesis model for few-/zero-shot\nsurface defect recognition. IEEE Transactions on Instrumentation and Measurement, 73:1–15, 2023. 2\n[7] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov,\nDirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner,\nMostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is\nworth 16x16 words: Transformers for image recognition at\nscale. In International Conference on Learning Representations, 2020. 6\n[8] Yuxuan Duan, Yan Hong, Li Niu, and Liqing Zhang. Fewshot defect image generation via defect-aware feature manipulation. In AAAI Conference on Artificial Intelligence, pages\n571–578, 2023. 1\n[9] Aleksandr Ermolov, Leyla Mirvakhabova, Valentin\nKhrulkov, Nicu Sebe, and Ivan Oseledets. Hyperbolic\nvision transformers: Combining improvements in metric\nlearning. In IEEE/CVF Conference on Computer Vision and\nPattern Recognition, pages 7409–7419, 2022. 3, 4\n[10] Peng Gao, Shijie Geng, Renrui Zhang, Teli Ma, Rongyao\nFang, Yongfeng Zhang, Hongsheng Li, and Yu Qiao.\nClip-adapter: Better vision-language models with feature\nadapters. International Journal of Computer Vision, 132(2):\n581–595, 2024. 2, 6\n[11] Zhi Gao, Yuwei Wu, Yunde Jia, and Mehrtash Harandi. Curvature generation in curved spaces for few-shot learning. In\nIEEE/CVF International Conference on Computer Vision,\npages 8691–8700, 2021. 3\n[12] Zhi Gao, Yuwei Wu, Yunde Jia, and Mehrtash Harandi. Hyperbolic feature augmentation via distribution estimation and\ninfinite sampling on manifolds. In Advances in Neural Information Processing Systems, pages 34421–34435, 2022. 4, 5,\n6\n\n[13] Zeyu Han, Chao Gao, Jinyang Liu, Jeff Zhang, and Sai Qian\nZhang. Parameter-efficient fine-tuning for large models: A\ncomprehensive survey. Transactions on Machine Learning\nResearch, pages 1–44, 2024. 2\n[14] Teng Hu, Jiangning Zhang, Ran Yi, Yuzhen Du, Xu Chen,\nLiang Liu, Yabiao Wang, and Chengjie Wang. Anomalydiffusion: Few-shot anomaly image generation with diffusion\nmodel. In AAAI conference on artificial intelligence, pages\n8526–8534, 2024. 1, 4\n[15] Yibin Huang, Congying Qiu, and Kui Yuan. Surface defect\nsaliency of magnetic tile. The Visual Computer, 36(1):85–\n96, 2020. 6\n[16] Xi Jiang, Jian Li, Hanqiu Deng, Yong Liu, Bin-Bin Gao,\nYifeng Zhou, Jialin Li, Chengjie Wang, and Feng Zheng.\nMMAD: A comprehensive benchmark for multimodal large\nlanguage models in industrial anomaly detection. In International Conference on Learning Representations, 2025. 1\n[17] Ying Jin, Jinlong Peng, Qingdong He, Teng Hu, Jiafu Wu,\nHao Chen, Haoxuan Wang, Wenbing Zhu, Mingmin Chi, Jun\nLiu, and Yabiao Wang. Dual-interrelated diffusion model\nfor few-shot anomaly image generation. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages\n30420–30429, 2025. 1, 2, 4\n[18] Valentin Khrulkov, Leyla Mirvakhabova, Evgeniya Ustinova, Ivan Oseledets, and Victor Lempitsky. Hyperbolic image embeddings. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 6418–6428, 2020. 3,\n4\n[19] Tongwha Kim and Kamran Behdinan. Advances in machine\nlearning and deep learning applications towards wafer map\ndefect recognition and classification: a review. Journal of\nIntelligent Manufacturing, 34(8):3215–3247, 2023. 1\n[20] Wonyeol Lee, Hangyeol Yu, and Hongseok Yang. Reparameterization gradient for non-differentiable models. In\nAdvances in Neural Information Processing Systems, pages\n5558–5568, 2018. 5\n[21] Tao Lei, Junwen Bai, Siddhartha Brahma, Joshua Ainslie,\nKenton Lee, Yanqi Zhou, Nan Du, Vincent Y. Zhao, Yuexin\nWu, Bo Li, Yu Zhang, and Ming-Wei Chang. Conditional\nadapters: Parameter-efficient transfer learning with fast inference. In Advances in Neural Information Processing Systems, pages 8152–8172, 2023. 2\n[22] Chun-Liang Li, Kihyuk Sohn, Jinsung Yoon, and Tomas\nPfister. Cutpaste: Self-supervised learning for anomaly detection and localization. In IEEE Conference on Computer\nVision and Pattern Recognition, pages 9664–9674, 2021. 1,\n2, 4\n[23] Huimin Li and Junlin Hu. Feature consistency learning for\nanomaly detection. IEEE Transactions on Instrumentation\nand Measurement, 74:1–9, 2025. 1\n[24] Huimin Li, Zhentao Chen, Yunhao Xu, and Junlin Hu. Hyperbolic anomaly detection. In IEEE/CVF Conference on\nComputer Vision and Pattern Recognition, pages 17511–\n17520, 2024. 2, 3\n[25] Liyuan Lin, Shuxian Zhao, Yiran Zhang, Aolin Wen, Shun\nZhang, Jingpeng Yan, Ying Wang, and Yuan Zhou. Purposive data augmentation strategy and lightweight classification model for small sample industrial defect dataset. IEEE\n\n19610\n\n\fTransactions on Industrial Informatics, 20(9):11475–11484,\n2024. 1\n[26] Juhua Liu, Chaoyue Wang, Hai Su, Bo Du, and Dacheng\nTao. Multistage gan for fabric defect detection. IEEE Transactions on Image Processing, 29:3388–3400, 2019. 2\n[27] Yuanpei Liu, Zhenqi He, and Kai Han. Hyperbolic category\ndiscovery. In IEEE/CVF Conference on Computer Vision\nand Pattern Recognition, pages 9891–9900, 2025. 2, 3\n[28] Zhikang Liu, Yiming Zhou, Yuansheng Xu, and Zilei Wang.\nSimplenet: A simple network for image anomaly detection\nand localization. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 20402–20411, 2023. 2\n[29] Shuai Lyu, Rongchen Zhang, Zeqi Ma, Fangjian Liao, Dongmei Mo, and Waikeung Wong. Mvrec: A general few-shot\ndefect classification model using multi-view region-context.\nIn AAAI Conference on Artificial Intelligence, pages 5937–\n5945, 2025. 1, 2, 3, 5, 6, 7\n[30] Paolo Mandica, Luca Franco, Konstantinos Kallidromitis,\nSuzanne Petryk, and Fabio Galasso. Hyperbolic learning\nwith multimodal large language models. In European Conference on Computer Vision, pages 382–398, 2024. 2, 3\n[31] Pascal Mettes, Mina Ghadimi Atigh, Martin Keller-Ressel,\nJeffrey Gu, and Serena Yeung. Hyperbolic deep learning in\ncomputer vision: A survey. International Journal of Computer Vision, 132(9):3484–3508, 2024. 2\n[32] Yoshihiro Nagano, Shoichiro Yamaguchi, Yasuhiro Fujita,\nand Masanori Koyama. A wrapped normal distribution on\nhyperbolic space for gradient-based learning. In International Conference on Machine Learning, pages 4693–4702,\n2019. 4\n[33] Maximillian Nickel and Douwe Kiela. Learning continuous hierarchies in the lorentz model of hyperbolic geometry. In International Conference on Machine Learning, pages\n3779–3788, 2018. 2\n[34] Avik Pal, Max van Spengler, Guido Maria D’Amely di Melendugno, Alessandro Flaborea, Fabio Galasso, and Pascal\nMettes. Compositional entailment learning for hyperbolic\nvision-language models. In International Conference on\nLearning Representations, 2025. 2, 3\n[35] Junting Pan, Ziyi Lin, Xiatian Zhu, Jing Shao, and Hongsheng Li. St-adapter: Parameter-efficient image-to-video\ntransfer learning. In Advances in Neural Information Processing Systems, pages 26462–26477, 2022. 2\n[36] Wei Peng, Tuomas Varanka, Abdelrahman Mostafa, Henglin\nShi, and Guoying Zhao. Hyperbolic deep neural networks: A\nsurvey. IEEE Transactions on Pattern Analysis and Machine\nIntelligence, 44(12):10023–10044, 2021. 2\n[37] Arun Poudel, Mohammad Salman Yasin, Jiafeng Ye, Jia Liu,\nAleksandr Vinel, Shuai Shao, and Nima Shamsaei. Featurebased volumetric defect classification in metal additive manufacturing. Nature Communications, 13(1):6369, 2022. 1\n[38] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya\nRamesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry,\nAmanda Askell, Pamela Mishkin, Jack Clark, Gretchen\nKrueger, and Ilya Sutskever. Learning transferable visual\nmodels from natural language supervision. In International\nConference on Machine Learning, pages 8748–8763, 2021.\n7\n\n[39] Weilun Ren, Kangkang Song, Chin-Yin Chen, Yu Chen,\nJingshan Hong, Mingrui Fan, Xiong Ouyang, Ying Zhu, and\nJiangjian Xiao. Dd-aug: A knowledge-to-image synthetic\ndata augmentation pipeline for industrial defect detection.\nIEEE Transactions on Industrial Informatics, 21(3):2284–\n2293, 2025. 1\n[40] Frederic Sala, Chris De Sa, Albert Gu, and Christopher Ré.\nRepresentation tradeoffs for hyperbolic embeddings. In International Conference on Machine Learning, pages 4460–\n4469, 2018. 2\n[41] Tim Salimans and Durk P Kingma. Weight normalization: A\nsimple reparameterization to accelerate training of deep neural networks. In Advances in Neural Information Processing\nSystems, page 901, 2016. 5\n[42] Qingfeng Shi, Jing Wei, Fei Shen, and Zhengtao Zhang.\nFew-shot defect image generation based on consistency\nmodeling. In European Conference on Computer Vision,\npages 360–376, 2024. 1\n[43] Jake Snell, Kevin Swersky, and Richard Zemel. Prototypical networks for few-shot learning. In Advances in Neural\nInformation Processing Systems, pages 1–9, 2017. 6\n[44] Yisheng Song, Ting Wang, Puyu Cai, Subrota K Mondal, and\nJyoti Prakash Sahoo. A comprehensive survey of few-shot\nlearning: Evolution, applications, challenges, and opportunities. ACM Computing Surveys, 55(13s):1–40, 2023. 2\n[45] Jiaojiao Su, Qiwu Luo, Weihua Gui, and Chunhua Yang.\nFew-shot parameter efficient finetuning for SAM in salient\nsteel surface defect detection. IEEE Transactions on Industrial Informatics, 21(10):7742–7753, 2025. 1\n[46] Zeyi Sun, Ye Fang, Tong Wu, Pan Zhang, Yuhang Zang,\nShu Kong, Yuanjun Xiong, Dahua Lin, and Jiaqi Wang.\nAlpha-clip: A clip model focusing on wherever you want.\nIn IEEE/CVF Conference on Computer Vision and Pattern\nRecognition, pages 13019–13029, 2024. 6, 7\n[47] Yi-Lin Sung, Jaemin Cho, and Mohit Bansal. Vl-adapter:\nParameter-efficient transfer learning for vision-and-language\ntasks. In IEEE/CVF Conference on Computer Vision and\nPattern Recognition, pages 5227–5237, 2022. 2\n[48] Xian Tao, Xinyi Gong, Xin Zhang, Shaohua Yan, and Chandranath Adak. Deep learning for unsupervised anomaly localization in industrial images: A survey. IEEE Transactions\non Instrumentation and Measurement, 71:1–21, 2022. 1\n[49] Huiyan Wang, Ruihao Peng, Yiheng Zhu, Jiachen Li,\nMengchu Zhou, Ming Ying, and Shouguang Wang. Few-shot\nphotovoltaic film defect detection with contextual ensemble\nlanguage-image multimodal network. IEEE Transactions on\nIndustrial Informatics, 21(8):6274–6283, 2025. 1\n[50] Menglin Yang, Min Zhou, Rex Ying, Yankai Chen, and Irwin\nKing. Hyperbolic representation learning: Revisiting and advancing. In International Conference on Machine Learning,\npages 39639–39659, 2023. 2\n[51] Vitjan Zavrtanik, Matej Kristan, and Danijel Skočaj. Draema discriminatively trained reconstruction embedding for surface anomaly detection. In IEEE/CVF International Conference on Computer Vision, pages 8330–8339, 2021. 1, 2\n[52] Vitjan Zavrtanik, Matej Kristan, and Danijel Skočaj. Dsr–a\ndual subspace re-projection network for surface anomaly de-\n\n19611\n\n\ftection. In European Conference on Computer Vision, pages\n539–554, 2022. 2\n[53] Gongjie Zhang, Kaiwen Cui, Tzu-Yi Hung, and Shijian Lu.\nDefect-gan: High-fidelity defect synthesis for automated defect inspection. In IEEE/CVF Winter Conference on Applications of Computer Vision, pages 2524–2534, 2021. 1\n[54] Gongjie Zhang, Kaiwen Cui, Tzu-Yi Hung, and Shijian Lu.\nDefect-gan: High-fidelity defect synthesis for automated defect inspection. In IEEE/CVF Winter Conference on Applications of Computer Vision, pages 2524–2534, 2021. 1, 2\n[55] Kang Zhang, Limin Liao, and Yonghua Wang. Discrete\nwavelet transform-based detection transformer for battery\nweld defect detection. IEEE Transactions on Instrumentation and Measurement, 74:1–11, 2025. 1\n[56] Renrui Zhang, Wei Zhang, Rongyao Fang, Peng Gao, Kunchang Li, Jifeng Dai, Yu Qiao, and Hongsheng Li. Tipadapter: Training-free adaption of clip for few-shot classification. In European Conference on Computer Vision, pages\n493–510, 2022. 6\n[57] Ximiao Zhang, Min Xu, and Xiuzhuang Zhou. Realnet: A\nfeature selection network with realistic synthetic anomaly for\nanomaly detection. In IEEE/CVF Conference on Computer\nVision and Pattern Recognition, pages 16699–16708, 2024.\n2\n[58] Qinjun Zhao, Shanchang Fang, Yueyang Li, Hongwei Shang,\nHan Zhang, and Tao Shen. Track defect detection based on\nimproved yolov5s. IEEE Transactions on Industrial Informatics, 21(4):3346–3355, 2025. 1\n\n19612\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"