Learning to Learn from APIs: Black-Box Data-Free Meta-Learning

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Hu, Zixuan, Shen, Li, Wang, Zhenyi, Wu, Baoyuan, Yuan, Chun, Tao, Dacheng
Format: Preprint
Published: 2023
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910829131071488
author Hu, Zixuan
Shen, Li
Wang, Zhenyi
Wu, Baoyuan
Yuan, Chun
Tao, Dacheng
author_facet Hu, Zixuan
Shen, Li
Wang, Zhenyi
Wu, Baoyuan
Yuan, Chun
Tao, Dacheng
contents Data-free meta-learning (DFML) aims to enable efficient learning of new tasks by meta-learning from a collection of pre-trained models without access to the training data. Existing DFML work can only meta-learn from (i) white-box and (ii) small-scale pre-trained models (iii) with the same architecture, neglecting the more practical setting where the users only have inference access to the APIs with arbitrary model architectures and model scale inside. To solve this issue, we propose a Bi-level Data-free Meta Knowledge Distillation (BiDf-MKD) framework to transfer more general meta knowledge from a collection of black-box APIs to one single meta model. Specifically, by just querying APIs, we inverse each API to recover its training data via a zero-order gradient estimator and then perform meta-learning via a novel bi-level meta knowledge distillation structure, in which we design a boundary query set recovery technique to recover a more informative query set near the decision boundary. In addition, to encourage better generalization within the setting of limited API budgets, we propose task memory replay to diversify the underlying task distribution by covering more interpolated tasks. Extensive experiments in various real-world scenarios show the superior performance of our BiDf-MKD framework.
format Preprint
id arxiv_https___arxiv_org_abs_2305_18413
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Learning to Learn from APIs: Black-Box Data-Free Meta-Learning
Hu, Zixuan
Shen, Li
Wang, Zhenyi
Wu, Baoyuan
Yuan, Chun
Tao, Dacheng
Machine Learning
Artificial Intelligence
Computer Vision and Pattern Recognition
Data-free meta-learning (DFML) aims to enable efficient learning of new tasks by meta-learning from a collection of pre-trained models without access to the training data. Existing DFML work can only meta-learn from (i) white-box and (ii) small-scale pre-trained models (iii) with the same architecture, neglecting the more practical setting where the users only have inference access to the APIs with arbitrary model architectures and model scale inside. To solve this issue, we propose a Bi-level Data-free Meta Knowledge Distillation (BiDf-MKD) framework to transfer more general meta knowledge from a collection of black-box APIs to one single meta model. Specifically, by just querying APIs, we inverse each API to recover its training data via a zero-order gradient estimator and then perform meta-learning via a novel bi-level meta knowledge distillation structure, in which we design a boundary query set recovery technique to recover a more informative query set near the decision boundary. In addition, to encourage better generalization within the setting of limited API budgets, we propose task memory replay to diversify the underlying task distribution by covering more interpolated tasks. Extensive experiments in various real-world scenarios show the superior performance of our BiDf-MKD framework.
title Learning to Learn from APIs: Black-Box Data-Free Meta-Learning
topic Machine Learning
Artificial Intelligence
Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2305.18413