llm-agents code-generation adaptive-learning contextual-bandits episodic-memory continual-adaptation case-based-learning deployment-time-learning
Abstract
Large language models (LLMs) have become a central foundation of modern artificial intelligence, yet their lifecycle remains constrained by a rigid separation between training and deployment, after which learning effectively ceases. This limitation contrasts with natural intelligence, which continually adapts through interaction with its environment. In this paper, we formalise deployment-time learning (DTL) as the third stage in the LLM lifecycle that enables LLM agents to improve from experience during deployment without modifying model parameters. We present CASCADE (CASe-based Continual Adaptation during DEployment), a general and principled framework that equips LLM agents with an explicit, evolving episodic memory. CASCADE formulates experience reuse as a contextual bandit problem, enabling principled exploration-exploitation trade-offs and establishing no-regret guarantees over long-term interactions. This design allows agents to accumulate, select, and refine task-relevant cases, transforming past experience into actionable knowledge. Across 16 diverse tasks spanning medical diagnosis, legal analysis, code generation, web search, tool use, and embodied interaction, CASCADE improves macro-averaged success rate by 20.9% over zero-shot prompting while consistently outperforming gradient-based and memory-based baselines. By reframing deployment as an adaptive learning process, this work establishes a foundation for continually improving AI systems.
한국어 요약
📋 한 줄 요약
**[LLM 에이전트 · 지속학습]** 파라미터 갱신 없이 배포 중 사례 기반 에피소딕 메모리를 컨텍스추얼 밴딧으로 학습·재사용하는 CASCADE 프레임워크가 16개 다양한 과제에서 제로샷 대비 매크로 평균 성공률을 20.9%p 향상시켰다.
🎯 핵심 기여도
- LLM 라이프사이클의 제3단계로 "배포 시 학습(DTL)" 개념을 형식화
- 명시적 진화형 에피소딕 메모리를 갖춘 일반 프레임워크 CASCADE 제안
- 경험 재사용을 컨텍스추얼 밴딧 문제로 정식화해 탐색-활용 균형과 no-regret 보장 확립
- 의료 진단·법률 분석·코드 생성·웹 검색·도구 사용·embodied 상호작용 등 16개 과제에서 검증
💡 핵심 아이디어
LLM은 학습-배포가 경직되어 배포 후 학습이 멈춘다. CASCADE는 파라미터를 건드리지 않고 에피소딕 메모리에 사례를 축적·선택·정제하며, 사례 재사용을 컨텍스추얼 밴딧으로 모델링해 이론적으로도 장기적 후회 없음(no-regret)을 보장한다.
🔬 기술적 접근법
- **모델/방법론**: CASCADE = Case-based Continual Adaptation during Deployment, 명시적 에피소딕 메모리 + 컨텍스추얼 밴딧 기반 사례 선택기
- **핵심 기법**: 경험을 사례(case)로 축적, 컨텍스추얼 밴딧으로 탐색-활용 트레이드오프를 원리적으로 처리, 사례 정제(refine)로 행동지식화
📊 주요 결과
- 16개 다양한 과제에서 매크로 평균 성공률 제로샷 프롬프팅 대비 +20.9%p
- 그래디언트 기반·기존 메모리 기반 베이스라인을 일관되게 능가
- no-regret 이론 보장과 장기 상호작용에서의 안정적 개선 확인
💭 의의 및 한계
**의의**: 배포 중에도 LLM 에이전트가 경험을 통해 성능을 끌어올릴 수 있음을 이론·실증적으로 보여, 지속 개선 AI의 토대를 마련한다. **한계**: 메모리 누적에 따른 검색 비용 및 사례 품질 관리, 그리고 보안·프라이버시 측면의 위험성은 추가 검토가 필요하다.
🚀 실용적 활용
- 도메인 특화 LLM 어시스턴트(법률·의료·코딩) 배포 후 점진적 개선
- 도구 사용·웹 에이전트의 운영 중 경험 활용
- 사용자 맞춤형 LLM 응답을 가중치 변경 없이 구현