MetricOpt: Learning To Optimize Black-Box Evaluation Metrics
Chen Huang, Shuangfei Zhai, Pengsheng Guo, Josh M. Susskind
Abstract
We study the problem of directly optimizing arbitrary non-differentiable task evaluation metrics such as misclassification rate and recall. Our method, named MetricOpt, operates in a black-box setting where the computational details of the target metric are unknown. We achieve this by learning a differentiable value function, which maps compact task-specific model parameters to metric observations. The learned value function is easily pluggable into existing optimizers like SGD and Adam, and is effective for rapidly finetuning a pre-trained model. This leads to consistent improvements since the value function provides effective metric supervision during finetuning, and helps to correct the potential bias of loss-only supervision. MetricOpt achieves state-of-the-art performance on a variety of metrics for (image) classification, image retrieval and object detection. Solid benefits are found over competing methods, which often involve complex loss design or adaptation. MetricOpt also generalizes well to new tasks and model architectures.
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 a0871972-6606-4ec6-9f60-5fde089a38dfCited by top-tier papers4
- Fine-Grained Retrieval Prompt TuningShijie Wang, Jianlong Chang, Zhihui Wang, Haojie Li et al.AAAI 2023 · 27 citations
- AnyLoss: Transforming Classification Metrics into Loss FunctionsDo Heon Han, Nuno Moniz, Nitesh V. ChawlaKDD 2024 · 1 citation
- Zeroth-Order Optimization with Trajectory-Informed Derivative EstimationYao Shu, Zhongxiang Dai, Weicong Sng, Arun Verma et al.ICLR 2023
- Task-Specific Gradient Adaptation for Few-Shot One-Class ClassificationYunlong Li, Xiabi Liu, Liyuan Pan, Yuchen RenCVPR 2025
Builds on2
Related papers
- Relational Surrogate Loss LearningTao Huang, Zekang Li, Hua Lu, Yong Shan et al.ICLR 2022 · 5 citations
- Differentiable Top-k Classification LearningFelix Petersen, Hilde Kuehne, Christian Borgelt, Oliver DeussenICML 2022 · 48 citations
- Recall@k Surrogate Loss with Large Batches and Similarity MixupYash Patel, Giorgos Tolias, Jirí MatasCVPR 2022 · 40 citations
- Searching Parameterized AP Loss for Object DetectionChenxin Tao, Zizhang Li, Xizhou Zhu, Gao Huang et al.NeurIPS 2021 · 6 citations
- Optimizing Black-box Metrics with Iterative Example WeightingGaurush Hiranandani, Jatin Mathur, Harikrishna Narasimhan, Mahdi Milani Fard et al.ICML 2021 · 8 citations
