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

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

  1. 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.Core90 min
  2. 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.Core90 min
  3. 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.Core110 min
  4. 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.Advanced105 min
  5. 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.Core100 min
  6. 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. GPUAdvanced110 min
  7. 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. GPUCore105 min
  8. 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. GPUCore100 min
  9. 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. GPUCore105 min
  10. 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. GPUAdvanced100 min
  11. 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.Review70 min
  12. 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. GPUCore115 min
  13. 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. GPUAdvanced110 min
  14. 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.Advanced105 min
  15. 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. GPUCore120 min
  16. 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.Core100 min
  17. 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.Core90 min
  18. 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.Core100 min
  19. 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. GPUCore100 min
  20. 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.Core100 min
  21. 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.Advanced100 min
  22. 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. GPUAdvanced120 min
  23. 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. GPUResearch100 min

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