AI Glossary / Graphs and symbolic AI / Intermediate
Steepest ascent
Definition
Steepest ascent is an improvement strategy that chooses the most favorable immediate uphill move according to a defined neighborhood or geometry. In discrete hill-climbing search, it evaluates neighboring states and moves to one with the highest objective value if that value improves on the current state. It is a local decision rule, not a guarantee of finding the global maximum.
What it means
The word “steepest” can describe two related settings. In a discrete problem, it usually means selecting the best available neighboring state. In smooth continuous optimization with the usual Euclidean geometry, the gradient points in the direction of greatest instantaneous increase per unit distance.
Both settings require a clear objective and a definition of allowed movement. Choosing a direction is also different from choosing how far to move. A continuous update can overshoot if its step is too large, even when the initial direction is correct. This entry emphasizes the discrete hill-climbing meaning used in search.
How it works
Start from a candidate state. Evaluate the objective at its permitted neighbors and select a highest-valued neighbor. If no neighbor has a strictly higher value, stop under the basic rule; otherwise replace the current state and repeat.
Specify tie handling, because several neighbors can share the highest value. Also state whether equal-value moves are permitted: allowing them produces a different stopping behavior from strict improvement. In a finite state space with exact scores, strictly improving moves cannot revisit an earlier state. Nevertheless, the search can stop at a local maximum whose value is below the best available anywhere in the space.
Three practical examples
- A scheduling demonstration can examine every allowed single swap and choose the one with the largest objective improvement.
- A puzzle optimizer can select the neighboring configuration that removes the most conflicts, expressed equivalently as minimizing a cost.
- A smooth parameter-optimization exercise can use a gradient direction while separately controlling step size.
Think of it this way
Think of standing at a trail junction and choosing the adjacent destination with the greatest elevation gain. That choice is attractive locally but does not reveal what lies beyond the neighboring hills. The analogy is limited because discrete alternatives need not have equal physical distances, and continuous steepness depends on the geometry used to measure movement.
Worked example
Consider an original finite search problem with scores to maximize. The start S has score 4. Its neighbors are A with score 7, B with score 6, and C with score 3. The permitted connections are S - A, S - B, S - C, A - D, B - E, and E - G. Let D score 5, E score 8, and G score 10. No other connections exist.
Steepest-ascent hill climbing selects A because 7 is the highest neighboring score and improves on 4. At A, the only neighbors are S with score 4 and D with score 5. Neither improves on 7, so the basic method stops at A.
Yet G has score 10 and is reachable through S - B - E - G. That route is strictly improving: 4 to 6 to 8 to 10. The first move to B is a smaller improvement than the move to A, but it leads to the better outcome. This demonstrates that choosing the largest immediate gain can lose even when a successful all-uphill route exists from the same start.
The result does not mean the algorithm made an arithmetic error. Its rule evaluates immediate neighbors, not the best eventual outcome below each choice. Restarting at B would reach E and then G under the same rule, showing why starting points can matter.
For a separate continuous illustration, maximize f(x) = −(x − 2)². At x = 0, the derivative is 4, so the uphill direction is positive. An update x_new = x + alpha times f'(x) with alpha = 0.25 reaches x = 1 and improves the objective from −4 to −1. With alpha = 2, it instead reaches x = 8 and decreases the objective to −36. The correct local direction alone does not make an arbitrary finite step safe.
Illustrative case study
In a fictional scheduling prototype, a team uses steepest ascent to improve an initial allocation through permitted swaps. It records the starting score, the chosen swaps, and the final score for several different starts.
When one run stops early, the team checks whether no allowed swap improves the score or whether the evaluation budget was exhausted. It also tests a broader neighborhood separately. This fictional exercise distinguishes a local stopping condition from proof of global optimality and does not claim an operational performance gain.
Common misconceptions and mistakes
Steepest ascent is not exhaustive search, and “best neighbor” does not mean “best future solution.” It also differs from stochastic hill climbing, which can choose among improving neighbors rather than always selecting the highest-valued one.
For continuous problems, the gradient's steepest-direction interpretation depends on the chosen norm and coordinate scaling. Do not treat a large step as automatically better. Finally, noisy or approximate objective evaluations can make apparent improvements unreliable; claims based on exact deterministic scores may not transfer directly to that setting.
Business use
The method is easy to explain and can provide a practical improvement baseline. It is especially interpretable when each candidate move corresponds to a small business change and the objective captures the intended tradeoffs.
Evaluation should include the work needed to examine neighbors, not just the number of accepted moves. Compare multiple starts under a stated budget, preserve feasibility constraints, and report the best score found. If global optimality matters, use an appropriate proof, bound, or algorithmic guarantee rather than the fact that local improvement has stopped.
People also ask
Must it inspect every neighbor?
The basic discrete steepest-ascent rule needs to identify a best neighbor; implementation shortcuts require justification.
Can it stop on a plateau?
Yes. Under strict improvement, an equal-valued neighbor is not accepted.
Is steepest descent unrelated?
No. Minimizing a cost follows the analogous downhill idea; negating the objective connects the two formulations.
Check your understanding
Why does the discrete example stop at A instead of reaching G?
Answer: It chooses A for the largest immediate gain, then has no improving neighbor. It does not look ahead through B before deciding.
Related terms
- Hill climbing
- Step size
- Neighborhood
- Stochastic hill climbing
- Objective function
- Local maximum
- Gradient ascent
- Random restart
Learn next
Next, lower A's score from seven to five while leaving the other scores unchanged. The first choice becomes B, followed by E and G. Explain how changing one neighboring score changes the path without changing the algorithm or the graph's connections.
More in Graphs and symbolic AI
- State space graph - A state space graph represents the possible states of a problem and the actions that connect them.
- State-space landscape - A state-space landscape is a way to understand an optimization problem by treating candidate states as locations and their objective values as heights.
- State-space search - State-space search is the process of exploring possible states and transitions to find a solution to a modeled problem.
- Stemming - Stemming is a text-processing technique that reduces word forms to shared stems, often by applying rules that remove or replace endings.
- Step cost - A step cost is the cost assigned to a single action or transition in a search problem.
- Stochastic beam search - Stochastic beam search is a search approach that maintains a limited collection of candidates and chooses the next collection partly at random, favoring...
Sources
Primary source: Russell and Norvig, AIMA, local-search and continuous-space optimization sections: https://aima.cs.berkeley.edu/4th-ed/pdfs/newchap04.pdf . The discrete search graph and one-variable quadratic calculations are original teaching examples.
Previous: Stative expressions Next: Steerable filter