Research map / Large language models / Language, safety and interpretability
Exploiting Language Model Prompts Using Similarity Measures: A Case Study on the Word-in-Context Task
Mohsen Tabasi, Kiamehr Rezaee, Mohammad Taher Pilehvar
Iran University of Science and Technology · Cardiff University · Khatam 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
- SST-2 leaderboard accuracy 91.8 · rank 165 of 272 papers
- WiC leaderboard accuracy 70.2 · rank 10 of 38 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| compare mask embeddings of two prompts via Spearman similarity instead of a single prompt response | prompt-based few-shot · WiC test | accuracy: 49.4 (GPT3) -> 70.2 | Improved |
| use Spearman instead of cosine similarity (ablation) | Similarity Prompting (RoBERTa-Large) · WiC test | accuracy: 63.6 -> 70.2 | Improved |
| use Spearman instead of cosine similarity (ablation) | Similarity Prompting · SST-2 and SICK-E | accuracy: SST-2 manual 89.1 -> 89.2 | No clear effect |
| zero the most dominant embedding dimension for cosine similarity (ablation) | SP-Cosine · WiC | accuracy: around +10 absolute | Improved |
| zero the most dominant embedding dimension for cosine similarity (ablation) | SP-Cosine · SST-2 and SICK-E | accuracy | No clear effect |
| use SP with a manual prompt instead of AutoPrompt's manual prompt | AutoPrompt · SST-2 test | accuracy: 85.2 -> 89.2 | Improved |
| use SP with auto-generated prompt instead of AutoPrompt | AutoPrompt · SST-2 test | accuracy: 91.4 -> 91.8 (Spearman), 90.7 (cosine) | No clear effect |
| use SP instead of AutoPrompt with auto-generated prompt | AutoPrompt · SICK-E test (standard) | accuracy: 65.0 -> 62.1 (cosine), 61.6 (Spearman) | Hurt |
| use SP with manual prompt instead of AutoPrompt auto-generated prompt (ablation) | SP · SICK-E test (standard) | accuracy: 62.1 -> 77.3 (cosine) | Improved |
| switch PLM from RoBERTa-Large to BERT-Large-Cased with cosine (ablation) | SP-Cosine · WiC test | accuracy: 63.6 -> 69.4 | Improved |
| use smaller or causal PLM (GPT2-Base, Spearman) (ablation) | SP-Spearman · WiC test | accuracy: 70.2 -> 62.6 | Hurt |
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
- Cutting Down on Prompts and Parameters: Simple Few-Shot Learning with Language Models (ACL 2022 · similarity 0.91)
- Demystifying Prompts in Language Models via Perplexity Estimation (EMNLP 2023 · similarity 0.91)
- Automated Few-Shot Classification with Instruction-Finetuned Language Models (EMNLP 2023 · similarity 0.91)
- Avoiding Inference Heuristics in Few-shot Prompt-based Finetuning (EMNLP 2021 · similarity 0.91)
- Zero-Shot Continuous Prompt Transfer: Generalizing Task Semantics Across Language Models (ICLR 2024 · similarity 0.89)
- A Similarity Paradigm Through Textual Regularization Without Forgetting (AAAI 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.