Module 31
Research Methodology and New Algorithms
How do we move from understanding existing algorithms to discovering, proving, and validating new scientific knowledge?
- lessons
- 23
- duration
- 39 h 5 min
- concepts
- 134
- available in English
- 23 / 23
- completed by you
0 of 23
Where it fits
Prerequisites
Leads to
- P01 Quantitative backtesting engine
- P02 End-to-end causal study
- P04 Applied graph ML: from message passing to equivariant networks
- P05 Tool-using agent with RAG on local models
- P06 My own GPT from scratch
- P07 A diffusion model from scratch
- P08 Post-training an open LLM: LoRA, SFT, DPO and GRPO
- P09 Continuous control agent with PPO and SAC in MuJoCo
Overview
Turn the technical knowledge from earlier modules into a reusable research method. Formulate falsifiable questions, search for and read literature systematically, verify the mathematics in a paper, formalize problems, design experiments with strong baselines and ablations, analyze ML results with the right statistics, replicate papers, investigate failures, write in LaTeX, and practice peer review. Each lesson produces a method artifact, such as a reading note, experimental plan, statistical comparison library, replication unknowns log, table generator, or review template. Assemble them into your own toolkit and apply them to real papers.
Why it matters
Building and extending new architectures requires knowing whether an improvement is real, which component produces it, and how to demonstrate it to others. Apply the same methods to an idea for a small GPT, an AlphaZero variant, a quantitative signal that may be noise, or an evaluation of AI-based vulnerability detection. The method also helps you read research critically, assess which results hold up under scrutiny, and communicate findings in the format the scientific community expects.
Lessons 23
- 01The scientific method applied to machine learningScientific claims in ML and the evidence required for existence, comparison, mechanism, generality, and theoretical guarantees. Falsifiable hypotheses, Platt's strong inference, exploratory and confirmatory research, and a research cycle begin with a hypothesis plan as code.
- 02Literature review: searching, mapping and knowing what is knownA method for reliably asking whether an idea already exists and situating work in its literature. It covers search strategies across arXiv, Semantic Scholar, OpenAlex, and OpenReview; backward and forward citation snowballing; systematic review protocols adapted to ML; capture-recapture estimates of missing works; and a literature map and personal knowledge base.
- 03Reading a paper: three passes and critical readingKeshav's three-pass reading method adapted to ML and applied to real papers: BatchNorm and its mechanistic challenge, Melis et al. on language model evaluation, Zhang et al. on memorization, and the attention explanation debate. Build a claim-evidence map, critical checklist, and structured reading card, and identify the red flags described by Lipton and Steinhardt.
- 04Reading and verifying the mathematics of a paperRead a paper's theoretical section by reconstructing notation, drawing lemma and theorem dependencies, auditing assumptions, and checking statements numerically on small instances. The central case is Adam's convergence proof and the online convex optimization counterexample by Reddi, Kale, and Kumar, together with the AMSGrad correction.
- 05Mathematical formulation of research problemsMove from an informal question to a mathematical object for reasoning and experimentation: identify data distribution, hypothesis class, loss, intervention, and quantity of interest; choose simplifying assumptions; and design minimal toy models such as the Elhage et al. superposition model. Practice limiting cases and invariances as formulation checks.
- 06Theoretical analysis: from empirical conjecture to theoremThe research cycle between experiment and theory: generate conjectures through experimental mathematics, seek computational counterexamples, decompose proofs into lemmas, choose rigor, and return predictions to the lab. The running example is gradient-descent stability, including the empirical edge of stability, the quadratic proof, and a small-network comparison.
- 07Experimental design in machine learningClassical experimental design for model training: experimental units, variance sources, confounders, controls, plans written before execution, and pilots for estimating variability and sizing the main experiment.
- 08Strong baselines and fair comparisonsEvaluate improvements against well-tuned baselines using evidence from Melis et al., Lucic et al., Musgrave et al., and Dacrema et al.; tuning-budget parity; Dodge et al.'s expected-maximum curve; compute-matched comparisons; and a ladder of trivial baselines and oracles.
- 09Ablation studies: which component produces the gainAblation as an attribution experiment: compare leave-one-out, add-one, full and fractional factorial designs, and dose sweeps; understand how interactions make order matter and how component Shapley allocates improvement; distinguish component ablation from mechanism ablation. Apply these ideas to real tables and a locally trained network.
- 10Empirical research on a limited compute budgetEmpirical research with an 8 GB GPU: distinguish scientific, nuisance, and fixed hyperparameters; design quasirandom sweeps; validate small-scale proxies; analyze sensitivity using a multiverse; and plan compute with predetermined stopping criteria. The practical case is grokking in modular arithmetic.
- 11Applied review: a benchmark metric is an estimatorA dense review of m05 inference applied to model evaluation: test accuracy as a sample mean with standard error, clustered errors for grouped items, minimum detectable difference determined by test size, and varying meanings of ±. This prepares the ML statistical significance lessons.
- 12Statistical significance in ML I: comparing two modelsStatistical significance in ML comparisons depends on which variability is generalized: sampled test items, data splits, or training runs. Study paired example tests, 5×2cv and corrected resampled t, hierarchical bootstrap, almost stochastic dominance, and practical equivalence.
- 13Statistical significance in ML II: many models, many tasks, few seedsComparing k methods on N tasks requires aggregating different scales, controlling multiplicity, and drawing conclusions with few runs per task. Study Friedman and post hoc comparisons, critical-difference diagrams, Bayesian signed-rank comparison with ROPE, robust rliable aggregates, stratified bootstrap, and Dolan-Moré performance profiles.
- 14Benchmark evaluation: validity, noise and community overfittingTreat benchmarks as measurement instruments: construct validity, test-label errors and ranking effects, adaptive reuse and distribution shift, annotation artifacts and shortcuts, benchmark design, and item response theory for shorter evaluations.
- 15Replicating a paper: an end-to-end protocolDistinguish repeatability, reproducibility, replicability, and robustness. Build a replication protocol with an executable specification, unknowns ledger, numerical tolerances, prespecified statistical success criterion, staged testing, and reproducible artifacts. Apply it to Lottery Ticket on MNIST and a miniature random-label memorization replication.
- 16Failure investigation: when the result does not come out (or looks too good)Apply the scientific method to failure investigation: observe, formulate and prioritize rival hypotheses, reduce to a minimal failing experiment, and isolate responsible differences. Study bisection and delta debugging, error slices with multiplicity control, too-good-result audits, and informative negative reporting.
- 17Communicating results: tables, figures and honest uncertaintyCommunicate results with appropriate scope and uncertainty: build a claim hierarchy, design tables with justified significant digits and not-rejected groups, make figures supporting a single claim, calibrate language, and write useful limitations.
- 18Scientific writing: structure and argument of a paperA paper is an argument: study ML paper structure and section roles, the abstract, introductions with verifiable contributions, related-work positioning, prose oriented to reader expectations, and a writing process that starts before experiments and uses reverse outlines.
- 19LaTeX for researchers: from reproducible manuscript to submissionLaTeX as paper engineering: document model, mathematical typesetting and notation macros, bibliography, booktabs and siunitx tables, code-generated vector figures, reproducible latexmk or Tectonic builds, and venue submission preparation.
- 20Peer review: reviewing rigorously and responding to reviewersPeer review from both sides: criteria, actionable evidence-based reviews, confidentiality and conflicts, AI-tool policy, author responses, and evidence about review noise in the NeurIPS 2014 and 2021 consistency experiments.
- 21From idea to original contributionHow good research ideas are generated, selected and developed, from transformation heuristics and problem choice to project scoping, stopping criteria and portfolio management.
- 22Designing a new algorithm: from bottleneck to validated methodDeveloping new algorithms by diagnosing bottlenecks, deriving changes, testing implementations, climbing the validation ladder, verifying mechanisms and defining limits, using AdamW as a guided case.
- 23Frontier: meta-science of ML and AI in the research processMetascience of ML, reproducibility and preregistration, automated algorithm discovery, research agents, their evaluation and risks.
Module capstone
Replicate, extend, and publish a complete mini-paper
Apply the full research cycle to a paper reproducible on the local GPU, such as the lottery ticket hypothesis on MNIST and CIFAR-10, Zhang et al. on random-label memorization, or AdamW's decoupled weight decay. Prepare a three-pass reading note, claim-evidence map, and snowballing literature review. Replicate with a log of unknowns, at least five seeds, and a statistical success criterion chosen before running. Preregister a falsifiable extension in the lab notebook and retune the baseline under the same budget. Run a factorial ablation with Shapley attribution and hierarchical bootstrap intervals, and use delta debugging to investigate at least one discrepancy or failure. Write a four-page workshop-style LaTeX paper with figures and tables generated by code, limitations, and the NeurIPS reproducibility checklist. Review your paper with the module's template and write a response. Rebuild the pipeline from data to PDF with a single command.
Check what you already know
- Turn a vague claim into a falsifiable hypothesis with an operational prediction and a result that would refute it
- Plan a literature search with backward and forward snowballing and estimate its coverage
- Read a paper in three passes and map its claims to evidence
- Audit a theorem's assumptions and check small instances numerically
- Design a minimal toy model that reproduces a phenomenon observed at scale
- Identify the experimental unit and sources of variance in a deep learning experiment
- Compare two methods under the same tuning budget using the expected best-performance curve
- Design a factorial ablation and attribute improvements to components using Shapley values
- Distinguish scientific, nuisance and fixed hyperparameters when planning a sweep
- Calculate the standard error of test accuracy with clustered errors and the test size needed to detect a difference
- Choose among McNemar's test, paired bootstrap, paired permutation, and corrected resampled t-tests
- Build a critical-difference diagram and a stratified bootstrap interval for the IQM across tasks
- Detect annotation artifacts, label errors, and adaptive benchmark overfitting
- Plan a replication with a log of unknowns and a statistical success criterion
- Use delta debugging to isolate the smallest configuration difference explaining a discrepancy
- Build a results table with justified significant figures and groups of statistically tied best methods
- Write an abstract and introduction that state the gap, idea, and verifiable contributions
- Compile a LaTeX paper with tables and figures generated from code and a clean bibliography
- Write a review with actionable weaknesses and evidence, then prioritize the response
- Generate, score, and narrow research ideas with explicit criteria for abandoning them
- Work through the validation ladder for a new algorithm and verify its claimed mechanism
References
- Troubling Trends in Machine Learning Scholarship
- Strong Inference
- Design and Analysis of Experiments
- Evaluating Learning Algorithms: A Classification Perspective
- Writing for Computer Science
- How to Solve It
- Reproducibility and Replicability in Science