atlas

Research map / Large language models / Reasoning and chain of thought

CodeCrash: Exposing LLM Fragility to Misleading Natural Language in Code Reasoning

NeurIPS 2025 · Large language models › Reasoning and chain of thought · approach: Long CoT dynamics and efficiency · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces CodeCrash, a stress-test benchmark of 1,279 CRUXEval/LiveCodeBench code-reasoning questions with structural and natural-language misleading perturbations, evaluating 17 LLMs and 3 reasoning models.

Problem

LLM code reasoning (output and input prediction) is unreliable under perturbations, and it is unclear whether models prioritize executable semantics over misleading natural-language cues in code such as comments, print statements, and hints.

Approach

Combines traditional structural perturbations (aggregated PSC-ALL) with NL-embedded misleading comments/prints (MCC, MPS) and plausible misleading hints (MHC) generated by GPT-4o and verified for functional equivalence, and measures PASS@1 degradation in direct, CoT, and large-reasoning-model settings.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply PSC-ALL structural perturbationsLLMs in direct inference · CRUX and LCB output predictionrelative PASS@1 degradation: −24.6%Hurt
Add misleading code comments (MCC)LLMs in direct inference · CRUX and LCB output predictionrelative PASS@1 degradation: −24.3%Hurt
Add misleading print statements (MPS)LLMs in direct inference · CRUX and LCB output predictionrelative PASS@1 degradation: −23.8%Hurt
Add plausible but incorrect hint comments (MHC)LLMs in direct inference · CRUX and LCB output predictionrelative PASS@1 degradation: −20.1%Hurt
Use CoT instead of direct inferenceLLMs · CRUX and LCB output predictionrelative PASS@1 degradation: −23.2% -> −13.8%Helped
Add misleading code commentsLLMs · CRUX input predictionrelative PASS@1 degradation: +4.1%Helped
Add plausible but incorrect hint commentsLLMs · CRUX input predictionrelative PASS@1 degradation: −20.1%Hurt
Increase reasoning effort from o3-Mini-Low to o3-Mini-High under MHCo3-Mini · CRUX and LCB output predictionrelative PASS@1 degradation: −11.1% -> −13.4% (CRUX); −19.8% -> −28.4% (LCB)Hurt
Increase MCC injection probabilityLLMs and LRMs · Output predictionrelative PASS@1 degradationHurt
Instruct models to ignore commentsLLMs under MCC and MHC · CRUX and LCB output predictionPASS@1: DeepSeek-V3 Direct MCC: 39.7 -> 41.8No clear effect
Refactor code before reasoningGPT-4o · CRUX and LCB output predictionPASS@1: PSC-ALL: 46.2 -> 55.3; MCC: 45.7 -> 41.1; MPS: 49.6 -> 54.9Mixed
Use CoT for LRM reasoning under MHCo3-Mini · CRUX and LCB output predictionrelative PASS@1 degradation: −11.1% -> −13.4% (CRUX); −19.8% -> −28.4% (LCB)Hurt

Surprising findings

Limitations

Experimental setup

Datasets: CRUXEval LiveCodeBench

Benchmarks: CRUXEval LiveCodeBench

Metrics: PASS@1 relative degradation reasoning token usage

Baselines: GPT-4o-Mini Claude-3.5-Sonnet DeepSeek-V3 Qwen2.5-72B-Instruct o3-mini DeepSeek-R1 QwQ-32B

Builds on: CRUXEval LiveCodeBench CCTEST Chain-of-thought prompting

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy