A Hierarchical Surrogate Model for Efficient Multi-Task Parameter Learning in Closed-Loop Control