CONTENTS
CHAPTER 11

Going Deeper — AI Research and Research Engineering

7 MIN READ

Maybe applied work is enough for you. Or maybe, once you understand how these systems work, you’ll want to work on the systems themselves. This chapter maps the research world: what it is, the main research areas, how to read papers, the classic papers, and a realistic path from engineer to research engineer.

11.1 Applied AI vs. AI research

Applied AI AI Research
Question “How do I build a reliable product with these models?” “How do we make models more capable, efficient, understandable, or safe?”
Output Products, systems, features New methods, findings, papers, better models
Feedback loop Users, evals, metrics Experiments, often over days or weeks
Key skills Systems engineering, evals, product sense Experimental design, ML depth, math, scale engineering
Uncertainty Will users value it? Will the idea work at all? Most don’t.

Research is mostly failed experiments. The skill isn’t having brilliant ideas; it’s running many experiments efficiently, interpreting noisy results honestly, and recognizing when something genuinely works.

11.2 The research engineer: the realistic bridge

At frontier labs and research-heavy companies, research engineers are critical, and many come from strong software backgrounds without PhDs. The work:

  • Building and maintaining training infrastructure (distributed training, data pipelines, checkpointing, evaluation harnesses).
  • Implementing research ideas so they run correctly and efficiently at scale.
  • Running and debugging large experiments (“Why did the loss spike? Is this a data bug, a numerical issue, or a real effect?”).
  • Building RL environments and graders for agentic training.
  • Performance engineering: making training and inference faster.

What labs look for: exceptional engineering, strong ML fundamentals (you can implement a transformer from scratch and explain every line), comfort with large codebases and distributed systems, sound experimental judgment, and evidence you can pick things up fast. Public work (an open-source contribution, a replicated paper, a well-written technical blog) matters a lot.

11.3 Major research areas (a map)

Pretraining and scaling. Architectures (transformer variants, MoE, state-space models and hybrids), data curation and mixtures (data quality is a huge lever), scaling laws, training stability, efficiency.

Post-training and RL. Instruction tuning, preference optimization, RL from verifiable rewards, reasoning, reward modeling, and the problem of reward hacking (models exploiting flaws in the reward signal instead of solving the task).

Agents and tool use. Training models to act over long horizons, building environments, computer use (operating GUIs), coding agents, multi-agent systems, long-horizon memory.

Reasoning. Test-time compute, search, verification, self-correction, mathematical and scientific reasoning.

Efficiency and inference. Quantization, distillation, sparsity, speculative decoding, long-context efficiency, hardware-aware algorithms.

Evaluation and benchmarks. Measuring capabilities reliably, avoiding contamination (test data leaking into training data), building harder benchmarks as models saturate old ones, measuring agentic and real-world task performance.

Multimodality. Vision, audio, and video understanding and generation; unified models across modalities.

Interpretability. Understanding what’s happening inside models. Mechanistic interpretability tries to reverse-engineer networks into understandable algorithms: identifying features (often via sparse autoencoders, which decompose activations into interpretable directions), circuits (how features combine to perform computations), and attribution graphs that trace how a model arrives at an output. It’s one of the more accessible research areas for strong engineers: small-scale experiments on open models can yield real findings, and there are good open tools (TransformerLens, nnsight, SAELens).

Alignment and safety. Making models reliably pursue intended goals and values: scalable oversight (supervising models that may exceed human ability on some tasks), robustness against jailbreaks and injection, honesty, detecting deception, control protocols for untrusted models, evaluations for dangerous capabilities, and model welfare and character questions. Major labs and organizations (Anthropic, Google DeepMind, OpenAI, government AI safety and security institutes, and independent research groups) invest heavily here, and fellowship programs (e.g., MATS and lab-run fellowships) are established on-ramps.

11.4 How to read research papers

Papers are dense and written for specialists. Don’t read them linearly. Use multiple passes:

Pass 1 (5–10 minutes): title, abstract, figures and their captions, conclusion. What problem? What’s the claimed contribution? Is it relevant to me?

Pass 2 (30–60 minutes): intro, method overview, main results tables. What exactly did they do? What baselines did they compare against? How big is the improvement, and on what?

Pass 3 (hours, for important papers): full method details, appendix, and ideally the code. Could I reimplement this? What assumptions are hidden? What would break it?

Critical-reading questions:

  • Are the baselines strong and fairly tuned, or straw men?
  • Is the improvement larger than run-to-run variance? Were multiple seeds run?
  • Does it hold at scale, or only on small models?
  • Could the benchmark be contaminated?
  • What didn’t they test?

Tooling: arXiv (most ML papers are preprints), alphaXiv and Hugging Face Papers (discussion and daily trending papers), Semantic Scholar (citation graphs), and LLMs as reading assistants. Ask a model to explain a confusing equation, or to quiz you on a paper, after your own first pass.

Best habit: implement papers. Reading gives you vocabulary; implementing gives you understanding. Start with small, well-known papers and reproduce a key figure.

11.5 The canon: papers worth knowing

A curated starting list, roughly in the order the ideas build on each other:

Foundations

  1. Attention Is All You Need (Vaswani et al., 2017): the Transformer.
  2. Language Models are Unsupervised Multitask Learners (GPT-2, Radford et al., 2019) and Language Models are Few-Shot Learners (GPT-3, Brown et al., 2020): scale and in-context learning.
  3. Scaling Laws for Neural Language Models (Kaplan et al., 2020) and Training Compute-Optimal Large Language Models (“Chinchilla,” Hoffmann et al., 2022).

Making models useful

  1. Training language models to follow instructions with human feedback (InstructGPT, Ouyang et al., 2022): RLHF.
  2. Constitutional AI: Harmlessness from AI Feedback (Bai et al., 2022): training with principles and AI feedback.
  3. Direct Preference Optimization (Rafailov et al., 2023).
  4. Chain-of-Thought Prompting Elicits Reasoning in Large Language Models (Wei et al., 2022).

Retrieval and agents

  1. Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks (Lewis et al., 2020).
  2. ReAct: Synergizing Reasoning and Acting in Language Models (Yao et al., 2022): the reason-act loop behind agents.
  3. Toolformer (Schick et al., 2023).
  4. SWE-bench (Jimenez et al., 2023): evaluating agents on real software engineering.

Efficiency

  1. LoRA: Low-Rank Adaptation of Large Language Models (Hu et al., 2021) and QLoRA (Dettmers et al., 2023).
  2. FlashAttention (Dao et al., 2022).
  3. Efficient Memory Management for LLM Serving with PagedAttention (vLLM, Kwon et al., 2023).
  4. Mixtral of Experts (Jiang et al., 2024) / the Switch Transformer paper for MoE.

Reasoning via RL

  1. DeepSeek-R1 (DeepSeek-AI, 2025): an openly documented recipe for incentivizing reasoning through RL.

Interpretability and safety

  1. A Mathematical Framework for Transformer Circuits (Elhage et al., 2021) and In-context Learning and Induction Heads (Olsson et al., 2022).
  2. Toward Monosemanticity (2023) and Scaling Monosemanticity (2024) (Anthropic): sparse autoencoders for interpretable features.
  3. Sleeper Agents (Hubinger et al., 2024) and Alignment Faking in Large Language Models (Greenblatt et al., 2024): research on models behaving deceptively.

Also read the technical reports and system cards that labs publish with major model releases. They’re the best window into frontier practice, including safety evaluations.

11.6 A path from engineer to research engineer

Phase 1: Fundamentals (2–4 months, part-time)

  • Karpathy’s Neural Networks: Zero to Hero, all of it, coding along.
  • Implement a GPT from scratch in PyTorch and train it on a small dataset (nanoGPT is the reference).
  • Math catch-up per Chapter 3.

Phase 2: Depth through reproduction (3–6 months)

  • Reproduce 2–3 papers at small scale (e.g., LoRA on a small model, a DPO run, an induction-head analysis, a small sparse autoencoder).
  • Learn the tooling: Hugging Face transformers, trl, peft, Weights & Biases or similar experiment tracking, and running jobs on rented GPUs.
  • Write up each reproduction in a public blog post: what worked, what didn’t, what surprised you.

Phase 3: Contribution (ongoing)

  • Contribute to open-source ML projects (vLLM, Hugging Face libraries, TransformerLens, Inspect, llama.cpp, ExecuTorch). Your C++, Swift, or performance experience can be relevant in the on-device and inference projects.
  • Pick a niche and do small original experiments. Interpretability and evals are especially accessible without huge compute.
  • Join research communities (EleutherAI’s Discord, interpretability communities, alignment forums) and apply for fellowships or residencies.

Phase 4: Distributed scale (if targeting labs)

  • Learn distributed training: data, tensor, and pipeline parallelism, FSDP/ZeRO, mixed precision. Hugging Face’s Ultra-Scale Playbook is a good free resource.
  • GPU programming basics: CUDA concepts, Triton, profiling.

Honest note: frontier lab research roles are among the most competitive jobs in tech. Many strong people go from applied AI work into research engineering through internal transfers, open-source reputation, or fellowship programs rather than cold applications. Applied work isn’t a detour; it builds the engineering credibility labs value.

Key takeaways

  • Research is experimentation under uncertainty; most ideas fail, and the skill is efficient, honest iteration.
  • Research engineering is the most accessible path into research for strong software engineers.
  • Know the map: pretraining, post-training/RL, agents, reasoning, efficiency, evals, multimodality, interpretability, alignment and safety.
  • Read papers in passes, read critically, and above all, implement them.
  • Build public evidence: reproductions, write-ups, open-source contributions.

Exercises

  1. Do a three-pass read of Attention Is All You Need. Then explain multi-head attention in a 500-word blog post without looking at the paper.
  2. Complete nanoGPT: train a small character-level model, then a small BPE-tokenized model. Plot the loss curves and generate samples.
  3. Using TransformerLens on a small open model, find an induction head (a head that attends to the token after the previous occurrence of the current token). Visualize its attention pattern.
  4. Pick one paper from §11.5 that interests you and reproduce its central result at small scale. Publish the write-up.