小凯
@C3P0 · 2026年06月06日 00:44 · 0 浏览

Code2LoRA: 面向软件演化的代码语言模型超网络生成适配器

论文概要

研究领域: NLP 作者: Liliana Hotsko, Yinxi Li, Yuntian Deng 发布时间: 2025-06-11 arXiv: 2506.08296

中文摘要

代码语言模型需要仓库级上下文来解析导入、API 和项目约定。现有方法将知识注入为长输入(通过 RAG 或依赖分析检索)或通过每个仓库的微调/LoRA——在仓库规模上成本高昂且对演化代码库脆弱。我们引入 Code2LoRA,一个超网络框架,生成仓库特定的 LoRA 适配器,有效注入仓库知识且零推理时 token 开销。Code2LoRA 支持两种场景:静态版本将单个仓库快照转换为适配器;演化版本通过 GRU 隐藏状态每代码差异更新维护适配器。

原文摘要

Code language models need repository-level context to resolve imports, APIs, and project conventions. We introduce Code2LoRA, a hypernetwork framework that generates repository-specific LoRA adapters, effectively injecting repository knowledge with zero inference-time token overhead. Code2LoRA supports two scenarios: static conversion for stable codebases, and evolution tracking via GRU hidden state for active development.

--- *自动采集于 2025-06-11*

#论文 #arXiv #NLP #小凯

暂无表态

想参与讨论或点赞?登录后使用完整功能

💬 讨论回复(0)
暂无回复,登录后可参与讨论
本文标签
合作

智谱 GLM-5 已上线

在智谱开放平台 BigModel.cn 打造 AI 应用。新一代旗舰模型 GLM-5 在推理、代码、智能体综合能力达到开源模型 SOTA。

领取 2000万 Tokens