Skip to content
ImagineWorld

Appendix A: References and further reading

node_idnode-book_build-a-reasoning-model_appendix-a-references-and-further-reading
node_typechapter-node
schema_profileworld.chapter_node.v1
statusactive
entropyhigh
manifoldworld
domainimagineworld.net
authorityinforms
layercorpus
chapter_titleAppendix A: References and further reading
governed_byCORPUS
constitutional_citationCONSTITUTION
local graph

Appendix A: References and further reading

Section titled “Appendix A: References and further reading”

appendix A References and further reading

A.1 Chapter 1: Understanding reasoning models

Section titled “A.1 Chapter 1: Understanding reasoning models”

This is the announcement article for OpenAI’s o1 model, which is regarded as the first LLM-based reasoning model:

  • OpenAI, “Introducing OpenAI o1-preview” (Sept. 12, 2024), https://openai .com/index/introducing-openai-o1-preview/

DeepSeek-R1 is the first open source reasoning model to be accompanied by a comprehensive technical report showing that reasoning emerges from reinforcement learning with verifiable rewards (a topic covered in more detail in chapter 5):

  • DeepSeek-AI, Daya Guo, Dejian Yang, et al., “DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning” (Jan. 22, 2025), https://arxiv.org/abs/2501.12948

This is the OpenAI CEO’s comment on the reasoning (“chain-of-thought”) capabilities of future models: “We will next ship GPT-4.5, the model we called Orion internally, as our last non-chain-of-thought model.”

A research paper by AI researchers at Apple found that reasoning models are sophisticated (but very capable) pattern matchers:

The following book is an in-depth guide to implementing and training large language models step by step:

  • Sebastian Raschka, Build a Large Language Model (From Scratch), (Manning, 2024), http://mng.bz/orYv

The following article is an introduction to how DeepSeek-R1 works, providing insights into the foundations of reasoning in LLMs:

2 Chapter 2: Generating text with a pretrained LLM

You can find the official installation page for the uv Python package and project manager at the following URL:

These are two user-friendly and popular cloud compute platforms with GPU support:

The following articles provide Qwen3 resources with additional benchmark results and comparisons with other models:

If you are curious about KV cache sizes for different sequence lengths, you can find a handy calculator app here:

This is a PyTorch tutorial for those new to PyTorch or wanting a refresher:

The following are additional resources on tokenization:

If you are interested in more in-depth PyTorch coverage, I recommend the following two books:

A.3 Chapter 3: Evaluating reasoning models

Section titled “A.3 Chapter 3: Evaluating reasoning models”

The MATH-500 dataset originated from the MATH dataset, introduced in the following paper, which contains 12,500 problems across algebra, geometry, probability, number theory, and more:

  • Dan Hendrycks, Collin Burns, Saurav Kadavath, et al., “Measuring Mathematical Problem Solving With the MATH Dataset” (Mar. 5, 2021), https://arxiv.org/abs/2103.03874

The MATH-500 split (created from the original MATH dataset) was proposed in the following paper:

If you are interested in SymPy, a Python library for math and symbolic computation (not required for this book), you can learn more in this official tutorial:

The following article presents an example of a system (here, a fine-tuned LLM) that also evaluates intermediate reasoning steps:

  • Shijie Xia, Xuefeng Li, Yixin Liu, et al., “Evaluating Mathematical Reasoning Beyond Accuracy,” Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics, Volume 1: Long Papers (2023), 6858–6877, https://arxiv.org/pdf/2404.05692

The following is a large-scale dataset containing 800,000 step-level correctness labels for model-generated solutions to problems from the MATH dataset:

An article describing the rising cost of LLM evaluation found that evaluating reasoning models such as o1 on seven popular benchmarks costs approximately $1,500:

The following is a comprehensive 2025 survey on LLM benchmarks:

Rather than relying only on deterministic and symbolic verifiers, a recent research project showed that small reasoning models can themselves be used successfully as verifiers for other reasoning models:

  • Ding Chen, Qingchen Yu, Pengyuan Wang, et al., “xVerify: Efficient Answer Verifier for Reasoning Model Evaluations” (Apr. 14, 2025), https://arxiv.org/abs/2504.10481

A.4 Chapter 4: Improving reasoning with inference-time scaling

A.4.1 References

The following paper formally described chain-of-thought prompting. Note that the paper suggested “Let’s think step by step” as a prompt modification. In my experiments, I’ve found that “Explain step by step” performs better when using the Qwen3 base model, which is why we use it in chapter 4:

The following paper focuses on self-consistency sampling with additional comparison studies:

The following article is an overview and discussion of additional inference scaling methods:

A.5 Chapter 5: Inference-time scaling via self-refinement

Section titled “A.5 Chapter 5: Inference-time scaling via self-refinement”

Google keeps the methods behind its proprietary Gemini 3 model secret, but based on a recent announcement, we can speculate that it uses inference-scaling techniques similar to self-consistency or best-of-N: “We’re pushing the boundaries of intelligence even further with Gemini 3 Deep Think. This mode meaningfully improves reasoning capabilities by exploring many hypotheses simultaneously to solve problems.”

The DeepSeekMath-V2 paper showed that self-consistency scaling can noticeably improve answer accuracy, and by combining self-consistency with their version of self-refinement (called Best@32 in figure 2 of the following paper), the model achieved gold-level performance in several math competitions:

  • Zhihong Shao, Yuxiang Luo, Chengda Lu, et al., “DeepSeekMath-V2: Towards Self-Verifiable Mathematical Reasoning” (Nov. 27, 2025), https://arxiv.org/abs/2511.22570v1

Instead of using a majority vote in self-consistency, we can use a scoring function to rank the different answers and select the best one. This approach is known as best-of-N. Still, when applicable, majority voting often gives better results:

  • Junlin Wang, Shang Zhu, Jon Saad-Falcon, et al., “Think Deep, Think Fast: Investigating Efficiency of Verifier-free Inference-time-scaling Methods” (Apr. 18, 2025), https://arxiv.org/abs/2504.14047

The following short article explains the difference between probabilities and likelihood:

A.6 Chapter 6: Training reasoning models with reinforcement learning

Section titled “A.6 Chapter 6: Training reasoning models with reinforcement learning”

The InstructGPT paper demonstrated the effectiveness of RLHF and was instrumental in popularizing RLHF as a standard alignment and fine-tuning approach for LLMs:

  • Long Ouyang, Jeff Wu, Xu Jiang, et al., “Training language models to follow instructions with human feedback” (Mar. 4, 2022), https://arxiv.org/abs/2203.02155

The following DeepSeekMath paper introduced the GRPO algorithm:

  • Zhihong Shao, Peiyi Wang, Qihao Zhu, et al., “DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models” (Feb. 5, 2024), https://arxiv.org/abs/2402.03300

The DeepSeek-R1 paper showed that strong reasoning behavior can emerge in LLMs through reinforcement learning alone (via RLVR with GRPO). This was most clearly shown in the R1-Zero variant, but combining this approach with a multistage training pipeline yields an even better reasoning model:

  • DeepSeek-AI, Daya Guo, Dejian Yang, et al., “DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning” (Jan. 22, 2025), https://arxiv.org/abs/2501.12948

The following article provides a comprehensive walk-through of the DeepSeek-R1 training pipeline involving RLVR:

This article compares GRPO and PPO for reinforcement learning in the context of LLMs:

A.7 Chapter 7: Improving GRPO for reinforcement learning

Section titled “A.7 Chapter 7: Improving GRPO for reinforcement learning”

This is the original PPO paper that introduced clipped policy ratios, which we also use here to stabilize GRPO:

The following papers recommend improvements to the GRPO algorithm:

  • Qiyng Yu, Zheng Zhang, Ruofei Zhu, et al., “DAPO: An Open-Source LLM Reinforcement Learning System at Scale” (Mar. 18, 2025), https://arxiv.org/abs/2503.14476
  • Understanding R1-Zero-Like Training: A Critical Perspective” (Mar. 26, 2025, this paper introduces Dr. GRPO), https://arxiv.org/abs/2503.20783
  • Feng Yao, Liyuan Liu, Dinghuai Zhang, et al., “Your Efficient RL Framework Secretly Brings You Off-Policy RL Training” (Aug. 5, 2025, this paper introduces VERL), https://fengyao.notion.site/off-policy-rl
  • DeepSeek-AI, Aixin Liu, Aoxue Mei, et al., “DeepSeek-V3.2: Pushing the Frontier of Open Large Language Models” (Dec. 2, 2025), https://arxiv.org/abs/2512.02556
  • Shih-Yang Liu, Xin Dong, Ximing Lu, et al., “GDPO: Group reward-Decoupled Normalization Policy Optimization for Multi-reward RL Optimization” (Jan. 8, 2026), https://arxiv.org/abs/2601.05242
  • Chujie Zheng, Shixuan Liu, Mingze Li, et al., “Group Sequence Policy Optimization” (Jul. 24, 2025, this paper introduces GSPO), https://arxiv.org/abs/2507.18071
  • Aili Chen, Aonian Li, Bangwei Gong, et al., “MiniMax-M1: Scaling Test-Time Compute Efficiently with Lightning Attention” (Jun. 16, 2025, this paper introduces CISPO), https://arxiv.org/abs/2506.13585

A7.2 Further reading

The following article provides a comparison between PPO (the original algorithm used for RLHF) and GRPO:

The following article is a good technical deep dive discussing different GRPO improvements:

A8 Chapter 8: Distilling reasoning models for efficient reasoning

A8.1 References

This is the original knowledge-distillation paper that popularized the combination of hard and soft distillation objectives:

The DeepSeek-R1 paper described the reasoning-distillation recipe that motivated this chapter, in which a large teacher model generates reasoning traces that are then used to train smaller student models:

  • DeepSeek-AI, Daya Guo, Dejian Yang, et al., “DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning” (Jan. 22, 2025), https://arxiv.org/abs/2501.12948

The following paper on distilling large language models reports strong results for carefully designed soft-distillation objectives:

  • Yuxian Gu, Li Dong, Furu Wei, and Minlie Huang, “MiniLLM: Knowledge Distillation of Large Language Models” (Jun. 14, 2023), https://arxiv.org/abs/2306.08543

A 8.2 Further reading

The following chapter provides more details on supervised fine-tuning (the technique used in hard distillation) and on masking when working with batches of training examples:

The following article provides a practical walk-through of reasoning-model-training pipelines, including distillation and RLVR:

A.9 Appendix F: Common approaches to LLM evaluation

Section titled “A.9 Appendix F: Common approaches to LLM evaluation”

This is the original paper that introduced the popular multiple-choice MMLU dataset:

  • Dan Hendrycks, Collin Burns, Steven Basart, et al., “Measuring Massive Multitask Language Understanding” (Sept. 7, 2020), https://arxiv.org/abs/2009.03300

The following Wikipedia article provides a detailed description of the Elo rating system:

The following paper describes the original methodology behind the popular LLM leaderboard:

The following paper discusses the problems with leaderboards such as LM Arena:

The following article describes OpenAI’s most recent open source model, gpt-oss, in more detail:

The following survey compares different LLM judge approaches:

The method described in the following paper is an example of a small LLM fine-tuned to act as a judge: