TaskMet: Task-driven Metric Learning for Model Learning
Dishank Bansal, Ricky T. Q. Chen, Mustafa Mukadam, Brandon Amos
Abstract
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
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext c5b90b90-c573-4fc9-86ef-7fce221f28b0Cited by top-tier papers5
- Functional Bilevel Optimization for Machine LearningIeva Petrulionyte, Julien Mairal, Michael ArbelNeurIPS 2024 · 27 citations
- DFF: Decision-Focused Fine-Tuning for Smarter Predict-Then-Optimize with Limited DataJiaqi Yang, Enming Liang, Zicheng Su, Zhichao Zou et al.AAAI 2025 · 6 citations
- Locally Convex Global Loss Network for Decision-Focused LearningHaeun Jeon, Hyunglip Bae, Minsu Park, Chanyeong Kim et al.AAAI 2025 · 6 citations
- Implicit Relative Labeling-Importance Aware Multi-Label Metric LearningJunxiang Mao, Yong Rui, Min-Ling ZhangAAAI 2025 · 3 citations
- Bi-Level Decision-Focused Causal Learning for Large-Scale Marketing Optimization: Bridging Observational and Experimental DataShuli Zhang, Hao Zhou, Jiaqi Zheng, Guibin Jiang et al.NeurIPS 2025 · 2 citations
Builds on12
- Dream to Control: Learning Behaviors by Latent ImaginationDanijar Hafner, Timothy P. Lillicrap, Jimmy Ba, Mohammad NorouziICLR 2020 · 1,852 citations
- Few-Shot Object Detection via Feature ReweightingBingyi Kang, Zhuang Liu, Xin Wang, Fisher Yu et al.ICCV 2019 · 835 citations
- Temporal Difference Learning for Model Predictive ControlNicklas Hansen, Hao Su, Xiaolong WangICML 2022 · 388 citations
- Efficient and Modular Implicit DifferentiationMathieu Blondel, Quentin Berthet, Marco Cuturi, Roy Frostig et al.NeurIPS 2022 · 386 citations
- Smart Predict-and-Optimize for Hard Combinatorial Optimization ProblemsJayanta Mandi, Emir Demirovic, Peter J. Stuckey, Tias GunsAAAI 2020 · 184 citations
Related papers
- Decision-Focused Learning without Decision-Making: Learning Locally Optimized Decision LossesSanket Shah, Kai Wang, Bryan Wilder, Andrew Perrault et al.NeurIPS 2022 · 79 citations
- End-to-End Learning for Optimization via Constraint-Enforcing ApproximatorsRares Cristian, Pavithra Harsha, Georgia Perakis, Brian Leo Quanz et al.AAAI 2023 · 17 citations
- Relational Surrogate Loss LearningTao Huang, Zekang Li, Hua Lu, Yong Shan et al.ICLR 2022 · 5 citations
- Decision-Focused Learning: Through the Lens of Learning to RankJayanta Mandi, Víctor Bucarey, Maxime Mulamba Ke Tchomba, Tias GunsICML 2022 · 73 citations
- Leaving the Nest: Going beyond Local Loss Functions for Predict-Then-OptimizeSanket Shah, Bryan Wilder, Andrew Perrault, Milind TambeAAAI 2024 · 22 citations
