parameter tuning automatic algorithm configuration
play

Parameter Tuning. Automatic Algorithm Configuration Petr Po s k - PowerPoint PPT Presentation

CZECH TECHNICAL UNIVERSITY IN PRAGUE Faculty of Electrical Engineering Department of Cybernetics Parameter Tuning. Automatic Algorithm Configuration Petr Po s k P. Po s k c 2016 A0M33EOA: Evolutionary Optimization


  1. CZECH TECHNICAL UNIVERSITY IN PRAGUE Faculty of Electrical Engineering Department of Cybernetics Parameter Tuning. Automatic Algorithm Configuration Petr Poˇ s´ ık P. Poˇ s´ ık c � 2016 A0M33EOA: Evolutionary Optimization Algorithms – 1 / 20

  2. Motivation P. Poˇ s´ ık c � 2016 A0M33EOA: Evolutionary Optimization Algorithms – 2 / 20

  3. Configurable algorithms Many algorithms for computationally hard problems (not only optimization) have a number of tunable parameters affecting their performance: ■ EAs: population size, recombination operators, crossover and mutation rate, . . . Motivation • Configurable ■ CPLEX (MIP solevr): e.g., different branching strategies algorithms • Contributions of ■ Machine-learning pipelines: model type, its parameters automatic algorithm configuration • Algorithm configuration Why? problem • Characteristics of a configuration problem Methods Surrogate-based methods Summary P. Poˇ s´ ık c � 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3 / 20

  4. Configurable algorithms Many algorithms for computationally hard problems (not only optimization) have a number of tunable parameters affecting their performance: ■ EAs: population size, recombination operators, crossover and mutation rate, . . . Motivation • Configurable ■ CPLEX (MIP solevr): e.g., different branching strategies algorithms • Contributions of ■ Machine-learning pipelines: model type, its parameters automatic algorithm configuration • Algorithm configuration Why? problem • Characteristics of a ■ There is no single optimal setting for all possible applications. configuration problem ■ For iterative algorithms, the optimal setting also depends on the number of iterations already performed. Methods Surrogate-based methods Summary P. Poˇ s´ ık c � 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3 / 20

  5. Configurable algorithms Many algorithms for computationally hard problems (not only optimization) have a number of tunable parameters affecting their performance: ■ EAs: population size, recombination operators, crossover and mutation rate, . . . Motivation • Configurable ■ CPLEX (MIP solevr): e.g., different branching strategies algorithms • Contributions of ■ Machine-learning pipelines: model type, its parameters automatic algorithm configuration • Algorithm configuration Why? problem • Characteristics of a ■ There is no single optimal setting for all possible applications. configuration problem ■ For iterative algorithms, the optimal setting also depends on the number of iterations already performed. Methods Surrogate-based methods Approaches: Summary ■ Offline parameter tuning (automatic algorithm configuration): a configuration is found for certain class of problem instances before the algorithm is applied to new ones. ■ Online parameter control: a configuration is adapted during the optimization run. P. Poˇ s´ ık c � 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3 / 20

  6. Contributions of automatic algorithm configuration ■ Development of complex algorithms : Setting the parameters of a heuristic algorithm is a highly labour-intensive task, and indeed can consume a large fraction of overall development time. The use of automated algorithm configuration methods can lead Motivation to significant time savings and potentially achieve better results than manual, ad-hoc • Configurable algorithms methods. • Contributions of automatic algorithm ■ Empirical studies, evaluations, and comparisons of algorithms : The majority of configuration heuristic algorithm comparisons is qustionable, because the algorithms are used with • Algorithm configuration their default settings. It is not clear whether the superiority of one algorithm is not problem caused just by more suitable configuration for a particular problem class. Automatic • Characteristics of a algorithm configuration methods can mitigate this problem of unfair comparisons configuration problem and thus facilitate more meaningful comparative studies. Methods ■ Practical use of algorithms : Complex heuristic algorithms are often applied in Surrogate-based contexts that were not envisioned by the algorithm designers. End users often have methods little or no knowledge about the impact of the algorithm parameter settings on its Summary performance, and thus simply use default settings. Automatic algorithm configuration methods can be used to improve performance in a principled and convenient way. P. Poˇ s´ ık c � 2016 A0M33EOA: Evolutionary Optimization Algorithms – 4 / 20

  7. ✁ ✁ ✁ Algorithm configuration problem Find a good static configuration of solver before applying the solver on a problem at hand. I : the set of problem instances representing certain problem class (can be given by a ■ distribution P I over admissible instances, or by a problem generator). Motivation • Configurable S : a solver (suitable for problem class I ) with parameters θ = ( p 1 , . . . , p k ) ∈ Θ that algorithms ■ • Contributions of affect its performance. S ( θ ) is the instance of the solver S configured with θ . automatic algorithm configuration Θ : a set of all possible configurations, i.e. all possible combinations of values of p i . ■ • Algorithm C ( θ , i , t ) = C ( S ( θ ) , i , t ) : assigns a cost value to each configuration θ when running configuration ■ problem S ( θ ) on instance i ∈ I for time t . It is often a random variable and we observe it • Characteristics of a realizations. C ∼ P C ( c | θ , i , t ) . configuration problem ■ The problem: find configuration θ ∗ ∈ Θ such that S ( θ ) yields the best utility u , i.e. Methods θ ∗ = arg max Surrogate-based θ ∈ Θ u ( θ ) , where u ( θ ) = f ( θ | I , P I , P C , t ) . methods Summary Set of problem instances I Problem solving tunes solves Tuner Solver Problem instance 1 solu on quality solver/con fi gura � on Problem instance 2 u � lity Sta s cs of problem solving process Problem instance k The process resembles ordinary ML process: fit algorithm (solver S ) to the training data (instances I ). P. Poˇ s´ ık c � 2016 A0M33EOA: Evolutionary Optimization Algorithms – 5 / 20

  8. Characteristics of a configuration problem Why is the tuning problem a complex optimization task? ■ The cost function is often stochastic , either due to the stochasticity of the target problem class, or due the stochasticity of the solver itself. Motivation • Configurable ■ The measurements of the cost function are expensive : one has to execute the problem algorithms • Contributions of solving subtask many times, and such a process is time consuming. automatic algorithm configuration ■ = ⇒ The tuner usually has only a limited budget in terms of candidate solver • Algorithm configuration trials. configuration problem • Characteristics of a configuration problem Methods Surrogate-based methods Summary P. Poˇ s´ ık c � 2016 A0M33EOA: Evolutionary Optimization Algorithms – 6 / 20

  9. Characteristics of a configuration problem Why is the tuning problem a complex optimization task? ■ The cost function is often stochastic , either due to the stochasticity of the target problem class, or due the stochasticity of the solver itself. Motivation • Configurable ■ The measurements of the cost function are expensive : one has to execute the problem algorithms • Contributions of solving subtask many times, and such a process is time consuming. automatic algorithm configuration ■ = ⇒ The tuner usually has only a limited budget in terms of candidate solver • Algorithm configuration trials. configuration problem ■ The individual parameters p i are of different types (nominal, ordinal, real-valued). • Characteristics of a configuration ■ The parameters are often hierarchically structured , i.e. some parameters are relevant problem only when other parameters are set to some particular value(s). Methods ■ Parameters are generally not independent! Surrogate-based methods Summary P. Poˇ s´ ık c � 2016 A0M33EOA: Evolutionary Optimization Algorithms – 6 / 20

  10. Characteristics of a configuration problem Why is the tuning problem a complex optimization task? ■ The cost function is often stochastic , either due to the stochasticity of the target problem class, or due the stochasticity of the solver itself. Motivation • Configurable ■ The measurements of the cost function are expensive : one has to execute the problem algorithms • Contributions of solving subtask many times, and such a process is time consuming. automatic algorithm configuration ■ = ⇒ The tuner usually has only a limited budget in terms of candidate solver • Algorithm configuration trials. configuration problem ■ The individual parameters p i are of different types (nominal, ordinal, real-valued). • Characteristics of a configuration ■ The parameters are often hierarchically structured , i.e. some parameters are relevant problem only when other parameters are set to some particular value(s). Methods ■ Parameters are generally not independent! Surrogate-based methods The cost may represent Summary ■ the computational resources consumed by the given algorithm (runtime, memory, communication bandwith, . . . ), ■ the approximation error, ■ the improvement achieved over an instance-specific reference cost, ■ the quality of the solution found. P. Poˇ s´ ık c � 2016 A0M33EOA: Evolutionary Optimization Algorithms – 6 / 20

Recommend


More recommend