Scaffolding or Obstacle: Quantifying the Dual Role of Natural Language in Transformer-based Logic

Large Language Models (LLMs) have demonstrated strong capabilities in solving realworld logical problems. It is commonly assumed that, compared to formal logical languages,natural language increases the computational burden on Transformers due to its inherentambiguities and structural redundancy. However, our controlled experiments suggest a morenuanced picture. We find that simple natural language structures can act as useful ”thinkingtokens,” supporting the reasoning capacity of Transformers. The model’s predictive accuracydeclines primarily when the natural language becomes highly complex and unstructured.To systematically investigate this phenomenon, we construct a dataset of Boolean logicAbstract Syntax Trees (ASTs) with varying levels of natural language complexity and trainmulti-layer Transformers to solve them. Our preliminary mechanistic analysis suggests thatsimple linguistic structures may help the Attention mechanism capture the relationshipsbetween Boolean operators. In contrast, complex and noisy redundant words do not appear to provide the same scaffolding benefit, and are associated with a greater reliance ondeeper Feed-Forward Network (FFN) layers to process the logic. Overall, our study providescontrolled evidence for the role of natural language structure in Transformer-based logicalreasoning.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-03-29
DOI
https://doi.org/10.5281/zenodo.19311556
Primary Topic
Topic Modeling
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Scaffolding or Obstacle: Quantifying the Dual Role of Natural Language in Transformer-based Logic

Ziang Ni
Zenodo (CERN European Organization for Nuclear Research)
Topic Modeling
article

Scaffolding or Obstacle: Quantifying the Dual Role of Natural Language in Transformer-based Logic

Ziang Ni
article en

Abstract

Large Language Models (LLMs) have demonstrated strong capabilities in solving realworld logical problems. It is commonly assumed that, compared to formal logical languages,natural language increases the computational burden on Transformers due to its inherentambiguities and structural redundancy. However, our controlled experiments suggest a morenuanced picture. We find that simple natural language structures can act as useful ”thinkingtokens,” supporting the reasoning capacity of Transformers. The model’s predictive accuracydeclines primarily when the natural language becomes highly complex and unstructured.To systematically investigate this phenomenon, we construct a dataset of Boolean logicAbstract Syntax Trees (ASTs) with varying levels of natural language complexity and trainmulti-layer Transformers to solve them. Our preliminary mechanistic analysis suggests thatsimple linguistic structures may help the Attention mechanism capture the relationshipsbetween Boolean operators. In contrast, complex and noisy redundant words do not appear to provide the same scaffolding benefit, and are associated with a greater reliance ondeeper Feed-Forward Network (FFN) layers to process the logic. Overall, our study providescontrolled evidence for the role of natural language structure in Transformer-based logicalreasoning.

Zenodo (CERN European Organization for Nuclear Research)
Delft University of Technology (NL)
Quality Education
Openalex Percentile: Top 2%
Topic Modeling
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.