arXiv:2607.27766v1 cs.CL

온디바이스 문맥 내 학습을 위한 그래디언트 불필요 태스크 조건부 검색

Gradient-free Task-Conditioned Retrieval for On-Device In-Context Learning

Xinyu Luo, Hui Liu, Yihua Shao, Junyi Yang, Arindam Basu, Haoliang Li

제출 2026-07-30

한국어 초록

온디바이스 문맥 내 학습(ICL)은 다운스트림 모델 추론(inference) 전에 유용한 컨텍스트를 구성할 예시(demonstration)를 선택하기 위해 추론 전 검색에 의존합니다. 이러한 검색은 제한된 연산, 메모리, 데이터 노출 예산 하에서 로컬 메모리를 기반으로 동작하면서도 태스크 특화 정보를 활용해야 합니다. 본 논문에서는 쌍을 이루는 후보 입력과 출력을 사용하여 고정된(frozen) 인코더를 태스크 조건부 검색기로 변환하는 그래디언트(gradient)가 필요 없는 프레임워크인 CoRA(Conditional Retrieval Alignment)를 제안합니다. CoRA는 상호보완적인 인코더 레이어를 선택하고, 후보 메모리로부터 출력 기반 조건화 공간을 구축하며, 닫힌 형식(closed-form)의 릿지 회귀를 통해 후보 입력 표현을 이 공간에 정렬합니다. 이후 저랭크 분해(low-rank factorization)를 통해 압축된 검색 기저를 생성하며, 여기서 후보 출력은 오프라인 인덱스 구축 시에만 사용되고 쿼리 시점의 검색에는 쿼리 입력과 사전 계산된 인덱스만 필요합니다. 본 연구는 CoRA의 랭크 제약 기저가 출력 조건부 적합 표현의 최적 저랭크 압축임을 보이고, 전체 적합 행렬의 실체화를 방지하는 정확한 2패스 스트리밍 구축 방식을 유도합니다. 나아가 시각적 표현을 조건화 및 검색 공간에 통합하여 이 프레임워크를 멀티모달 예시 검색으로 확장합니다. Llama-3.2-1B, MobileLLM-Pro, OpenFlamingo-3B, Qwen3.5-2B를 활용한 10개의 텍스트 데이터셋 및 4개의 멀티모달 벤치마크 실험과 Raspberry Pi 5에서의 엔드투엔드 배포를 통해, CoRA가 검색기 미세조정(fine-tuning), 역전파(backpropagation) 또는 타깃 모델 호출 없이도 효과적인 태스크 조건부 검색을 지원함을 입증합니다.

원문 초록

On-device in-context learning (ICL) relies on pre-inference retrieval to select demonstrations for useful context before downstream model inference. This retrieval must exploit task-specific information while operating over local memories under limited computation, memory, and data-exposure budgets. We propose Conditional Retrieval Alignment (CoRA), a gradient-free framework that converts a frozen encoder into a task-conditioned retriever using paired candidate inputs and outputs. CoRA selects complementary encoder layers, constructs an output-derived conditioning space from candidate memory, and aligns candidate input representations to this space through closed-form ridge regression. Low-rank factorization then produces a compact retrieval basis where candidate outputs are used only during offline index construction, whereas query-time retrieval requires only the query input and precomputed index. We show that CoRA's rank-constrained basis is the optimal low-rank compression of the output-conditioned fitted representation, and derive an exact two-pass streaming construction that avoids materializing the full fitted matrix. We further extend the framework to multimodal exemplar retrieval by incorporating visual representations into the conditioning and retrieval spaces. Experiments across ten textual datasets and four multimodal benchmarks with Llama-3.2-1B, MobileLLM-Pro, OpenFlamingo-3B, and Qwen3.5-2B, as well as end-to-end Raspberry Pi~5 deployment demonstrate that CoRA supports effective task-conditioned retrieval without retriever fine-tuning, backpropagation, or target-model calls.

제출 이력

확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.

  1. arXiv:2607.27766v1제출 시각 미확인

함께 살펴볼 논문

공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.

공통 태그로 연결된 공개 논문이 아직 없습니다.

토론

이 논문과 연결된 포럼 글이 아직 없습니다.