CLFeb 16, 2025

Streamlining the Collaborative Chain of Models into A Single Forward Pass in Generation-Based Tasks

arXiv:2502.11083v11 citationsh-index: 10ACL
Originality Incremental advance
AI Analysis

This work addresses resource demands for practitioners using collaborative model chains in generation-based tasks, offering an incremental efficiency improvement.

The paper tackles the inefficiency of sequential model chains in retrieval-augmented generation and agent-based frameworks by introducing FTHSS, a prompt-tuning method that enables models to share KV hidden states, eliminating redundant forward passes and reducing KV cache storage. Empirical results on four tasks show that FTHSS matches the performance of traditional model chains while improving inference efficiency.

In Retrieval-Augmented Generation (RAG) and agent-based frameworks, the "Chain of Models" approach is widely used, where multiple specialized models work sequentially on distinct sub-tasks. This approach is effective but increases resource demands as each model must be deployed separately. Recent advancements attempt to address this by applying prompt tuning, which allows a shared base model to adapt to multiple tasks with minimal parameter changes. However, a key challenge remains: intermediate outputs, passed between models as plain text, require recomputation of hidden states (i.e., Key and Value (KV) states in Transformers) during inference. In this paper, we introduce FTHSS, a novel prompt-tuning method that enables models to share KV hidden states, eliminating redundant forward passes and reducing KV cache storage. By modifying input and attention masks during training, FTHSS allows models to effectively utilize KV hidden states from prior models in both single- and multi-round scenarios. Empirical results on four tasks show that FTHSS matches the performance of traditional model chains while improving inference efficiency.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes