<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Compression on 中文AI术语词典</title><link>https://terms-en.ai-term-hub.com/zh/tags/compression/</link><description>Recent content in Compression on 中文AI术语词典</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Sat, 18 Jul 2026 11:44:45 +0000</lastBuildDate><atom:link href="https://terms-en.ai-term-hub.com/zh/tags/compression/index.xml" rel="self" type="application/rss+xml"/><item><title>剪枝</title><link>https://terms-en.ai-term-hub.com/zh/terms/pruning/</link><pubDate>Sat, 18 Jul 2026 11:30:52 +0000</pubDate><guid>https://terms-en.ai-term-hub.com/zh/terms/pruning/</guid><description>&lt;h2 id="definition">Definition&lt;/h2>
&lt;p>剪枝涉及识别并消除神经网络中对输出准确率贡献最小的神经元、连接或滤波器。通过移除这些冗余元素，模型变得更加紧凑，从而降低存储需求和计算开销，同时尽量保持原有的模型性能。&lt;/p>
&lt;h3 id="summary">Summary&lt;/h3>
&lt;p>一种模型压缩技术，通过移除冗余或重要性较低的参数来减小模型体积并提高推理速度。&lt;/p>
&lt;h2 id="key-concepts">Key Concepts&lt;/h2>
&lt;ul>
&lt;li>模型压缩&lt;/li>
&lt;li>冗余移除&lt;/li>
&lt;li>推理加速&lt;/li>
&lt;li>稀疏性&lt;/li>
&lt;/ul>
&lt;h2 id="use-cases">Use Cases&lt;/h2>
&lt;ul>
&lt;li>移动端AI部署&lt;/li>
&lt;li>边缘计算优化&lt;/li>
&lt;li>降低云端推理成本&lt;/li>
&lt;/ul>
&lt;h2 id="related-terms">Related Terms&lt;/h2>
&lt;ul>
&lt;li>&lt;a href="https://terms-en.ai-term-hub.com/en/terms/%E9%87%8F%E5%8C%96-quantization/">量化 (Quantization)&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://terms-en.ai-term-hub.com/en/terms/%E7%9F%A5%E8%AF%86%E8%92%B8%E9%A6%8F-knowledge-distillation/">知识蒸馏 (Knowledge Distillation)&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://terms-en.ai-term-hub.com/en/terms/%E6%A8%A1%E5%9E%8B%E5%8E%8B%E7%BC%A9-model-compression/">模型压缩 (Model Compression)&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://terms-en.ai-term-hub.com/en/terms/%E7%A8%80%E7%96%8F%E7%BD%91%E7%BB%9C-sparse-networks/">稀疏网络 (Sparse Networks)&lt;/a>&lt;/li>
&lt;/ul></description></item><item><title>知识蒸馏</title><link>https://terms-en.ai-term-hub.com/zh/terms/knowledge_distillation/</link><pubDate>Sat, 18 Jul 2026 11:23:05 +0000</pubDate><guid>https://terms-en.ai-term-hub.com/zh/terms/knowledge_distillation/</guid><description>&lt;h2 id="definition">Definition&lt;/h2>
&lt;p>知识蒸馏是一种机器学习方法，用于将庞大复杂的神经网络（教师模型）压缩为更小、更高效的网络（学生模型）。学生模型经过训练以模仿教师模型的行为。&lt;/p>
&lt;h3 id="summary">Summary&lt;/h3>
&lt;p>知识蒸馏是一种模型压缩技术，其中较小的学生模型通过学习模仿较大的教师模型的行为来工作。&lt;/p>
&lt;h2 id="key-concepts">Key Concepts&lt;/h2>
&lt;ul>
&lt;li>师生模型&lt;/li>
&lt;li>模型压缩&lt;/li>
&lt;li>软标签&lt;/li>
&lt;li>效率&lt;/li>
&lt;/ul>
&lt;h2 id="use-cases">Use Cases&lt;/h2>
&lt;ul>
&lt;li>在边缘设备上部署模型&lt;/li>
&lt;li>降低推理延迟&lt;/li>
&lt;li>降低云计算成本&lt;/li>
&lt;/ul>
&lt;h2 id="code-example">Code Example&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-python" data-lang="python">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#f92672">import&lt;/span> torch
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#f92672">import&lt;/span> torch.nn &lt;span style="color:#66d9ef">as&lt;/span> nn
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">def&lt;/span> &lt;span style="color:#a6e22e">distillation_loss&lt;/span>(student_logits, teacher_logits, temperature&lt;span style="color:#f92672">=&lt;/span>&lt;span style="color:#ae81ff">2.0&lt;/span>):
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> T &lt;span style="color:#f92672">=&lt;/span> temperature
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> student_probs &lt;span style="color:#f92672">=&lt;/span> nn&lt;span style="color:#f92672">.&lt;/span>functional&lt;span style="color:#f92672">.&lt;/span>softmax(student_logits &lt;span style="color:#f92672">/&lt;/span> T, dim&lt;span style="color:#f92672">=&lt;/span>&lt;span style="color:#ae81ff">1&lt;/span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> teacher_probs &lt;span style="color:#f92672">=&lt;/span> nn&lt;span style="color:#f92672">.&lt;/span>functional&lt;span style="color:#f92672">.&lt;/span>softmax(teacher_logits &lt;span style="color:#f92672">/&lt;/span> T, dim&lt;span style="color:#f92672">=&lt;/span>&lt;span style="color:#ae81ff">1&lt;/span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#66d9ef">return&lt;/span> nn&lt;span style="color:#f92672">.&lt;/span>functional&lt;span style="color:#f92672">.&lt;/span>kl_div(
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> nn&lt;span style="color:#f92672">.&lt;/span>functional&lt;span style="color:#f92672">.&lt;/span>log_softmax(student_logits &lt;span style="color:#f92672">/&lt;/span> T, dim&lt;span style="color:#f92672">=&lt;/span>&lt;span style="color:#ae81ff">1&lt;/span>),
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> teacher_probs,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> reduction&lt;span style="color:#f92672">=&lt;/span>&lt;span style="color:#e6db74">&amp;#39;batchmean&amp;#39;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> ) &lt;span style="color:#f92672">*&lt;/span> (T &lt;span style="color:#f92672">*&lt;/span> T)
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="related-terms">Related Terms&lt;/h2>
&lt;ul>
&lt;li>&lt;a href="https://terms-en.ai-term-hub.com/en/terms/model-compression-%E6%A8%A1%E5%9E%8B%E5%8E%8B%E7%BC%A9/">Model Compression (模型压缩)&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://terms-en.ai-term-hub.com/en/terms/pruning-%E5%89%AA%E6%9E%9D/">Pruning (剪枝)&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://terms-en.ai-term-hub.com/en/terms/quantization-%E9%87%8F%E5%8C%96/">Quantization (量化)&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://terms-en.ai-term-hub.com/en/terms/neural-networks-%E7%A5%9E%E7%BB%8F%E7%BD%91%E7%BB%9C/">Neural Networks (神经网络)&lt;/a>&lt;/li>
&lt;/ul></description></item><item><title>知识蒸馏</title><link>https://terms-en.ai-term-hub.com/zh/terms/distillation/</link><pubDate>Sat, 18 Jul 2026 10:50:42 +0000</pubDate><guid>https://terms-en.ai-term-hub.com/zh/terms/distillation/</guid><description>&lt;h2 id="definition">Definition&lt;/h2>
&lt;p>这一过程涉及将知识从复杂的高性能“教师”神经网络转移到更简单、高效的“学生”网络中。学生不仅从硬标签中学习，还从软标签（即教师模型的输出概率分布）中学习，从而捕捉更丰富的信息。&lt;/p>
&lt;h3 id="summary">Summary&lt;/h3>
&lt;p>知识蒸馏是一种模型压缩技术，其中较小的学生模型通过学习模仿较大的教师模型的行为来工作。&lt;/p>
&lt;h2 id="key-concepts">Key Concepts&lt;/h2>
&lt;ul>
&lt;li>师生架构&lt;/li>
&lt;li>软目标&lt;/li>
&lt;li>模型压缩&lt;/li>
&lt;li>推理效率&lt;/li>
&lt;/ul>
&lt;h2 id="use-cases">Use Cases&lt;/h2>
&lt;ul>
&lt;li>在移动设备上部署大型语言模型&lt;/li>
&lt;li>降低实时计算机视觉应用中的延迟&lt;/li>
&lt;li>优化边缘计算环境中的深度学习模型&lt;/li>
&lt;/ul>
&lt;h2 id="related-terms">Related Terms&lt;/h2>
&lt;ul>
&lt;li>&lt;a href="https://terms-en.ai-term-hub.com/en/terms/%E9%87%8F%E5%8C%96-quantization/">量化 (Quantization)&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://terms-en.ai-term-hub.com/en/terms/%E5%89%AA%E6%9E%9D-pruning/">剪枝 (Pruning)&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://terms-en.ai-term-hub.com/en/terms/%E8%BF%81%E7%A7%BB%E5%AD%A6%E4%B9%A0-transfer-learning/">迁移学习 (Transfer Learning)&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://terms-en.ai-term-hub.com/en/terms/%E7%A5%9E%E7%BB%8F%E6%9E%B6%E6%9E%84%E6%90%9C%E7%B4%A2-neural-architecture-search/">神经架构搜索 (Neural Architecture Search)&lt;/a>&lt;/li>
&lt;/ul></description></item></channel></rss>