atlas

Research map / Large language models / Instruction and fine-tuning

The Representation Landscape of Few-Shot Learning and Fine-Tuning in Large Language Models

NeurIPS 2024 · Large language models › Instruction and fine-tuning · approach: Efficient LLM fine-tuning systems · 4 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.

Compares the internal representation geometry of few-shot in-context learning and LoRA fine-tuning on MMLU across Llama2, Llama3 and Mistral models using density-peak clustering and intrinsic dimension analysis.

Problem

Although in-context learning (ICL) and supervised fine-tuning (SFT) often yield similar task performance, it is unknown whether they induce similar internal representations in LLMs.

Approach

Applies a density-based mode-seeking clustering (Advanced Density Peaks, with intrinsic dimension estimated by Gride) to last-token hidden representations, showing that ICL organizes early layers hierarchically by MMLU subject while fine-tuning sharpens answer-letter clusters in later layers, with a transition at an intrinsic-dimension peak around the middle layers.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add a 5-shot prompt instead of using 0-shot promptingMMLU evaluation across the reported models · MMLU testmicro accuracy: 62.1 -> 65.1 (Llama3-8b); 75.0 -> 78.5 (Llama3-70b); 55.9 -> 62.1 (Mistral-7b); 37.5 -> 45.9 (Llama2-7b); 52.0 -> 54.8 (Helped
Add a 5-shot prompt to organize early representations by subjectLlama3-8b, Llama3-70b, and Mistral-7b · MMLU subjects, early layersARI: below 0.27 -> 0.82 (Llama3-8b); below 0.27 -> 0.72 (Llama3-70b); below 0.27 -> 0.63 (Mistral-7b)Helped
Use LoRA fine-tuning rather than few-shot prompting to structure later representations by answer letterLlama3-8b, Llama3-70b, and Mistral-7b · MMLU answers, later layersARI: few-shot below 0.05; fine-tuned approximately 0.25 (Llama3-8b), 0.45 (Llama3-70b), 0.2 (Mistral-7b)Helped
Increase few-shot context lengthEarly hidden representations across the analyzed LLMs · MMLU subjects, early layersARI: Llama2-7b: 0.76; Llama2-13b: 0.64; Llama2-70b: 0.80 (5-shot)Helped
Use 5-shot prompting instead of fine-tuning on the additional QA dataset mixtureLlama3-8b · Additional QA dataset mixtureaccuracy: 57% -> 58% (5-shot to fine-tuned)No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: MMLU

Benchmarks: MMLU

Metrics: adjusted rand index intrinsic dimension accuracy (macro/micro) number of density peaks core point fraction neighborhood overlap

Baselines: 0-shot 5-shot in-context learning

Builds on: Advanced Density Peaks Gride LoRA DADApy

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