Abstract
Structural kernels are essential for processing linguistic structures like syntax trees, yet tuning their hyperparameters remains a significant bottleneck in Natural Language Processing (NLP). This paper proposes a Gaussian Process (GP) framework to automate hyperparameter learning through gradient-based optimization of the marginal likelihood. This approach is significantly faster than traditional grid search and enables the use of complex "symbol-aware" kernels. Evaluation on synthetic data, emotion analysis, and translation quality estimation demonstrates that GP-based tuning improves predictive performance, offers automatic complexity control, and provides valuable linguistic interpretability.
Introduction
In NLP, structured data such as syntax trees or dependency graphs are common. Structural kernels provide a powerful mechanism to measure similarity between these objects without manual feature engineering. However, these kernels rely on hyperparameters—such as decay factors—that determine the weight of various tree fragments. Traditionally, these are tuned using Support Vector Machines (SVMs) via grid search, a process that is computationally expensive, coarse-grained, and limits the complexity of the kernels researchers can practically employ.
Methods
The authors shift the modeling framework from frequentist SVMs to Bayesian Gaussian Processes (GPs). Unlike SVMs, GPs provide a closed-form, differentiable expression for the marginal likelihood (the evidence). This allows for the use of standard gradient-based optimization algorithms, such as L-BFGS, to find optimal hyperparameters efficiently.
The Symbol-aware Subset Tree Kernel (SASSTK)
To leverage this optimization power, the authors introduce the Symbol-aware Subset Tree Kernel (SASSTK). While standard tree kernels apply a single decay factor ($\lambda$) to the entire tree, the SASSTK assigns unique parameters ($\lambda$ and $\alpha$) to every non-terminal symbol (e.g., NP, VP). This allows the model to learn which specific linguistic structures are most predictive for a given task.
Experiments and Results
The approach was evaluated across three distinct domains: synthetic data recovery, emotion analysis (SemEval 2007), and translation quality estimation (WMT14).
Efficiency and Parameter Recovery
Gradient-based optimization in GPs proved to be roughly 10x faster than SVM grid search. On synthetic data, the GP successfully recovered "true" hyperparameter values with as few as 200 training instances, while simultaneously reducing the Root Mean Square Error (RMSE) compared to unoptimized baselines.
Performance and Interpretability
- Emotion Analysis: The GP model achieved a Pearson correlation of 0.57, significantly outperforming the SVM baseline of 0.52. Interestingly, the optimizer pushed structural parameters toward zero for certain emotions, indicating that a bag-of-words approach was more effective for those specific tasks.
- Quality Estimation: On French-English translation tasks, GP models combining tree kernels with RBF kernels outperformed state-of-the-art SVM baselines. The model also provided insights, such as target-side trees being more informative than source-side trees for predicting post-editing time.
Conclusion
By moving to a Gaussian Process framework, the authors demonstrate that structural kernel hyperparameters can be learned automatically and efficiently. This not only improves predictive performance but also transforms kernels into "white box" models that offer linguistic insights. Future work will address the potential for overfitting on very small datasets and extend the framework from regression to classification and structured prediction tasks.
Summary updated