← Back to Education
EdgeSci-THU-China · iGEM 2026 Education

Lesson 3 · Method Families: What Is in the Box?

An interactive walkthrough of ten key questions about four model families: step-by-step animations (Play / Step / Reset, keyboard friendly), locally rendered KaTeX formulas, and clearly labelled teaching illustrations and paper-reported results. Switch language with EN / ZH in the navigation bar.

01What sits inside the model box?Deck pages 2

KEY QUESTIONHow can different rules turn the same drug-pair input into a prediction?
Deck-based illustration — no original measurementsTeaching illustration
Lesson 2 described the input, label and test. Now keep those pieces in place and change the rule that connects input to output.
\hat{y}=f_{\theta}(x_A,x_B)

The predicted label is a function of the two drug representations and the model parameters.

0 / 4 ·Start with two drugs. A drug name is a sample identifier; the model still needs a usable description.

Drug pair

Two sample identifiers

Input X

Features / graph / text

Model f

Written or learned rule

Prediction

Compare with the label

Same task + same test → a meaningful model comparison.

Takeaway

Open the box without forgetting how the input and test were defined.

Read all steps as text
  1. Start with two drugs. A drug name is a sample identifier; the model still needs a usable description.
  2. Encode the pair into X: chosen features, molecular graphs or text. These are different views of the same pair.
  3. The box applies a function f. Its internal rule may be written by a person or learned from examples.
  4. The output is a prediction. A measured or recorded label is separate evidence used to train or test it.
  5. A score evaluates predictions on a specified test set. It does not explain the biological mechanism by itself.

02Who chooses the information and the rule?Deck pages 3–4, 7, 13, 22

KEY QUESTIONWhich choices belong to people, and which are learned from examples?
Deck-based illustration — no original measurementsTeaching illustration
Four families offer different answers. Classical and neural models on chosen features share an input design, even when their internal rules differ.

0 / 4 ·Read each row as two choices: how a drug is described, and how a prediction is produced.

1Rules
People choose the factsPeople write the rule
2Chosen features
People design the descriptionA model learns the mapping
3Graph models
People define nodes and edgesA model learns representations
4Language models & agents
People choose text and toolsPretraining, learning and tool use
Takeaway

More automated feature learning moves human choices; it does not remove them.

Read all steps as text
  1. Read each row as two choices: how a drug is described, and how a prediction is produced.
  2. Rules: a person supplies both the recorded facts and the decision rule.
  3. Chosen features: people decide which measurements or fragments matter; the model learns how to combine them.
  4. Graphs: the model learns from connections, but people still choose the graph, node attributes and training labels.
  5. Language models and agents: learned representations can use text; agents add tool calls and a workflow. They are not free of human design.

03How does a human-written rule work?Deck pages 5–6

KEY QUESTIONWhat does a matching rule tell us—and what does a missing entry mean?
Deck-based illustration — no original measurementsTeaching illustration
A rule engine checks whether recorded conditions match. Warfarin and amiodarone illustrate a known mechanism, without turning this page into prescribing advice.
C_1\land C_2\Rightarrow\mathrm{alert}

When both conditions are true, the rule raises an alert.

0 / 4 ·A rule has conditions and an output. The computer checks the rule; it does not discover its mechanism.

1 · Warfarin present

Condition to check

2 · Relevant enzyme inhibition

Amiodarone example

Interaction alert

Both conditions matched

✓ Condition 1 matches✓ Condition 2 matches

New pair → no entry → unknown, rather than a negative interaction label.

Takeaway

A readable rule is limited by the coverage of its rule base.

Read all steps as text
  1. A rule has conditions and an output. The computer checks the rule; it does not discover its mechanism.
  2. Condition 1 matches: warfarin is present in the example pair.
  3. Condition 2 matches: the added drug is an inhibitor relevant to warfarin metabolism.
  4. Both conditions match, so the rule produces an interaction alert. The supporting mechanism comes from prior evidence.
  5. Now consider a new pair with no matching entry. “No rule found” means a knowledge gap, not demonstrated safety.

04Can similarity suggest an interaction?Deck pages 8–10

KEY QUESTIONDoes a similar fingerprint mean the same biological interaction?
Deck-based illustration — no original measurementsTeaching illustrationExact calculation on toy values
A fingerprint is a row of yes/no features. Similarity can turn a recorded interaction into a candidate to investigate, provided similar descriptions imply relevant biological similarity.
J(A,A^{\prime})=\frac{|A\cap A^{\prime}|}{|A\cup A^{\prime}|}=\frac{3}{5}=0.60

For the sets of active features, divide the intersection size by the union size: three divided by five.

0 / 4 ·These eight-bit fingerprints for fictional drugs A and A′ are invented. Each position asks the same feature question.

A
10110010
A′
11100010
Shared = 3
Either = 5
Similarity = 0.60
A + B → recorded
A′ + B → candidate

0.60 is feature similarity, not a 60% interaction probability.

Takeaway

The features define which kinds of similarity the model can see.

Read all steps as text
  1. These eight-bit fingerprints for fictional drugs A and A′ are invented. Each position asks the same feature question.
  2. Count the shared “1” positions: there are 3. These are the features present in both descriptions.
  3. Count positions where either has a “1”: there are 5. Jaccard similarity is 3/5 = 0.60.
  4. If A has a recorded interaction with B, similarity makes A′ + B a candidate. It does not make the label certain.
  5. A small structural difference can change metabolism or binding. A good-looking match still needs a suitable test and evidence.

05What changes with a neural network?Deck pages 11–12

KEY QUESTIONWhat can learned weights change, and what is still fixed by the input?
Deck-based illustration — no original measurementsTeaching illustrationExact calculation on toy values
The network learns adjustable weights and flexible combinations. It still starts from the information you chose to give it.
h=\mathrm{ReLU}(w^{\top}x+b),\qquad p_j=\sigma(a_jh)

ReLU keeps positive values and sets negative values to zero. Sigmoid maps each type output to a score between 0 and 1; independent scores need not sum to 1.

0 / 4 ·Keep the input fixed. This tiny network uses three invented binary features, not a real drug descriptor.

x = (1, 0, 1)

Chosen features

w = (0.8, −0.2, 0.4)

b = −0.2

h = ReLU(1.0) = 1.0

One illustrative hidden unit

Type 1
0.80✓ selected
Type 2
0.57✓ selected
Type 3
0.29below threshold

Output weights a = (1.4, 0.3, −0.9). Sigmoid scores are rounded to two decimals.

Takeaway

Flexible rules do not recover evidence that is missing from features or labels.

Read all steps as text
  1. Keep the input fixed. This tiny network uses three invented binary features, not a real drug descriptor.
  2. A parameter is a number the model can adjust during training. Here the chosen weights are 0.8, −0.2 and 0.4.
  3. Multiply, add a bias of −0.2, then apply ReLU: negative values become zero. For this input the hidden value is 1.0.
  4. Separate sigmoid outputs give three illustrative type scores: 0.80, 0.57 and 0.29. Multiple types can pass a threshold.
  5. At an illustrative 0.50 threshold, types 1 and 2 are selected. These scores are not calibrated patient risks or DeepDDI results.

06What is a graph representation?Deck pages 14

KEY QUESTIONWhat do nodes and edges represent in a graph?
Deck-based illustration — no original measurementsTeaching illustration
A graph neural network (GNN) learns from entities and their connections. It can use the neighbourhood rather than only a prewritten row of features.
G=(V,E),\qquad h_v^{(0)}=x_v

A graph consists of a node set and an edge set. Each node begins with its initial attributes.

0 / 4 ·This invented graph contains five nodes. It demonstrates a representation, not a molecule from the paper.

An invented five-node graph. Nodes represent entities; edges represent connections. The graph is not a real molecular structure.An invented five-node graph. Nodes represent entities; edges represent connections. The graph is not a real molecular structure.v1v2v3v4v5
Node

Entity + initial attributes

Edge

A defined relationship

Learned representation

Attributes + neighbourhood

The graph is a chosen view of evidence, not the whole biological world.

Takeaway

Graph learning uses structure while retaining design choices and coverage limits.

Read all steps as text
  1. This invented graph contains five nodes. It demonstrates a representation, not a molecule from the paper.
  2. A node stands for an entity. Its initial attributes might include atom type or a drug descriptor, depending on the graph.
  3. An edge records a connection. A bond and a drug–protein relationship have different meanings; they are not interchangeable.
  4. The model combines node attributes with the pattern of connections. It learns a useful internal description.
  5. People still decide what counts as a node, an edge and a label. Missing connections constrain what the graph can communicate.

07How does message passing spread information?Deck pages 15–17, 21

KEY QUESTIONHow far can information travel in one, two or many rounds?
Deck-based illustration — no original measurementsTeaching illustrationExact calculation on toy values
Each round lets a node combine its own information with its neighbours’. More rounds reach further, but repeated mixing can make node descriptions too similar.
h_v^{(k+1)}=\tfrac12 h_v^{(k)}+\tfrac12\operatorname{mean}_{u\in\mathcal{N}(v)}h_u^{(k)}

At the next round, take half the old node value plus half the mean of its old neighbour values.

0 / 4 ·Only A starts at 1; the other nodes start at 0. Track the outlined node C. This is a numerical teaching example.

Update round 0
A five-node chain. A starts at one, all other nodes at zero. C is the outlined target node. Node values update together by rounds.A five-node chain. A starts at one, all other nodes at zero. C is the outlined target node. Node values update together by rounds.A1B0C0D0E0A reaches C after two rounds
  1. A1
  2. B0
  3. C0
  4. D0
  5. E0
Target C 0Range across nodes 1.0000

This averaging rule has no learned weights. A trained GNN can use richer, learned updates.

Takeaway

Depth expands the neighbourhood; it can also erase differences.

Read all steps as text
  1. Only A starts at 1; the other nodes start at 0. Track the outlined node C. This is a numerical teaching example.
  2. Round 1: use half the old self-value and half the mean old neighbour-value. All nodes update simultaneously. C is still 0.
  3. Round 2: B can now pass information from A to C. C becomes 0.0625; the receptive field reaches two hops.
  4. Round 3: the same rule mixes a larger neighbourhood. C becomes 0.09375. More depth changes what can reach it.
  5. After 40 toy rounds, all values approach 0.125. Nodes become hard to distinguish. This illustrates oversmoothing, not a claim that every GNN fails at 40 layers.

08One molecule, or one biomedical network?Deck pages 18–20

KEY QUESTIONWhat changes when a node is an atom rather than a drug?
Deck-based illustration — no original measurementsTeaching illustration
Both are graphs, but their nodes answer different questions. Compare the unit of information before comparing model performance.
h_G=\operatorname{READOUT}(\{h_v\}),\qquad\hat{y}_{AB}=g(h_A,h_B)

Readout combines node representations. A pair model then uses drug representations; the exact architecture depends on the task.

0 / 4 ·Two uses of graphs sit side by side. The molecular shapes are invented; the enzyme connection is a simplified mechanism illustration.

Atoms & bonds

Two invented molecular graphs, one for each drug.Two invented molecular graphs, one for each drug.Molecule AMolecule B

Per-drug representation → pair prediction

Drugs & proteins

A simplified enzyme connection links warfarin and amiodarone. A dashed question mark represents the withheld target interaction. This is not a Decagon dataset extract.A simplified enzyme connection links warfarin and amiodarone. A dashed question mark represents the withheld target interaction. This is not a Decagon dataset extract.WarfarinAmiodaroneCYP2C9DrugDrug?

Network neighbourhood → relation prediction

Left: invented molecular shapes. Right: mechanism sketch, not an extracted graph from SSI-DDI or Decagon.

Takeaway

Same word “graph”, different entities, evidence coverage and prediction tasks.

Read all steps as text
  1. Two uses of graphs sit side by side. The molecular shapes are invented; the enzyme connection is a simplified mechanism illustration.
  2. Molecular graphs: each drug has its own atoms and bonds. A model reads both graphs to describe the pair.
  3. A readout combines node information into a drug representation. Substructure interactions can also be modelled; SSI-DDI is one paper example.
  4. Biomedical networks: nodes can be drugs and proteins. Decagon predicts relation types between drug nodes using a larger network.
  5. The target DDI edge must be withheld for a prediction test. Indirect enzyme links can be clues, but do not prove a clinical outcome; a new drug may have little neighbourhood evidence.

09Where does a language model fit?Deck pages 23–25, 27

KEY QUESTIONIs the language model representing an input or making a claim?
Deck-based illustration — no original measurementsTeaching illustration
A chemical language encoder and a model that writes an answer play different roles. A readable explanation is an output to inspect, not automatic evidence.

0 / 4 ·Start with role, not model size. Ask whether the model encodes input, predicts a label or writes an explanation.

Encoder

Molecular string
Learned vector
Task predictor

Direct answer

Question + context
Generated judgement + reason
Check claim and source

No language model runs here. All generated-answer examples are teaching illustrations.

Takeaway

A vector is a representation; a sentence is a claim. Neither is evidence by itself.

Read all steps as text
  1. Start with role, not model size. Ask whether the model encodes input, predicts a label or writes an explanation.
  2. Encoder role: a molecular string becomes a learned vector. MoLFormer is a chemical-language representation example, not a ready-made clinical DDI oracle.
  3. The vector can feed a downstream predictor. Performance still depends on its task, labels and test design.
  4. Direct-answer role: a language model may produce both a judgement and an explanation. The fluent text needs external checking.
  5. A generated citation may not exist, and a familiar benchmark may have appeared in pretraining. Verify sources and test genuinely unseen settings.

10What makes an agent a workflow?Deck pages 26, 28–29

KEY QUESTIONHow do tool calls become a conclusion whose evidence can be checked?
Deck-based illustration — no original measurementsTeaching illustration
An agent chooses and calls tools, then assembles their findings. Its usefulness depends on the tools, sources and handling of gaps—not just on the final wording.

0 / 4 ·An agent begins with a question and a plan. This is a simulated workflow; no database or prediction service is queried.

Plan

Question → useful tools

Retrieve

Recorded fact + source

Predict

Candidate + model context

Verify

Support / contradiction / gap

Known

Supported by a cited source

Inferred

A model or mechanism suggests it

Missing

A needed check is unresolved

Takeaway

Choose a method by its evidence and assumptions, then test the intended use.

Read all steps as text
  1. An agent begins with a question and a plan. This is a simulated workflow; no database or prediction service is queried.
  2. Retrieve recorded information and retain its source. Mark what is directly supported.
  3. Call a predictor for a candidate relation. Keep the model output separate from the retrieved fact.
  4. Search for mechanistic support and contradictions. A missing result should stay visible as missing.
  5. Assemble a traceable conclusion: known, inferred and missing. Next ask whether the evaluation tests the kinds of new drugs you care about.

Compare assumptions, then compare scores

The families differ in what evidence they use and what their internal rule can learn. No family removes the need for a suitable evaluation.

Compare assumptions, then compare scores
MethodWhat it seesWhat it relies onWhere to inspect a gap
RulesRecorded entriesRelevant knowledge is already writtenMissing entries and outdated rules
Chosen featuresDesigned drug descriptionsFeatures and labels capture the taskFeature limits and biased labels
Graph modelsEntities and connectionsThe neighbourhood carries useful signalsCoverage, leakage and oversmoothing
Language models & agentsText, representations and tool outputsSources and tools support the taskUnsupported claims and missing checks

A high score on familiar drug pairs is not automatically a good score on unfamiliar drugs. Carry that question into Lesson 4.

Control the current question

Click or focus a question first. Otherwise, shortcuts use the question nearest the centre of the screen. Shortcuts do not override form fields or normal button activation.

Space
Play / pause
→ / ←
Next / previous step
R
Reset the current animation
Home / End
First / final step
Esc
Pause playback / close this guide
?
Open this guide