atlas

Research map / Architectures and efficiency / RNNs and normalization

Efficient Sketches for Training Data Attribution and Studying the Loss Landscape

NeurIPS 2024 · Architectures and efficiency › RNNs and normalization · approach: Dataset condensation and flow estimation · 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.

Proposes scalable gradient and Hessian-vector-product sketching algorithms (AFFD, AFJL, QK) that avoid lookup bottlenecks on TPUs/GPUs, and uses them to study training data attribution, intrinsic dimension, and LLM Hessian spectra.

Problem

Storing many gradients or Hessian-vector products for training data attribution, intrinsic dimension estimation, and Hessian eigenvalue analysis is memory-prohibitive; existing sketches (dense projections, FJL, Fastfood) scale poorly on modern accelerators.

Approach

Replace lookup-based sparse projections and Fastfood with randomized Hadamard/Kronecker-structured preconditioners (AFFD, AFJL) and random Haar-orthogonal Kronecker factors (QK), with theoretical concentration guarantees and explicit (rather than implicit) sketching for faster wall time.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace FJL with AFJL to remove lookup-based operationsGPT-2 gradient sketch on TPU (v2) · GPT-2 gradient sketch, TPU (v2)wall time: 8997 -> 89 msHelped
Replace FFD with AFFD to remove lookup-based operationsGPT-2 gradient sketch on TPU (v2) · GPT-2 gradient sketch, TPU (v2)wall time: 8694 -> 134 msHelped
Use explicit rather than implicit sketching (ablation)gradient sketch algorithms · Gradient sketching, GPU (V100)wall time speed-up ratio: 1.96; 1.81; 1.76; 1.64; 1.41Helped
Replace the Walsh-Hadamard pre-conditioner with FFT (ablation)AFFD and AFJL · Gradient sketching, GPU (V100)wall time speed-up ratio: 1.98; 1.64Helped
Replace the Walsh-Hadamard pre-conditioner with Q (ablation)AFFD and AFJL · Gradient sketching, GPU (V100)wall time speed-up ratio: 1.45; 1.44Helped
Remove lookup operations through accelerator-oriented sketch design (ablation)FJL and FFD · Gradient sketching, GPU (V100)peak memory: 2.4x for FJL to AFJL; 1.3x for FFD to AFFDHelped
Use QK instead of AFJLGPT-2 gradient sketch on GPU (V100) · GPT-2 gradient sketch, GPU (V100)wall time: 116 -> 82 msHelped
Use QK instead of AFJLGPT-2 HVP sketch on TPU (v2) · GPT-2 HVP sketch, TPU (v2)wall time: 108 -> 82 msHelped
Restrict gradients to a selected layer instead of using full gradients (ablation)GPT-2 training-data attribution · WikiText-103 TDA gradient inner productsPearson correlation: 0.16; 0.75; 0.89; 0.90; 0.89; 0.78; 0.38Hurt
Use AFJL sketches rather than full gradients for TDA scoresGPT-2 training-data attribution · WikiText-103 TDA gradient inner productsPearson correlation: 98%Helped
Use a larger target dimension for QK than AFFDgradient inner-product sketching · TDA gradient inner productsminimum log2 D for r > 0.95: 10 -> 14Hurt
Use a larger target dimension for QK than AFFDHessian top 10 eigenvalue reconstruction · Hessian eigenvalue estimationminimum log2 D for relative error < 0.05: 10 -> 13Hurt

Surprising findings

Limitations

Experimental setup

Datasets: WikiText-103 zsRE SNLI XSUM

Benchmarks: SNLI XSUM WikiText-103 zsRE

Metrics: Pearson correlation wall-time (ms) peak memory (GB) relative mean absolute error of eigenvalues Rouge1 Rouge2 accuracy

Baselines: FJL FFD TRAK dense random projection layer selection

Builds on: Fastfood transform Fast Johnson-Lindenstrauss transform TRAK intrinsic dimension of fine-tuning (Aghajanyan et al.)

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