Optimizing Neural Network Hyperparameters with Gaussian Processes for Dialog Act Classification

Franck Dernoncourt, Ji Young Lee · DOI

Introduction

Tuning neural networks is often a "black art" of manual or random searching that consumes significant compute resources. Artificial Neural Networks (ANNs) are powerful yet notoriously sensitive to hyperparameter configurations. Parameters such as learning rate, filter counts, and dropout probabilities significantly influence model performance. Traditionally, researchers have relied on manual search, grid search, or random search—methods that are either computationally prohibitive or dependent on expert intuition. This paper demonstrates that Bayesian optimization using Gaussian Processes (GP) can identify near-optimal hyperparameters for dialog act classification four times faster than random search, while simultaneously improving upon previous state-of-the-art results.

Model Architecture and Hyperparameters

The authors target Dialog Act Classification—the task of labeling utterances with communicative functions like "question" or "statement." They employ a hybrid architecture consisting of a Convolutional Neural Network (CNN) layer for feature extraction followed by a two-layer feedforward network that incorporates conversational history.

Neural network architecture for dialog act classification, highlighting the hyperparameters (h, n, p, d1, d2) optimized in this study.

The search space for optimization included five key variables: filter size ($h$), number of filters ($n$), dropout rate ($p$), and two history sizes ($d_1, d_2$), resulting in 1,215 possible combinations.

Bayesian Optimization with Gaussian Processes

The core methodology treats the model's performance (F1-score) as a function of its hyperparameters. A Gaussian Process (GP) models this function to provide a tractable posterior distribution. The GP predicts which hyperparameter set is likely to yield the highest F1-score; the model is then trained with these settings, and the resulting performance is fed back into the GP to update its internal "map" of the search space.

The study evaluated four kernels to determine which best modeled the hyperparameter landscape: Linear, Cubic, Absolute Exponential, and Squared Exponential. The authors found that starting the GP search with about 10 random points (roughly 1% of the search space) was the "sweet spot" for ensuring the GP found the global optimum without delaying convergence.

Experimental Results

The approach was evaluated on three major datasets: DSTC 4 (32k utterances), MRDA (109k utterances), and SwDA (221k utterances). The results consistently showed that GP-based optimization significantly outperforms random search in terms of convergence speed and final performance.

Comparison of GP optimization with different kernels against random search across three datasets (DSTC 4, MRDA, SwDA). GP methods converge to higher F1-scores significantly faster than random search.

Key Findings

  • 4x Speedup: On the SwDA dataset, GP search achieved an F1-score of 72.1 in only 100 iterations, whereas random search required over 400 iterations to reach the same level.
  • Kernel Performance: Surprisingly, the commonly used Squared Exponential kernel converged more slowly in this NLP context than Linear or Absolute Exponential kernels.
  • Superiority to Manual Tuning: GP search identified configurations that outperformed previous manually-tuned state-of-the-art results by 0.1 to 0.7 F1 points across all datasets.
  • Hyperparameter Interdependency: The optimization revealed complex relationships, such as the finding that a higher number of filters performs better when paired with a lower dropout probability—interactions often missed by manual "one-at-a-time" tuning.

Conclusion and Future Work

Bayesian optimization via Gaussian Processes offers a robust, automated alternative to traditional hyperparameter tuning. By reducing the search time by a factor of four, it enables more rapid research cycles and achieves higher performance than expert-led manual searches. While highly effective for ordinal hyperparameters, future work is needed to adapt this method for categorical hyperparameters (like choice of optimizer) and to explore how it scales to the even larger search spaces found in modern Transformer models.

Summary updated

BibTeX
@inproceedings{dernoncourt2016optimizing,
  author = {Franck Dernoncourt and Ji Young Lee},
  title = {{Optimizing Neural Network Hyperparameters with Gaussian Processes for Dialog Act Classification}},
  booktitle = {SLT},
  year = {2016},
  doi = {10.1109/slt.2016.7846296},
}
Figure