atlas

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

Benchmarking and Understanding Compositional Relational Reasoning of LLMs

AAAI 2025 · Large language models › Language, safety and interpretability · approach: Mechanistic analysis of attention and representations · 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 Generalized Associative Recall (GAR), a synthetic benchmark unifying associative recall, knowledge recall and IOI for compositional relational reasoning, evaluates LLMs on it, and uses attribution patching to find circuits and True/False attention heads in Vicuna-33B.

Problem

Whether and how existing transformer LLMs solve compositional relational reasoning (CRR) tasks, given that prior synthetic benchmarks are either too hard for open LLMs to analyze mechanistically or too simple to expose LLM deficiencies, and MI studies focus on single tasks.

Approach

Unify associative recall, knowledge recall and IOI into one framework of relational loops, where non-"same" semantic relations and negation/classification variations control difficulty; then apply attribution patching to reverse-engineer circuits in a mid-sized LLM and validate identified heads via intervention.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Increase model scaleLLMs evaluated on GAR · GARaccuracyHelped
Combine two non-same semantic relations and add negationGAR generation tasks · GARaccuracyHurt
Apply syntactic variations such as swapQA or swapKVGAR tasks · GARaccuracyNo clear effect
Strongly intervene on task-relevant attention headsVicuna-33B · GAR generation and classification tasksaccuracyHelped
Weakly intervene on task-relevant attention headsVicuna-33B · GAR tasksaccuracyHelped
Intervene on pre-predicting headsVicuna-33B generation circuits · GAR generation tasksaccuracyHelped
Intervene on True/False heads while knocking out the opposite-class headsVicuna-7B, Vicuna-13B, and Vicuna-33B · GAR classification tasksaccuracy: 17%/\/14%/6%Helped
Use True/False head activations as MLP featuresVicuna-33B activations · SNLI and GoTaccuracy: 87.07$\pm$0.2; 85.63$\pm$1.8Helped
Knock out True/False heads and intervene on the opposite-class heads (ablation)Vicuna-33B · GAR classification examples sampled as correctaccuracy: 100% to 60%Hurt
Prepend randomly shuffled candidate answers when r_retrieve is not same (ablation)GAR prompts · GARaccuracyHelped
Bracket the K-V pairs with angle brackets (ablation)GAR prompts · GARaccuracyHelped
Label K-V pairs as the premise and add an Answer with Yes or No instruction (ablation)GAR classification prompts · GARaccuracyHelped

Surprising findings

Limitations

Experimental setup

Datasets: SNLI Geometry of Truth (GoT)

Benchmarks: GAR SNLI Geometry of Truth

Metrics: accuracy average probability of correct answer compositionality gap attention weight matched to pattern intervention accuracy

Baselines: Llama-2-7B Llama-2-13B Llama-3-8B Llama-3-70B Yi-34B GPT-3.5-turbo GPT-4-turbo Vicuna-7B Vicuna-13B GPT-2-Medium GPT-2-XL

Builds on: associative recall indirect object identification induction heads path patching attribution patching

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