Reproduce “When Do Hallucinations Arise? A Graph Perspective on the Evolution of Path Reuse and Path Compression” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Xinnan Dai, Kai Yang, Cheng Luo, Shenglai Zeng, Kai Guo, Jiliang Tang
A graph-based framework reveals "Path Reuse" and "Path Compression" as key mechanisms for reasoning hallucinations in decoder-only Transformers, demonstrating that underfitting leads to context-ignoring Path Reuse in intrinsic tasks, while overfitting causes multi-step path collapse in extrinsic reasoning. Proximal Policy Optimization (PPO) proves more effective than Supervised Fine-Tuning (SFT) in recovering from these identified reasoning failures.
Key insights
- "Path Reuse" emerges during underfitting in intrinsic reasoning, where models prioritize globally memorized paths over specific contextual constraints, often due to limited data.
- "Path Compression," an overfitting behavior in extrinsic reasoning, collapses multi-step paths into direct k-hop connections, preferentially skipping low-out-degree "bridge nodes" and increasing with training.
- This compression is a consistent bias across various Transformer architectures and model depths, while reinforcement learning (PPO) offers superior and more robust recovery compared to supervised fine-tuning.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.