LLMs can now directly process vector data from diverse domains by projecting it into their embedding space
Vector-ICL (in-context learning) outperforms few-shot ICL and domain-specific models across various tasks:
By aligning input data with an LLMβs embedding space through lightweight projectors, the Paper observes that LLMs can effectively process and learn from these projected vectors, which they term Vector-ICL.
- Text classification: Up to 98.16% accuracy (SST2 dataset)
- Text summarization: 20.49 RougeL score (XLSum dataset)
---------
π https://arxiv.org/abs/2410.05629
Original Problem π:
LLMs excel at in-context learning (ICL) with textual data, but their capabilities with continuous vectors from diverse domains remain unexplored.
-----
Solution in this Paper π§ :
β’ Vector-ICL: Technique enabling LLMs to perform ICL on continuous vector representations
β’ Embedding projection: Aligns input data with LLM's embedding space using lightweight projectors
β’ Two-step process: Pretraining projectors with language modeling objectives, then fine-tuning on specific tasks
β’ Applicable across various modalities: Text, numerical data, molecules, time series, graphs, and brain fMRI
--------
Architecture ποΈ
Input embeddings and LLM embeddings live in different vector spaces
-> Takes any input (text, numbers, brain fMRI, time series, graphs)
-> Input first goes through an encoder to get embeddings
-> These embeddings are transformed via "projector" to match LLM's embedding space dimension
-> The projected vectors are used as special tokens (box tokens β‘) in prompts
-----
Key Insights from this Paper π‘:
β’ LLMs can process and learn from continuous vector representations beyond discrete tokens
β’ Vector-ICL bridges non-textual domains with LLMs without extensive retraining
β’ Enhances LLMs' numerical reasoning and cross-modal capabilities
β’ Demonstrates LLMs' flexibility in adapting to different input representations
β’ Enables efficient use of LLMs in scientific and technical domains
-----
More on the Results π:
- Time-series and graph classification: Surpasses domain-specific models
- Brain fMRI decoding: Exceeds random baselines in text reconstruction
β’ Demonstrates effectiveness in cross-modal tasks like molecule captioning










