FUSE-ing Language Models: Zero-Shot Adapter Discovery for Prompt Optimization Across Tokenizers
Joshua Nathaniel Williams, J. Zico Kolter
TL;DR
The paper tackles interoperability across language and vision-language models that use different tokenizers and embedding spaces, which hampers cross-model prompt discovery. It introduces FUSE, a lightweight adapter that approximates a cross-model mapping between embedding spaces using a novel third-order tensor representation of whitespace-delimited token groups and a tensor-based t-product framework to enable gradient-like signals across diverse tokenizations. The method supports zero-shot task composition by enabling multi-model objective optimization (e.g., captioning with image and sentiment objectives) without fine-tuning, demonstrated on image captioning benchmarks with GPT2-Medium, CLIP, and a sentiment classifier. Findings indicate that the FUSE gradient approximation yields meaningful guidance for prompt optimization—especially improving SPICE scores—while remaining compute-efficient and suitable for low-resource settings, with future work aimed at training explicit cross-embedding mappings and improving scalability and validation of the gradient signal.
Abstract
The widespread use of large language models has resulted in a multitude of tokenizers and embedding spaces, making knowledge transfer in prompt discovery tasks difficult. In this work, we propose FUSE (Flexible Unification of Semantic Embeddings), an inexpensive approach to approximating an adapter layer that maps from one model's textual embedding space to another, even across different tokenizers. We introduce a third-order tensor-based representation of a model's embedding space that aligns semantic embeddings that have been split apart by different tokenizers, and use this representation to derive an approximation of the gradient of one model's outputs with respect to another model's embedding space. We show the efficacy of our approach via multi-objective optimization over vision-language and causal language models for image captioning and sentiment-based image captioning.
