arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2412.16251cs.LG
收藏

Know2Vec:一种用于神经网络检索的黑盒代理

Know2Vec: A Black-Box Proxy for Neural Network Retrieval

Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络空间安全学院);College of Information and Intelligence Engineering, Zhejiang Wanli University(浙江万里学院信息与智能工程学院);Tsinghua University(清华大学)

Zhuoyi Shang, Yanwei Liu, Jinxia Liu, Xiaoyan Gu, Ying Ding, Xiangyang Ji

AI总结:

针对模型选择中向量化不准确和对齐偏差的问题,提出黑盒检索代理Know2Vec,通过捕获模型决策知识并映射查询任务至知识向量,在对齐空间中确保知识一致性,在多种检索任务中实现了优于现有方法的准确率。

摘要:

对于普通用户而言,从头训练神经网络通常具有挑战性且耗费大量人力。幸运的是,神经网络动物园(neural network zoos)使他们能够找到一个性能良好的模型,以便在本地环境中直接使用或进行微调。尽管当前的模型检索解决方案试图将神经网络模型转换为向量,以避免模型选择所需的复杂多次推理过程,但由于向量化不准确以及查询数据集与模型之间有偏差的相关性对齐,选择合适的模型仍然困难。从知识一致性的角度,即模型所拥有的知识是否能满足查询任务的需求,我们提出了一种名为Know2Vec的模型检索方案,作为模型动物园的黑盒检索代理。Know2Vec首先通过黑盒接口预先访问模型,在确保模型隐私的同时从模型中捕获关键决策知识。接着,它采用一种有效的编码技术将知识转化为精确的模型向量。其次,它通过探查查询样本内的语义关系,将用户的查询任务映射为知识向量。此外,该代理在其对齐空间内确保查询向量与模型向量之间的知识一致性,该空间通过具有多种损失函数的监督学习进行优化,最终它能在推理阶段为给定任务识别出最合适的模型。大量实验表明,我们的Know2Vec在多样的神经网络检索任务中实现了优于最先进方法的检索准确率。

英文摘要:

For general users, training a neural network from scratch is usually challenging and labor-intensive. Fortunately, neural network zoos enable them to find a well-performing model for directly use or fine-tuning it in their local environments. Although current model retrieval solutions attempt to convert neural network models into vectors to avoid complex multiple inference processes required for model selection, it is still difficult to choose a suitable model due to inaccurate vectorization and biased correlation alignment between the query dataset and models. From the perspective of knowledge consistency, i.e., whether the knowledge possessed by the model can meet the needs of query tasks, we propose a model retrieval scheme, named Know2Vec, that acts as a black-box retrieval proxy for model zoo. Know2Vec first accesses to models via a black-box interface in advance, capturing vital decision knowledge from models while ensuring their privacy. Next, it employs an effective encoding technique to transform the knowledge into precise model vectors. Secondly, it maps the user's query task to a knowledge vector by probing the semantic relationships within query samples. Furthermore, the proxy ensures the knowledge-consistency between query vector and model vectors within their alignment space, which is optimized through the supervised learning with diverse loss functions, and finally it can identify the most suitable model for a given task during the inference stage. Extensive experiments show that our Know2Vec achieves superior retrieval accuracy against the state-of-the-art methods in diverse neural network retrieval tasks.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑