arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.17811cs.LGcs.AI
收藏

通过随机推断分析变换器模型的丢弃鲁棒性与认知分析

Dropout Robustness and Cognitive Profiling of Transformer Models via Stochastic Inference

Lyle School of Engineering, Southern Methodist University, Dallas, TX, USA(莱尔工程学院,南方 Methodist 大学,德克萨斯州达拉斯)

Antônio Junior Alves Caiado, Michael Hahsler

AI总结:

本文通过随机推断分析19种变换器模型的丢弃鲁棒性,揭示其在不确定性应用中的可靠性差异,提出认知分解框架以指导模型选择。

摘要:

基于语言模型的变换器广泛用于推理,但其在推理时间随机性下的行为仍缺乏系统研究。尽管训练时常用丢弃法,但其在推理时间通过蒙特卡洛采样下的影响缺乏跨架构的系统评估,限制了对模型可靠性在不确定性应用中的理解。本文利用MC Dropout对19种变换器模型进行分析,每样本进行100次随机前向传递。丢弃鲁棒性定义为在随机推断下保持高准确性和稳定预测,通过运行准确率的标准差衡量。认知分解框架将性能分解为记忆和推理组件。实验涵盖五种丢弃配置,产生95种对1000个样本的评估。结果揭示了显著的架构差异。小型模型表现出完美的预测稳定性,而中型模型表现出显著的波动性。中型模型整体表现最佳;大型模型在记忆任务中表现突出。关键发现是53%的模型在基线MC Dropout下遭受严重准确性下降,任务专用模型的准确性下降高达24个百分点,表明这些架构不适合用于不确定性量化。不对称效应显现:高丢弃率使记忆准确性下降27个百分点,而推理仅下降1个百分点,表明记忆任务依赖于稳定的表示,而丢弃会破坏这些表示。84%的模型表现出记忆偏好的性能。

英文摘要:

Transformer-based language models are widely deployed for reasoning, yet their behavior under inference-time stochasticity remains underexplored. While dropout is common during training, its inference-time effects via Monte Carlo sampling lack systematic evaluation across architectures, limiting understanding of model reliability in uncertainty-aware applications. This work analyzes dropout-induced variability across 19 transformer models using MC Dropout with 100 stochastic forward passes per sample. Dropout robustness is defined as maintaining high accuracy and stable predictions under stochastic inference, measured by standard deviation of per-run accuracies. A cognitive decomposition framework disentangles performance into memory and reasoning components. Experiments span five dropout configurations yielding 95 unique evaluations on 1,000 samples. Results reveal substantial architectural variation. Smaller models demonstrate perfect prediction stability while medium-sized models exhibit notable volatility. Mid-sized models achieve the best overall performance; larger models excel at memory tasks. Critically, 53% of models suffer severe accuracy degradation under baseline MC Dropout, with task-specialized models losing up to 24 percentage points, indicating unsuitability for uncertainty quantification in these architectures. Asymmetric effects emerge: high dropout reduces memory accuracy by 27 percentage points while reasoning degrades only 1 point, suggesting memory tasks rely on stable representations that dropout disrupts. 84% of models demonstrate memory-biased performance. This provides the first comprehensive MC Dropout benchmark for transformers, revealing dropout robustness is architecture-dependent and uncorrelated with scale. The cognitive profiling framework offers actionable guidance for model selection in uncertainty-aware applications.

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

↑