Vector-ICL: In-context Learning with Continuous Vector Representations

Yufan Zhuang, Chandan Singh, Liyuan Liu, Jingbo Shang, Jianfeng Gao
2/12/2026

No official code found. Best implementation: EvanZhuang/vector-icl (25 stars, MIT, last commit 2025-06-02).

Abstract

Large language models (LLMs) have shown remarkable in-context learning (ICL) capabilities on textual data. We explore whether these capabilities can be extended to continuous vectors from diverse domains, obtained from black-box pretrained encoders. By aligning input data with an LLM's embedding space through lightweight projectors, we observe that LLMs can effectively process and learn from these projected vectors, which we term Vector-ICL. In particular, we find that pretraining projectors with general language modeling objectives enables Vector-ICL, while task-specific finetuning further enhances performance. In our experiments across various tasks and modalities, including text reconstruction, numerical function regression, text classification, summarization, molecule captioning, time-series classification, graph classification, and fMRI decoding, Vector-ICL often surpasses both few-shot ICL and domain-specific model or tuning. We further conduct analyses and case studies, indicating the potential of LLMs to process vector representations beyond traditional token-based paradigms.

View on arXivView PDF

Code Implementations(1)

MIT

Official implementation of Vector-ICL: In-context Learning with Continuous Vector Representations (ICLR 2025)

253Oct 4, 20241 years agoMIT

Similar Papers

Cite this paper

@article{zhuang2026vectoricl,
  title  = {Vector-ICL: In-context Learning with Continuous Vector Representations},
  author = {Yufan Zhuang and Chandan Singh and Liyuan Liu and Jingbo Shang and Jianfeng Gao},
  year   = {2026},
  eprint = {2410.05629},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2410.05629},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.05629.svg)](https://codeofpaper.com/paper/2410.05629)

Discussion