迭代式無教師知識蒸餾中部分權重重置與回填機制之研究
A Study of Partial Weight Resetting and Refilling in Iterative Teacher-Free Knowledge Distillation
摘要
隨著深度學習模型規模持續擴大,如何提升輕量網路在資源受限應用中的效能,已成為重要的研究議題。知識蒸餾可藉由大型教師模型的知識轉移,提升輕量學生模型的能力。 然而,傳統方法通常依賴額外的預訓練教師模型,因而增加訓練流程的複雜度。為降低對外部教師模型的依賴,本論文以固定輕量模型的迭代式無教師知識蒸餾作為訓練基礎,研究停滯感知的部分權重重置與回填機制;在此設定中,前序訓練輪次中表現最佳的模型會被凍結,以引導目前模型進行知識轉移。
為探討反覆蒸餾過程中效能增益逐漸下降與訓練停滯時的參數介入方式,本研究設計並整合停滯偵測與冷卻期保護機制。當偵測到停滯時,系統會選擇基因演算法最佳化的部分權重重置或部分權重回填,以修改模型所繼承的參數狀態並探索不同的最佳化軌跡,動態變數遞減策略則進一步調整兩種介入操作的選擇機率與參數修改範圍。此外,本研究建立全域跨試驗歷史庫,累積先前試驗的模型資訊,以提供後續介入操作所需的歷史參考。
實驗採用固定輕量 VGG8 模型於 CIFAR-100、CIFAR-10 與 SVHN 資料集進行評估。在五次試驗的整體評估中,包含上述機制的完整設定分別達到74.36±0.22%、 93.41±0.23% 與 97.18±0.06% 的平均測試準確率。進一步的比較顯示,純迭代式訓練設定相較於單次從頭訓練,在三個資料集上皆觀察到較高的平均準確率,且在各資料集所評估的訓練配置中皆達到最高平均準確率。相較之下,額外加入停滯感知參數介入並未帶來一致的最終測試準確率提升,而歷史庫則呈現混合行為,在目前設定下尚未觀察到一致的額外效能增益。整體而言,本研究透過受控評估釐清了純迭代式訓練與額外停滯感知介入機制在目前設定下所呈現的不同效能趨勢,並界定了所設計機制的最佳化行為與現階段限制。
為探討反覆蒸餾過程中效能增益逐漸下降與訓練停滯時的參數介入方式,本研究設計並整合停滯偵測與冷卻期保護機制。當偵測到停滯時,系統會選擇基因演算法最佳化的部分權重重置或部分權重回填,以修改模型所繼承的參數狀態並探索不同的最佳化軌跡,動態變數遞減策略則進一步調整兩種介入操作的選擇機率與參數修改範圍。此外,本研究建立全域跨試驗歷史庫,累積先前試驗的模型資訊,以提供後續介入操作所需的歷史參考。
實驗採用固定輕量 VGG8 模型於 CIFAR-100、CIFAR-10 與 SVHN 資料集進行評估。在五次試驗的整體評估中,包含上述機制的完整設定分別達到74.36±0.22%、 93.41±0.23% 與 97.18±0.06% 的平均測試準確率。進一步的比較顯示,純迭代式訓練設定相較於單次從頭訓練,在三個資料集上皆觀察到較高的平均準確率,且在各資料集所評估的訓練配置中皆達到最高平均準確率。相較之下,額外加入停滯感知參數介入並未帶來一致的最終測試準確率提升,而歷史庫則呈現混合行為,在目前設定下尚未觀察到一致的額外效能增益。整體而言,本研究透過受控評估釐清了純迭代式訓練與額外停滯感知介入機制在目前設定下所呈現的不同效能趨勢,並界定了所設計機制的最佳化行為與現階段限制。
As deep learning models grow in scale, maintaining strong performance in lightweight networks has become important for resource-constrained applications. Knowledge Distillation (KD) improves a compact student model by transferring knowledge from a larger teacher. However, conventional approaches rely on an external pretrained teacher, increasing training complexity. To reduce this reliance, this thesis adopts iterative Teacher-Free Knowledge Distillation (TFKD) as the training basis for investigating stagnation-aware partial weight resetting and refilling in a fixed lightweight network; within this setting, the best-performing model from preceding training rounds is frozen to guide the current student.
To investigate parameter intervention when performance gains diminish and training stagnation occurs during repeated distillation, this study designs and integrates stagnation detection and cooldown protection mechanisms. Once stagnation is detected, it selects between Genetic Algorithm (GA)-optimized partial weight resetting and partial weight refilling to modify the inherited parameter state and explore alternative
optimization trajectories, while a dynamic variable decay strategy further adjusts the selection probabilities and parameter-modification ranges of the two intervention operations. In addition, a global cross-trial History Bank accumulates model information from preceding trials to provide historical references for subsequent interventions.
Experiments were conducted on CIFAR-100, CIFAR-10, and SVHN using a fixed lightweight VGG8 model. In the overall evaluation across five trials, the complete setting incorporating these mechanisms achieved mean test accuracies of 74.36±0.22%, 93.41±0.23%, and 97.18±0.06%, respectively. Further comparisons show that higher mean accuracies were observed for plain iterative training than for training from scratch
across all three datasets, and that plain iterative training achieved the highest mean accuracy among the evaluated configurations on each dataset. In contrast, introducing additional stagnation-aware parameter interventions did not yield a consistent improvement in final test accuracy, while the History Bank showed mixed behavior, with no consistent additional performance benefit observed under the current setting.
Overall, the controlled evaluation clarifies the different performance trends associated with plain iterative training and the additional stagnation-aware intervention mechanisms, thereby characterizing both the optimization behavior and the current limitations of the designed mechanisms.
To investigate parameter intervention when performance gains diminish and training stagnation occurs during repeated distillation, this study designs and integrates stagnation detection and cooldown protection mechanisms. Once stagnation is detected, it selects between Genetic Algorithm (GA)-optimized partial weight resetting and partial weight refilling to modify the inherited parameter state and explore alternative
optimization trajectories, while a dynamic variable decay strategy further adjusts the selection probabilities and parameter-modification ranges of the two intervention operations. In addition, a global cross-trial History Bank accumulates model information from preceding trials to provide historical references for subsequent interventions.
Experiments were conducted on CIFAR-100, CIFAR-10, and SVHN using a fixed lightweight VGG8 model. In the overall evaluation across five trials, the complete setting incorporating these mechanisms achieved mean test accuracies of 74.36±0.22%, 93.41±0.23%, and 97.18±0.06%, respectively. Further comparisons show that higher mean accuracies were observed for plain iterative training than for training from scratch
across all three datasets, and that plain iterative training achieved the highest mean accuracy among the evaluated configurations on each dataset. In contrast, introducing additional stagnation-aware parameter interventions did not yield a consistent improvement in final test accuracy, while the History Bank showed mixed behavior, with no consistent additional performance benefit observed under the current setting.
Overall, the controlled evaluation clarifies the different performance trends associated with plain iterative training and the additional stagnation-aware intervention mechanisms, thereby characterizing both the optimization behavior and the current limitations of the designed mechanisms.