paper-with-me

홈 › Papers

On Code-Induced Reasoning in LLMs

2025-09-25 · Abdul Waheed, Zhen Wu, Carolyn Rosé, Daphne Ippolito arxiv

Code data has been shown to enhance the reasoning capabilities of large language models (LLMs), but it remains unclear which aspects of code are most responsible. We investigate this question with a systematic, data-centric framework. We construct parallel instruction datasets in ten programming languages and apply controlled perturbations that selectively disrupt structural or semantic properties of code. We then finetune LLMs from five model families and eight scales on each variant and evaluate their performance on natural language, math, and code tasks. Across 3,331 experiments, our results show that LLMs are more vulnerable to structural perturbations than semantic ones, particularly on math and code tasks. Appropriate abstractions like pseudocode and flowcharts can be as effective as code, while encoding the same information with fewer tokens without adhering to original syntax can often retain or even improve performance. Remarkably, even corrupted code with misleading signals remains competitive when surface-level regularities persist. Finally, syntactic styles also shape task-specific gains with Python favoring natural language reasoning and lower-level languages such as Java and Rust favoring math. Through our systematic framework, we aim to provide insight into how different properties of code influence reasoning and inform the design of training data for enhancing LLM reasoning capabilities.

📄 PDF Abstract BibTeX arXiv:2509.21499

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

KDCM: Reducing Hallucination in LLMs through Explicit Reasoning Structures

2026-01-07 · Jinbo Hao, Kai Yang, Qingzhen Su, Yifan Li 외 arxiv

To mitigate hallucinations in large language models (LLMs), we propose a framework that focuses on errors induced by prompts. Our method extends a chain-style knowledge distillation approach by incorporating a programmab…

Knowledge Distillation

Mitigating Prompt-Induced Hallucinations in Large Language Models via Structured Reasoning

2026-01-06 · Jinbo Hao, Kai Yang, Qingzhen Su, Yang Chen 외 arxiv

To address hallucination issues in large language models (LLMs), this paper proposes a method for mitigating prompt-induced hallucinations. Building on a knowledge distillation chain-style model, we introduce a code modu…

Knowledge Distillation

Does Reasoning Introduce Bias? A Study of Social Bias Evaluation and Mitigation in LLM Reasoning

2025-02-21 · Xuyang Wu, Jinming Nian, Ting-Ruen Wei, Zhiqiang Tao 외

Recent advances in large language models (LLMs) have enabled automatic generation of chain-of-thought (CoT) reasoning, leading to strong performance on tasks such as math and code. However, when reasoning steps reflect s…

Math

From Proof to Program: Characterizing Tool-Induced Reasoning Hallucinations in Large Language Models

2025-11-14 · Farima Fatahi Bayat, Pouya Pezeshkpour, Estevam Hruschka arxiv

Tool-augmented Language Models (TaLMs) can invoke external tools to solve problems beyond their parametric capacity. However, it remains unclear whether these tool-enabled gains reflect trustworthy reasoning. Focusing on…

MIRAGE: Assessing Hallucination in Multimodal Reasoning Chains of MLLM

2025-05-30 · Bowen Dong, Minheng Ni, Zitong Huang, Guanglei Yang 외

Multimodal hallucination in multimodal large language models (MLLMs) restricts the correctness of MLLMs. However, multimodal hallucinations are multi-sourced and arise from diverse causes. Existing benchmarks fail to ade…

HallucinationMultimodal ReasoningVisual Reasoning