Small Models Hit 100% Accuracy in Cardinal Direction Reasoning After Fine-Tuning? New Study Reveals Syntactic Pattern Matching as the Core Mechanism

Small models lack inherent cardinal direction reasoning; targeted fine-tuning can embed spatial logic and reach 100% accuracy.
Small language models perform far worse than large models on cardinal direction reasoning, hindering spatial agent deployment on edge devices. A study on the 1-billion-parameter gemma-3-1b-it model conducted an 11-part diagnostic ablation on COSIT-CD and found that small models lack intrinsic cardinal direction reasoning, relying heavily on discrete syntactic pattern matching. In-context learning and a general spatial dataset (StepGame) could not bridge the gap. However, targeted weight updates via a "Minimum Viable Dataset" enabled the model to apply conflicting spatial rules and ignore irrelevant words, reaching 100.00% accuracy. The study shows domain-specific spatial logic can be embedded into constrained architectures, with resources open-sourced.
Small language models perform far worse than large models on spatial cardinal direction reasoning tasks, which has become a major obstacle to deploying spatially aware agents on resource-constrained edge devices. A new study, through meticulous ablation experiments, found that small models do not possess inherent cardinal direction reasoning ability—their spatial deduction relies heavily on discrete syntactic pattern matching. However, through targeted weight updates, the research team successfully embedded domain-specific spatial logic into a billion-parameter-scale model and achieved 100% accuracy on a benchmark.

The Spatial Reasoning Dilemma of Small Models: Capability Gap and Deployment Needs
In studies from 2024 and 2025, Cohn and Blackwell found that small language models have significantly lower accuracy than large language models on basic cardinal direction reasoning tasks. This capability gap directly hinders the deployment of spatially aware autonomous agents on edge devices, such as real-time embodied robots and local navigation agents. These scenarios impose strict constraints on response latency, power consumption, and memory footprint, and often can only run models with smaller parameter counts.
The core question is: can small models acquire reliable cardinal direction reasoning ability through fine-tuning? If feasible, this would open a new path for spatial intelligence in resource-constrained environments. To answer this question, the research team conducted an 11-part diagnostic ablation study on the COSIT-CD benchmark, using the 1-billion-parameter gemma-3-1b-it as the target model.
The COSIT-CD benchmark is a commonly used dataset in spatial reasoning evaluation. Its full name is "COSIT Cardinal Directions," and it is specifically designed to test models' understanding of basic directional relationships such as east, south, west, and north. The benchmark typically contains multi-step spatial relation reasoning questions, such as "A is north of B, B is east of C, so in what direction is A relative to C," requiring the model to compose multiple directional constraints. COSIT itself is a well-known international conference in the field of spatial information theory (Conference on Spatial Information Theory), from which the benchmark's name derives. Because the questions involve strict geometric transitivity, COSIT-CD is often used to distinguish whether a model truly understands spatial relations or is merely guessing based on surface-level lexical patterns.
Reverse-Engineering the Spatial Learning Mechanism: Diagnostic Ablation Experiment Design
The research team did not stop at simple performance comparisons but instead attempted to reverse-engineer the spatial learning mechanism of small models. Through controlled-variable-style ablation experiments, they systematically decomposed the various factors affecting cardinal direction reasoning.
The experiments revealed several key findings: text-based small language models do not possess intrinsic cardinal direction reasoning ability. Instead, their spatial deduction relies heavily on discrete syntactic pattern matching—the model is more like identifying specific word combinations and sentence structures rather than truly understanding the geometric relationships among "east," "south," "west," and "north." This finding explains why small models make errors when encountering phrasing that deviates slightly from the training distribution.
Limitations of In-Context Learning and General Spatial Datasets
The study further tested two common improvement approaches: in-context learning (ICL) and a general spatial dataset (StepGame). The results showed that neither could bridge the reasoning gap. In-context learning could only improve performance within a limited range, and fine-tuning with a general spatial dataset was likewise largely ineffective. This means that cardinal direction reasoning requires targeted intervention rather than generalized exposure to spatial data.
In-Context Learning (ICL) refers to providing several examples (few-shot demonstrations) in the prompt without updating model weights, allowing the model to "learn" the task pattern from context and complete new queries. ICL capability usually emerges as model scale increases; large models can quickly adapt to new tasks with a few examples, while small models often struggle to extract effective task rules from examples. In this study, ICL was tested to determine whether small models could improve performance solely from cardinal direction reasoning examples in the prompt. The results proved that this training-free approach could not compensate for their inherent reasoning deficits, thereby ruling out the possibility that "prompt engineering alone can solve the problem."
StepGame is a widely used spatial reasoning dataset containing a large number of multi-step directional relation problems described in natural language, commonly used to train and evaluate models' step-by-step spatial reasoning ability. Compared with COSIT-CD, StepGame has broader coverage and more diverse phrasing and is usually regarded as a "general spatial dataset." The findings of this study are specific: even when fine-tuning with general spatial data such as StepGame, the small model's cardinal direction reasoning accuracy on COSIT-CD still showed no significant improvement. This indicates that generalized spatial corpus exposure is insufficient for the model to acquire precise directional deduction rules. What the model needs is curated data that explicitly maps syntactic structures to spatial transformations, rather than larger-scale but loosely structured spatial text.
Targeted Weight Updates and the "Minimum Viable Dataset"
The real breakthrough came from targeted weight updates. The study found that through carefully designed fine-tuning, the model could learn to correctly apply conflicting spatial rules and ignore interference from irrelevant words. This directly points to the essence of syntactic pattern matching—the model needs to be explicitly taught which syntactic structures correspond to which spatial transformations.
Based on this insight, the research team defined the "Minimum Viable Dataset." This is a strictly curated framework designed to isolate the precise syntactic thresholds required for cardinal direction reasoning. Rather than simply piling up spatial description text, this dataset explicitly maps key syntactic structures.
The Mechanism Behind 100% Accuracy
After fine-tuning on this minimum viable dataset, the model achieved 100.00% accuracy on the COSIT-CD benchmark. This result proves that reliable, domain-specific spatial logic can be directly embedded into highly constrained architectures. It should be emphasized that this is not the model acquiring general spatial reasoning ability, but rather the successful encoding of specific syntax-spatial mappings. For the target scenarios, this domain-specific reliability is exactly what practical deployment requires.
Implications for Edge Spatial Agents and Open Resources
This study provides a feasible path for deploying spatially aware agents on edge devices. Rather than pursuing the general spatial understanding that only large models possess, it is better to build a minimum viable dataset for specific tasks and embed domain logic into small models through targeted fine-tuning. This approach has direct application value in scenarios such as robot navigation and localized services.
The research team has open-sourced all scripts, datasets, and experimental results in a GitHub repository (EncodedMind/Can-Small-Language-Models-reason-about-cardinal-directions), providing a reproducible foundation for subsequent research. For researchers and engineers focused on edge AI and spatial reasoning, this resource is worth exploring in depth.
One-line Summary
Small models lack inherent cardinal direction reasoning ability; targeted fine-tuning can embed spatial logic and achieve 100% accuracy.
Paragraph Summary
Small language models perform far worse than large models on cardinal direction reasoning tasks, hindering the deployment of spatial agents on edge devices. A study on the 1-billion-parameter gemma-3-1b-it model conducted an 11-part diagnostic ablation experiment on the COSIT-CD benchmark and found that small models do not possess intrinsic cardinal direction reasoning ability—their spatial deduction relies heavily on discrete syntactic pattern matching. Neither in-context learning nor a general spatial dataset (StepGame) could bridge the reasoning gap. However, by defining a "Minimum Viable Dataset" for targeted weight updates, the model learned to apply conflicting spatial rules and ignore irrelevant words, ultimately achieving 100.00% accuracy on the benchmark. The study shows that domain-specific spatial logic can be directly embedded into constrained architectures, providing a feasible path for edge spatial agents, with related resources open-sourced.
Related articles

Jensen Huang Testifies Before Congress: Key Takeaways on Chip Export Controls
NVIDIA CEO Jensen Huang faces questioning from the U.S. House Foreign Affairs Committee on AI chip export controls, commercial interests, and national security.

Tencent WorkBuddy in Practice: Building an AI Automated Testing Workbench with SKILL Capabilities
Based on Bilibili creator Baili Yang's sharing, this article analyzes how Tencent WorkBuddy AI agent desktop workbench can be used for automated testing: the shift from AI-assisted to AI-led, the relationship among large models, agents, and SKILL capabilities, zero-configuration installation and permission control, and practical ideas for building a personal AI automated testing workbench.

Adding Authentication to Remix SaaS Apps: A Practical Guide to WorkOS AuthKit
Based on the official WorkOS AuthKit guide, this article covers the full approach to integrating authentication in Remix or React Router SaaS apps, including session management, protected routes, multi-tenant organizations, enterprise SSO, and SCIM sync, and analyzes its engineering value for SaaS teams.