ArticleslgStudy

computer science

Trust region

Trust region is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Trust region rather than just read about it. In short: In mathematical optimization, a trust region is the subset of the region of the objective function that is approximated using a model function (often a quadratic). If an adequate model of the objective function is found within the trust region, then the region is expanded; conversely, if the approximation is poor, then the region is contracted.

Key takeaways

  • Trust region belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Trust region to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Trust region from memory before moving on to harder problems.

Reference excerpt

In mathematical optimization, a trust region is the subset of the region of the objective function that is approximated using a model function (often a quadratic). If an adequate model of the objective function is found within the trust region, then the region is expanded; conversely, if the approximation is poor, then the region is contracted. The fit is evaluated by comparing the ratio of expected improvement from the model approximation with the actual improvement observed in the objective function. Simple thresholding of the ratio is used as the criterion for expansion and contraction—a model function is "trusted" only in the region where it provides a reasonable approximation. Trust-region methods are in some sense dual to line-search methods: trust-region methods first choose a step size (the size of the trust region) and then a step direction, while line-search methods first choose a step direction and then a step size. The general idea behind trust region methods is known by many names; the earliest use of the term seems to be by Sorensen (1982). A popular textbook by Fletcher (1980) calls these algorithms restricted-step methods. Additionally, in an early foundational work on the method, Goldfeld, Quandt, and Trotter (1966) refer to it as quadratic hill-climbing.

Example Conceptually, in the Levenberg–Marquardt algorithm, the objective function is iteratively approximated by a quadratic surface, then using a linear solver, the estimate is updated. This alone may not converge nicely if the initial guess is too far from the optimum. For this reason, the algorithm instead restricts each step, preventing it from stepping "too far". It operationalizes "too far" as follows. Rather than solving A Δ x = b {\displaystyle A\,\Delta x=b} for Δ x {\displaystyle \Delta x} , it solves ( A + λ diag ⁡ ( A ) ) Δ x = b {\displaystyle {\big (}A+\lambda \operatorname {diag} (A){\big )}\,\Delta x=b} , where diag ⁡ ( A ) {\displaystyle \operatorname {diag} (A)} is the diagonal matrix with the same diagonal as A, and λ is a parameter that controls the trust-region size. Geometrically, this adds a paraboloid centered at Δ x = 0 {\displaystyle \Delta x=0} to the quadratic form, resulting in a smaller step. The trick is to change the trust-region size (λ). At each iteration, the damped quadratic fit predicts a certain reduction in the cost function, Δ f pred {\displaystyle \Delta f_{\text{pred}}} , which we would expect to be a smaller reduction than the true reduction. Given Δ x {\displaystyle \Delta x} , we can evaluate

Δ f actual = f ( x ) − f ( x + Δ x ) . {\displaystyle \Delta f_{\text{actual}}=f(x)-f(x+\Delta x).}

By looking at the ratio Δ f pred / Δ f actual {\displaystyle \Delta f_{\text{pred}}/\Delta f_{\text{actual}}} , we can adjust the trust-region size. In general, we expect Δ f pred {\displaystyle \Delta f_{\text{pred}}} to be a bit smaller than Δ f actual {\displaystyle \Delta f_{\text{actual}}} , and so the ratio would be between, say, 0.25 and 0.5. If the ratio is more than 0.5, then we are damping the step too much, so expand the trust region (decrease λ) and iterate. If the ratio is smaller than 0.25, then the true function is diverging "too much" from the trust-region approximation, so shrink the trust region (increase λ) and try again. Note that the Levenberg-Marquardt algorithm does not have an explicit trust region, and is instead often referred to as a damped Gauss-Newton method. A more fitting example of a trust region method would be Powell's dog leg method, where the update step magnitude is explicitly constrained to a trust region, c.f. Madsen et al. .

References

Footnotes

Sources

External links Celis, Maria Rosa (May 1985). A Trust Region Strategy for Nonlinear Equality Constrained Optimization (Ph.D. thesis). Rice University. Vanden Berghen, Frank. "Trust Region Algorithms". Kranf site: Trust Region Algorithms – via applied-mathematics.net. Ye, Wenhe (Wayne) (April 10, 2014). "Trust-region methods". ChE 345 Spring 2014. Northwestern University. Archived from the original on December 14, 2018.

Worked examples

Example 1 — a first encounter with Trust region

Start with the simplest possible case. Write down what Trust region claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Trust region before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Trust region ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Trust region

In research
Trust region appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Trust region in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Trust region is common in secondary-school and first-year university syllabi. It links to neighbouring topics Optimization algorithms and methods, so understanding it makes those chapters shorter.
In everyday life
Look for Trust region outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Trust region” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Trust region in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Trust region means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Trust region out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Trust region in simple terms?

In mathematical optimization, a trust region is the subset of the region of the objective function that is approximated using a model function (often a quadratic). If an adequate model of the objective function is found within the trust region, then the region is expanded; conversely, if the approx…

Why does Trust region matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Trust region?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Trust region.

Tags

  • Optimization algorithms and methods

Keep exploring