<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>SciDraft | A Hugo Theme</title><link>https://www.zhumengyao.com/scidraft/</link><description>Recent content on SciDraft | A Hugo Theme</description><generator>Hugo</generator><language>en</language><lastBuildDate>Tue, 22 Sep 2026 07:20:00 +0900</lastBuildDate><atom:link href="https://www.zhumengyao.com/scidraft/index.xml" rel="self" type="application/rss+xml"/><item><title>A Paper with Multiple References (demo)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-paper-with-multiple-references/</link><pubDate>Tue, 22 Sep 2026 07:20:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-paper-with-multiple-references/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;A long paper sometimes needs more than one bibliography: a main text and an
appendix written against a different literature, or two halves of a review whose
sources barely overlap. The theme supports that by letting each list name its own
file, so each list downloads only its own entries and numbers them from one. This
note is written that way on purpose — the first half is about how a model is
asked, the second about how it is adapted, and the two halves share no sources.&lt;/p&gt;</description></item><item><title>Autoregressive Generation (sequence diagram)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-mermaid-sequence/</link><pubDate>Tue, 22 Sep 2026 07:15:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-mermaid-sequence/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;A language model writes one token at a time. The prompt is processed once, then
each new token is appended to the sequence and fed back in, so generation is a
loop between the model and the sampler rather than a single call. The sequence
diagram below shows the participants and the messages between them.&lt;/p&gt;</description></item><item><title>Causal Multi-Head Attention in Python (intermediate)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-causal-attention-python/</link><pubDate>Tue, 22 Sep 2026 07:10:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-causal-attention-python/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;Attention is the one place in a transformer where tokens exchange information:
every other block — the projections, the activations, the normalisations —
treats positions independently. That makes attention mostly shape bookkeeping,
and the shapes alone decide which products are legal.&lt;/p&gt;</description></item><item><title>Attention with Two Tokens (example)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-example-attention-two-tokens/</link><pubDate>Tue, 22 Sep 2026 07:05:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-example-attention-two-tokens/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;The smallest interesting attention example has two positions and one head, which is
enough for a full calculation with no matrix product larger than two by two.&lt;/p&gt;
&lt;p&gt;Working it at this size makes the two roles visible: the score decides how much the output
at position two borrows from position one, and the value vectors set what is borrowed. With
a causal mask, the first row has nothing to attend to but itself.&lt;/p&gt;</description></item><item><title>Layout of a Scaling Study (advanced folder structure)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-folder-structure-advanced/</link><pubDate>Tue, 22 Sep 2026 07:01:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-folder-structure-advanced/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;A project that produces a paper has to keep three kinds of thing apart that are
easy to mix: the installed source, the outputs of individual runs, and the
material the paper is written from. Once several sweeps and a performance
benchmark live in the same repository, the folder structure is what decides
whether a figure can be traced back to the run that produced it.&lt;/p&gt;</description></item><item><title>A Survey of Chain-of-Thought Prompting: Single Chains, Sampling and Demonstration Construction (survey)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-survey-chain-of-thought/</link><pubDate>Tue, 22 Sep 2026 06:55:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-survey-chain-of-thought/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;Chain-of-thought prompting began as a single sentence appended to a prompt and is
now a family of strategies that differ in what they add: a fixed reasoning
skeleton, several sampled chains and a vote, demonstrations the method writes for
itself, or calls to an external tool in the middle of the reasoning. This survey
groups the entries in its bibliography by that question, following the framing of
the earlier survey of prompting strategies \cite{Yu2023-qr}, and asks in each
group what the reported gain is actually attributed to.&lt;/p&gt;</description></item><item><title>The Variance Identity (identity)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-identity-variance/</link><pubDate>Mon, 21 Sep 2026 16:22:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-identity-variance/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;An identity is an equation that holds for every admissible value of its variables, and
this one converts a variance into two expectations, which is often the difference between
a quantity that can be estimated in one pass and one that cannot.&lt;/p&gt;</description></item><item><title>Bayes' Rule (rule)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-rule-bayes/</link><pubDate>Mon, 21 Sep 2026 16:12:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-rule-bayes/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;Bayes&amp;rsquo; rule is the rule for turning a model&amp;rsquo;s likelihood into a statement about
hypotheses, and it is used twice in a language-model workflow: once to reason about
uncertainty in evaluation, and once whenever a prior over prompts or parameters is
combined with observed data.&lt;/p&gt;</description></item><item><title>The Chain Rule (rule)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-rule-chain/</link><pubDate>Mon, 21 Sep 2026 16:02:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-rule-chain/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;A rule is a procedure applied so often that it stops looking like a theorem, and the
chain rule is the extreme case: every backward pass through a stacked model is one long
application of it.&lt;/p&gt;</description></item><item><title>Layout of a Small Numeric Experiment (starter folder structure)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-folder-structure-starter/</link><pubDate>Mon, 21 Sep 2026 15:52:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-folder-structure-starter/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;The smallest useful project around a piece of neural-network mathematics holds
one idea per file and keeps the generated numbers out of the code. Nothing in it
is conventional yet: a starter folder is decided by what you want to compare
next, not by what a template says.&lt;/p&gt;</description></item><item><title>Backpropagation Through a Dense Layer</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-backpropagation-pseudocode/</link><pubDate>Mon, 21 Sep 2026 15:42:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-backpropagation-pseudocode/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;Backpropagation computes, for one layer, three gradients: one for each parameter
of the layer and one to hand to the layer before it. The third is what makes deep
networks trainable — without it, error could not travel past the last layer. The
procedure below is the backward pass of a single dense layer.&lt;/p&gt;</description></item><item><title>Attention Mechanism: Pseudocode</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-attention-pseudocode/</link><pubDate>Mon, 21 Sep 2026 15:32:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-attention-pseudocode/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;Attention lets a model decide, for each position it is processing, which
other positions to draw information from. This note states the &lt;strong&gt;scaled
dot-product&lt;/strong&gt; form as an algorithm rather than as an equation, so the
sequence of operations — and the shape of each intermediate result — is
explicit.&lt;/p&gt;</description></item><item><title>Inner-Product Axioms (axiom)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-axiom-inner-product/</link><pubDate>Mon, 21 Sep 2026 15:22:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-axiom-inner-product/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;Attention is built on a quantity that looks like a similarity but is defined by three
axioms: an inner product is symmetric, linear in each argument, and positive definite.
Those three properties are what allow a score to be read as &amp;ldquo;how much one vector points
along another&amp;rdquo;.&lt;/p&gt;</description></item><item><title>Rotary Position Embedding (formula)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-formula-rope/</link><pubDate>Mon, 21 Sep 2026 15:12:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-formula-rope/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;Position information has to enter attention somewhere, and one way is to rotate the query
and key vectors by a position-dependent angle. The formula is appealing because the effect
on the score depends only on the difference of the two positions.&lt;/p&gt;</description></item><item><title>Validation Loss by Model Size (bordered table)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-loss-by-model-size-table/</link><pubDate>Mon, 21 Sep 2026 15:02:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-loss-by-model-size-table/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;A scaling study compares models of different sizes trained on the same token
budget. If the loss falls smoothly as capacity grows, the family is in a regime
where parameters still buy accuracy, and the fall can be summarised as a power
law in the parameter count rather than reported as a list of separate runs.&lt;/p&gt;</description></item><item><title>Masked Softmax Attention (algorithm)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-algorithm-masked-attention/</link><pubDate>Mon, 21 Sep 2026 14:52:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-algorithm-masked-attention/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;An algorithm is a procedure with a specification, and this one says how the attention
definition is executed on a machine: scale the scores, remove the positions that are not
allowed, normalise and mix.&lt;/p&gt;</description></item><item><title>The Woodbury Identity (identity)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-identity-woodbury/</link><pubDate>Mon, 21 Sep 2026 14:42:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-identity-woodbury/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;The Woodbury identity rewrites the inverse of a matrix plus a low-rank correction in
terms of the inverse of the original matrix and a much smaller inverse. It is the algebraic
fact behind every method that updates a large system cheaply.&lt;/p&gt;</description></item><item><title>Features Are Directions (conjecture)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-conjecture-features-directions/</link><pubDate>Mon, 21 Sep 2026 14:32:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-conjecture-features-directions/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;The linear representation hypothesis conjectures that the concepts a network has
learned are encoded as directions in activation space, so that adding a concept vector to
an activation moves the computation in a meaningful way.&lt;/p&gt;</description></item><item><title>The KV Cache Is Exact (claim)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-claim-kv-cache-exact/</link><pubDate>Mon, 21 Sep 2026 14:22:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-claim-kv-cache-exact/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;Caching keys and values is standard practice, and the claim that justifies it is strong:
incremental decoding gives exactly the same outputs as recomputing attention over the whole
sequence, not an approximation of them.&lt;/p&gt;</description></item><item><title>Attention Variants by Cost and Cache (quadrant chart)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-mermaid-quadrant-attention/</link><pubDate>Mon, 21 Sep 2026 14:21:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-mermaid-quadrant-attention/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;Choosing an attention variant is a two-constraint problem rather than a ranking:
the score cost decides how long a sequence can be trained on, and the per-token
cache decides how long a sequence can be served, and the two orderings of the
variants are not the same.&lt;/p&gt;</description></item><item><title>A Transformer Training Step (flowchart)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-mermaid-flowchart/</link><pubDate>Mon, 21 Sep 2026 14:02:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-mermaid-flowchart/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;One training step is a fixed cycle: the model predicts, the predictions are
scored against the targets, the error is propagated backwards, and the
parameters move a little in the direction that reduces it. The diagram below
shows that cycle; the repetition is the whole of training.&lt;/p&gt;</description></item><item><title>Kolmogorov Axioms for a Token Distribution (axiom)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-axiom-probability/</link><pubDate>Mon, 21 Sep 2026 13:32:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-axiom-probability/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;An axiom is an assumption taken as given, and the ones that hold up a language model
are Kolmogorov&amp;rsquo;s three: probabilities are non-negative, the whole space has probability
one, and disjoint events add. Everything else about token distributions is derived from
them rather than assumed.&lt;/p&gt;</description></item><item><title>Softmax of Three Scores (example)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-example-softmax-three/</link><pubDate>Mon, 21 Sep 2026 13:12:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-example-softmax-three/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;An example is where a formula stops being notation, and this one is small enough to check
by hand: three scores, one softmax, three probabilities that must sum to one.&lt;/p&gt;
&lt;p&gt;The numbers below are the ones the companion snippet prints, so the arithmetic here and
the output of a few lines of code can be compared directly.&lt;/p&gt;</description></item><item><title>A Bound on the Attention Output Norm (corollary)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-corollary-attention-norm/</link><pubDate>Mon, 21 Sep 2026 13:02:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-corollary-attention-norm/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;Reading a bound off a proposition is the standard use of a corollary, and the one worth
having here is a ceiling on how large an attention output can be. Since the output is a
convex combination of value vectors, its length can never exceed the longest of them.&lt;/p&gt;</description></item><item><title>A Training Schedule (gantt)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-mermaid-gantt-training/</link><pubDate>Mon, 21 Sep 2026 13:00:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-mermaid-gantt-training/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;A training run has a shape in time as well as in the loss curve: data preparation
that nothing else can start without, a warmup whose length is set by the step
size, a long stable phase, and a cooldown whose purpose is to end at a point the
optimiser has settled into.&lt;/p&gt;</description></item><item><title>Softmax Cross-Entropy and Its Gradient in Python (advanced)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-cross-entropy-gradient-python/</link><pubDate>Mon, 21 Sep 2026 12:52:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-cross-entropy-gradient-python/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;The number a language model reports while training is the mean negative
log-likelihood of the token that actually came next: softmax cross-entropy over
the vocabulary at every position. Its backward pass has an unusually clean
closed form — the softmax Jacobian and the logarithm cancel, leaving the
probabilities minus the one-hot target, divided by the number of predictions.&lt;/p&gt;</description></item><item><title>Smoothness of the Loss (postulate)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-postulate-smoothness/</link><pubDate>Mon, 21 Sep 2026 12:32:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-postulate-smoothness/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;Step sizes in deep learning are chosen as if the loss were smooth in its parameters, and
that is an assumption, not a theorem. It is the smoothness postulate: the gradient does
not change arbitrarily fast, so a small step in parameter space produces a predictable
change in loss.&lt;/p&gt;</description></item><item><title>Proof of the Softmax Shift Lemma (proof)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-proof-softmax-shift/</link><pubDate>Mon, 21 Sep 2026 12:22:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-proof-softmax-shift/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;A proof is the part of a note that cannot be skipped, and this one is short enough to
show the whole pattern: write the definition, factor out the constant, use that it cancels
between numerator and denominator.&lt;/p&gt;</description></item><item><title>Matrix Products Do Not Commute (counterexample)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-counterexample-noncommuting/</link><pubDate>Mon, 21 Sep 2026 12:12:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-counterexample-noncommuting/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;A counterexample is the cheapest way to kill a plausible statement, and the one worth
having ready concerns the order of matrix multiplication. The tempting assertion that
\(AB = BA\) fails for almost every pair of matrices, and it fails on the smallest possible
example.&lt;/p&gt;</description></item><item><title>Log-Sum-Exp Bounds (lemma)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-lemma-logsumexp/</link><pubDate>Mon, 21 Sep 2026 12:02:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-lemma-logsumexp/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;The log-partition function appears wherever a normalising constant is needed, and it is
trapped between two elementary bounds that are enough for most arguments: the largest term
below, the largest term plus the log of the number of terms above.&lt;/p&gt;</description></item><item><title>Equivariance as a Design Principle (principle)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-principle-equivariance/</link><pubDate>Mon, 21 Sep 2026 11:52:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-principle-equivariance/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;Architectures are usually chosen for what they can compute, but the sharper criterion is
what they cannot distinguish: matching the symmetries of the problem removes the need to
learn them from data. This principle is why convolution appears in vision and why attention
appears in sequences.&lt;/p&gt;</description></item><item><title>The Polyak-Lojasiewicz Criterion (criterion)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-criterion-pl-condition/</link><pubDate>Mon, 21 Sep 2026 11:42:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-criterion-pl-condition/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;A criterion is a condition that decides whether an argument or a method applies, and this
one is the usual substitute for convexity in the analysis of gradient descent: it bounds the
loss by the size of its gradient, so a small gradient implies a small excess loss.&lt;/p&gt;</description></item><item><title>Perplexity Is at Least One (corollary)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-corollary-perplexity-floor/</link><pubDate>Mon, 21 Sep 2026 11:32:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-corollary-perplexity-floor/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;A corollary is what falls out of a theorem with one substitution, and the useful one
here is a floor on perplexity. Since cross-entropy cannot fall below the entropy of the
data, and entropy is non-negative, perplexity cannot fall below one.&lt;/p&gt;</description></item><item><title>The Bias-Variance Trade-Off (principle)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-principle-bias-variance/</link><pubDate>Mon, 21 Sep 2026 11:22:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-principle-bias-variance/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;A principle is a guide to design rather than a result about a particular model, and this
one is the oldest in statistics: expected error splits into a term from the model being too
simple, a term from it being too sensitive to the sample, and a term that no model can
remove.&lt;/p&gt;</description></item><item><title>The Adam Update (formula)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-formula-adam/</link><pubDate>Mon, 21 Sep 2026 11:12:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-formula-adam/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;A formula is a rule written in symbols so that it can be evaluated, and the one nearly
every model is trained with is Adam&amp;rsquo;s update: two running averages of the gradient, a
correction for the fact that both start at zero, and a step whose size is set by their
ratio.&lt;/p&gt;</description></item><item><title>Attention Entropy Falls with Depth (observation)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-observation-attention-entropy/</link><pubDate>Mon, 21 Sep 2026 11:02:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-observation-attention-entropy/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;Entropy is a convenient scalar summary of an attention row, and the observation reported
here is that its average falls as one moves up the layers: early heads spread their weight
widely, later heads concentrate it.&lt;/p&gt;</description></item><item><title>Softmax Is Invariant to a Shift (lemma)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-lemma-softmax-shift/</link><pubDate>Mon, 21 Sep 2026 10:52:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-lemma-softmax-shift/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;A lemma is a small result proved on the way to something larger, and this one is proved
in two lines yet carries most of the numerical stability of a softmax: adding the same
constant to every score changes nothing.&lt;/p&gt;</description></item><item><title>Gradient Descent with Momentum (algorithm)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-algorithm-momentum/</link><pubDate>Mon, 21 Sep 2026 10:32:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-algorithm-momentum/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;The simplest optimiser with a memory is gradient descent with momentum: keep a running
velocity, add the gradient to it, and step in the direction of the velocity rather than the
gradient. The algorithm is short, and the behaviour it introduces is worth the two extra
lines.&lt;/p&gt;</description></item><item><title>Attention Outputs Are Convex Combinations (proposition)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-proposition-attention-convex/</link><pubDate>Mon, 21 Sep 2026 10:22:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-proposition-attention-convex/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;Attention is often drawn as a lookup, and the proposition below says what kind of lookup
it is: a convex combination of the value vectors, with weights that are non-negative and
sum to one because they came out of a softmax.&lt;/p&gt;</description></item><item><title>Decoding as a State Machine (state diagram)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-mermaid-state/</link><pubDate>Mon, 21 Sep 2026 10:12:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-mermaid-state/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;The same generation loop can be described without messages, as a machine with
a small number of states. This view is useful when the interesting questions are
about &lt;em&gt;transitions&lt;/em&gt; — when decoding starts, what keeps it running, and which
conditions end it. The state diagram below is the whole lifecycle of one
completion.&lt;/p&gt;</description></item><item><title>Layout of a Trainable Model (intermediate folder structure)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-folder-structure-intermediate/</link><pubDate>Mon, 21 Sep 2026 10:02:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-folder-structure-intermediate/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;Once a model trains, the folder structure has a second job: it has to separate
what changes per run from what changes per idea. Configurations and checkpoints
belong to a run; attention code, data preparation and the training loop belong
to the project, and the split is what lets a result be reproduced from a config
file plus a commit rather than from memory.&lt;/p&gt;</description></item><item><title>Proof: Attention Outputs Lie in the Convex Hull (proof)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-proof-attention-convex/</link><pubDate>Mon, 21 Sep 2026 09:52:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-proof-attention-convex/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;The statement that attention outputs are convex combinations follows from two facts
about the softmax and one line of the triangle inequality, and the proof shows exactly
where each is used.&lt;/p&gt;</description></item><item><title>Families of Attention (mindmap)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-mermaid-mindmap-attention/</link><pubDate>Mon, 21 Sep 2026 09:44:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-mermaid-mindmap-attention/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;The variants of attention that appear in long-context work are easier to keep
apart by what they replace than by their names: each one gives up the full score
matrix and puts something else in its place, and the something else is what the
family is called.&lt;/p&gt;</description></item><item><title>Sylvester's Criterion for Positive Definiteness (criterion)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-criterion-sylvester/</link><pubDate>Mon, 21 Sep 2026 09:42:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-criterion-sylvester/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;Positive definiteness is the condition that decides whether a quadratic form curves
upwards, and Sylvester&amp;rsquo;s criterion turns it into a finite computation: look at the
determinants of the leading blocks of the matrix, from the top left outwards.&lt;/p&gt;</description></item><item><title>The Gradient of Cross-Entropy Through Softmax (proposition)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-proposition-gradient-cross-entropy/</link><pubDate>Mon, 21 Sep 2026 09:32:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-proposition-gradient-cross-entropy/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;A proposition is a proved statement of moderate weight; this one is the reason the
training loss needs no special treatment in the backward pass. Composing softmax with
negative log-likelihood, the Jacobian of the softmax and the derivative of the logarithm
cancel almost completely.&lt;/p&gt;</description></item><item><title>Maximum Entropy Gives the Softmax (theorem)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-theorem-max-entropy/</link><pubDate>Mon, 21 Sep 2026 09:22:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-theorem-max-entropy/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;The exponential form of a language model&amp;rsquo;s output is not a design choice made for
convenience; it is forced by an optimisation over distributions. Maximise entropy subject
to matching a set of expected features, and the solution is always of the form
\(\exp(\theta^{\top} f(x))\), normalised.&lt;/p&gt;</description></item><item><title>Scaled Dot-Product Attention (definition)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-definition-attention/</link><pubDate>Mon, 21 Sep 2026 09:12:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-definition-attention/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;Definitions in this subject fix notation rather than prove anything, and attention is
the clearest case: three projections, one score matrix, one weighted average. Every
implementation, diagram and proof in the rest of the literature is written against this
one paragraph of notation.&lt;/p&gt;</description></item><item><title>Cross-Entropy (definition)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-definition-cross-entropy/</link><pubDate>Mon, 21 Sep 2026 09:02:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-definition-cross-entropy/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;The training objective of a language model has a name and a formula, and both matter
when the loss curve is read: cross-entropy is the expected negative log-probability of
what actually happened, measured in nats.&lt;/p&gt;</description></item><item><title>The Gram Matrix Is Positive Semi-Definite (property)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-property-gram-psd/</link><pubDate>Mon, 21 Sep 2026 08:52:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-property-gram-psd/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;The matrix of pairwise inner products of a set of vectors has a property that constrains
what similarity patterns are possible: it is symmetric and positive semi-definite, so its
eigenvalues are non-negative and its diagonal entries are the squared lengths of the
vectors.&lt;/p&gt;</description></item><item><title>Power Iteration with a Convergence Check (pseudocode)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-pseudocode-power-iteration/</link><pubDate>Mon, 21 Sep 2026 08:39:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-pseudocode-power-iteration/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;The largest singular value of a weight matrix is one of the numbers used to
judge how a layer transforms its input, and it is usually estimated rather than
computed: repeated multiplication by the matrix makes any starting vector align
with the leading eigenvector, after which the Rayleigh quotient gives the value.&lt;/p&gt;</description></item><item><title>Layer Normalisation Written as a Function (pseudocode)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-pseudocode-layer-norm/</link><pubDate>Mon, 21 Sep 2026 08:15:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-pseudocode-layer-norm/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;Layer normalisation rescales each token&amp;rsquo;s activations using statistics computed
across the features of that token alone, which is what separates it from batch
normalisation: nothing in the computation depends on the other examples in the
batch.&lt;/p&gt;</description></item><item><title>Temperature Cannot Sharpen (claim)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-claim-temperature-monotone/</link><pubDate>Mon, 21 Sep 2026 08:12:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-claim-temperature-monotone/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;A claim is a statement put forward as true and argued for, not yet established as a
theorem. The one here concerns temperature scaling: raising the temperature flattens a
distribution, and it cannot make the most probable token more probable than it already
was.&lt;/p&gt;</description></item><item><title>Cross-Entropy Is Convex in the Logits (property)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-property-cross-entropy-convex/</link><pubDate>Mon, 21 Sep 2026 08:02:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-property-cross-entropy-convex/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;Convexity of a loss in the parameters is rare in deep learning, but convexity in the
scores is not, and the cross-entropy of a softmax has it. The property is what guarantees
that the inner optimisation — fitting the output layer, probing a frozen representation —
has no local minima to fall into.&lt;/p&gt;</description></item><item><title>Note with Mermaid</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-with-mermaid/</link><pubDate>Mon, 21 Sep 2026 07:52:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-with-mermaid/</guid><description>&lt;p&gt;DyCo Skills in one line: humans choose and oversee, agents draft and scale, the workflow is dynamic.&lt;/p&gt;
&lt;pre class="mermaid"&gt;flowchart TD
A[Start] --&amp;gt; B{Is the chart wide?}
B -- yes --&amp;gt; C[Scroll horizontally]
B -- no --&amp;gt; D[Fit the column]
C --&amp;gt; E[End]
D --&amp;gt; E&lt;/pre&gt;</description></item><item><title>Gradient Accumulation with an Input and Output Contract (pseudocode)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-pseudocode-gradient-accumulation/</link><pubDate>Mon, 21 Sep 2026 07:47:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-pseudocode-gradient-accumulation/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;Gradient accumulation is the standard way to train with a batch larger than
memory allows: several small batches are processed in turn and their gradients
added before any parameter moves. The gradient of a sum is the sum of the
gradients, so the result equals one step on the concatenated batch as long as the
per-batch losses are averaged.&lt;/p&gt;</description></item><item><title>Numerically Stable Softmax in Python (starter)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-softmax-python/</link><pubDate>Mon, 21 Sep 2026 07:42:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-softmax-python/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;A language model ends in a softmax: the raw scores of the last layer become a
probability distribution over the vocabulary, and everything downstream — the
training loss, sampling, beam search — reads that distribution rather than the
scores themselves.&lt;/p&gt;</description></item><item><title>Attention Variants for Long Contexts (striped table)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-attention-variants-table/</link><pubDate>Mon, 21 Sep 2026 07:32:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-attention-variants-table/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;Long-context attention is usually chosen on cost rather than on quality. What
decides whether a variant is usable at a given sequence length is how the score
cost and the per-token cache grow with \(T\), and both are easiest to compare
side by side in one table rather than across several paragraphs.&lt;/p&gt;</description></item><item><title>Power-Law Scaling (conjecture)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-conjecture-scaling/</link><pubDate>Mon, 21 Sep 2026 07:22:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-conjecture-scaling/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;A conjecture is a statement believed on the weight of evidence but not proved, and the
best-known one in this field concerns how loss falls as models grow. Fits are tight over
the measured range, and the conjecture is that the same form continues past it.&lt;/p&gt;</description></item><item><title>Notation for Multi-Head Attention (academic table)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-attention-notation-table/</link><pubDate>Mon, 21 Sep 2026 07:12:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-attention-notation-table/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;Multi-head attention reads better as shape bookkeeping than as prose: every
symbol below is a tensor, and the shapes alone decide which products are legal,
which is why papers about attention variants usually open with a notation table
before showing a single result.&lt;/p&gt;</description></item><item><title>Benchmarks for Agentic Systems (demo)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-third-bibliography-benchmarks/</link><pubDate>Mon, 21 Sep 2026 07:06:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-third-bibliography-benchmarks/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;Evaluating a system that uses tools needs its own body of sources: benchmarks for
tool use, for long-context reasoning and for end-to-end knowledge work, together
with the model reports those numbers are read against. This note keeps that
literature in a bibliography of its own, separate from the prompting and
fine-tuning lists used elsewhere on this site.&lt;/p&gt;</description></item><item><title>A Convex Function with Many Minima (counterexample)</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-counterexample-convex-many-minima/</link><pubDate>Mon, 21 Sep 2026 07:02:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-counterexample-convex-many-minima/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;Convexity is often described as the property that guarantees a unique optimum, and the
statement is false as written: convex functions can have a whole interval of minimisers.
The counterexample is a flat-bottomed function, convex everywhere and constant on a
segment.&lt;/p&gt;</description></item><item><title>Nucleus (Top-p) Sampling</title><link>https://www.zhumengyao.com/scidraft/notes/demo-note-top-p-sampling-pseudocode/</link><pubDate>Mon, 21 Sep 2026 06:52:00 +0900</pubDate><guid>https://www.zhumengyao.com/scidraft/notes/demo-note-top-p-sampling-pseudocode/</guid><description>&lt;p&gt;&lt;strong&gt;Demo note.&lt;/strong&gt; This note demonstrates what the &lt;strong&gt;SciDraft&lt;/strong&gt; Hugo theme can do
for academic and scientific publishing — for research institutions, researchers
and students. Its content is demonstration material only: readers should ignore
whether the demo content is correct.&lt;/p&gt;
&lt;p&gt;A language model does not emit a token; it emits a probability for every token
in the vocabulary, and something has to choose one. Choosing the single most
probable token makes output repetitive, while sampling from the full distribution
occasionally picks from its long tail of near-zero probabilities. Nucleus
sampling keeps the smallest set of tokens whose combined probability reaches a
threshold and samples only from those.&lt;/p&gt;</description></item><item><title>About</title><link>https://www.zhumengyao.com/scidraft/about/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.zhumengyao.com/scidraft/about/</guid><description>About this site and the SciDraft Hugo theme that powers it.</description></item><item><title>Math A–Z</title><link>https://www.zhumengyao.com/scidraft/math-a-to-z/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.zhumengyao.com/scidraft/math-a-to-z/</guid><description>An A–Z list of the mathematics covered in the SciDraft demo notes, by result family, with a concise description and a link to each note.</description></item><item><title>Math Categories</title><link>https://www.zhumengyao.com/scidraft/math-categories/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.zhumengyao.com/scidraft/math-categories/</guid><description>Mathematics covered in the SciDraft demo notes, grouped by result family — definitions, theorems, lemmas, proofs and the rest — with a link to each note.</description></item><item><title>Rendering A–Z</title><link>https://www.zhumengyao.com/scidraft/rendering-a-to-z/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.zhumengyao.com/scidraft/rendering-a-to-z/</guid><description>An A–Z list of the rendering methods demonstrated in the SciDraft demo notes — mermaid diagrams, pseudo-algorithms, tables, citations, code — with a link to each note.</description></item><item><title>Rendering Categories</title><link>https://www.zhumengyao.com/scidraft/rendering-categories/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.zhumengyao.com/scidraft/rendering-categories/</guid><description>Rendering methods demonstrated in the SciDraft demo notes, grouped by category — mermaid diagrams, pseudo-algorithms, tables, citations and code — with a link to each note.</description></item></channel></rss>