Skip to content
Dilara Caglar
CourseworkCompleted course assignment

Sim2Sim System Identification

Grid search, L-BFGS-B and CMA-ES calibrating a robot-arm simulator against another simulator.

My contribution

I implemented the trajectory loss, the 21 × 21 grid-search baseline, the bounded L-BFGS-B identification and, for extra credit, CMA-ES, then compared them on training and held-out rollouts.

Affiliation
Computational Design of Cyber-Physical Systems
Dates
Spring 2026
Role
Individual assignment on course starter notebooks
Topics
Optimization and Simulation
Tools
JAX, Python, MuJoCo
Contents
  1. The problem
  2. My contribution
  3. Constraints
  4. Design decisions
  5. What was difficult
  6. Evidence
  7. Current status
  8. What I would change next

01

The problem

A simulator is only useful for design if it behaves like the real system. I calibrated a robot-arm simulator against recorded motion, compared three ways to search for its parameters, and asked which parameters can be recovered from data at all. This is the foundation of sim-to-real transfer, robot calibration and digital twins.

02

My contribution

I implemented the trajectory loss, the 21 × 21 grid-search baseline, the bounded L-BFGS-B identification and, for extra credit, CMA-ES, then compared them on training and held-out rollouts. I also derived the identifiability analysis by hand for a single link with mass and damping. The course provided the MuJoCo arm models, the hidden "real" parameters and the data-generation code.

03

Constraints

Each loss evaluation requires full MuJoCo rollouts, so the budget was counted in simulator calls (CMA-ES was capped at 500). Parameters were bounded to 0.4 to 2.2, the data was 6 training and 3 test rollouts of 1.5 s with small noise, and gradients came from finite differences because the simulator was treated as a black box.

04

Design decisions

I used grid search as a transparent baseline that also maps the loss surface, L-BFGS-B because the surface looked smooth near the optimum, and CMA-ES as a derivative-free check that does not depend on finite-difference step sizes. The data used multi-sine torque excitation, because a parameter only shows up in the data if the trajectory exercises it.

05

What was difficult

My first L-BFGS-B run stopped at the nominal starting point after 3 evaluations. The default finite-difference step (about 10⁻⁸) was below the loss's numerical resolution, so the estimated gradient was zero and the optimizer believed it had converged. Raising the step to 0.05 fixed it, and it taught me to check gradient estimates before trusting a "converged" flag.

06

Evidence

Against true values (1.35, 1.80), CMA-ES recovered (1.350, 1.800) exactly in 366 evaluations and 15.2 s; L-BFGS-B reached (1.322, 1.773) in 171 evaluations and 6.7 s; grid search reached (1.39, 1.84) in 441 evaluations and 35.0 s. The nominal model's test loss of 28.89 dropped to 0.0042 with L-BFGS-B, and the test-loss ranking matched the training ranking exactly. The identifiability derivation shows damping cannot be identified from a stationary arm (the regressor has rank 1), while a sinusoidal trajectory makes both parameters identifiable.

07

Current status

Simulation (sim-to-sim): the "real" data came from a hidden simulator, not hardware.

08

What I would change next

I would move to real hardware data, where noise, friction and unmodeled effects make the problem harder, and use analytic or autodiff gradients instead of finite differences. I would also design the excitation from the Fisher information rather than picking it by hand.

Related work