atlas

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

An Auditing Test to Detect Behavioral Shift in Language Models

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

Formalizes behavioral shift auditing as a sequential hypothesis test and extends deep anytime-valid testing (DAVT) with a tolerance parameter epsilon, using a neural net distance and betting score, to detect toxicity and translation behavior shifts in LLMs with hundreds of prompts.

Problem

Detecting unintended changes in language model behavior distributions after fine-tuning or deployment modifications, using only black-box access and with controlled false positives and a tolerance for acceptable changes.

Approach

Extends the deep anytime-valid two-sample test (testing by betting) to a composite null with tolerance epsilon, defining a neural net distance (IPM over a restricted function class) and an e-variable betting score so that the wealth process is an e-process with anytime Type I error control.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use few-shot prompting instead of a simple promptLlama3-8B-Instruct · SuperNI translationmean BLEU: 0.1683 to 0.1765Helped
use Aya-23-8B instead of Llama3-8B-Instructtranslation model · SuperNI translationmean BLEU: 0.1683 to 0.2970Helped
fine-tune Llama3-8B-Instruct on unrelated SuperNI tasksLlama3-8B-Instruct · REALTOXICITYPROMPTSmean toxicityHurt
increase the tolerance εbehavioral shift auditing test · REALTOXICITYPROMPTS toxicity auditdetection rateHurt
use the auditing test to compare corrupted checkpoints with the aligned modelLlama3-8B-Instruct · REALTOXICITYPROMPTS toxicity audit, ε=0detection rate: almost 80%Helped
use different random seeds for generations from the same aligned modelbehavioral shift auditing test · REALTOXICITYPROMPTS false-positive evaluationfalse positive rate: below 0.05No clear effect
set ε to the sampling-variation threshold and test instruction-tuned variantsLlama3-8B-Instruct behavioral audit · REALTOXICITYPROMPTS toxicity audit, ε=0.0038detection rate: 100%Helped
compare simple-prompted Llama3 with Aya-23-8B using the auditing testLlama3-8B-Instruct · SuperNI translation auditdetection: nearly all cases after only $100$ samplesHelped

Surprising findings

Limitations

Experimental setup

Datasets: RealToxicityPrompts BeaverTails Super-NaturalInstructions uncensored-vortex

Benchmarks: RealToxicityPrompts Super-NaturalInstructions translation subset

Metrics: detection rate false positive rate Wasserstein distance neural net distance BLEU mean toxicity

Baselines: E-C2ST Seq-IT

Builds on: Deep Anytime-Valid Testing (DAVT) testing by betting Ville's inequality integral probability metric

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