arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2506.06280cs.LGcs.AI
收藏

无纵横比偏差的神经网络特征谱分析

Eigenspectrum Analysis of Neural Networks without Aspect Ratio Bias

dartmouth(达特茅斯学院);ucsd(加州大学圣迭戈分校);srm(SRM科学与技术学院);ucb(加州大学伯克利分校)

Yuanzhe Hu, Kinshuk Goel, Vlad Killiakov, Yaoqing Yang

AI总结:

本文提出FARMS方法,通过固定纵横比子采样归一化权重矩阵,消除特征谱重尾估计中的纵横比偏差,并在CV、SciML和LLM剪枝等任务中验证其能提升诊断准确性并优化逐层超参数分配。

摘要:

通过分析深度神经网络(DNNs)权重的特征谱来进行诊断,近年来一直是一个活跃的研究领域。主要方法之一是测量权重矩阵经验谱密度(ESDs)的重尾程度。该分析已被证明能够为诊断模型是训练良好还是训练不足提供洞见,并已被用于指导涉及逐层超参数分配的训练方法。在本文中,我们解决了在估计这些ESDs的重尾程度时一个经常被忽视的挑战:权重矩阵纵横比的影响。我们证明,不同尺寸(以及不同纵横比)的矩阵在估计ESDs的重尾程度时会引入不可忽略的偏差,从而导致不准确的模型诊断和逐层超参数分配。为克服这一挑战,我们提出了FARMS(Fixed-Aspect-Ratio Matrix Subsampling,固定纵横比矩阵子采样),该方法通过以固定纵横比对子矩阵进行子采样来归一化权重矩阵。我们不测量原始ESD的重尾程度,而是测量这些子采样子矩阵的平均ESD。我们表明,该方法有效缓解了纵横比偏差。我们在涉及权重特征谱分析的各种优化技术和应用领域中验证了我们的方法,包括计算机视觉(CV)模型中的图像分类、科学机器学习(SciML)模型训练以及大语言模型(LLM)剪枝。我们的结果表明,尽管FARMS方法简单,但它一致地提高了特征谱分析的准确性,同时实现了更有效的逐层超参数分配。在一个LLM剪枝实验中,与最先进的方法相比,FARMS将LLaMA-7B模型的困惑度降低了17.3%。

英文摘要:

Diagnosing deep neural networks (DNNs) by analyzing the eigenspectrum of their weights has been an active area of research in recent years. One of the main approaches involves measuring the heavytailness of the empirical spectral densities (ESDs) of weight matrices. This analysis has been shown to provide insights to help diagnose whether a model is well-trained or undertrained, and has been used to guide training methods involving layer-wise hyperparameter assignment. In this paper, we address an often-overlooked challenge in estimating the heavytailness of these ESDs: the impact of the aspect ratio of weight matrices. We demonstrate that matrices of varying sizes (and aspect ratios) introduce a non-negligible bias in estimating the heavytailness of ESDs, leading to inaccurate model diagnosis and layer-wise hyperparameter assignment. To overcome this challenge, we propose FARMS (Fixed-Aspect-Ratio Matrix Subsampling), a method that normalizes the weight matrices by subsampling submatrices with a fixed aspect ratio. Instead of measuring the heavytailness of the original ESD, we measure the average ESD of these subsampled submatrices. We show that this method effectively mitigates the aspect ratio bias. We validate our approach across various optimization techniques and application domains that involve eigenspectrum analysis of weights, including image classification in computer vision (CV) models, scientific machine learning (SciML) model training, and large language model (LLM) pruning. Our results show that despite its simplicity, FARMS uniformly improves the accuracy of eigenspectrum analysis while enabling more effective layer-wise hyperparameter assignment. In one of the LLM pruning experiments, FARMS reduces the perplexity of the LLaMA-7B model by 17.3% when compared with state-of-the-art methods.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑