arXiv cs.AI· Xinhao Zhong, Mengxuan Wu, Chonghua Liao, Linxi Xie, Ruicheng Feng, Yanpei Guo, Hao Tan, Jiaxin Hong, Jason Li, Panpan Zhang, Ziheng Qin, Qinglin Lu, Yuzhang Shang, Tongliang Liu, Damian Borth, Haggai Maron, Yongxiang Hua, Zhixiang Wei, Jian Hu, Yunfei Wu, Xing Sun, Xin Li, Haoyu Cao, Zhangyang Wang, Kai Wang·· 2 小时前AI 评分43
CLIK:通过参数化流将上下文内化进模型参数,一次编码多次回答
Encode Once, Answer Many: Internalizing Context via Parametric Flow
AI 导读
arXiv 论文提出 CLIK,一种上下文条件参数生成器,通过带交叉注意力的 Transformer 编码器将上下文一次性映射为 LoRA 参数,无需逐任务微调或测试时梯度更新。
正文 · 原文
Authors:Xinhao Zhong, Mengxuan Wu, Chonghua Liao, Linxi Xie, Ruicheng Feng, Yanpei Guo, Hao Tan, Jiaxin Hong, Jason Li, Panpan Zhang, Ziheng Qin, Qinglin Lu, Yuzhang Shang, Tongliang Liu, Damian Borth, Haggai Maron, Yongxiang Hua, Zhixiang Wei, Jian Hu, Yunfei Wu, Xing Sun, Xin Li, Haoyu Cao, Zhangyang Wang, Kai Wang
Abstract:Large language models are typically adapted to a task either by placing knowledge in the input context, which keeps it external and re-encodes it on every call, or by fine-tuning, which internalizes it but demands a costly round of optimization per task. We aim to internalize the knowledge carried by a context directly into model parameters, without per-task optimization and without keeping the context in the input at inference time. To this end, we propose CLIK, a context-conditioned parameter generator that maps a given context to LoRA parameters for internalizing knowledge in a single forward pass through a Transformer encoder with cross-attention, requiring no test-time gradient updates. Once the generated LoRA is inserted into a frozen base model, the model answers downstream queries from the query alone, having internalized the context into its weights rather than re-reading it. Because the adapter depends only on the context, it is generated once and reused for every query on the same document, so the cost of reading that document is amortized across queries. On document question answering, CLIK substantially improves over the no-context base model and outperforms existing hypernetwork-based generators, while remaining behind a base model that reads the context directly, and it carries over to multi-turn dialogue without any multi-turn-specific training. Analysis further shows that the context-dependent part of the generated adapter concentrates in a compact and specific substructure.
| Subjects: | Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2610.38356 [cs.AI] |
| (or arXiv:2610.38356v1 [cs.AI] for this version) | |
| https://doi.org/10.48550/arXiv.2610.38356 arXiv-issued DOI via DataCite |
Submission history
From: Mengxuan Wu [view email]
[v1]
Wed, 28 Oct 2026 06:55:19 UTC (405 KB)
来源:arXiv cs.AI · arxiv.org