atlas

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

DOCS: Quantifying Weight Similarity for Deeper Insights into Large Language Models

ICLR 2025 · Large language models › Language, safety and interpretability · approach: LLM pruning and scaling data · 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.

Introduces DOCS, a Gumbel-fitted distribution-of-maximum-cosine-similarity index for comparing LLM weight matrices, shown to discriminate between orthogonal matrices, and used to reveal adjacent-layer similarity and layer clusters in open LLMs.

Problem

Existing representation-similarity indices (CCA, SVCCA, linear CKA, HSIC) are not suited to comparing LLM weight matrices: they are constant or dimension-dependent on orthogonal matrices, and representation similarity does not imply weight similarity due to residual connections.

Approach

DOCS computes the absolute cosine similarity between each column of one weight matrix and its best-matching column in the other, fits Gumbel distributions to these maxima for both directions, and averages the location parameters, so it can distinguish orthogonal matrices and captures strong per-neuron alignments.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use DOCS instead of the evaluated similarity indices to compute weight-similarity heatmapsMLP-Up layers of Meta-Llama-3.1-8B-Instruct · MLP-Up, Meta-Llama-3.1-8B-InstructGini coefficientHelped
Compare adjacent transformer layers with farther-apart layers using DOCSOpen-source LLM weight matrices · Transformer layers across open-source LLMsDOCS similarityMixed
Compare base and instruction-tuned weights using DOCSyi-1.5, Llama-3.1, and gemma-2 · Base versus instruction-tuned model weight matricesDOCS similarityNo clear effect

Surprising findings

Limitations

Experimental setup

Metrics: DOCS similarity index Gini coefficient

Baselines: Linear Regression CCA SVCCA Linear HSIC Linear CKA

Builds on: Canonical Correlation Analysis (CCA) SVCCA linear CKA Hilbert-Schmidt Independence Criterion (HSIC)

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