Understand penalties and tradeoffs
See how a regularizer changes the objective and its preferred solution.
Course lessons · 4 of 5
Calculate a regularized optimum and interpret signs in a multi-term objective.
Useful background: Accept steps with a decrease test
A penalty encodes a preference
A regularizer adds a cost for a property such as large parameters. In the teaching objective, a squared parameter penalty competes with fitting the target three. Increasing its nonnegative weight pulls the preferred solution toward zero.
The resulting objective is a different optimization problem from pure target fitting. A higher fitting error may be accepted because the combined cost is lower. Record the component costs so that a better total cannot hide an important tradeoff.
Signs depend on minimization or maximization
The project’s autonomous objective adds exploration and entropy terms while subtracting conflict, resource, and repetition penalties. Under maximization, a positive penalty is subtracted to discourage the penalized behavior.
For a minimized loss, an unwanted positive cost is usually added. A term called entropy regularization can encourage or discourage entropy depending on its sign and whether the objective is minimized or maximized. The label alone does not decide the effect.
The gradient-descent lab elsewhere in the learning studio uses the unregularized reference objective. Its loss and update rule do not include the regularization term in this lesson. Use the worked calculation here when checking the regularized optimum.
Find the preferred state when λ = 1
1Differentiate the combined objective
The fitting derivative is x − 3. The regularizer contributes λx.
2Set the derivative to zero
For λ = 1, solve 2x − 3 = 0.
3Interpret the tradeoff
The preferred state is below the target three because both fitting error and parameter magnitude now matter. This is deliberate shrinkage under the chosen objective.
Your turn.
Try an answer before opening a hint. Feedback will explain the result, and you can practice again.
Interactive practice is loading. The lesson, worked example, and printable questions remain available below.
View printable practice and solutions
Use these questions when studying without interactive controls. Opening a written solution does not earn progress.
For this objective, what is x* = 3/(1 + λ) when λ = 2?
Read the solution
The optimum is 3/3 = 1.
At x = 2 and λ = 1, what is the regularizer λx²/2?
Read the solution
The regularizer is 1 × 4/2 = 2.
A positive repetition cost is intended to discourage repetition in a maximized score. How should it enter?
- Replace all terms with the cost’s name.
- Subtract the cost.
- Add the cost without changing anything else.
- Ignore the score direction.
Read the solution
Subtracting a positive cost lowers the score for repeated actions.
A new regularizer reduces the combined loss but increases target-fitting error. What should be reported?
- Only the improved combined number.
- A claim that every capability improved.
- The fitting error as zero.
- Both component changes and the combined objective.
Read the solution
Report the objective and its components so the tradeoff is inspectable.
Follow the original record
Use the definitions you just practiced to read the project’s own notation, assumptions, and evidence.
The ideas to keep
- A regularizer changes the objective.
- Check signs against the optimization direction.
- Keep component metrics alongside the total.
Reading completion is separate from your practice evidence.
Progress is kept in this browser. How learning works