让神经网络权重空间与训练数据对齐,提升模型生成与检索能力
WeightCLIP: Aligning Datasets and Models for Weight Space Learning

- 用自编码器和数据集编码器,通过对比学习对齐权重与数据特征
- 生成的权重表示可解码出强模型,且优于标准微调
- 适合做模型生成、检索与优化的研究者参考
权重空间学习旨在学习神经网络权重的表示,以支持多种下游任务。现有方法表现良好,但缺乏利用模型训练数据集信息来塑造权重空间表示的能力,限制了其应用。我们提出WeightCLIP,一种将数据集信息融入神经网络权重潜空间的方法。通过自编码器编码网络权重,同时用数据集编码器处理数据样本,二者通过对比损失对齐,从而根据训练数据重塑权重表示。实验表明,该表示可用于多种下游任务,包括将数据集信息映射到权重空间并解码出高性能模型。此外,我们引入潜空间精炼过程,生成模型性能超越标准微调。结果表明,显式融合数据集信息显著提升了权重空间表示在检索、生成与精炼中的能力。代码将在https://github.com/HSG-AIML/WeightCLIP发布。
原文摘要 · Abstract (English)
Weight space learning aims to learn representations of neural network (NN) weights, enabling different downstream tasks. Existing approaches show promising performance, but lacking a way to shape these weight-space representations using information about the datasets the models were trained on, thus limiting downstream applications. We propose WeightCLIP, a method for learning a dataset-aligned latent space for neural networks, where datasets information is induced during training. The NNs are encoded as latent representations using an autoencoder, while dataset samples are encoded using a dataset encoder. The two representations are aligned using a contrastive objective, effectively reshaping the weight-space representations according to the datasets. We demonstrate that such representations can be used for different downstream tasks, including mapping dataset information to a weight-space representation that decode to strong models. In addition, we introduce a latent refinement process for generating models that outperforms standard fine-tuning. Overall, our results demonstrate that explicitly incorporating dataset information improves what can be achieved with weight-space representations across retrieval, generation, and refinement. Code will be available at https://github.com/HSG-AIML/WeightCLIP.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。