atlas

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

Mechanistically analyzing the effects of fine-tuning on procedurally defined tasks

ICLR 2024 · Large language models › Instruction and fine-tuning · approach: Fine-tuning generalization and delta compression · 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.

Mechanistic study on synthetic tasks (Tracr-compiled transformers and PCFG-trained minGPT) plus TinyStories shows fine-tuning mostly learns localized wrappers over pretrained capabilities rather than altering them, and these can be revived by reverse fine-tuning.

Problem

Understanding how fine-tuning alters a pretrained model's underlying capabilities: does it create novel capabilities, delete them, or only modulate existing ones, and how pernicious is this for safety?

Approach

Defines capabilities and their relevance to fine-tuning tasks, then uses controlled synthetic settings with mechanistic tools (pruning, attention maps, linear probes) plus a proposed reverse fine-tuning (reFT) protocol to show fine-tuning typically learns a minimal, localized wrapper over the existing capability, which can be revived sample-efficiently.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Reverse fine-tune after Filtering (η_M) to generate stories with twistsTinyStories-Instruct models fine-tuned to avoid twists · TinyStories-Instructtwist proportion at iteration 30: 81% vs 31%Helped
Use Filtering + Randomisation (η_M), then reverse fine-tune (ablation)TinyStories-Instruct models fine-tuned to avoid twists · TinyStories-Instructtwist proportion at iteration 30: 56% vs 31%Helped
Use Filtering + Mix & Match (η_M), then reverse fine-tune (ablation)TinyStories-Instruct models fine-tuned to avoid twists · TinyStories-Instructtwist proportion at iteration 30: 88% vs 31%Helped
Use a small learning rate (η_S) for Filtering, then reverse fine-tune (ablation)TinyStories-Instruct models fine-tuned to avoid twists · TinyStories-Instructtwist proportion at iteration 30: 88% vs 31%Helped
Use Filtering + Randomisation with a small learning rate (η_S), then reverse fine-tune (ablation)TinyStories-Instruct models fine-tuned to avoid twists · TinyStories-Instructtwist proportion at iteration 30: 44% vs 31%Helped
Use Filtering + Mix & Match with a small learning rate (η_S), then reverse fine-tune (ablation)TinyStories-Instruct models fine-tuned to avoid twists · TinyStories-Instructtwist proportion at iteration 30: 81% vs 31%Helped
Prune a small number of neurons from the fine-tuned model (ablation)PCFG Counter model · Pretraining task: count O_PTaccuracyHelped
Increase the pretraining sampling probability of the fine-tuning target token (ablation)PCFG Counter model · Fine-tuning test data with and without spurious correlationaccuracyHelped
Use a larger fine-tuning learning rate when the pretraining capability is not weakly relevant (ablation)Tracr Counter model · Tracr Counterattention to the pretraining targetHurt
Fine-tune at a lower learning rate (ablation)TinyStories-Instruct models fine-tuned to avoid twists · TinyStories-Instructprobe accuracy for the twist featureNo clear effect
Reverse fine-tune on data from the original pretraining distributionPCFG and Tracr fine-tuned models · Pretraining tasksaccuracyHelped

Surprising findings

Limitations

Experimental setup

Datasets: PCFG-generated synthetic strings TinyStories-Instruct

Benchmarks: synthetic Counter task (PCFG) Max-identifier and Counter (Tracr) TinyStories twist feature probing and reFT

Metrics: accuracy linear probe accuracy loss during reverse fine-tuning percent of stories with twist

Baselines: Scr.+FT (scratch-pretrained-then-finetuned control) Not in PT control model

Builds on: Tracr PCFG pretraining setup minGPT

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