Skip to main content
QUICK REVIEW

[Paper Review] Stochastic Shared Embeddings: Data-driven Regularization of Embedding Layers

Liwei Wu, Shuqing Li|arXiv (Cornell University)|Jan 1, 2019
Domain Adaptation and Few-Shot LearningComputer Science6 citations
TL;DR

This paper proposes Stochastic Shared Embeddings (SSE), a data-driven regularization method for neural network embedding layers that stochastically switches between shared embeddings during SGD training. It improves generalization by reducing overfitting—especially when combined with weight decay and dropout—across diverse tasks from recommender systems to BERT, with theoretical guarantees and empirical validation on six benchmarks.

ABSTRACT

In deep neural nets, lower level embedding layers account for a large portion of the total number of parameters. Tikhonov regularization, graph-based regularization, and hard parameter sharing are approaches that introduce explicit biases into training in a hope to reduce statistical complexity. Alternatively, we propose stochastically shared embeddings (SSE), a data-driven approach to regularizing embedding layers, which stochastically transitions between embeddings during stochastic gradient descent (SGD). Because SSE integrates seamlessly with existing SGD algorithms, it can be used with only minor modifications when training large scale neural networks. We develop two versions of SSE: SSE-Graph using knowledge graphs of embeddings; SSE-SE using no prior information. We provide theoretical guarantees for our method and show its empirical effectiveness on 6 distinct tasks, from simple neural networks with one hidden layer in recommender systems, to the transformer and BERT in natural languages. We find that when used along with widely-used regularization methods such as weight decay and dropout, our proposed SSE can further reduce overfitting, which often leads to more favorable generalization results.

Motivation & Objective

  • To address the high statistical complexity and overfitting risks in deep neural networks caused by large embedding layers with many parameters.
  • To develop a regularization method that reduces model complexity without relying on strong inductive biases or prior structural assumptions.
  • To create a method that integrates seamlessly with standard SGD training and existing regularization techniques like weight decay and dropout.
  • To empirically validate the effectiveness of SSE across diverse architectures and tasks, including transformers and BERT.

Proposed method

  • SSE introduces stochastic transitions between shared embeddings during SGD, where each embedding vector is dynamically shared across different input tokens or categories.
  • SSE-Graph leverages external knowledge graphs to guide the stochastic sharing process, encoding semantic or structural relationships between embeddings.
  • SSE-SE operates without prior knowledge, learning shared representations directly from data through stochastic switching mechanisms.
  • The method is designed to be compatible with standard SGD, requiring minimal architectural or training pipeline modifications.
  • Theoretical analysis provides generalization bounds that support the regularization effect of stochastic sharing.
  • The approach maintains model capacity while reducing effective parameter count through dynamic sharing during optimization.

Experimental results

Research questions

  • RQ1Can a data-driven, stochastic sharing mechanism in embedding layers reduce overfitting and improve generalization in deep neural networks?
  • RQ2How does SSE compare to traditional regularization methods like weight decay and dropout when used in combination?
  • RQ3Does the use of knowledge graphs in SSE-Graph enhance performance compared to SSE-SE, which relies solely on data-driven sharing?
  • RQ4To what extent does SSE improve generalization across diverse architectures, including feedforward networks, transformers, and BERT?

Key findings

  • SSE reduces overfitting and improves generalization when used alongside standard regularization techniques such as weight decay and dropout.
  • The method achieves favorable generalization performance across six distinct tasks, ranging from simple one-hidden-layer networks to complex models like BERT.
  • SSE-Graph, which uses knowledge graphs, shows improved performance over SSE-SE in tasks where external semantic relationships are available.
  • Theoretical analysis confirms that SSE provides generalization guarantees by reducing the effective statistical complexity of embedding layers.
  • SSE integrates smoothly with standard SGD and requires minimal changes to existing training pipelines.
  • Empirical results demonstrate consistent improvements in test performance, indicating that stochastic sharing effectively regularizes embedding layers.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.