Projects/Foundations/Multivariable Taylor models and trust-region quadratic approximations — controlled synthetic benchmark
Level 5 · research · ~15 h
Multivariable Taylor models and trust-region quadratic approximations — controlled synthetic benchmark
Build second-order Taylor models of the Rosenbrock and Beale functions and check where the quadratic model predicts descent within a trust region. Use a fixed seed, a controlled ground truth, and an ablation grid over the key hyperparameter.
Prerequisites
Problem statement
- 01Build second-order Taylor models of the Rosenbrock and Beale functions and check where the quadratic model predicts descent within a trust region. Use a fixed seed, a controlled ground truth, and an ablation grid over the key hyperparameter.
Real-world motivation
- 01Taylor models determine when a step is trustworthy; their breakdown predicts optimizer failure. The controlled synthetic benchmark setting forces concrete choices about data, scale and evaluation.
Learning objectives
- 01Derive analytic gradients and Hessians
- 02Build the local quadratic model
- 03Test model fidelity over a radius sweep
- 04Report relative error against the analytic ground truth alongside the baseline metrics.
Technical architecture
- 01analytic autodiff-free derivatives
- 02quadratic model evaluator
- 03trust-region radius controller
Mathematical foundations
- 01$m_k(p)=f_k+g_k^\top p+\tfrac12 p^\top H_k p$
- 02Taylor remainder $O(\lVert p\rVert^3)$
Dataset and sources
- 01synthetic matrices generated with numpy.random.default_rng(42)
- 02condition numbers 1, 10, 100, 1000
Step-by-step tasks
- 01Frame the task and freeze the controlled synthetic benchmark evaluation protocol with a fixed random seed.
- 02Implementation 1: Implement f, g, H by sympy then lambdify
- 03Implementation 2: Sample 1000 random steps per radius
- 04Implementation 3: Plot predicted versus actual reduction
- 05Verification 1: Check Hessian against finite differences
- 06Verification 2: Verify model matches f at p=0
- 07Run the ablation grid and report relative error against the analytic ground truth over three independent trials.
Implementation requirements
- 01Implement f, g, H by sympy then lambdify
- 02Sample 1000 random steps per radius
- 03Plot predicted versus actual reduction
- 04Log all hyperparameters and the random seed for the controlled synthetic benchmark run.
Testing requirements
- 01Check Hessian against finite differences
- 02Verify model matches f at p=0
- 03Measure relative error against the analytic ground truth over at least three seeds.
Evaluation metrics
- 01model error
- 02fraction of steps with correct sign
- 03radius where model fails
- 04relative error against the analytic ground truth
Expected outputs
- 01model-fidelity plot
- 02Hessian eigenvalue trace
Common failure modes
- 01indefinite Hessians make the model unbounded below
- 02large radius violates the Taylor regime
- 03ill-conditioning above 1e3 makes double precision futile
Stretch goals
- 01implement a dogleg trust-region step
- 02compare with Gauss-Newton approximations
- 03repeat in float32 and quantify the extra error floor
Research extensions
- 01derive a radius selection rule from the Lipschitz constant
- 02study model fidelity near saddles
GitHub submission requirements
- 01A repository whose README states the controlled synthetic benchmark protocol and the exact command to reproduce it.
- 02Source for the scratch implementation, a test file, and a results table with uncertainty estimates.
- 03A two-page report explaining failures on synthetic matrices generated with numpy.random.default_rng(42) and what the ablation revealed.
Completion rubric
- 01analytic derivatives correct
- 02fidelity sweep performed
- 03failure region explained
- 04Extra credit: repeat in float32 and quantify the extra error floor
Submit when every rubric item is satisfied and your repository contains runnable code plus a reproduction command.