Research map / Large language models / Language, safety and interpretability
Embedding-based In-Context Prompt Training for Enhancing LLMs as Text Encoders
Ailiang Lin, Zhuoyun Li, Keyu Mao, Kotaro Funakoshi, Manabu Okumura
Institute of Science Tokyo · Tencent
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| train with embedding-based in-context prompts (EPIC) and use demonstrations at inference | Mistral-7B · MTEB (56 datasets) | average score: 65.33 -> 66.37 | Improved |
| train with EPIC but run without demonstrations at inference | Mistral-7B · MTEB (56 datasets) | average score: 65.33 -> 66.11 | Improved |
| train with EPIC and use demonstrations | Qwen2.5-7B · MTEB (56 datasets) | average score: 65.05 -> 65.97 | Improved |
| replace discrete demonstrations with embeddings (EPIC) vs bge-en-icl | Mistral-7B · MTEB (56 datasets) | average score: 66.18 -> 66.37 | Improved |
| remove the query-passage embeddings from the in-context prompt (ablation) | EPIC · MTEB 26-dataset subset | average score: 71.50 -> 70.71 | Hurt |
| compress the instruction as well as the query-passage pair (ablation) | EPIC · MTEB 26-dataset subset | average score: 71.50 -> 71.22 | Hurt |
| use several continuous vectors per query/passage instead of one (ablation) | EPIC · MTEB 26-dataset subset | average score: 71.50 -> 71.30 (sample-16) | No clear effect |
| replace demonstration embeddings with learnable tokens (ablation) | EPIC · MTEB 26-dataset subset | average score: 71.50 -> 71.05 | Hurt |
| switch to bidirectional attention (ablation) | EPIC · MTEB 26-dataset subset | average score: 71.50 -> 70.83 (EOS pooling) | Hurt |
| increase training demonstrations from 5 to 8 (ablation) | EPIC · MTEB 26-dataset subset | average score: 71.50 -> 71.43 | No clear effect |
| use EPIC instead of textual ICL for training time | Mistral-7B · training time | training time overhead: over 60% -> about 19% | Improved |
| lower LoRA rank from 64 to 16 (ablation) | EPIC · MTEB 26-dataset subset | average score: 71.50 -> 71.39 | No clear effect |
Open problems this paper states
- “Evaluated only on LLMs from 1B to 8B parameters due to hardware constraints.” → Only a few small or medium open models were tested. (an open problem in in-context learning analysis)
Open problems in in-context learning analysis
Which in-context learning methods hold up beyond English classification on small open models, and what do they cost?
- Only a few small or medium open models were tested. · 14 papers state it
- The method needs many extra LLM calls or passes. · 13 papers state it
- Evaluated on English data only, with other languages untested. · 12 papers state it
Closest papers by meaning
- Making Text Embedders Few-Shot Learners (ICLR 2025 · similarity 0.93)
- NV-Embed: Improved Techniques for Training LLMs as Generalist Embedding Models (ICLR 2025 · similarity 0.90)
- A Comprehensive Study of Decoder-Only LLMs for Text-to-Image Generation (CVPR 2025 · similarity 0.89)
- In-context Vectors: Making In Context Learning More Effective and Controllable Through Latent Space Steering (ICML 2024 · similarity 0.89)
- In-context Autoencoder for Context Compression in a Large Language Model (ICLR 2024 · similarity 0.88)
- Towards Auto-Regressive Next-Token Prediction: In-context Learning Emerges from Generalization (ICLR 2025 · similarity 0.88)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.