Unit 7 of 10 · about 6 hours · implement
Independent implementation or material modification of the central mechanism
A research claim needs a mechanism you can inspect and challenge. A new configuration or a successful training run does not demonstrate that you built the intended treatment.
You'll be able to
- Implement or materially modify the central mechanism behind the original hypothesis, rather than only changing infrastructure.
- Test the implementation against an independent specification or oracle, including a plausible wrong implementation.
- Separate mathematical parity from evidence that the mechanism is useful.
Covers
Read
In this order, only the parts listed
0 of 2 done
- A mechanism with an independent fallbackApplied Science Research Laboratory
Milestone C, first two items; Correctness requirements, declared mechanisms and conserved budgets; Milestone D, fault injection
Use the implementation and testing contract here. Leave confirmatory outcomes sealed until the next unit's freeze.
- Preserve the comparison pathsApplied Science Research Laboratory
Architecture constraints, shared variant paths and measured deviations; Deliverables, tests and versioned implementation
Focus on
- Write the mechanism's input, output, fitted state and invariants before implementing it. Reuse the existing harness so preprocessing, selection and evaluation do not silently become additional treatments.
- Toy mechanism specification: for at least three finite real inputs, remove exactly one occurrence of the minimum and one of the maximum, then average the remainder. Reject shorter inputs. This is a fixed-count symmetric trimmed mean, not a claim to estimate every population mean without bias.
- Implement sorting and slicing from a blank file. Build a separate oracle that copies the inputs, removes one minimum and then one maximum, and averages what remains. Check permutations, ties, length errors and input immutability.
- For the integer fixtures below, the retained sums and expected means are exact. Use a justified numerical tolerance for broader floating-point tests. Agreement on these fixtures establishes behavior, not robustness on an unknown distribution.
Common mistakes · 3
- Calling a wrapper around unchanged reference code an independent implementation. The scientific treatment must be your implementation or a material mechanism change, with the reference kept outside it.
- Sharing the same faulty helper between implementation and oracle. Independence is weakened when both reproduce the same mistake.
- Using parity as evidence of benefit. It confirms the specified computation; a matched study is still needed to test the hypothesis.
Try it yourself
Closed-book, before checking anything
[0, 2, 4, 100], [-100, 2, 4, 6], [2, 2, 4, 4] and [1, 2, 3], get trimmed means 3, 3, 3 and 2; ordinary means are 26.5, -22, 3 and 2. Check every permutation and reject lengths below three. A mutant that removes all tied extrema must fail on [2, 2, 4, 4]. These are synthetic correctness fixtures, not measured research gains.Quiz yourself
Answer first, then mark it. Missed ones go to Review.
0 got · 0 missed
1.Why is the tied-extrema fixture useful?Answer
Removing exactly one minimum and one maximum leaves 2 and 4, with mean 3. Removing every occurrence leaves nothing and violates the specification.
2.The toy trimmed mean ignores an extreme value. Does that make it universally better than the mean?Answer
No. Trimming changes the estimator and can add bias or discard real signal. Utility depends on the target, distribution and loss.
3.You changed the mechanism and the evaluator together. What can the gain establish?Answer
It cannot isolate the mechanism. Restore a common evaluator or measure the evaluator change separately before attributing a gain.
You're done when
Your mechanism passes the independent reference and boundary tests, a deliberate mutant fails, and the run manifest isolates the mechanism change from infrastructure changes.
Only when you can do this without notes.
Leads to
Notes
Resources · 1 for this unit, 8 more in the section
- Applied Science Research LaboratoryRoadmap-Final · primary
The stage spine: Core requirements (at least three connected experiment classes and an error-driven follow-up), Milestones, Measurement requirements ("Never invent an improvement target") and the Design-defense questions. Grow it from the investigation instead of starting a second project. Read the prerequisite as passing the checkpoint's investigation items before entry and its original-study pass condition on exit. A null or stop decision passes; publication never gates completion.
Also in this section
- The Turing Way - Project DesignThe Turing Way · required
Organizational companion: Getting Started with Project Design, the checklist (Aims & Values, Timeline & Milestones, Methodology, Operations, Stakeholders, Reporting & Evaluation) and Reproducibility Methods. Record governance, resources and when criteria will be reviewed. It does not teach competing hypotheses, information gain or a stop rule.
- The Heilmeier CatechismDARPA · required
Answer all eight questions for two candidate programs and choose one. Reject a candidate that cannot name current practice and its limits, the new approach, who cares, risks, cost, duration and concrete midterm and final exams. The catechism screens proposals; it does not supply outcomes or a stop rule.
- Registered ReportsThe Turing Way · required
Read What are Registered Reports?, How do you write one, and How do you review one: Stage 1 fixes question, hypotheses, methods and analyses with outcome-neutral tests (positive controls, quality checks) before data; Stage 2 reports all registered analyses and justifies additions. Write a dated local plan naming success, partial, null, contradiction and stop outcomes before the decisive experiment. A self-authored plan is not a Registered Report, and registration reduces rather than "eliminates" selective reporting.
- NeurIPS 2026 Reviewer Guidelines - Contribution TypesNeurIPS · required
Score both candidate questions against the contribution types (General, Theory, Use-Inspired, Concept and Feasibility, Negative Results): Use-Inspired asks for prior work outside ML and common non-ML approaches; Negative Results asks for deeper analysis than an unexpected outcome. Judge the novelty of an insight, not of an architecture.
- Modern Bayesian Experimental DesignRainforth, Foster, Ivanova and Bickford Smith, Statistical Science · support
Read v2 Section 2.1: information gain as the drop in entropy from prior to posterior (Eq. 1) and expected information gain as the mutual information between parameters and outcome (Eqs. 2 to 3). Apply it in a small outcome-by-hypothesis table: prior weights on competing hypotheses, each candidate experiment's outcome probabilities and cost, and the decision each outcome would change. Expected score gain is not information gain. Section 5.3 warns that a misspecified model misdirects the design.
- You and Your ResearchRichard Hamming (Bellcore talk, 1986) · depth
Optional reflection: the passages on "reasonable attack", the ambiguity trait and keeping contrary evidence. Reject one grand untestable candidate and name one anomaly worth a bounded test. Autobiographical advice with acknowledged survivorship bias, not evidence about research productivity.
- MLRC 2026 - Reproducibility TrackNeurIPS · depth
After the local capstone passes, read the announcement with the 2026 call (https://neurips.cc/Conferences/2026/CallForReproducibility): papers are TMLR submissions with a reproducibility certification, partial replications and failures to reproduce are in scope, and the 2026 deadlines have passed. The call says code sharing is "strongly recommended" while the challenge resources make code mandatory; follow the stricter rule. Publication is optional.
- Research Ethics Committees ProcessesThe Turing Way · support
Project Description, Data and Methodology, Consent, Privacy and Security, and Further Societal Consequences. Turn each identified harm into a mitigation, accountable owner and pause or release condition. A local self-assessment is not institutional approval.