An LP-based hyperparameter optimization model for language modeling

被引:1
作者
Rahnama, Amir Hossein Akhavan [1 ]
Toloo, Mehdi [2 ]
Zaidenberg, Nezer Jacob [1 ]
机构
[1] Univ Jyvaskyla, Dept Math Informat Technol, Jyvaskyla, Finland
[2] Tech Univ Ostrava, Dept Syst Engn, Sokolska Trida 33, Ostrava 70200, Czech Republic
关键词
Machine learning; Language model; n-Grams; Hyperparameter optimization; Optimization; Linear programming;
D O I
10.1007/s11227-018-2236-6
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
In order to find hyperparameters for a machine learning model, algorithms such as grid search or random search are used over the space of possible values of the models' hyperparameters. These search algorithms opt the solution that minimizes a specific cost function. In language models, perplexity is one of the most popular cost functions. In this study, we propose a fractional nonlinear programming model that finds the optimal perplexity value. The special structure of the model allows us to approximate it by a linear programming model that can be solved using the well-known simplex algorithm. To the best of our knowledge, this is the first attempt to use optimization techniques to find perplexity values in the language modeling literature. We apply our model to find hyperparameters of a language model and compare it to the grid search algorithm. Furthermore, we illustrate that it results in lower perplexity values. We perform this experiment on a real-world dataset from SwiftKey to validate our proposed approach.
引用
收藏
页码:2151 / 2160
页数:10
相关论文
共 17 条
  • [1] [Anonymous], TECHNICAL REPORT
  • [2] [Anonymous], 2013, NONLINEAR PROGRAMMIN
  • [3] [Anonymous], 2010, INTERSPEECH, DOI DOI 10.1016/J.CSL.2010.08.008
  • [4] [Anonymous], COMPUTATIONAL LINGUI
  • [5] Bazaraa MokhtarS., 2010, Linear Programming and Network Flows, V4th
  • [6] A neural probabilistic language model
    Bengio, Y
    Ducharme, R
    Vincent, P
    Jauvin, C
    [J]. JOURNAL OF MACHINE LEARNING RESEARCH, 2003, 3 (06) : 1137 - 1155
  • [7] Bergstra J., 2011, ADV NEURAL INF PROCE
  • [8] Bergstra J, 2012, J MACH LEARN RES, V13, P281
  • [9] Bousquet O, 2004, LECT NOTES ARTIF INT, V3176, P169
  • [10] Boyd L., 2004, CONVEX OPTIMIZATION