ReLope:KL正则化的LoRA探针用于多模态大语言模型路由
ReLope: From Hidden-State Probing to a Decision Module for Multimodal LLM Routing
AI总结:
针对多模态大语言模型路由中探针性能下降问题,提出Attention Probe和KL正则化的LoRA探针ReLope,通过改进隐藏状态质量提升路由效果。
摘要:
路由已成为平衡性能与成本的有效策略,在结合轻量模型与强大但昂贵的大模型的大型语言模型(LLM)系统中。最近研究表明,通过使用隐藏状态预测小模型正确性的探针路由在纯文本LLM中提供了有效解决方案。然而,我们发现这些探针在应用于多模态LLM(MLLM)时显著退化。通过实证分析,我们发现视觉输入的存在削弱了隐藏状态中正确性信号的可分离性,使得使用标准探针设计更难提取。为了解决这一挑战,我们引入了两种互补的方法来改进MLLM中的探针路由。首先,我们提出了注意力探针,它根据注意力分数聚合前一层的隐藏状态以恢复分布式正确性信号。其次,我们提出了KL正则化的LoRA探针(ReLope),它插入了一个轻量级LoRA适配器并应用KL正则化器以学习路由感知的表示。全面实验表明,我们的方法在各方面均优于基线,表明提高隐藏状态质量是有效实现MLLM路由的关键。我们的代码可在https://github.com/Spinozaaa/ReLope上获得。
英文摘要:
Routing balances performance and cost in hybrid systems by escalating selected queries from a lightweight model to a powerful but expensive one. Hidden-state probes provide an effective routing signal by predicting the small model's correctness from hidden states it already computes. Although effective in text-only settings, their behavior on multimodal LLMs (MLLMs) is less understood. We find that correctness is harder to predict from hidden states when questions are paired with images rather than with captions of those images. Two training-free dependence measures, HSIC and label CKA, show the same pattern. We first investigate whether changing hidden states used by the probe improves correctness prediction for MLLMs. We propose Attention Probe, which learns an attention query to pool frozen token states into a routing feature and improves over the standard probe. However, pooling only recombines hidden states computed for answer generation, not for deciding whether the answer should be trusted. We therefore build a decision layer inside the existing MLLM and train it for the routing decision. The resulting router, ReLope (KL-Regularized LoRA Probe), adapts a separate copy of one MLLM layer with LoRA and regularizes it with a KL-penalized stochastic bottleneck. This decision branch shares the frozen lower layers and leaves the model's answer-generation path unchanged. ReLope attains the highest correctness prediction AUC on all five benchmarks and three backbones we evaluate and improves the accuracy versus cost trade-off at negligible overhead. These results suggest a new perspective and a practical technical path on routing: rather than reading decisions off states built for generation, routing decisions can be learned by a dedicated decision layer inside the model. Code: https://github.com/Spinozaaa/ReLope
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。