Abstract
For deep learning practitioners, hyperparameter tuning for optimizing model performance can be a computationally expensive task. Though visualization can help practitioners relate hyperparameter settings to overall model performance, significant manual inspection is still required to guide the hyperparameter settings in the next batch of experiments. In response, we present a streamlined visualization system enabling deep learning practitioners to more efficiently explore, tune, and optimize hyperparameters in a batch of experiments. A key idea is to directly suggest more optimal hyperparameter values using a predictive mechanism. We then integrate this mechanism with current visualization practices for deep learning. Moreover, an analysis on the variance in a selected performance metric in the context of the model hyperparameters shows the impact that certain hyperparameters have on the performance metric. We evaluate the tool with a user study on deep learning model builders, finding that our participants have little issue adopting the tool and working with it as part of their workflow.
Introduction
Finding the optimal hyperparameter configuration for deep learning models is a notoriously difficult and computationally expensive endeavor. While automated search algorithms like Bayesian optimization provide a "black-box" solution, they often fail to provide practitioners with the intuition necessary to understand why certain configurations succeed or fail. Conversely, manual visual exploration of experiment logs can become overwhelming as the number of hyperparameters and experiments grows. This paper introduces a visual analytics tool designed to bridge this gap by combining the interpretability of Parallel Coordinates Plots (PCP) with automated inference mechanisms—specifically Random Forests and functional analysis of variance (fANOVA)—to guide the tuning process.
Methodology
The core of the proposed system is an "informed" visualization dashboard. It moves beyond simple data representation by incorporating two primary inference mechanisms:
- Hyperparameter Impact Analysis: Using fANOVA, the system calculates an "impact score" for each hyperparameter. This score quantifies the percentage of variance in model performance (e.g., accuracy or BLEU score) that can be attributed to a specific parameter or interaction of parameters.
- Predictive Bounds via Random Forests: The system trains a Random Forest regressor on the historical experiment data. By analyzing the decision paths leading to the highest-performing leaf nodes, the system extracts logical rules (e.g., $h_1 > 0.5$). These rules define "safe zones" or suggested optimal ranges for the next batch of experiments.
System Design and Key Insights
The user interface integrates these insights directly into a Parallel Coordinates Plot. The impact scores are presented in a ranked table, allowing users to prioritize which parameters to tune. Simultaneously, the predictive bounds extracted from the Random Forest are overlaid on the PCP as orange highlights. This "white-boxing" of the predictive model allows users to see exactly where the model suggests they focus their search.
This approach emphasizes human-AI collaboration. Rather than providing a single point recommendation, the system offers narrowed search spaces, allowing practitioners to apply their domain knowledge to the final selection of values.
Evaluation
The tool was evaluated using two distinct deep learning tasks: image classification (MNIST) and machine translation (WMT20). The Random Forest surrogate models demonstrated high predictive accuracy, with $R^2$ scores of 0.89 and 0.91 for the two tasks, respectively.
In a user study with four deep learning practitioners, those using the inferential features reported significantly higher confidence (7.75/10) and ease of use compared to those performing manual exploration. Participants specifically noted that the impact scores helped them avoid wasting resources on low-impact parameters, while the predictive bounds provided a clear roadmap for subsequent experiments.
Conclusion and Future Work
By combining automated inference with interactive visualization, this system provides a more transparent and efficient workflow for hyperparameter tuning. While the initial user study was small, the results suggest that guided exploration helps practitioners narrow search spaces with greater confidence. Future work will focus on addressing the "cold start" problem—specifically determining the minimum data required for reliable suggestions—and conducting larger-scale user studies across more diverse deep learning domains.
Summary updated