
Applied Math × AI × Chip Architectures Exploring the foundations behind modern intelligence systems. Sharing clear technical insights & visual explanations.
- Tweets537
- Following151
- Followers3.2K
- Likes120

ALT Two-panel chart titled Saved CartPole Runs Solved in 572 vs. 1,141 Episodes. Panel A plots running EMA reward against episode index on CartPole-v1 from single saved notebook runs: REINFORCE without baseline (terracotta line) fluctuates and crosses the 475 solved threshold at episode index 1,140 (1,141 episodes), while REINFORCE with a learned value baseline (blue line) reaches the threshold at inferred episode index 571 (572 episodes), labeled 49.9% fewer episodes. Panel B plots Slide 38 prompt weights with a bold zero baseline: Summarize (R=0.80, b=0.75) moves from +0.80 raw to +0.05 advantage; Summarize (R=0.30, b=0.75) flips from +0.30 raw to -0.45 advantage; Prove (R=0.30, b=0.10) stays positive from +0.30 raw to +0.20 advantage.

ALT Three-step causal flow diagram plus bottom feedback bar on warm cream background. Step 1 (blue box, Train CNN on Vision): Task-Optimized Model with V1->V2->V4->IT hierarchy optimized on core object loss with no neural data during training. Arrow leads to Step 2 (green box, Match & Predict): Held-Out Brain Alignment matches model units to V4/IT sites, achieving HMO L3 to V4 0.52 variance and HMO Top to IT 0.48 variance. Arrow leads to Step 3 (terracotta box, Synthesize & Test): Closed-Loop V4 Control achieves 68% super-activate (1% chance), 76% one-hot control (1% chance), and 54% novel prediction (0% chance). Bottom bar (ochre box, Step 4 Measure-Break-Build Cycle on Brain-Score) notes remaining gaps in fast recurrence (Kar et al. 2019) and V1 robustness (Dapello et al. 2020) feeding back to refine the model.

ALT Two-panel chart titled Halving the Detectable Effect Quadruples Required Eval Items (4x). Panel A plots required paired items n on a base-10 logarithmic axis against minimum detectable difference delta in percentage points: saved power.ipynb snapshot points sit at 1,013 (3.0 pp), 2,279 (2.0 pp), 4,052 (1.5 pp), and 9,115 (1.0 pp), with a dotted callout linking 2.0 pp to 1.0 pp as a 4.0x jump under fixed design; Slide 45 prints 674 (672 from rounded 0.077) at 3.0 pp, and Miller Sec. 5 (omega^2 = 1/9) sits at 969 at 3.0 pp. Panel B uses a zero-baseline y-axis for fixed n = 198 and shows the author-plotted Miller Sec. 5 MDE curve dropping from 13.3 pp (Miller 13.2%) at K = 1 to 7.6 pp (Miller 7.5%) at K = 10, approaching an irreducible shaded floor at 6.64 pp set by omega^2 = 1/9.

ALT Architecture diagram on warm cream background. Left inputs State Z_{t-1}, Regimen U_{t-1} (drugs, line, clocks), and Baseline B (RNA, demographics) connect into three parallel mechanism boxes inside a dashed PK-PD^Neural Transition frame: State Z_{t-1} and Regimen U_{t-1} feed all three boxes (g_1 Baseline, g_2 Log-Cell Kill, and g_3 Treatment Exp.), while Baseline B feeds g_1 and g_3. Arrows from all three branches enter a Soft Attention box queried by Z_{t-1}, whose output adds to a residual skip from Z_{t-1} to produce Next State Z_t and Labs X_t with missing observations dropped.

ALT Two-panel chart titled Error Bars Overturn Naive Leaderboard Rankings with bold green subtitle Only MATH (+2.5 pp) Excludes Zero; Clustering Widens Real Evals Up to 3.05x. Panel A shows hypothetical paired 95% confidence intervals for Galleon minus Dreadnought: MATH at +2.5 pp (+1.2 to +3.8 pp, significant), HumanEval at -3.1 pp (-7.2 to +1.0 pp, crosses zero), and MGSM at -2.7 pp (-6.1 to +0.7 pp, crosses zero). Panel B shows empirical zero-baseline bars comparing Naive SE_CLT against SE_clustered: DROP rises from 0.44 to 1.34 F1 pts (3.05x), MGSM from 0.86 to 1.62 pp (1.88x), and RACE-H from 0.46 to 0.51 pp (1.10x).

ALT Two-row pipeline diagram on warm cream background. Top row shows Pairwise Optimization taking Scans (m, f) through an Iterative Solver (Optimize phi per pair) and Warp m o phi in roughly 2,350 to 9,000 s on NiftyReg or ANTs CPU. Bottom row shows Amortized VoxelMorph taking Scans (m, f) through CNN g_theta(m, f) with shared weights, integrating velocity v to deformation field phi_z, and completing in 0.5 s on GPU or 51 s on CPU.

ALT Horizontal log-scale bar chart titled Visual Tokenization Compresses Sequence Length comparing four sequence counts per image on a log10 axis starting at 10^2. Top terracotta bar: 1024 by 1024 RGB subpixels at 3,145,728 tokens. Second ochre bar: 256 by 256 RGB subpixels at 196,608 tokens. Third blue bar: 256 by 256 spatial grid at 65,536 spatial positions. Bottom sage bar: 32 by 32 VQ token grid at 1,024 tokens.

ALT Two-lane comparison titled Compilation Replaces Per-Backend Kernel Libraries. Top lane Library-Driven Inference flows from Trained Model (Graph + weights) to Export Format (ONNX, CoreML, TFLite), Backend Libraries (TensorRT, ARMComputeLib), and Target Hardware (CPU, GPU, Mobile). Bottom lane ML Compilation flows from Trained Model (IRModule) to High-Level IR (Graph fusion), Loop IR Tuning (Tiling, binding), and Direct Codegen (CPU, GPU, Mobile).

ALT Four-stage synthesis on warm cream background. Panel 1 Raw Images shows a DSB fluorescence field. Panel 2 Cell Segmentation shows its manual reference masks (pretrained benchmark: 0.816 F1, 0 h). Panel 3 Single-Cell CNN feeds two separate EGFR cell crops (Control and Wild Type) into an encoder and embedding h, branching forward to y and GRL to d with backward -lambda. Panel 4 Profiles shows barcode vectors, a four-leaf dendrogram, and a similarity heatmap.

ALT Three horizontal pipelines starting on the left from Image (H by W by C) and Caption y (Text pairs). Top blue row shows Patch + Project (N by D embeddings) to ViT Encoder (Transformer) to Class Logits (Supervised labels). Middle green row sends Image into Image Encoder f_I(x) and Caption y into Text Encoder f_T(y), feeding Cosine Matrix (B by B batch scores) and Symmetric InfoNCE (Mean row + col CE). Bottom ochre and terracotta row sends Image to CLIP ViT (Patch tokens) to Connector W (LLM dimension) to Language Model (Text loss only).

ALT Diagram titled Where to Customize a Frozen Pretrained Model, showing a horizontal forward pass from Inputs to Embeddings, Frozen Backbone with locked weights, Logits, and Output, with three customization interfaces: CLIP or Visual Tokens entering Embeddings, ControlNet zero-conv branch and LoRA W plus B A adapter attaching to Frozen Backbone, and XGrammar Mask filtering Logits.
![Two-panel comparison. Panel A shows reported Penn heart-failure biopsy AUC bars: two cardiac pathologists on Cohort 1 (n = 105 test) at mean 0.74, an end-to-end CNN at 0.97 on Cohort 1, and the same CNN dropping by 0.22 to 0.75 on Cohort 2 after a remote scanner software upgrade. Panel B shows the hybrid pathology pipeline—deep segmentation of histologic primitives, explicit spatial graphs and orientation entropy H(p), and clinical risk scoring (IbRiS)—paired with a constructed four-bin axial fiber example over 0 to 180 degrees where aligned fibers give 0.00 bits and uniformly disordered fibers [5,5,5,5] give 2.00 bits, plus reported ER+ breast cancer DFS cohorts E2197 (n = 234) and TCGA (n = 171).](https://pbs.twimg.com/media/HXxk8ihbMAA8VmU.jpg?name=small&format=webp)
ALT Two-panel comparison. Panel A shows reported Penn heart-failure biopsy AUC bars: two cardiac pathologists on Cohort 1 (n = 105 test) at mean 0.74, an end-to-end CNN at 0.97 on Cohort 1, and the same CNN dropping by 0.22 to 0.75 on Cohort 2 after a remote scanner software upgrade. Panel B shows the hybrid pathology pipeline—deep segmentation of histologic primitives, explicit spatial graphs and orientation entropy H(p), and clinical risk scoring (IbRiS)—paired with a constructed four-bin axial fiber example over 0 to 180 degrees where aligned fibers give 0.00 bits and uniformly disordered fibers [5,5,5,5] give 2.00 bits, plus reported ER+ breast cancer DFS cohorts E2197 (n = 234) and TCGA (n = 171).

ALT Constructed retrieval example with one relevant passage in the corpus and k equal to three. Ranking A places it first; Ranking B places it third. Both have recall one and precision one third, while nDCG at three is one for A and one half for B, because the relevant item receives discount one over log base two of four at rank three. These are exact metric calculations, not benchmark results.

ALT Constructed three-token distillation example. Teacher probabilities are 0.6, 0.3, 0.1 and student probabilities 0.5, 0.25, 0.25. The soft-target logit gradient p minus q is minus 0.10, minus 0.05, plus 0.15. Replacing the teacher with a one-hot top-token target produces minus 0.50, plus 0.25, plus 0.25. The second token changes gradient sign. These are exact illustrative calculations, not model measurements.

ALT Two training lanes. The discriminator step receives real x with target one and a generated G(z) with target zero; only discriminator parameters update. The generator step passes z through G and then D with target one; only generator parameters update, while gradients still pass through D to its input.

ALT Worked unit check for the course notebook's punches problem. Five rounds times three minutes per round gives fifteen minutes; multiplying by twenty-five punches per minute gives three hundred seventy-five punches. A separate panel shows the saved generated program's assignment punch_time equals five and multiplication by twenty-five, which would return one hundred twenty-five. The notebook prints generated code and does not execute it.

ALT Constructed three-point distance example. Predictions AB equals 4 angstroms, BC equals 4 angstroms, and AC equals 10 angstroms violate the triangle inequality. Two radius-4 circles around A and C, separated by 10 angstroms, do not intersect. If AB and BC stay fixed at 4, the largest possible AC is 8, shown by a straight chain. These are geometric examples, not protein measurements.

ALT Constructed filtering example on a common zero-based token-unit axis. Before filtering: 800 general-web and 200 math units. After retaining 25% and 80% respectively: 200 general-web and 160 math units. Total volume falls from 1,000 to 360; math share rises from 20% to 44.4%. No empirical dataset measurements are shown.
