TL;DR
Large Language Models (LLMs) frequently fail at formal logic because they confuse factual plausibility with logical validity—a cognitive shortcut known as the "content effect." This paper introduces Abstractors, lightweight modules that dynamically steer an LLM's internal activations away from semantic distractions and toward a pure, abstract reasoning space. This inference-time intervention dramatically reduces reasoning biases and transfers zero-shot across diverse languages without altering the model's underlying weights.
What Problem Does This Paper Address?
Consider the following two arguments:
- All things that have fins live in the desert. Dolphins have fins. Therefore, dolphins live in the desert. (Logically Valid, but factually Implausible)
- All flowers need water. Roses need water. Therefore, roses are flowers. (Logically Invalid, but factually Plausible)
Humans and LLMs alike systematically stumble here, often misclassifying the first as invalid and the second as valid. This is the content effect (or belief bias): background world knowledge overrides formal logical structure.
While common fixes like Chain-of-Thought (CoT) prompting help with many tasks, the authors note that CoT often just causes the model to generate highly articulate, false rationalizations that inherit the same semantic biases. On the other hand, Supervised Fine-Tuning (SFT) can fix the bias but is computationally expensive and risks "catastrophic forgetting" of general knowledge. The authors argue the core issue isn't that LLMs lack the capacity to represent logic, but rather that semantic and structural signals get misrouted during inference.
Methods
The authors propose a framework called abstraction-guided reasoning using activation steering.
- Defining the Abstract Space: They process abstract syllogisms (e.g., "All X need Y") through the LLM to capture what "pure logic" looks like in the model's internal layers. This forms the target abstract reasoning space.
- Training Abstractors: They train a single, lightweight Multi-Layer Perceptron (MLP) per layer, called an Abstractor. Using a contrastive triplet loss (attraction, repulsion, and magnitude heads), the Abstractor learns to map content-laden activations (e.g., about flowers and roses) directly onto the corresponding abstract manifold.
- Two-Pass Inference Steering: At inference time, the system performs a standard forward pass to extract the unsteered activation of the final token. The trained Abstractor uses this to predict the ideal abstract representation. The model then runs a second, steered pass, blending this predicted abstract vector into the residual stream across multiple middle layers.
Datasets
- Syllogistic Reasoning Corpus: An extension of a dataset by Bertolazzi et al. (2024), featuring 24 distinct logical forms instantiated via taxonomic relations from WordNet.
- English Dataset: 2,780 examples used for primary training and evaluation, balanced across validity and plausibility categories.
- Multilingual Evaluation Suite: 960 examples each for 9 additional languages generated via GPT-4o with back-translation quality control. This includes High-Resource Languages (HRLs) (French, Spanish, Italian, German, Russian, Chinese) and Low-Resource Languages (LRLs) (Bengali, Swahili, Telugu).
Key Insights and Ideas
- Logic is Language-Agnostic: Abstractors trained exclusively on English transferred remarkably well to high-resource languages like Chinese and Russian. Because it works across entirely different scripts and tokenizers, it proves that the middle layers of LLMs host a deep, structural "logic manifold" that transcends surface-level text.
- The Geometry Gap in Low-Resource Languages: While transfer to HRLs was near-perfect, performance gains in LRLs (like Telugu or Swahili) were noticeably muted. The authors attribute this to a "geometry gap": because LRLs have less exposure during pre-training, their internal base representations are noisier and less structured, leaving less latent geometry for the steering mechanism to amplify.
- The Factual vs. Reasoning Trade-off: Out-of-domain testing on MMLU revealed that steering for pure logic slightly suppresses factual recall. This "feature suppression" confirms that formal reasoning and factual memory compete for the same internal pathways within the network.
Key Results
The primary metric used was Bias-Penalized Accuracy (BPA), which scales global accuracy by the model's robustness against belief bias.
- Massive Bias Reduction: Activation steering yielded dramatic BPA improvements across all tested model families (Qwen, Gemma, Mistral). The most striking improvement was seen in Mistral-7B, where BPA skyrocketed by +65.94 percentage points (from a heavily biased 30.16 to a highly competent 96.10).
- Outperforming Baselines: Activation steering consistently outperformed Chain-of-Thought prompting, which frequently failed in belief-conflict scenarios. It performed on par with or better than weight-modifying SFT (via PiSSA) without any of the associated risks of altering model weights.
Limitations and Future Work
- Scope of Logic: The study is strictly limited to categorical syllogisms. It remains an open question how well this approach scales to more complex formalisms like propositional logic, first-order logic, or multi-hop inference.
- Dependency on Parallel Data: The framework relies on the ability to cleanly map a content-laden prompt to an abstract symbolic counterpart, which may be difficult to construct for more open-ended or ambiguous reasoning tasks.
- Open-Weights Only: Because the method requires direct, multi-layer intervention in the residual stream during the forward pass, it cannot currently be applied to closed-source proprietary models hidden behind APIs.
Summary updated