atlas

Research map / Large language models / Language, safety and interpretability

Instruction Embedding: Latent Representations of Instructions Towards Task Identification

NeurIPS 2024 · Large language models › Language, safety and interpretability · approach: Task vectors and steering · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces instruction embeddings that prioritize task identification over semantics, builds the IEB benchmark of 47k instructions labeled by task category, and proposes PIE, a prompt-based embedding method (optionally fine-tuned with contrastive learning and verb-noun hard negatives).

Problem

Standard text embeddings capture overall semantics of instructions, but instruction-related tasks (data selection, demonstration retrieval) need embeddings that identify the task category an instruction represents.

Approach

Treat instruction embedding as a task-focused subset of text embedding: label instructions by verb-noun task categories derived from parsing, and use a task-oriented prompt on the LLM's last-token hidden state (PIE), further refined by supervised contrastive fine-tuning with label-based positives and verb/noun-overlap hard negatives.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use the PIE prompt instead of no promptLlama2 without fine-tuning · IEB instruction clusteringARI: 0.1813 -> 0.4814Helped
Use the PIE prompt instead of a semantic promptLlama2 without fine-tuning · IEB instruction clusteringARI: 0.4238 -> 0.4814Helped
Use the PIE prompt instead of no promptVicuna without fine-tuning · IEB instruction clusteringARI: 0.1198 -> 0.5305Helped
Use the PIE prompt instead of a semantic promptVicuna without fine-tuning · IEB IIS testIIS-Spearman: 0.6934 -> 0.7534Helped
Use the PIE prompt instead of no promptBERT without fine-tuning · IEB instruction clusteringARI: 0.3113 -> 0.2474Hurt
Add supervised fine-tuning on EFT-trainLlama2 with PIE prompt · IEB instruction clusteringARI: 0.4814 -> 0.9125Helped
Add supervised fine-tuning on EFT-trainBERT with PIE prompt · IEB instruction clusteringARI: 0.2474 -> 0.8974Helped
Add PIE prompt instead of no promptsupervised fine-tuned Llama2 · IEB instruction clusteringARI: 0.7541 -> 0.9125Helped
Add PIE prompt instead of no promptsupervised fine-tuned BERT · IEB instruction clusteringARI: 0.8837 -> 0.8974Helped
Remove hard negative sampling (ablation)supervised fine-tuned models with different prompts · IEB instruction clustering and IIS testperformanceHurt
Use the Last two hidden layers instead of the Last one (ablation)Llama2 without fine-tuning · IEB instruction clusteringARI: 0.3096 -> 0.3151Mixed
Use First-Last hidden layers instead of Last two (ablation)Llama2 without fine-tuning · IEB instruction clusteringARI: 0.3151 -> 0.3157Helped

Surprising findings

Limitations

Experimental setup

Datasets: Databricks Dolly Alpaca (cleaned) Self-Instruct GSM8K MATH MBPP LIMA OpenAssistant (oasst1) WizardLM ShareGPT

Benchmarks: IEB AlpacaEval

Metrics: ARI clustering purity homogeneity silhouette score Spearman correlation (IIS) win rate

Baselines: BERT Llama2 (no prompt) Vicuna-7b-v1.5 unsupervised SimCSE unsupervised PromptBERT TART (tart-dual-contriever-msmarco) tart-full-flan-t5-xl

Builds on: SimCSE PromptBERT LoRA LIMA

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy