arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.06922cs.LG
收藏

NerVE:大型语言模型中前馈网络的非线性特征谱动态

NerVE: Nonlinear Eigenspectrum Dynamics in LLM Feed-Forward Networks

Nandan Kumar Jha, Brandon Reagen

AI总结:

NerVE通过四个互补指标分析LLM中FFN的信息流动,揭示非线性特性对潜在空间利用的影响,验证了优化器几何对方差再注入的作用,适用于多种架构和优化器配置。

摘要:

我们介绍了NerVE,一个统一的特征谱框架,用于理解大型语言模型(LLM)中前馈网络(FFN)如何在高维潜在空间中组织和调节信息流。尽管FFN占据大部分参数预算,其高维动态仍缺乏理解。NerVE通过轻量、内存高效的跟踪方法,通过四个互补指标:谱熵(分散度)、参与率(有效维度)、特征值早期富集(顶部集中度)和詹森-香农散度(分布变化),填补了这一空白。我们的核心见解是FFN非线性特性将方差重新注入到特征模式中,从根本上控制潜在维度的利用,并且优化器几何强烈调节这种方差再注入的程度。我们验证了NerVE在不同模型规模、架构和优化器配置下的表现,每种配置都独特地塑造了FFN动态:归一化方案控制方差流动;FFN权重几何约束潜在空间;位置编码和激活函数调节信息流动;优化器选择重新分配有效容量。在这些设置中,NerVE始终恢复稳定的谱特征,与模型的泛化能力相关联,并对设计选择做出可预测的响应,超越Transformer架构,适用于MLP-Mixer架构,为架构和优化器选择提供可操作的见解。

英文摘要:

We introduce NerVE, a unified eigenspectral framework for understanding how feed-forward networks (FFNs) in large language models (LLMs) organize and regulate information flow in high-dimensional latent space. Despite FFNs dominating the parameter budget, their high-dimensional dynamics remain poorly understood. NerVE addresses this gap through lightweight, memory-efficient tracking of eigenspectrum dynamics via four complementary metrics: Spectral Entropy (dispersion), Participation Ratio (effective dimensionality), Eigenvalue Early Enrichment (top-heaviness), and Jensen-Shannon divergence (distributional shifts). Our key insight is that FFN nonlinearities reinject variance across eigenmodes, fundamentally governing latent dimension utilization, and that optimizer geometry strongly modulates the extent of this variance reinjection. We validate NerVE across model scales, and diverse architectural and optimizer configurations, each uniquely shaping FFN dynamics: normalization schemes controlling variance flow; FFN weight geometries constraining latent space; positional encoding and activation functions regulating information flow; and optimizer choices redistributing effective capacity across depth. Across these settings, NerVE consistently recovers stable spectral signatures that correlate with model's generalization ability and respond predictably to design choices, generalizing beyond transformer to MLP-Mixer architectures, providing actionable insights for architectural and optimizer choices beyond trial-and-error.

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

↑