From Brewing to Resolution: Tracing the Internal Lifecycle of Code Reasoning in LLMs
Quick Answer
This study reveals that LLMs like Qwen, Llama, and DeepSeek exhibit a complex internal lifecycle in code reasoning, with only 41.5% of tasks resolved correctly.
Quick Take
The dual diagnostic framework highlights significant task-specific failure modes, such as a drastic drop in function call resolution from 61.1% to 2.5% as call depth increases. Understanding these dynamics is crucial for improving model performance and reliability.
Key Points
- Only 41.5% of code reasoning tasks were resolved correctly across 16 models.
- Function call resolution drops from 61.1% to 2.5% with increased call depth.
- The brewing process remains stable, with duration normalized at 24-42% across models.
- Task-specific failure modes can be masked by similar accuracy metrics.
- Dual diagnostic framework combines layer-wise probing with Context-Stripped Decoding.
Paper Resources
Source Excerpt
arXiv:2606. 17648v1 Announce Type: new Abstract: Standard accuracy metrics cannot explain why handle variable tracking but fail on semantically equivalent loops. We study an internal lifecycle of code reasoning in which models first brew the answer, making it linearly recoverable many layers before it becomes self-decodable, and then diverge into one of four resolution outcomes: Resolved, Overprocessed, Misresolved, or Unresolved.
Understanding this lifecycle matters because similar task accuracies can mask fundamentally different failure modes that surface-level evaluation cannot detect. …
Want this in your inbox every morning?
Daily brief at your local 8am — bilingual EN/中文, free.
More from arXiv cs.AI
See more →HOBA: Hierarchical On-Policy Bidding Agents for Adaptive Online Advertising
HOBA (Hierarchical On-policy Bidding Agents) is a novel hierarchical reinforcement learning framework that enhances online advertising bidding systems by improving adaptability and reducing hyperparameter tuning costs. It utilizes a for hyperparameter inference, a SARSA agent for expert model selection, and a dynamic expert pool for bid execution, achieving a +3.6% increase in target cost during large-scale deployment and outperforming state-of-the-art baselines on AuctionNet.