Skip to main content
QUICK REVIEW

[論文レビュー] Evaluation of Neural Architectures Trained with Square Loss vs Cross-Entropy in Classification Tasks

Like Hui, Mikhail Belkin|arXiv (Cornell University)|Jun 12, 2020
Domain Adaptation and Few-Shot Learning参考文献 42被引用数 53
ひとこと要約

この論文は実証的に平方損失とクロスエントロピーをNLP、ASR、visionタスクで比較し、平方損失がしばしばクロスエントロピーと同等または上回ることを示す、特にNLP/ASRで。

ABSTRACT

Modern neural architectures for classification tasks are trained using the cross-entropy loss, which is widely believed to be empirically superior to the square loss. In this work we provide evidence indicating that this belief may not be well-founded. We explore several major neural architectures and a range of standard benchmark datasets for NLP, automatic speech recognition (ASR) and computer vision tasks to show that these architectures, with the same hyper-parameter settings as reported in the literature, perform comparably or better when trained with the square loss, even after equalizing computational resources. Indeed, we observe that the square loss produces better results in the dominant majority of NLP and ASR experiments. Cross-entropy appears to have a slight edge on computer vision tasks. We argue that there is little compelling empirical or theoretical evidence indicating a clear-cut advantage to the cross-entropy loss. Indeed, in our experiments, performance on nearly all non-vision tasks can be improved, sometimes significantly, by switching to the square loss. Furthermore, training with square loss appears to be less sensitive to the randomness in initialization. We posit that training using the square loss for classification needs to be a part of best practices of modern deep learning on equal footing with cross-entropy.

研究の動機と目的

  • Assess whether square loss can match or exceed cross-entropy for modern neural classifiers across NLP, ASR, and computer vision tasks.
  • Evaluate a range of architectures (CNNs, LSTMs, Transformers) using literature-reported hyper-parameters, with learning-rate adjustments as needed.
  • Determine how performance and training stability with square loss compare to cross-entropy under equalized computation budgets.

提案手法

  • Compare square loss and cross-entropy on 28 neural model/dataset combinations across NLP, ASR, and vision domains.
  • Use architectures and hyper-parameters from literature for cross-entropy; replace only the loss with square loss (and adjust learning rate).
  • Apply loss rescaling for large class counts and remove softmax when training with square loss as recommended.
  • Evaluate with domain-specific metrics (accuracy, F1, PER/CER/WER, Top-5 accuracy) over multiple random initializations.
  • Run two protocols for square loss: standard training and training with the same number of epochs as CE to equalize compute.

実験結果

リサーチクエスチョン

  • RQ1Does square loss provide comparable or superior accuracy to cross-entropy across diverse architectures and datasets?
  • RQ2How does the square loss perform relative to cross-entropy when computational resources are equalized (same epochs) across tasks?
  • RQ3Are there domain-dependent patterns in loss-function performance (e.g., NLP/ASR vs. computer vision)?

主な発見

  • Square loss yields better or equal accuracy than cross-entropy in 22 of 28 tasks overall.
  • Square loss generally shows smaller variance across random initializations in most experiments.
  • For NLP and ASR, square loss often outperforms cross-entropy; for vision, cross-entropy has a slight edge overall, with exceptions (e.g., EfficientNet on ImageNet).
  • Equalizing computation by matching epochs does not remove the square loss advantage in non-vision tasks and can preserve or improve performance.
  • Removal of the softmax layer is recommended when training with square loss to avoid optimization hindrance; loss rescaling helps with many-classes problems.

より良い研究を、今すぐ始めましょう

論文設計から論文執筆まで、研究時間を劇的に削減しましょう。

クレジットカード登録不要

このレビューはAIが作成し、人間の編集者が確認しました。