Enhancing Mathematical Reasoning in Turkish Large Language Models with Search-Based Inference and Model Merging

Ahmed Zeer, Osama Shbib, Muzaffer Kaan Yuce, Himmet Toprak Kesgin, Mehmet Fatih AmasyaliarXiv 2026

TL;DR

Researchers have significantly boosted the mathematical reasoning capabilities of Turkish Large Language Models (LLMs) by combining LoRA fine-tuning, weight-space model merging, and search-based inference. By optimizing these "algorithmic interventions," they achieved a new high score of 0.63 on the GSM8K benchmark for Turkish, demonstrating that smart architectural choices can bridge the performance gap for mid-resource languages without requiring massive-scale pre-training.

What Problem Does This Paper Address?

Mathematical problem-solving is a high-bar task for LLMs, requiring both structured logical reasoning and precise calculation. While English-centric models have seen rapid progress, "low-to-mid-resource" languages like Turkish lag behind due to a lack of high-quality, domain-specific training data.

The authors tackle this disparity by exploring how to maximize the utility of existing resources. Instead of training a model from scratch—which is computationally prohibitive—they investigate whether a combination of fine-tuning on translated datasets, merging specialized model weights, and allowing the model "time to think" via search algorithms can elevate Turkish LLMs to state-of-the-art reasoning levels.

Methods

The researchers employed a three-pronged strategy using the Turkish-Llama-8b-DPO-v0.1 (COSMOS-DPO) as their base:

  1. Fine-Tuning: They used Low-Rank Adaptation (LoRA) to efficiently fine-tune the model on various mathematical datasets translated into Turkish.
  2. Model Merging: They experimented with several techniques to combine the strengths of different fine-tuned versions. These included Linear merging (simple weight averaging), TIES (resolving parameter interference), Breadcrumbs, and Slerp (spherical interpolation).
  3. Search-Based Inference: To move beyond simple one-shot answers, they implemented Monte Carlo Tree Search (MCTS) and Tree of Thoughts (ToT) using Breadth-First (BFS) and Depth-First (DFS) strategies.
  4. Reward-Judge-Enhance (RJE) Pipeline: A novel modular framework where a "Reward" agent scores an answer, a "Judge" agent criticizes it, and an "Enhance" agent uses that criticism to refine the reasoning.
Figure 1. Reward-Judge-Enhancement Pipeline.

Datasets

The study utilized Turkish translations of three prominent mathematical datasets:

  • MetaMath: A large-scale dataset for mathematical bootstrapping.
  • NuminaMath: Focused on diverse math problems and reasoning chains.
  • TigerLab-MathInst: A dataset designed for instruction tuning in mathematics.

For evaluation, they used the gsm8k_tr-v0.2 dataset, a Turkish version of the popular Grade School Math 8K benchmark. They also tested general language capabilities using standard benchmarks like ARC, Hellaswag, and TruthfulQA.

Key Insights and Ideas

  • Quality Over Quantity: In fine-tuning, a diverse "Mix-30k" dataset outperformed a much larger 300k-sample MetaMath dataset. This suggests that for reasoning tasks, the diversity and quality of reasoning chains are more important than raw volume.
  • The Power of Simplicity in Merging: While complex merging techniques like TIES or Slerp exist, Linear merging provided the most consistent gains. The authors attribute this to "linear mode connectivity," suggesting that models fine-tuned from the same base stay within a constrained weight subspace where simple averaging effectively blends their knowledge.
  • Search as a "Thinking" Mechanism: Implementing search algorithms allows the model to explore multiple reasoning paths. As shown in the tree generation figure, the model can backtrack or choose higher-scoring paths rather than committing to the first answer it generates.
Figure 2. Algorithm based tree of thought generation.
  • The "Efficiency Sweet Spot": The researchers found that a BFS 2x2 configuration (2 children per node, depth of 2) offered the best balance. It significantly improved reasoning quality without the exponential latency explosion seen in deeper search trees.

Key Results

  • Benchmark Gains: The best-merged model (DPO + Metamath-300K Linear) reached a GSM8K score of 0.63, a significant jump from the 0.57 baseline.
  • Reasoning Quality: Using an LLM-judge (GPT-4o-mini) to score answers on a 0–100 scale, search methods consistently outperformed zero-shot baselines. The Cosmos-DPO model reached a mean judge score of 92 with BFS 2x2 search.
  • Computational Cost: The study highlights a massive trade-off: while search improves accuracy, it is slow. A complex ToT DFS search took over 12,000 seconds for 100 questions, compared to just 23 seconds for zero-shot inference—a 500x increase in latency.

Limitations and Future Work

The authors identify several hurdles for future research:

  • Translation Artifacts: Relying on machine-translated datasets (via DeepL/GPT-4) may introduce subtle linguistic biases or errors that affect reasoning.
  • Search Stochasticity: The inherent randomness in search can lead to inconsistent results.
  • Compute Bottlenecks: The high latency of search-based inference makes it difficult to deploy in real-time applications without further optimization.
  • Future Directions: The authors suggest exploring better ways for models to reward and judge their own internal thoughts (self-correction) and conducting human evaluations to validate the quality of the Turkish translations.

Summary updated

Abstract

We improve Turkish mathematical reasoning in Large Language Models by combining LoRA fine-tuning, weight-space model merging, and search-based inference. Using Turkish-Llama 8B-DPO with Turkish translations of MetaMath, NuminaMath, and TigerLab, we find data quality beats scale (Mix-30k best among fine-tuned; large MetaMath underperforms). Linear merging delivers the largest gains (GSM8K up to 0.63), while Ties is modest and Breadcrumbs/Slerp degrade. Search with MCTS and Tree of Thoughts improves mean LLM-judge scores for reasoning quality on a 0-100 scale. Limitations include machine translation, limited scale, and search stochasticity.
BibTeX
@misc{zeer2026enhancing,
  author = {Ahmed Zeer and Osama Shbib and Muzaffer Kaan Yuce and Himmet Toprak Kesgin and Mehmet Fatih Amasyali},
  title = {{Enhancing Mathematical Reasoning in Turkish Large Language Models with Search-Based Inference and Model Merging}},
  year = {2026},
  eprint = {2611.10800},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.10800},
}
Figure