본문으로 건너뛰기
cccskills
무료GitHub에 공개

knowledge-distillation-in-deep-learning

Design deployment-focused distillation systems that balance model size, accuracy, calibration, and cascade escalation under real resource limits. Best for teacher-student compression, threshold design, and failure-aware deployment. Activate on "model compression", "teacher- student", "distillation score", "cascade model", "edge deployment", or "model calibration". NOT for generic deep-learning overviews, prompt optimization, or training work without a concrete distillation objective.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(14)

  • SKILL.md9.0 KB
  • _book_identity.json6.7 KB
  • _raw_response.md98.6 KB
  • CHANGELOG.md665 B
  • diagrams/01_flowchart_knowledge_distillation_strateg.md2.0 KB
  • diagrams/02_quadrantChart_agent_capacity_vs._abstraction.md580 B
  • diagrams/03_sequenceDiagram_collaborative_multi-agent_know.md2.8 KB
  • diagrams/INDEX.md434 B
  • references/coordination-without-central-authority.md17.5 KB
  • references/expert-decision-making-under-uncertainty.md14.7 KB
  • references/failure-modes-of-compression.md13.5 KB
  • references/hierarchical-abstraction-in-knowledge-transfer.md15.9 KB
  • references/knowledge-transfer-as-multi-representation-learning.md11.5 KB
  • references/the-size-accuracy-tradeoff-and-distillation-metric.md12.1 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Knowledge Distillation In Deep Learning

Use this skill when the core design question is how to compress a capable model into something smaller, cheaper, or more routable without hiding unacceptable losses in calibration, robustness, or edge-case performance.

When to Use

  • You are designing a teacher-student compression pipeline for deployment-constrained inference.
  • You need to set explicit size versus accuracy priorities instead of hand-waving about "good enough."
  • A small model should handle common cases first, with escalation to a larger backup model when uncertainty rises.
  • You need to reason about whether compressed performance is failing because of capacity cliffs, bias amplification, or poor calibration.
  • The system architecture needs different-capacity agents for different abstraction levels.

NOT for Boundaries

This skill is not the primary fit for:

  • Generic deep-learning overviews or literature surveys with no concrete distillation objective.
  • Prompt optimization, retrieval tuning, or non-neural transfer problems.
  • Compression discussions that stop at average accuracy and ignore calibration, minority slices, or out-of-distribution behavior.
  • Architecture work where there is no teacher-student relationship, cascade, or compression tradeoff to manage.

Core Mental Models

Knowledge Is Multi-Representational

Distillation can transfer logits, soft labels, feature maps, or other internal structure. Deployment success depends on choosing the representation that preserves the behavior you actually care about.

Size-Accuracy Tradeoffs Need An Explicit Policy

The paper's distillation-score framing matters because it forces the team to say what it is optimizing for. Mobile and edge deployments tolerate more loss than safety-critical paths. If the priority is hidden, the system will drift toward accidental risk.

Abstraction Level Should Drive Capacity

Low-level feature extraction can often live in smaller students. High-level semantic or reasoning-heavy decisions usually require more capacity. Uniform compression across all layers or roles is usually the wrong move.

Cascades Beat Wishful Compression

When the input distribution has easy and hard cases, a small-first, large-backup cascade often dominates "one tiny model for everything." Distillation should support escalation, not eliminate it.

Compression Amplifies Existing Weaknesses

Compressed models often fail first on rare classes, borderline examples, and out-of-distribution inputs. Average accuracy can stay high while the risk profile becomes much worse.

Decision Points

See the richer flow, quadrant, and sequence diagrams in diagrams/INDEX.md.

flowchart TD
  A[Deployment distillation request] --> B{What is the hard constraint?}
  B -->|Latency, memory, battery| C[Prioritize smaller student]
  B -->|Safety or quality floor| D[Prioritize accuracy and calibration]
  C --> E{Do easy and hard inputs differ sharply?}
  D --> E
  E -->|Yes| F[Design cascade or backup escalation]
  E -->|No| G[Single student may be acceptable]
  F --> H{What must transfer?}
  G --> H
  H -->|Decision behavior| I[Response-based distillation]
  H -->|Internal abstractions| J[Feature-based distillation]
  H -->|Confidence and structure| K[Multi-level or relation-aware transfer]
  I --> L[Validate slices, calibration, and OOD behavior]
  J --> L
  K --> L

1. Set The Tradeoff Policy Up Front

  • Decide how much performance loss is acceptable for the target resource envelope.
  • Make the weighting explicit so the student is not judged by contradictory goals later.

2. Decide Whether A Cascade Is Mandatory

  • If rare hard cases matter disproportionately, keep a larger model available.
  • If escalation cost is acceptable, do not force the smallest model to handle everything.

3. Match Capacity To Abstraction

  • Compress aggressively on low-level or routine subtasks.
  • Preserve more capacity on semantic, safety-critical, or uncertainty-heavy decisions.

4. Validate Beyond Headline Accuracy

  • Check calibration, per-class performance, and out-of-distribution behavior.
  • Treat disagreement, abstention, or escalation thresholds as first-class design objects.

Failure Modes

  • Average-metric blindness: compression looks successful until rare slices are inspected.
  • Capacity cliff: one more size reduction causes sharp competence collapse instead of graceful decay.
  • Overconfident student: the small model copies decisions without preserving uncertainty structure.
  • Uniform-compression mistake: high-level reasoning layers are shrunk as aggressively as cheap perceptual layers.
  • No-backup fantasy: the team removes escalation paths to make the architecture look simpler.

Worked Examples

Example 1: Mobile Vision Model With Safety Escalation

  • Goal: run common image moderation checks on device.
  • Student handles routine cases with response-based transfer.
  • Hard or ambiguous cases escalate to the larger cloud model based on calibrated confidence and slice-aware thresholds.
  • Quality question: not just "what is top-1 accuracy?" but "what dangerous cases slip through without escalation?"

Example 2: Multi-Agent Review Stack

  • A tiny sentinel agent screens incoming tasks.
  • Mid-capacity agents handle common semantic work.
  • A high-capacity adjudicator handles rare, safety-critical, or low-confidence cases.
  • Distillation goal: preserve the right routing boundary, not just compress each agent independently.

Quality Gates

  • The tradeoff between size and quality has been made explicit.
  • Cascade versus single-student choice is justified by input-difficulty distribution.
  • Validation includes slice-level, calibration, and OOD checks.
  • The student has a documented escalation or abstention story for unusual inputs.
  • The team can explain which representation was distilled and why it matches the target behavior.

References And Visuals

Shibboleths

Surface understanding says "the student only lost 2% accuracy, so ship it."

Deeper understanding says:

  • "That 2% may hide catastrophic loss on rare or high-risk slices."
  • "A smaller student without calibration or escalation is often more dangerous than a larger slower model."
  • "Compression policy should differ by abstraction level and role."
  • "Distillation is not finished until the failure boundary and backup path are explicit."

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Expert in 2000s-era music visualization (Milkdrop, AVS, Geiss) and modern WebGL implementations. Specializes in Butterchurn integration, Web Audio API AnalyserNode FFT data, GLSL shaders for audio-reactive visuals, and psychedelic generative art. Activate on "Milkdrop", "music visualization", "WebGL visualizer", "Butterchurn", "audio reactive", "FFT visualization", "spectrum analyzer". NOT for simple bar charts/waveforms (use basic canvas), video editing, or non-audio visuals.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

curiositech/windags-skills162026년 10월 14일 업데이트

Expert legal research agent for finding and scraping expungement data state by state. Knows authoritative sources, URL patterns, Firecrawl configuration, and 2026 legal landscape.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

curiositech/windags-skills162026년 10월 14일 업데이트

Expert in 3D computer vision labeling tools, workflows, and AI-assisted annotation for LiDAR, point clouds, and sensor fusion. Covers SAM4D/Point-SAM, human-in-the-loop architectures, and vertical-specific training strategies. Activate on '3D labeling', 'point cloud annotation', 'LiDAR labeling', 'SAM 3D', 'SAM4D', 'sensor fusion annotation', '3D bounding box', 'semantic segmentation point cloud'. NOT for 2D image labeling (use clip-aware-embeddings), general ML training (use ml-engineer), video annotation without 3D (use computer-vision-pipeline), or VLM prompt engineering (use prompt-engineer).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

curiositech/windags-skills162026년 10월 14일 업데이트

Apply crisis decision-making research to agent routing, uncertainty triage, and coordination failure analysis in time-pressured systems. Use when diagnosing handoff failures, analytical paralysis, or expert judgment under incomplete information. NOT for routine coding, simple CRUD design, or static single-agent tasks with complete information.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

curiositech/windags-skills162026년 10월 14일 업데이트

Use for insight, reframing, contradiction, impasse, and anomaly-driven problem solving when execution effort no longer helps. NOT for routine optimization, error correction, or well-specified tasks with known solution paths.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

curiositech/windags-skills162026년 10월 14일 업데이트

Apply normative BDI reasoning to agents that must detect norms, choose which commitments to internalize, and resolve conflicts by comparing consequences. Use when obligations, prohibitions, or policies collide in autonomous systems. NOT for simple fixed-priority rules, pure constraint satisfaction, or domains where no real normative conflict exists.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

curiositech/windags-skills162026년 10월 14일 업데이트

curiositech의 스킬 모두 보기

이 스킬의 문제 신고