CRF Transition Matrix Explorer
When does a sequence prior outweigh strong token-level evidence?
Matrix perturbation · path sensitivity
Computational notebook · Lab 01—06
Small, inspectable instruments for reasoning about structured prediction, retrieval, and video understanding.
Current instrument / 01
Adjust the local evidence, then watch dynamic programming preserve only the best partial sequence for each label. The last step follows those saved decisions backward.
Interactive notebook · 01
Find the highest-scoring label sequence without enumerating every possible path.
A · local evidence
Strong local evidence makes the best path easy to read.
| Token | B-DRUG | O | B-SYM |
|---|---|---|---|
| Aspirin | |||
| relieves | |||
| pain |
B · sequence prior
| Aᵢⱼ | B-DRUG | O | B-SYM |
|---|---|---|---|
| B-DRUG | -0.6 | 0.8 | 0.1 |
| O | 0.2 | 0.5 | 0.7 |
| B-SYM | -0.5 | 0.4 | -0.2 |
C · dynamic program
δt(j) = et(j) + maxi[δt−1(i) + Aij]| State | Aspirint1 | relievest2 | paint3 |
|---|---|---|---|
| B-DRUGdrug | — | — | — |
| Ooutside | — | — | — |
| B-SYMsymptom | — | — | — |
Choose a preset or edit an emission. Then advance to calculate one token at a time.
Focus this panel: use ←/→ to step, space to play, and R to reset.
How to read it
Each table cell combines one emission with the best incoming transition.
They are backpointers, not attention weights or probabilities.
The optimal labels become known only after the final column is scored.
Notebook queue / 02—06
Each entry begins with one technical question and one inspectable artifact. These are design notes, not finished demos.
When does a sequence prior outweigh strong token-level evidence?
Matrix perturbation · path sensitivity
How do lexical and dense retrieval fail on different clinical mentions?
Candidate ranks · score decomposition
Which temporal signals separate a hard cut from rapid camera motion?
Frame strip · boundary confidence
How much visual redundancy remains after shot-aware sampling?
Embedding distance · threshold sweep
What changes when attention is compared across heads and layers?
Token matrix · head comparison