Historical Document Image Segmentation with LDA-Initialized Deep Neural Networks

Michele Alberti, Mathias Seuret, Vinaychandran Pondenkandath, Rolf Ingold, Marcus Liwicki

TL;DR

This paper introduces a novel method for initializing deep neural networks (DNNs) by leveraging Linear Discriminant Analysis (LDA). This LDA-based initialization is shown to be faster, more stable, and leads to better performance in historical document image segmentation compared to traditional random initialization.

What Problem Does This Paper Address?

Deep neural networks (DNNs) have become powerful tools for various tasks, but their training can be notoriously slow and computationally expensive, especially for large networks. A significant bottleneck is the initialization of the network's weights. Common methods like random initialization or greedy layer-wise pre-training (e.g., using Deep Belief Networks or auto-encoders) often require many training epochs to converge to meaningful solutions. Transfer learning, another approach, necessitates a similar dataset for fine-tuning. This paper addresses the challenge of efficiently and effectively initializing DNNs, particularly for complex tasks like historical document image analysis, where data diversity and degradation can make training difficult. The authors aim to find an initialization strategy that leads to quicker convergence and superior performance.

Methods

The core contribution of this paper is the development of an LDA-initialized deep neural network. The authors propose to adapt LDA, a supervised dimensionality reduction technique, for initializing the weights of neural network layers.

Here's how it works:

  • LDA as a Feature Extractor/Classifier: LDA aims to find a linear transformation that maximizes class separability while minimizing within-class variance. The paper shows how the LDA transformation can be directly mapped to the weight matrix of a neural network layer.
  • Layer-wise Initialization: For a multi-layer network, the LDA initialization is applied layer by layer. The output of one layer, after being transformed by LDA, serves as the input for the next layer, on which LDA is again applied. This process continues until all feature extraction layers are initialized.
  • Classification Layer Initialization: The final classification layer is also initialized using LDA, but in this case, it's treated as an LDA classifier, where the discriminant functions are used to set the initial weights and biases.
  • Comparison with Random Initialization: The proposed LDA initialization is rigorously compared against standard random weight initialization.

Datasets

The experiments were conducted on the DIVA-HisDB dataset. This dataset comprises three medieval manuscripts (CB558, CSG189, and CSG863) known for their complex layouts and various degradations. The dataset contains 150 pages in total, with a split for training, validation, and testing. The images are RGB, scanned at 600 dpi, and the ground truth is available at the pixel level. For computational efficiency, the authors used a scaled version of the images (factor 1/10).

Key Insights and Ideas

  • LDA's Goal-Oriented Nature: Unlike PCA, which maximizes variance without considering class labels, LDA is supervised and explicitly aims to maximize class separation. This "goal-oriented" approach is hypothesized to be more beneficial for initialization.
  • Stability of LDA Initialization: The LDA initialization proved to be remarkably stable with respect to the number of training samples used for computation. Even with a relatively small number of samples, the performance reached a plateau, suggesting robustness.
  • Meaningful Initial Features: Visualizations of the network's features after LDA initialization revealed structured and meaningful patterns, particularly in the early layers. This contrasts sharply with the random noise observed in features from randomly initialized networks.
  • Faster Convergence and Better Minima: LDA-initialized networks started with significantly higher performance (Mean IU) and converged to better local minima compared to randomly initialized networks, requiring fewer training epochs.

Key Results

  • Superior Initial Performance: LDA-initialized networks achieved a much higher Mean Intersection over Union (Mean IU) at the start of training compared to random initialization. For example, on the CB55 dataset, LDA initialization started with a Mean IU of 0.39, while random initialization was at 0.09.
  • Faster Training: LDA-initialized networks converged much faster. For the CSG863 manuscript, randomly initialized networks did not converge within 100 epochs, while LDA-initialized networks nearly converged within 60 epochs.
  • Improved Final Performance: After training, LDA-initialized networks consistently outperformed randomly initialized networks across all manuscripts, achieving higher Mean IU and accuracy. The average Mean IU for LDA-initialized networks was 0.35, compared to 0.07 for random initialization. After training, LDA achieved 0.60 Mean IU on average, while random achieved 0.48.
  • Predictable Behavior: LDA-initialized networks showed similar performance curves across different manuscripts, indicating predictable behavior. Random initialization, however, led to varied and unpredictable performance curves.

Limitations and Future Work

  • Network Depth: The study was conducted on relatively small Convolutional Neural Networks (CNNs). The authors suggest that the generality of these findings for deeper networks needs to be investigated.
  • Task Specificity: The focus was on layout analysis for historical documents. The authors propose extending the performance tests to other classification tasks, such as image recognition and digit recognition.
  • Initialization Time: While the initialization itself is fast (under two minutes for their setup), it's a one-time cost. The paper acknowledges that this initialization time can be considered negligible compared to the overall training time saved.
  • Joint Initialization Methods: Future work includes exploring the joint use of multiple statistical methods (like PCA and LDA) for initialization.
  • Broader Applicability: The authors believe that effective network initialization is a key solution for reducing DNN training time and plan to explore its application in various domains.

Summary updated

Abstract

In this paper, we present a novel approach to perform deep neural networks layer-wise weight initialization using Linear Discriminant Analysis (LDA). Typically, the weights of a deep neural network are initialized with: random values, greedy layer-wise pre-training (usually as Deep Belief Network or as auto-encoder) or by re-using the layers from another network (transfer learning). Hence, many training epochs are needed before meaningful weights are learned, or a rather similar dataset is required for seeding a fine-tuning of transfer learning. In this paper, we describe how to turn an LDA into either a neural layer or a classification layer. We analyze the initialization technique on historical documents. First, we show that an LDA-based initialization is quick and leads to a very stable initialization. Furthermore, for the task of layout analysis at pixel level, we investigate the effectiveness of LDA-based initialization and show that it outperforms state-of-the-art random weight initialization methods.
BibTeX
@inproceedings{alberti2017historical,
  author = {Michele Alberti and Mathias Seuret and Vinaychandran Pondenkandath and Rolf Ingold and Marcus Liwicki},
  title = {{Historical Document Image Segmentation with LDA-Initialized Deep Neural Networks}},
  booktitle = {Hip@icdar},
  year = {2017},
  doi = {10.1145/3151509.3151519},
}
Figure