TaskMet: Task-Driven Metric Learning for Model Learning
Not on the map. Why?
Abstract (arXiv)
Deep learning models are often deployed in downstream tasks that the training procedure may not be aware of. For example, models solely trained to achieve accurate predictions may struggle to perform well on downstream tasks because seemingly small prediction errors may incur drastic task errors. The standard end-to-end learning approach is to make the task loss differentiable or to introduce a differentiable surrogate that the model can be trained on. In these settings, the task loss needs to be carefully balanced with the prediction loss because they may have conflicting objectives. We propose take the task loss signal one level deeper than the parameters of the model and use it to learn the parameters of the loss function the model is trained on, which can be done by learning a metric in the prediction space. This approach does not alter the optimal prediction model itself, but rather changes the model learning to emphasize the information important for the downstream task. This enables us to achieve the best of both worlds: a prediction model trained in the original prediction space while also being valuable for the desired downstream task. We validate our approach through experiments conducted in two main settings: 1) decision-focused model learning scenarios involving portfolio optimization and budget allocation, and 2) reinforcement learning in noisy environments with distracting states. The source code to reproduce our experiments is available at https://github.com/facebookresearch/taskmet
Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Builds on 32 of its 56 references that are in the map. First posted on arXiv 8 Dec 2023.
Builds on
32 of 56 references.
References · 32
- 2019Dream to Control: Learning Behaviors by Latent Imaginationcited by 1,653
- 2018Learning Latent Dynamics for Planning from Pixelscited by 1,264
- 2016Optimization Methods for Large-Scale Machine Learningcited by 1,150
- 2019Differentiable Convex Optimization Layerscited by 465
- 2022Temporal Difference Learning for Model Predictive Controlcited by 397
- 2017Smart "Predict, then Optimize"cited by 339
- 2019Optimizing Millions of Hyperparameters by Implicit Differentiationcited by 304
- 2018Few-shot Object Detection via Feature Reweightingcited by 265
- 2018Melding the Data-Decisions Pipeline: Decision-Focused Learning for Combinatorial Optimizationcited by 227
- 2021Efficient and Modular Implicit Differentiationcited by 203
- 2018Differentiable MPC for End-to-end Planning and Controlcited by 189
- 2020Objective Mismatch in Model-based Reinforcement Learningcited by 96
20 more
- 2019Smart Predict-and-Optimize for Hard Combinatorial Optimization Problemscited by 89
- 2023A Survey of Contextual Optimization Methods for Decision Making under Uncertaintycited by 82
- 2019Generalization Bounds in the Predict-then-Optimize Frameworkcited by 54
- 2023Tuning computer vision models with task rewardscited by 37
- 2020POPCORN: Partially Observed Prediction COnstrained ReiNforcement Learningcited by 36
- 2021Control-Oriented Model-Based Reinforcement Learning with Implicit Differentiationcited by 35
- 2022Value Gradient weighted Model-Based Reinforcement Learningcited by 32
- 2019Differentiable Gaussian Process Motion Planningcited by 28
- 2020Resolving Class Imbalance in Object Detection with Weighted Cross Entropy Lossescited by 21
- 2022SurCo: Learning Linear Surrogates For Combinatorial Nonlinear Optimization Problemscited by 21
- 2017Goal-Driven Dynamics Learning via Bayesian Optimizationcited by 19
- 2023Leaving the Nest: Going Beyond Local Loss Functions for Predict-Then-Optimizecited by 18
- 2023Landscape Surrogate: Learning Decision Losses for Mathematical Optimization Under Partial Informationcited by 18
- 2022Decision-Aware Learning for Optimizing Health Supply Chainscited by 14
- 2022Spectral, Probabilistic, and Deep Metric Learning: Tutorial and Surveycited by 10
- 2023Active Learning For Contextual Linear Optimization: A Margin-Based Approachcited by 7
- 2021Fixes That Fail: Self-Defeating Improvements in Machine-Learning Systemscited by 5
- 2023End-to-End Learning with Multiple Modalities for System-Optimised Renewables Nowcastingcited by 4
- 2023Data-driven decision-focused surrogate modelingcited by 4
- 2023Decision-Oriented Learning with Differentiable Submodular Maximization for Vehicle Routing Problemcited by 2
Built on by
Citing papers per year: 2024: 4; 2025: 4; 2026: 3.
11 papers.
- 2024Functional Bilevel Optimization for Machine Learningcited by 20
- 2025Decision-Focused Fine-Tuning of Time Series Foundation Models for Dispatchable Feeder Optimizationcited by 5
- 2024Locally Convex Global Loss Network for Decision-Focused Learningcited by 3
- 2024What is the Right Notion of Distance between Predict-then-Optimize Tasks?cited by 2
- 2024Towards certifiable AI in aviation: landscape, challenges, and opportunitiescited by 2
- 2025Prediction Loss Guided Decision-Focused Learningcited by 2
- 2025Bi-Level Decision-Focused Causal Learning for Large-Scale Marketing Optimization: Bridging Observational and Experimental Datacited by 2
- 2025DFF: Decision-Focused Fine-tuning for Smarter Predict-then-Optimize with Limited Datacited by 1
- 2026Task-Induced Riemannian Metrics for Vision Transformer Feature Spacescited by 0
- 2026Estimate, Don't Imitate: Reusing Differentiable State-Based Policies for Visuomotor Controlcited by 0
- 2026The Curvature of Regret in Contextual Linear Optimizationcited by 0
- 2026The Curvature of Regret in Contextual Linear Optimization1 Oct 2026
- 2026Estimate, Don't Imitate: Reusing Differentiable State-Based Policies for Visuomotor Control27 Sep 2026
- 2026Task-Induced Riemannian Metrics for Vision Transformer Feature Spaces23 Sep 2026
- 2025Bi-Level Decision-Focused Causal Learning for Large-Scale Marketing Optimization: Bridging Observational and Experimental Data22 Oct 2025
- 2025Prediction Loss Guided Decision-Focused Learning10 Sep 2025
- 2025Decision-Focused Fine-Tuning of Time Series Foundation Models for Dispatchable Feeder Optimization3 Mar 2025
- 2025DFF: Decision-Focused Fine-tuning for Smarter Predict-then-Optimize with Limited Data3 Jan 2025
- 2024Towards certifiable AI in aviation: landscape, challenges, and opportunities13 Sep 2024
- 2024What is the Right Notion of Distance between Predict-then-Optimize Tasks?11 Sep 2024
- 2024Functional Bilevel Optimization for Machine Learning29 Mar 2024
- 2024Locally Convex Global Loss Network for Decision-Focused Learning4 Mar 2024