algorithmartificial-intelligencebeam-search

What is the difference between Local beam search and Stochastic beam search?


I know that both of them select K randomly, and then choose the best K, as I understand the best K call the others to find the goal, so what is the exact difference between Local beam search and Stochastic beam search ? Please help me and correct to me if I am wrong


Solution

  • Stochastic pretty much means randomized in some way. One of the major issues with beam search is that it tends to get stuck into local optima instead of the global optimum. To avoid that stochastic search gives some(most often small) probability of the solution to choose the step that is not optimal at a given moment. You can think of that as "adding randomness". A bit better approach would be simulated annealing where the chance to take suboptimal choice decreases with time.

    Local search on the other hand will always choose the best K neighbours, never allowing to deviate from a local optimum if you happen to hit one.