Research map / Large language models / Language, safety and interpretability
Token Prepending: A Training-Free Approach for Eliciting Better Sentence Embeddings from LLMs
Yuchen Fu, Zifeng Cheng, Zhiwei Jiang, Zhonghui Wang, Yafeng Yin, Zhengliang Li, Qing Gu
Nanjing University
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.
On benchmark leaderboards
- STS-B leaderboard Spearman correlation 80.67 · rank 17 of 23 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add Token Prepending to PromptEOL | PromptEOL (LLaMA2-7B) · STS avg | Spearman correlation: 70.03 -> 77.19 | Improved |
| add Token Prepending to MetaEOL | MetaEOL (LLaMA2-7B) · STS avg | Spearman correlation: 75.96 -> 77.91 | Improved |
| add Token Prepending to Pretended CoT | Pretended CoT (LLaMA2-7B) · STS avg | Spearman correlation: 76.86 -> 77.54 | Improved |
| add Token Prepending to Pretended CoT on Qwen2-7B | Pretended CoT (Qwen2-7B) · STS avg | Spearman correlation: 72.94 -> 75.11 | Improved |
| add Token Prepending to Pretended CoT on Gemma2-9B | Pretended CoT (Gemma2-9B) · STS avg | Spearman correlation: 77.02 -> 77.52 | Improved |
| add Token Prepending to PromptEOL | PromptEOL (LLaMA2-7B) · SentEval transfer avg | accuracy: 90.94 -> 91.42 | Improved |
| add Token Prepending to Pretended CoT | Pretended CoT (LLaMA2-7B) · MRPC (transfer) | accuracy: 75.77 -> 76.81 | Improved |
| place PST token right after the input text instead of before it (ablation) | PromptEOL + TP · STS avg | Spearman correlation: 77.19 -> 75.54 | Hurt |
| vary PST token initialization (zeros, ones, uniform, Gaussian, space token) (ablation) | Pretended CoT + TP · STS avg | Spearman correlation: 77.53 to 77.55 | No clear effect |
| remove initial PST token before intermediate prepending (ablation) | TP · STS avg | Spearman correlation | Hurt |
| replace causal attention with bidirectional attention (last token / input sentence) (ablation) | Pretended CoT · STS avg | Spearman correlation: 76.86 -> 53.06 / 43.70 | Hurt |
| start intermediate token prepending later than the second layer (ablation) | TP (LLaMA2-7B) · STS avg | Spearman correlation | Hurt |
Open problems in pruning and circuits in LLMs
Can circuit and interpretability findings be shown to be causal, and to hold on larger and closed models?
- Larger models than the ones studied are left untested. · 17 papers state it
- Evaluated on English only, so other languages are untested. · 11 papers state it
- Findings are correlational, with no causal test of what the model uses. · 8 papers state it
Closest papers by meaning
- Contrastive Prompting Enhances Sentence Embeddings in LLMs through Inference-Time Steering (ACL 2025 · similarity 0.92)
- Compressing Sequences in the Latent Embedding Space: K-Token Merging for Large Language Models (EMNLP 2026 · similarity 0.91)
- LLM-based Embeddings: Attention Values Encode Sentence Semantics Better Than Hidden States (ICML 2026 · similarity 0.90)
- Prompt Compression with Context-Aware Sentence Encoding for Fast and Improved LLM Inference (AAAI 2025 · similarity 0.90)
- Leveraging Attention to Effectively Compress Prompts for Long-Context LLMs (AAAI 2025 · similarity 0.89)
- NV-Embed: Improved Techniques for Training LLMs as Generalist Embedding Models (ICLR 2025 · similarity 0.89)
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.