Abstract
This paper challenges the current dominance of decoder-only Large Language Models (LLMs) by demonstrating that encoder and encoder-decoder architectures are fundamentally better suited for causal reasoning. While massive decoder-only models like GPT-5 can achieve high accuracy through sheer scale, smaller fine-tuned encoders prove more robust, efficient, and capable of generalizing to non-natural language scenarios. Our findings suggest that the recursive, token-by-token nature of decoders makes them prone to accumulating local noise, whereas encoders provide a more stable foundation for structured logical deduction.
Introduction
The current landscape of Artificial Intelligence is dominated by decoder-only architectures, such as GPT-4, Claude, and Llama. While these models excel at fluid text generation, they often struggle with "causal reasoning"—the ability to chain multiple logical steps (multi-hop) and satisfy strict conditions (conjunctive control).
We hypothesize that the autoregressive nature of decoders is inherently brittle for complex logic. When reasoning chains deepen or the linguistic context shifts away from familiar patterns, these models frequently fall back on "spurious lexical relations"—word associations learned during pre-training—rather than applying actual logic. This study investigates whether encoder-based architectures, which project the entire input into a latent space simultaneously, offer a more reliable alternative for structured deduction.
Methodology
We conducted a systematic comparison across three architectural families: encoder-only (BERT), encoder-decoder (BART, Flan-T5), and decoder-only (Qwen series, GPT-4.1, GPT-5, and Claude Opus 4.1). Models were evaluated using two primary strategies: Zero-shot/Few-shot In-Context Learning (ICL) and targeted fine-tuning on logical proof chains.
Datasets and Probes
Using the SimpleLogic framework, we generated synthetic logic problems based on First-Order Logic (FOL). We created three distinct splits to test generalization:
- Training Set: Natural language strings with reasoning depths of 0 to 7 steps.
- Natural Language (NL) OOD: A test set with deeper reasoning chains (up to 11 steps).
- Non-Natural Language (NNL): A "gibberish" version where words are replaced with random characters (e.g., "Batman is kind" becomes "Batman is a#d}"). This forces models to rely on pure logic rather than linguistic shortcuts.
To analyze internal model behavior, we employed a novel mechanistic probe called "curvature similarity." Borrowing from differential geometry, this technique analyzes the consistency of internal representations as reasoning complexity increases.
Results and Key Insights
The "Lexical Crutch" and Robustness
Our results indicate that decoder-only models are highly sensitive to distributional shifts. When presented with the NNL dataset, their performance often collapses because they can no longer rely on familiar word patterns. In contrast, fine-tuned encoders learn the underlying logical structure and remain stable even when the input is randomized.
Encoder Superiority and Geometric Stability
Fine-tuned BERT and BART models significantly outperformed decoder-only models of similar and even larger scales on deep reasoning tasks. The curvature similarity probe revealed that BERT maintains a stable geometric transformation across all reasoning depths, whereas decoders like Qwen exhibit "curvature drift," suggesting their internal logical consistency collapses as problems become harder.
The Efficiency Gap
One of the most striking findings is the efficiency disparity. We measured efficiency as accuracy gained per hour of compute. BART-Base was found to be roughly 640x more efficient than GPT-5, achieving respectable reasoning performance at a fraction of the cost and latency. While GPT-5 was the only decoder-only model to achieve near-perfect accuracy, its massive compute requirements make it impractical for many real-time applications.
Discussion and Conclusion
The study concludes that In-Context Learning alone is insufficient for reliable causal reasoning; even state-of-the-art models require targeted fine-tuning to handle deep logic chains. Furthermore, the global information sharing inherent in encoders prevents the "accumulating local noise" that disrupts step-by-step decoder processing.
Future work should explore hybrid architectures that combine the flexible in-context learning of decoders with the robust latent projection capabilities of encoders. While scaling can "brute force" logic, architectural optimization remains the more sustainable path toward reliable machine reasoning.
Summary updated