atlas

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

Probing the Decision Boundaries of In-context Learning in Large Language Models

NeurIPS 2024 · Large language models › Language, safety and interpretability · approach: In-context learning analysis · 3 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.

Probes LLM in-context learning via decision-boundary visualization on synthetic binary classification, finds non-smooth boundaries, and tests fine-tuning, custom architectures, and uncertainty-based active sampling to smooth them.

Problem

In-context learning in LLMs is poorly understood; it is unclear whether LLM decision boundaries on simple in-context classification tasks are smooth and generalizable.

Approach

Treat LLM in-context learning as a classifier and visualize its decision boundaries over a 2D grid of queries on scikit-learn linear, circle, and moon tasks; then test fine-tuning on synthetic classification tasks, a CustomLLM with new embedding/head layers, and entropy-based active sampling to smooth boundaries.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Increase model sizePretrained LLMs · Linear, circle, and moon classification tasksdecision-boundary smoothnessNo clear effect
Increase the number of in-context examplesPretrained LLMs · Linear, circle, and moon classification tasksdecision-boundary smoothnessNo clear effect
Fine-tune on the in-context examplesLlama3-8B · Binary classification tasksdecision-boundary smoothnessNo clear effect
Fine-tune on synthetic classification tasksLlama series models · Linear, circle, and moon classification tasksdecision-boundary smoothnessHelped
Fine-tune on a single binary linear taskLlama3-8B · Unseen nonlinear, 3-class, and 4-class classification tasksdecision-boundary smoothnessHelped
Use uncertainty-aware active sampling rather than random samplingLLM in-context classification · Binary classification tasksdecision-boundary smoothnessHelped
Use uncertainty-aware active sampling rather than random samplingLLM in-context classification · Binary classification taskstest accuracyHelped
Train a transformer from scratch with the TNP objectiveTNP · Moon classification taskdecision-boundary smoothnessHelped
Fine-tune attention layers rather than only the linear head (ablation)Llama3-8B · Binary classification tasksdecision-boundary smoothnessHelped
Fine-tune the token embedding layer rather than only the linear head (ablation)Llama3-8B · Binary classification tasksdecision-boundary smoothnessHelped
Add a new input embedding layer to CustomLLM (ablation)CustomLLM · Binary classification tasksdecision-boundary smoothnessHelped
Add a new prediction head to CustomLLM (ablation)CustomLLM · Binary classification tasksdecision-boundary smoothnessNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: scikit-learn synthetic linear, circle, and moon classification tasks SUBJ financial phrasebank (FP) RTE ETHOS SST-2 AG_NEWS

Benchmarks: scikit-learn synthetic linear, circle, moon tasks SUBJ FP RTE ETHOS SST-2 AG_NEWS

Metrics: test accuracy on held-out set of 100 decision boundary smoothness (qualitative)

Baselines: SVM with polynomial kernel MLP Decision tree K-nearest neighbors TNP

Builds on: LoRA TNP MetaICL LLaMA

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