liveBook · Manning

Parallelism

As explained in Bayesian Optimization in Action

Parallelism is the execution of independent processes simultaneously to reduce total completion time.

Parallelism runs independent processes simultaneously, reducing total completion time. In expensive black-box optimization, parallel queries gather more information within the same time budget than sequential evaluations. section 7.1.1

Parallel evaluation in practice

An ML engineer can train several neural-network models simultaneously on multiple GPUs, while a scientist can synthesize several drug recipes at once. Three equal-duration processes can take roughly one third as long in parallel as sequentially. section 7.1.1

Batch BayesOpt uses parallelism by selecting multiple query points and evaluating the objective at them simultaneously. Simply choosing the highest acquisition scores can cluster queries in one region, wasting parallel resources; useful batches spread points across the search space. section 7.1.1 section 7.1.2

Figure 7.1 Illustration of the benefits of parallelism. Three generic processes either run sequentially (left) or in parallel (right). When running in parallel, the three processes only take one third of the total time required if run sequentially.

Compare sequential and parallel execution visually: three independent processes finish in one third of the sequential time. section 7.1.1

Figure 7.2 The batch BayesOpt loop. Compared to sequential BayesOpt, batch BayesOpt requires multiple query points to be identified at step 2 and evaluates the objective function at these points simultaneously at step 3.

Trace the batch BayesOpt loop from selecting multiple query points to simultaneous objective evaluation. section 7.1.1

How Bayesian Optimization in Action covers it

How deep it goes
Defines independent concurrent execution and explains batch-query clustering, but stops before detailing batch BayesOpt policies.
Examples
Uses neural-network training, drug-recipe experiments, three-process timing, and clustered versus spread-out BayesOpt queries.
What it assumes
Assumes an expensive objective-evaluation setting and introduces independence through examples of separate programs, computations, or experiments.
What you can do after
Apply it via batch BayesOpt by evaluating multiple selected query points simultaneously while avoiding redundant clustering.
How it connects
Connects parallelism with black-box optimization, BayesOpt, batch optimization, acquisition functions, GPUs, and neural-network training.

Also explained in

Compare how 37 books explain parallelism →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Bayesian Optimization in Action. The section links point to the parts of the book it draws on.