Module contents
Lesson 3 of 23Core 110 min

Reading a paper: three passes and critical reading

Keshav'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.

After this lesson you can

  • Apply three passes to a real paper and answer the five Cs after the first.
  • Build a claim-evidence map and identify claims without experimental or theoretical support.
  • Apply a critical checklist of baselines, budget, seeds, ablations, multiplicity, and scope to a results section.
  • Identify speculation presented as explanation, decorative mathematics, and suggestive language in real texts.
  • Produce a reusable reading card linkable from the literature map.

Before you start

Choose where to spend your attention

You cannot reconstruct every paper you encounter. A first reading decides whether you need more depth; a third tries to reconstruct what the work did and what could have gone differently. The anatomy of a paper helps navigation: the abstract states motivation and results, the introduction situates the question, the method fixes the procedure, results and tables show measurements, and discussion and limitations interpret their scope. Appendices may contain data, tuning, proof, and result details that change your reading. Code and versions are additional evidence; they do not replace understanding the text.

Keshav proposes reading in three passes. On the first, read the title, abstract, introduction, conclusions, headings, and references; answer five Cs: category, context, provisional correctness, contributions, and clarity. Provisional correctness means the claim seems plausible and the paper offers a way to check it, not that you have verified every proof. Decide whether to stop, save it for later, or continue. On the second, inspect figures, tables, and captions, underline claims, and reconstruct the main argument. On the third, mentally reproduce method and analysis, examine assumptions, code, and appendices, and propose alternatives or a replication.

For Zhang and colleagues, the first pass identifies an empirical study and a theoretical construction about capacity and generalization. The abstract reports that convolutional networks can fit random labels. This does not mean they generalize to random labels: it means that capacity to fit the data alone does not explain why some networks generalize on real data. The theoretical proof has its own conditions and does not replace experiments. Make explicit what you have not yet checked.

InteractiveThree passes through a paper

Zhang and colleagues, Understanding deep learning requires rethinking generalization (ICLR 2017). The abstract reports that convolutional networks fit random labels and provides a theoretical construction of finite expressivity. The paper studies which explanations of generalization are insufficient.

Provisional answers0 / 5
Pass1
Record the five Cs before opening the guide and compare your first reading with the evidence and reconstruction questions.

A practical reading protocol

Before starting, write the decision you want to make: understand a mechanism, implement a method, or identify the best comparator. This determines which sections need detailed reading. For implementation, look for preprocessing, dimensions, configuration, algorithm, stopping criteria, and versions. For a theoretical claim, identify assumptions, quantifiers, conclusion, and dependencies; a theorem can be correct yet inapplicable to your regime. For an empirical comparison, review units, data, budget, and metrics.

In the first pass, circle words expressing scope: “on these datasets”, “at least once”, “on average”, or “under these assumptions”. Do not turn an existence proof into a promise for every initialization. Also record year and version, because a preprint may change before publication. References tell you what discussion the work builds on and which alternatives it claims to compare; a later search for citing papers may reveal replications or corrections.

On the second pass, start with each figure caption. Ask what a point represents, whether bars are standard deviation, standard error, an interval, or a range, and how many runs there are. Find the protocol producing each table: a test figure selected from many attempts requires knowing how validation was used. If an essential result depends on a figure you do not understand, return to the method before accepting the conclusion. Write specific questions rather than concluding “not reproducible” simply because you have not yet found a detail.

The third pass reconstructs the experiment as a sequence: data, split, selection, training, measurement, and aggregation. Mark which parameters were chosen beforehand and which afterward. A replication using another optimizer or modified data can be valuable, but answers a different question. If a formula omits a constant or symbol, find its definition in the text and code; if ambiguity remains, record how it affects possible implementations.

Questions for each section

In the introduction, distinguish the real problem from the proposed solution. Which task, population, or resource limits the application? Which baselines are cited and why are they relevant? A plausible motivation does not prove that the problem has the stated magnitude. Find the source of a motivating number and check whether it refers to the same context. Also check what part of the problem is out of scope, whether because of an assumption or data selection.

In the method, draw the sequence of inputs, transformations, and outputs. Write units and dimensions of variables and check whether each equation makes sense in limiting cases: constant input, zero parameter, batch size one, or absence of a connection. Such examples do not prove correctness but reveal impossible interpretations. If an algorithm is approximate, identify the error it introduces, its cost, and how its parameters are chosen. A proof may depend on independence or convexity absent from the main experiment.

In the results, separate fixed decisions from the selected best result. A table may collect measurements on different scales or with different budgets; read notes and compare like with like. A small difference can matter if its cost is low and it replicates, or be irrelevant if it requires disproportionate resources. Examine failures and sensitivity analyses as well as the winning row. If you see only the best run, ask about the distribution of the others before describing typical behavior.

In discussion, turn each explanation into a discriminating prediction. If authors say a gain comes from greater invariance, what invariance measure was made and what intervention would change it while keeping other variables comparable? If they propose an alternative cause, would their results also be expected under that explanation? The third pass can leave several explanations open. A useful note lists the alternatives and the control that could separate them.

From claims to evidence

A claim-evidence map links each claim to a figure, table, proof, or procedure, together with the scope it actually covers. Separate observation from interpretation. For example, Ioffe and Szegedy show accuracy and activation distributions for an MNIST network in figure 1; figure 3 reports steps to reach 72.2% ImageNet validation accuracy. Inception needs 31.0 million steps and BN-x5 needs 2.1 million, approximately 14.8 times fewer with those rounded figures. The BN-x5 configuration also changes learning rate and other decisions; the figure does not isolate the exclusive effect of adding BN.

The original proposal attributes improvement to reducing changes in internal distributions. Santurkar and colleagues introduce variable noise after BatchNorm: in their experiment, training remains similar despite unstable distributions. That intervention challenges the idea that stabilizing mean and variance alone explains the benefit in those conditions. They also propose an explanation related to optimization smoothness. It does not follow that every distribution effect is impossible or that an alternative explanation is established for every architecture.

InteractiveLink claims to evidence
BN speeds up training on MNIST
BN-x5 reaches 72.2% with fewer steps on ImageNet
Stabilizing distributions causes the entire improvement
Links chosen0 / 3
Choose a direct link and compare the annotation. A later experiment can challenge an explanation without erasing the original performance result.

A claim can have indirect evidence without conclusive causal proof. Label this distinction in the record: “figure shows correlation”, “intervention compares variants”, or “theorem under assumptions”. If a claim includes cases A and B and a figure only examines A, the link exists but scope B remains uncovered. Counting links is not enough either: a poorly measured table does not become sound by appearing repeatedly. Check whether observations are selected, whether the control is appropriate, and whether rival interpretations predict the same thing.

Inspect a performance claim

The ImageNet comparison illustrates why configuration must be read alongside the figure. The result of 31.0 versus 2.1 million steps refers to the specific validation accuracy threshold in figure 3. Step count measures progress, not complete time, energy, or hyperparameter search cost. Also examine the BN-Baseline variant, which reaches the threshold in 13.3 million steps in the same figure. That row provides a closer comparison to adding normalization, whereas BN-x5 includes further changes.

When a figure shows activations changing less and faster training, both measurements are compatible with a common explanation, but do not identify which causes which. Update scale, conditioning, or component interactions may play a role. The later noise experiment is valuable because it changes a proposed property; at the same time, adding noise also changes the system, and interpretation depends on the distribution and amplitude used. State the conclusion in terms of that intervention and its controls.

The map can contain a “partially supports” link and a scope note in addition to “no evidence”. Do not force a binary classification of an entire paper’s quality. One table can support a performance comparison without supporting a mechanism claim. Contradictory evidence may point to different conditions, measurement errors, or rival hypotheses; check these possibilities before merging them into one label.

Critical checklist

The checklist guides questions rather than producing an automatic score. Look for strong comparators and whether they were tuned with comparable budgets; distinguish training from hyperparameter selection and final testing; check seeds, variability, ablations, data, metric, and limits. Ask how many variants were tried before choosing the result and whether the experiment was confirmatory or exploratory. A negative result is informative when the design had sensitivity to detect a difference of interest.

Melis, Dyer, and Blunsom reevaluated recurrent architectures and regularization with extensive automated tuning. The abstract identifies different codebases and tuning resources as sources of variation; under their tasks and conditions, well-regularized LSTMs were strong comparators. Section 5 describes validation selection, tuned variables, and parameter budget. This does not prove every new architecture is useless: it shows that a gain attributed to architecture can depend on tuning and regularization. Section 7 discusses noise and limitations of selection.

An ablation removes or replaces a component to measure its contribution in context. If removing it also requires changing learning rate, cost, or model size, interpret the difference as the effect of the combination. An equal-budget control can mean number of experiments, time, compute, or parameters; these are not equivalent measures. State which you equalize and what inequality remains. For an application, it also matters whether both methods could use comparable tuning knowledge and resources.

Debate an interpretation

Jain and Wallace found in their NLP models that attention weights could disagree with gradient-based measures and that different attention distributions could yield equivalent predictions. Wiegreffe and Pinter question assumptions and note that the conclusion depends on the definition of explanation; they propose controls, calibration across seeds, and adversarial tests. The disagreement includes definition, design, and evidence, not just two incompatible opinions.

Before deciding who is right, define the object of the question: causal explanation of the output, diagnosis of a representation, or a tool for a person? Then identify which intervention would change the prediction and what stayed fixed. Alternative distributions may limit an interpretation of uniqueness; they do not automatically prove that no attention visualization is useful for any task. Conversely, a plausible visualization does not establish causal fidelity. A good record links both papers and states what test distinguishes their claims.

Red flags and figures

The red flags of Lipton and Steinhardt include speculation presented as explanation, failure to identify the source of a gain, mathematics that obscures, and loaded language. A formula is useful when it defines objects and permits checking relationships; adding symbols without specifying what they represent can hide ambiguity. The next exercise uses constructed excerpts, not verbatim quotations from papers. A signal invites investigation, not an accusation about intent.

InteractiveSpot red flags
The method improves because it learns human concepts, although we did not measure representations.

A signal invites review of evidence and context; by itself it is not enough to judge an entire paper.

Excerpt1 / 4
Classify the constructed examples and compare with the annotation; categories can overlap in real texts.

A figure can exaggerate a difference by truncating the axis or removing uncertainty. However, a properly indicated truncated axis can help reveal small variations: the problem is inducing a disproportionate comparison or hiding the scale. Mean seed and best seed answer different questions. Selecting the maximum among more trials increases the chance of an extreme value even without a method improvement. The number of seeds does not automatically represent variation across tasks or test samples.

InteractiveThe figure skeptic
04080AB

The truncated axis magnifies visual differences. Choosing the maximum changes the statistic and favors selection; bars are hidden in that mode. More seeds changes which synthetic observations enter the summary; it does not guarantee a stable conclusion.

5
Summary
A71.20
B72.40
Fixed synthetic data: change scale, number of seeds, and statistic; bars show standard error of the mean when enabled.

A standard-error bar is not a standard-deviation bar: SE=s/nSE=s/\sqrt n. Nor is it by itself a 95% interval. If you show a mean with an interval, state the independent unit, procedure, and number of samples. If seeds are paired, analyze paired differences when the design justifies it; separating the means and applying an independent test ignores covariance. Overlap between individual intervals does not generally equal a test of the difference.

Check a figure step by step

First write the question it answers: for example, the difference in mean performance between two procedures on one task and protocol. Then identify the unit of variation. Five evaluations of one trained model are not five independent trainings; five seeds on one task do not represent five tasks either. A bar can measure variation between evaluations, trainings, or splits. The caption and method should say which; if they do not, note the ambiguity.

Next inspect the axis, units, and transformation. A logarithmic axis shows ratios, not constant differences; a truncated axis can make a small difference occupy much of the height. Read the numbers as well as the appearance and check whether higher is better. For time curves, ask whether the best point was selected on validation, whether each run stopped at a different time, and whether the band reflects pointwise or simultaneous uncertainty. A band calculated at each point does not automatically provide joint coverage of the whole trajectory.

Finally ask about selection. If many configurations were trained and only the best are shown, the visible distribution does not represent typical attempts. Tuning may be necessary, but must be part of the compared procedure and have a stated budget. A statistical test on selected results does not by itself correct that selection. A held-out evaluation and a rule fixed before consulting it help separate search and confirmation.

Turn a critique into a useful question

A precise critique says which conclusion does not follow, what evidence was observed, and which control would help. For example: “The figure shows lower loss with both changes enabled; is there an ablation holding learning rate fixed to separate the normalization contribution?” That question can be answered with an existing figure or by acknowledging a limitation. Simply calling the paper incorrect does not identify the problem or allow its impact to be assessed.

A critique may affect only the explanation and not a method’s usefulness, or a result may be correct even when a figure is confusing. Conversely, a useful method can have a general claim that exceeds its evidence. Critical reading attends to both distinctions. When a replication fails, compare code version, splits, and configuration before concluding that the original result does not exist; also record attempts and differences.

A linkable reading card

A reading card records reference and version, question, contribution, evidence, conditions, limitations, objections, and connections to your literature map. Include evidence location so you can return to the original. Distinguish a claim made by the paper from one you infer; if data are missing, say so. When updating a card retain the date or version of your reading. Notes should support conversation or replication, not replace the paper.

Lab: researchkit for reading cards

Download the extended researchkit.py. The file retains classes from the previous lesson and adds Evidence, Claim, ClaimEvidenceMap, and ReadingCard. Copy the cell or download the file; each page has an independent session. The map requires linked evidence or a reason for absence and rejects unknown and duplicate identifiers. coverage_report compares explicit case labels by union: it does not determine whether a figure is valid, whether causality exists, or whether one general description subsumes another. The reader must decide which cases and evidence correspond.

[ ]Extend researchkitBrowser
"""Planes de hipótesis comprobables para el cuaderno de investigación.

La comprobación lógica trabaja sobre efectos candidatos explícitos; no
demuestra por sí sola la calidad científica ni la validez de un contraste.
"""
from dataclasses import asdict, dataclass
from datetime import date
import hashlib
import json
import math


def _text(value, name):
    if not isinstance(value, str) or not value.strip():
        raise ValueError(f'{name} debe ser texto no vacío')
    return value.strip()


def _finite(value, name):
    if isinstance(value, bool) or not isinstance(value, (int, float)):
        raise ValueError(f'{name} debe ser un número finito')
    try:
        converted = float(value)
    except OverflowError as exc:
        raise ValueError(f'{name} debe ser un número finito') from exc
    if not math.isfinite(converted):
        raise ValueError(f'{name} debe ser un número finito')
    return converted


@dataclass(frozen=True)
class ResearchQuestion:
    question: str
    population: str
    intervention: str
    comparator: str

    def __post_init__(self):
        for name in ('question', 'population', 'intervention', 'comparator'):
            object.__setattr__(self, name, _text(getattr(self, name), name))


@dataclass(frozen=True)
class Prediction:
    metric: str
    direction: str
    min_effect: float
    refutation: str
    possible_effects: tuple[float, ...]

    def __post_init__(self):
        object.__setattr__(self, 'metric', _text(self.metric, 'metric'))
        object.__setattr__(self, 'refutation', _text(self.refutation, 'refutation'))
        if self.direction not in ('increase', 'decrease', 'two_sided'):
            raise ValueError('direction debe ser increase, decrease o two_sided')
        size = _finite(self.min_effect, 'min_effect')
        if size <= 0:
            raise ValueError('min_effect debe ser positivo')
        object.__setattr__(self, 'min_effect', size)
        if not isinstance(self.possible_effects, (tuple, list)):
            raise ValueError('possible_effects debe ser una lista o tupla de efectos')
        effects = tuple(_finite(x, 'possible_effects') for x in self.possible_effects)
        if len(set(effects)) < 2:
            raise ValueError('se requieren al menos dos efectos posibles distintos')
        object.__setattr__(self, 'possible_effects', effects)
        statuses = {self.supports(x) for x in effects}
        if statuses != {False, True}:
            raise ValueError('los efectos candidatos deben incluir apoyo y refutación')

    def supports(self, effect):
        """La diferencia es intervención menos comparador, en unidades de metric."""
        value = _finite(effect, 'effect')
        if self.direction == 'increase':
            return value >= self.min_effect
        if self.direction == 'decrease':
            return value <= -self.min_effect
        return abs(value) >= self.min_effect


@dataclass(frozen=True)
class Hypothesis:
    claim: str
    question: ResearchQuestion
    predictions: tuple[Prediction, ...]

    def __post_init__(self):
        object.__setattr__(self, 'claim', _text(self.claim, 'claim'))
        if not isinstance(self.question, ResearchQuestion):
            raise ValueError('question debe ser ResearchQuestion')
        if not isinstance(self.predictions, (tuple, list)) or not self.predictions:
            raise ValueError('predictions debe contener al menos una predicción')
        predictions = tuple(self.predictions)
        if not all(isinstance(p, Prediction) for p in predictions):
            raise ValueError('cada predicción debe ser Prediction')
        object.__setattr__(self, 'predictions', predictions)

    def checks(self):
        """Enumera efectos candidatos y su compatibilidad, sin evaluar incertidumbre."""
        return [[(x, p.supports(x)) for x in p.possible_effects] for p in self.predictions]

    def markdown(self, day):
        """Documento fechado; hash de contenido canónico, no sello temporal externo."""
        if not isinstance(day, str):
            raise ValueError('day debe ser una fecha ISO')
        try:
            parsed = date.fromisoformat(day)
        except ValueError as exc:
            raise ValueError('day debe ser una fecha ISO válida') from exc
        if parsed.isoformat() != day:
            raise ValueError('day debe tener formato AAAA-MM-DD')
        payload = {'date': day, 'hypothesis': asdict(self)}
        canonical = json.dumps(payload, ensure_ascii=False, sort_keys=True, separators=(',', ':'), allow_nan=False)
        digest = hashlib.sha256(canonical.encode('utf-8')).hexdigest()
        q = self.question
        lines = [f'# Plan de hipótesis ({day})', '', f'Pregunta: {q.question}',
                 f'Población: {q.population}', f'Intervención: {q.intervention}',
                 f'Comparación: {q.comparator}', f'Hipótesis: {self.claim}', '']
        for i, p in enumerate(self.predictions, 1):
            lines.extend([f'## Predicción {i}', f'Métrica: {p.metric}',
                          f'Dirección: {p.direction}; magnitud mínima: {p.min_effect}',
                          f'Condición refutadora: {p.refutation}',
                          f'Efectos candidatos: {list(p.possible_effects)}', ''])
        lines.append(f'SHA-256 del contenido canónico: {digest}')
        return '\n'.join(lines)

@dataclass(frozen=True)
class Evidence:
    id: str
    location: str
    description: str
    scope: tuple[str, ...]

    def __post_init__(self):
        for name in ('id', 'location', 'description'):
            object.__setattr__(self, name, _text(getattr(self, name), name))
        if not isinstance(self.scope, (list, tuple)) or not self.scope:
            raise ValueError('scope debe enumerar condiciones no vacías')
        object.__setattr__(self, 'scope', tuple(_text(x, 'scope') for x in self.scope))


@dataclass(frozen=True)
class Claim:
    id: str
    text: str
    scope: tuple[str, ...]
    evidence_ids: tuple[str, ...] = ()
    unsupported_reason: str = ''

    def __post_init__(self):
        for name in ('id', 'text'):
            object.__setattr__(self, name, _text(getattr(self, name), name))
        if not isinstance(self.scope, (list, tuple)) or not self.scope:
            raise ValueError('scope debe enumerar condiciones no vacías')
        object.__setattr__(self, 'scope', tuple(_text(x, 'scope') for x in self.scope))
        if not isinstance(self.evidence_ids, (list, tuple)):
            raise ValueError('evidence_ids debe ser una lista o tupla')
        object.__setattr__(self, 'evidence_ids', tuple(_text(x, 'evidence_id') for x in self.evidence_ids))
        if not isinstance(self.unsupported_reason, str):
            raise ValueError('unsupported_reason debe ser texto')
        if not self.evidence_ids and not self.unsupported_reason.strip():
            raise ValueError('sin evidencia debe declararse el motivo')


@dataclass(frozen=True)
class ClaimEvidenceMap:
    claims: tuple[Claim, ...]
    evidence: tuple[Evidence, ...]

    def __post_init__(self):
        if not all(isinstance(x, Claim) for x in self.claims) or not all(isinstance(x, Evidence) for x in self.evidence):
            raise ValueError('tipos de afirmación o evidencia inválidos')
        cids = [x.id for x in self.claims]; eids = [x.id for x in self.evidence]
        if len(set(cids)) != len(cids) or len(set(eids)) != len(eids):
            raise ValueError('identificadores duplicados')
        if any(ref not in eids for claim in self.claims for ref in claim.evidence_ids):
            raise ValueError('referencia de evidencia desconocida')
        object.__setattr__(self, 'claims', tuple(self.claims))
        object.__setattr__(self, 'evidence', tuple(self.evidence))

    def unsupported(self):
        return [c.id for c in self.claims if not c.evidence_ids]

    def coverage_report(self):
        """Condiciones explícitas por las que no hay evidencia enlazada.

        Cada elemento de scope es un caso concreto; la unión de evidencias
        enlazadas debe cubrir los casos declarados. No verifica causalidad.
        """
        evidence = {e.id:e for e in self.evidence}
        report = {}
        for c in self.claims:
            covered = {case for ref in c.evidence_ids for case in evidence[ref].scope}
            report[c.id] = {'without_evidence': not c.evidence_ids,
                            'uncovered_scope': sorted(set(c.scope) - covered)}
        return report


@dataclass(frozen=True)
class ReadingCard:
    title: str
    citation: str
    question: str
    contribution: str
    limitations: str
    claim_map: ClaimEvidenceMap

    def __post_init__(self):
        for name in ('title','citation','question','contribution','limitations'):
            object.__setattr__(self, name, _text(getattr(self, name), name))
        if not isinstance(self.claim_map, ClaimEvidenceMap):
            raise ValueError('claim_map inválido')

    def to_markdown(self):
        def clean(value): return value.replace('\n',' ').replace('|','\\|')
        lines = [f'# {self.title}', '', f'Fuente: {self.citation}', '',
                 f'Pregunta: {self.question}', '', f'Contribución: {self.contribution}', '',
                 f'Límites: {self.limitations}', '', '| Afirmación | Evidencia | Alcance sin cubrir |', '|---|---|---|']
        report = self.claim_map.coverage_report()
        evidence = {e.id:e for e in self.claim_map.evidence}
        for c in self.claim_map.claims:
            refs = '; '.join(evidence[r].location for r in c.evidence_ids) or c.unsupported_reason
            missing = ', '.join(report[c.id]['uncovered_scope']) or 'ninguno declarado'
            lines.append(f'| {clean(c.text)} | {clean(refs)} | {clean(missing)} |')
        return '\n'.join(lines)

    def literature_row(self):
        return {'title':self.title, 'citation':self.citation, 'question':self.question,
                'contribution':self.contribution, 'limitations':self.limitations,
                'unsupported_claims':self.claim_map.unsupported()}

In Lottery Ticket, figure 3 shows mean curves over five trials for LeNet on MNIST with iterative pruning; bars are minimum and maximum, not confidence intervals. The example below links that case, marks an uncovered generalization and another claim without identified evidence. It does not claim that the figure is the paper’s only evidence. Export Markdown to the temporary session and return a row for your map.

[ ]Lottery Ticket reading cardBrowser
# Ejemplo explícito: las etiquetas de alcance son casos, no razonamiento automático.
mnist = Evidence('e1', 'Figura 3, Frankle y Carbin (2019)',
                 'Curvas de LeNet podada iterativamente en MNIST; cinco ensayos.', ('LeNet-MNIST',))
claim1 = Claim('c1', 'Existen subredes entrenables en el caso estudiado',
               ('LeNet-MNIST',), ('e1',))
claim2 = Claim('c2', 'Las subredes funcionan para todas las arquitecturas',
               ('LeNet-MNIST', 'todas-las-arquitecturas'), ('e1',))
claim3 = Claim('c3', 'Una explicación causal completa está demostrada',
               ('mecanismo',), (), 'no se ha identificado evidencia suficiente en esta ficha')
mapa = ClaimEvidenceMap((claim1, claim2, claim3), (mnist,))
ficha = ReadingCard('The Lottery Ticket Hypothesis', 'https://arxiv.org/abs/1803.03635v5',
                    '¿Existen subredes dispersas entrenables desde su inicialización?',
                    'Procedimiento de poda y reinicio con experimentos en redes y tareas concretas.',
                    'El alcance y condiciones dependen de arquitectura y entrenamiento.', mapa)
print(mapa.coverage_report())
print(ficha.to_markdown())
print(ficha.literature_row())
with open('reading_card.md','w',encoding='utf8') as f: f.write(ficha.to_markdown())

Lab: recalculate a published table

Henderson and colleagues’ table 1 gives mean final return plus or minus standard error over five trials. For TRPO on Hopper-v1, configurations 400,300 and 64,64 report 3011 ± 171 and 2674 ± 227 respectively. The figure summarizes the last 100 episodes after two million samples; individual data are not available here. Under the additional assumption of independent groups and using rounded summaries, calculate Welch: t=(xˉA−xˉB)/SEA2+SEB2t=(\bar x_A-\bar x_B)/\sqrt{SE_A^2+SE_B^2} and Welch degrees of freedom. If runs were paired, the covariance needed for paired analysis is missing.

The approximate result is t=1.186t=1.186, 7.434 degrees of freedom, and a two-sided 95% interval for A minus B of approximately [−327, 1001]. The interval includes differences in both directions; it does not prove equality. Normality, independence, rounding, and selection of this comparison limit interpretation, especially with five trials. Converting standard error to deviation requires multiplying by 5\sqrt 5, not dividing it again before using the formula.

[ ]Welch from a published tableBrowser
from math import sqrt
from scipy.stats import t as student_t

def welch_from_se(mean_a, se_a, n_a, mean_b, se_b, n_b):
    if n_a < 2 or n_b < 2 or se_a < 0 or se_b < 0: raise ValueError('resúmenes inválidos')
    variance = se_a**2 + se_b**2
    if variance == 0: raise ValueError('sin variación no hay estadístico de Welch definido')
    df = variance**2 / (se_a**4/(n_a-1) + se_b**4/(n_b-1))
    delta = mean_a-mean_b; se_delta = sqrt(variance); statistic = delta/se_delta
    critical = student_t.ppf(.975,df)
    return {'diferencia':delta,'t':statistic,'df':df,'p_dos_colas':2*student_t.sf(abs(statistic),df),
            'intervalo_95':(delta-critical*se_delta,delta+critical*se_delta)}

# Henderson et al., tabla 1, TRPO Hopper-v1: 400,300 frente a 64,64.
# Publicado como media ± error estándar entre cinco ensayos, no como desviación típica.
result = welch_from_se(3011,171,5,2674,227,5)
print({k:tuple(round(x,3) for x in v) if isinstance(v,tuple) else round(v,3) for k,v in result.items()})
print('Desviaciones reconstruidas:', round(171*sqrt(5),2), round(227*sqrt(5),2))

Exercises

Quiz
After a first pass of Zhang et al., which is a reasonable answer to the five Cs?
Quiz
What evidence challenges the BatchNorm explanation based solely on stability of distributions?
Quiz
What source of variation should an architecture comparison control according to the Melis et al. example?
Numeric
A reports 71.2 ± 1.9 and B 72.5 ± 2.3, with standard deviations from five seeds per method. Calculate Welch's t for B minus A.
Code
Implement unsupported(claims) and coverage_report(claims, evidence). Each claim is a dictionary with id, scope (a list of cases), and evidence_ids (a list of identifiers); evidence maps id to a list of covered cases. Return the list of IDs without links and a dictionary mapping each ID to a sorted list of cases not covered by the union of linked evidence. Unknown references must raise KeyError.
def unsupported(claims):
  pass

def coverage_report(claims, evidence):
  pass
Shift+Enter to run

Summary

The three passes allocate reading depth according to the question. A map links claims with their evidence and scope; a critical checklist examines comparators, tuning, uncertainty, and selection. Figures and language require interpretation, and a linked card preserves what was observed, inferred, and still needs checking.