atlas

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

Content-free Logical Modification of Large Language Model by Disentangling and Modifying Logic Representation

AAAI 2025 · Large language models › Language, safety and interpretability · approach: Pruning and circuits in LLMs · 1 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 Logic Control Framework (LCF), an add-on module that disentangles transformer hidden states into content and logic spaces and moves logic representations toward logically valid regions via contrastive learning, improving logical validity of LLM conclusions while keeping content.

Problem

LLMs generate logically fallacious outputs, and their logical validity depends on content, so logical consistency is hard to fix without altering content.

Approach

Decouple hidden representations into content and logic projections; apply contrastive learning to form valid vs. invalid logic regions; shift only the logic component toward the valid region and fuse it back with unchanged content representation, then nudge the original hidden state toward the fused anchor.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add LCFLlama2 · LFUD conclusion generationValid%(GPT4): 70.58 -> 83.82Helped
add LCFLlama2 · LFUD conclusion generationValid%(Trained): 58.84 -> 96.56Helped
add LCFLlama2 · LFUD fallacy identificationAccuracy: 51.47 -> 75.00Helped
add LCFLlama2 · LFUD fallacy identification∆Probability: -1.89 -> 6.29Helped
add LCFLlama2 · LFUD conclusion generationPerplexity: 21.08 -> 12.12Helped
add LCFMistral · LFUD conclusion generationValid%(GPT4): 80.88 -> 85.71Helped
add LCFLlama3 · LFUD fallacy identificationAccuracy: 50.00 -> 76.96Helped
add reconstruction loss Lrec (ablation)LCF on Llama2 · LFUD conclusion generationValid%: 93.13 -> 96.56Helped
add content projector constraint Lcontent (ablation)LCF on Llama2 · LFUD conclusion generationValid%: 94.60 -> 96.56Helped
add logic projector constraint Llogic (ablation)LCF on Llama2 · LFUD fallacy identificationAccuracy: 51.47 -> 75.00Helped
add logic projector constraint Llogic (ablation)LCF on Llama2 · LFUD fallacy identification∆Prob.: -1.83 -> 6.29Helped
add content projector (ablation)LCF on Llama2 · LFUD conclusion generationValid%: 82.84 -> 96.56Helped

Surprising findings

Limitations

Experimental setup

Datasets: LFUD

Benchmarks: LFUD

Metrics: Valid% Perplexity Accuracy ΔProbability

Baselines: Original LLMs ITI RAHF SFT

Builds on: Inference-Time Intervention TruthX RAHF Transformer

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