paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Context-Aware CodeLLM Eviction for AI-assisted Coding

面向 AI 辅助编码的上下文感知 CodeLLM 驱逐策略
ASE 2025 40th IEEE/ACM International Conference on Automated Software Engineering (ASE)2025匹配度 2/10 · 该论文聚焦自托管 CodeLLM 的模型驱逐与 serving 延迟优化,属于 ML 系统/推理服务方向,并未涉及用户关心的静态分析、程序分析、形式化验证、浮点或贝叶斯程序分析,也未将 LLM/Agent 作为改进程序分析的工具。因此与研究方向仅有非常边缘的关联。引用 0 inbox
Kishanthan Thangarajah, Boyuan Chen, Shi Chang, Ahmed E. Hassan
crossref: 2026-09-12

AI 速览

一句话:提出上下文感知的 CodeLLM 驱逐策略 CACE,较 SOTA 降低 70% 首 token 延迟并减少 55% 换出次数。

为兼顾隐私、延迟与模型定制,企业常自托管 CodeLLM,但模型种类与数量增长、加速器内存有限,给模型管理与服务效率带来挑战。本文提出 CACE,一种面向资源受限自托管场景的上下文感知模型驱逐策略。与仅依据近期使用情况的 LRU 等传统策略不同,CACE 综合模型加载时间、任务延迟敏感度、预期输出长度,以及通过滑动窗口跟踪的近期使用与未来需求等多维因素做驱逐决策。作者在包含延迟敏感的代码补全与吞吐密集的代码推理的真实工作负载上评估 CACE,结果显示其将首 token 时间(TTFT)降低 70%、端到端延迟降低 37%,同时模型驱逐次数较最先进系统减少 55%;消融实验进一步说明多因素驱逐对兼顾响应性与资源效率的必要性。

问题
自托管 CodeLLM 在加速器内存受限时,模型加载与驱逐策略不当会导致首 token 延迟与端到端延迟升高、驱逐频繁;传统基于最近使用情况的策略无法反映代码任务的差异化需求。
方法
提出 CACE 上下文感知驱逐策略,综合模型加载时间、任务延迟敏感度、预期输出长度以及滑动窗口统计的近期使用与未来需求等多因素决定换出哪个模型。
评估
在包含延迟敏感代码补全与吞吐密集代码推理的真实工作负载上与最先进系统对比,并开展消融实验,报告 TTFT、端到端延迟与驱逐次数。
原文摘要(Abstract)

AI-assisted coding tools powered by Code Large Language Models (CodeLLMs) are increasingly integrated into modern software development workflows. To address concerns around privacy, latency, and model customization, many enterprises opt to self-host these models. However, the diversity and growing number of CodeLLMs, coupled with limited accelerator memory, introduce practical challenges in model management and serving efficiency. This paper presents CACE, a novel context-aware model eviction strategy designed specifically to optimize self-hosted CodeLLM serving under resource constraints. Unlike traditional eviction strategies based solely on recency (e.g., Least Recently Used), CACE leverages multiple context-aware factors, including model load time, task-specific latency sensitivity, expected output length, and recent usage and future demand tracked through a sliding window. We evaluate CACE using realistic workloads that include both latency-sensitive code completion and throughput-intensive code reasoning tasks. Our experiments show that CACE reduces Time-to-First-Token (TTFT) by 70% and end-to-end (E2E) latency by 37%, while significantly lowering the number of model evictions by 55% compared to state-of-the-art systems. Ablation studies further demonstrate the importance of multi-factor eviction in balancing responsiveness and resource efficiency. This work contributes practical strategies for deploying scalable, low-latency AI coding assistants in real-world software engineering environments.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot9479,
  title = {Context-Aware CodeLLM Eviction for AI-assisted Coding},
  author = {Kishanthan Thangarajah and Boyuan Chen and Shi Chang and Ahmed E. Hassan},
  booktitle = {ASE},
  year = {2025},
  doi = {10.1109/ase63991.2025.00271}
}