Foundation Models: What Changes When We Adapt?
Three deterministic, small-scale mathematical demonstrations. These experiments do not train or execute a foundation model. They isolate changes in the input, the trainable parameters, and the experts used for computation.
Experiment 1 — Input conditioning versus a weight update
A frozen 4 × 4 predictive matrix maps a four-feature input to four outputs. An extra input feature stands in for contextual information. It illustrates conditioning, not genuine language-model in-context learning.
Which parameters are frozen?
The first two predictions always use the same frozen matrix W; only the input changes. The adapted prediction uses W + BA on the original input, with BA trained in Experiment 2. These are distinct mechanisms even if they sometimes produce similar outcomes.
Experiment 2 — Train an adapter while the base is frozen
A rank-one BA update is fitted to a known four-dimensional target mapping. The base matrix stays fixed. Separately, explore when rank-constrained parameterization actually saves parameters.
Trainable-parameter count
The rank and dimension controls change only the parameter-count example. The fitted regression toy always has dimension 4 and rank 1. It uses fixed initialization and simultaneous gradient updates at learning rate 0.4.
Experiment 3 — Input-dependent sparse expert routing
Change a two-feature input and inspect which fixed experts execute. Routing weights are normalized across the selected experts, not over every available expert.
What do the parameter counts exclude?
Each illustrative expert computes a scalar affine function of two inputs and has three parameters. Counts omit router parameters and any shared layers. Consequently the active-expert fraction is not the fraction of all model parameters, FLOPs, or latency.