AI Infra
0%
Part 0 · Chapter 3

Borrowed Ideas: What AI Took From Other Sciences

AuthorChangkun Ou
Reading time~13 min

AI is built from ideas that crossed disciplinary boundaries. Information theory gave machine learning a language for prediction and coding. Neuroscience inspired simplified computational units. Statistical physics supplied tools for reasoning about large systems and stochastic processes. Psychology contributed names for different styles of reasoning.

These connections are not all equally strong. A shared equation may express an exact identity, a useful model of another system, or only a mathematical resemblance. A shared name may preserve part of an older idea without preserving its mechanism. It helps to distinguish four relationships:

Relationship What must survive the transfer Example in this chapter
Formal identity The quantities and equation have the same defined meaning Autoregressive log loss and ideal conditional codelength
Computational correspondence A model from one field predicts measurements in another Temporal-difference error and dopamine responses
Mathematical import A construction or method transfers, but its physical cause does not Diffusion processes and evolution strategies
Heuristic analogy A limited structure or intuition transfers Artificial neurons, “fast and slow” reasoning, and attention

Four questions make the strength of each connection explicit:

  1. Mapping: What variables, operations, and assumptions correspond?
  2. Preservation: Which equations or constraints remain valid?
  3. Transfer: Does the source idea predict behavior or enable an intervention in the new setting?
  4. Boundary: Where does the correspondence stop?

A matching equation without a clear mapping is only a formal resemblance. Even a model that predicts observations does not by itself prove that two systems share a physical mechanism.

Formal identity: prediction loss and codelength

Suppose an autoregressive model assigns probability q(xtx<t)q(x_t\mid x_{<t}) to token xtx_t after seeing the preceding tokens x<tx_{<t}, where tt is the token's position. The probability it assigns to the whole sequence is

q(x1:n)=t=1nq(xtx<t).q(x_{1:n})=\prod_{t=1}^{n}q(x_t\mid x_{<t}).

Its ideal codelength, measured in bits, is therefore

Lq(x1:n)=log2q(x1:n)=t=1nlog2q(xtx<t).L_q(x_{1:n})=-\log_2 q(x_{1:n}) =\sum_{t=1}^{n}-\log_2 q(x_t\mid x_{<t}).

Here x1:nx_{1:n} is the sequence of nn tokens, qq is the model, and LqL_q is the ideal number of bits charged by that model. The sum on the right is also the sequence's base-2 negative log-likelihood. This is an exact formal identity, not an analogy (Shannon 1948).

The word ideal matters. A binary codeword has an integer length, so a symbol with probability q(x)q(x) cannot generally receive a literal codeword of exactly log2q(x)-\log_2 q(x) bits. A Shannon code can use log2q(x)\lceil-\log_2 q(x)\rceil bits per symbol. An entropy coder can do better over an entire sequence: arithmetic coding, which turns sequence probabilities into one near-optimal bit stream, can approach the ideal sequence length with small coding and framing overhead (Grünwald 2004). The tokenizer and probability model must also be known to both encoder and decoder.

The following runnable compares two fixed probability models. It computes ideal model-based codelengths; it does not create a file or charge for transmitting the models.

from math import log2

message = "abracadabra"
informed = {"a": 0.4, "b": 0.2, "r": 0.2, "c": 0.1, "d": 0.1}
uniform = {symbol: 0.2 for symbol in informed}

def ideal_bits(model):
    return sum(-log2(model[symbol]) for symbol in message)

for name, model in [("uniform", uniform), ("informed", informed)]:
    total = ideal_bits(model)
    print(f"{name:8s}: {total:5.2f} ideal bits ({total / len(message):.2f} per symbol)")

The better predictions cost fewer ideal bits. That statement applies directly to autoregressive training with log loss. It does not mean that every machine- learning objective is a compressor, or that the resulting stored file has exactly that size.

Delétang et al. demonstrated the operational connection by coupling trained models to a lossless entropy coder (Delétang et al. 2024). In the final paper's table, Chinchilla 70B encoded the study's 2,048-byte image and audio samples at 48.0% and 21.0% of their raw sizes, below the corresponding chunked PNG and FLAC rates of 61.7% and 30.3%. Those rates assume the model weights are already shared. Charging for a 70-billion-parameter model reverses the comparison for a small dataset.

That distinction leads to the minimum description length (MDL) principle. In its simple two-part form, choose a model MM that minimizes

L(M)+L(DM),L(M)+L(D\mid M),

where L(M)L(M) is the cost of describing the model and L(DM)L(D\mid M) is the cost of describing data DD using it (Rissanen 1978). This is a two-part code, an accounting that charges for the model description before crediting the model's compression of the data. Ordinary maximum-likelihood training minimizes the second term for a fixed model family; it does not normally charge for architecture, learned weights, or their precision. Practical MDL also depends on the candidate models and coding scheme because the ideal Kolmogorov-complexity version is not computable (Grünwald 2004).

Where “compression is intelligence” goes beyond the identity

The coding identity concerns probabilities assigned to data. It does not prove that compression on a training corpus guarantees generalization, nor does it define intelligence. Huang et al. compared 31 public base language models over 12 benchmarks and reported an overall correlation of 0.93-0.93 between bits per character and average benchmark score (Huang et al. 2024). That is useful empirical evidence for the selected models, corpora, and tasks. It is still a correlation, and it does not establish that compression and intelligence are the same concept.

Computational correspondence: TD error and dopamine

Ideas also travel in the other direction. Temporal-difference (TD) learning was developed as a machine-learning method, then became a quantitative model for some neural responses (Sutton 1988). In one-step value learning, the TD error is given by this formula:

δt=rt+1+γVw(st+1)Vw(st),\delta_t=r_{t+1}+\gamma V_w(s_{t+1})-V_w(s_t),

and the parameters are updated by

wt+1=wt+αδtwVw(st).w_{t+1}=w_t+\alpha\delta_t\nabla_w V_w(s_t).

Here sts_t is the current state, rt+1r_{t+1} is the next reward, Vw(s)V_w(s) is the estimated discounted return from state ss, γ\gamma discounts future rewards, α\alpha is the learning rate, and ww contains the value function's parameters. The next-state estimate supplies a bootstrapped target; in this semi-gradient update, that target is treated as fixed while differentiating the current estimate.

Schultz, Dayan, and Montague reported that phasic activity in recorded midbrain dopamine neurons showed several patterns predicted by a TD reward-prediction error (Schultz et al. 1997). An unexpected reward produced a response. After a cue reliably predicted that reward, the response shifted toward the cue. If the predicted reward was omitted, activity briefly dipped around the expected time. This was a strong, testable correspondence between a computational model and biological measurements.

The boundary is just as important. Those observations do not show that dopamine implements the complete TD algorithm, and dopamine activity is heterogeneous. Dabney et al. later measured asymmetric responses to positive and negative errors across mouse dopamine neurons, evidence consistent with a population code over a distribution of discounted returns (Dabney et al. 2020). The result refines the correspondence; it does not turn the model into a complete account of the circuit.

Mathematical imports without physical mechanisms

Diffusion models inherited a construction from stochastic physics. Sohl-Dickstein et al. introduced a fixed Markov process that gradually maps data to a simple noise distribution and a learned reverse process that maps noise back toward data (Sohl-Dickstein et al. 2015). A common Gaussian forward step has the following formula:

q(xtxt1)=N ⁣(1βtxt1,βtI),q(x_t\mid x_{t-1}) =\mathcal{N}\!\left(\sqrt{1-\beta_t}\,x_{t-1},\,\beta_t I\right),

while the learned reverse step is modeled as

pθ(xt1xt).p_\theta(x_{t-1}\mid x_t).

Here xtx_t is the sample after step tt, βt\beta_t sets the amount of added Gaussian noise, II is the identity covariance matrix, qq is the fixed forward process, and pθp_\theta is the learned reverse process. Later formulations use denoising, score matching, or stochastic differential equations, but retain the central idea of learning to reverse a controlled corruption process; Chapter 12 develops those versions.

This is genuine mathematical and historical inheritance. It is not a claim that an image generator contains heat, conserves physical energy, or relaxes like a material system. The stochastic construction transferred. The physical medium and causal mechanism did not.

Evolution strategies make a similar separation. A modern version samples parameter perturbations, evaluates the resulting policies, and applies a fitness-weighted parameter update (Salimans et al. 2017). The algorithm retains the abstract pattern of variation and selection. Its correctness as an optimizer does not depend on reproducing genes, organisms, or ecological competition.

What is contested: is emergence a phase transition?

Statistical mechanics has produced real phase-transition results for specified learning models (Seung et al. 1992). It is tempting to use the same language when an ability appears abruptly as language models grow. Wei et al. called an ability emergent when it was absent in smaller models but present in larger ones under the available evaluation (Wei et al. 2022). That describes an observed benchmark curve; it does not establish a physical phase transition.

Measurement can create a cliff. If a model's probability of the correct answer rises smoothly from 0.2 to 0.4, exact-match accuracy may remain at zero and then jump when the top-ranked answer changes. A continuous score can reveal the progress that the thresholded metric hides. Schaeffer et al. showed that nonlinear or discontinuous metrics can explain some reported cases and can even produce apparent emergence in other model families (Schaeffer et al. 2023).

A stronger phase-transition claim would need more than an abrupt benchmark: dense measurements across scale, results robust to the metric, a clearly defined order parameter, and scaling behavior expected near a critical point. Until those tests are supplied for a particular case, “phase transition” is a hypothesis or analogy, not an established mechanism. Metric artifacts can explain some cliffs without proving that every capability always improves smoothly.

Heuristic analogy: what the names preserve

Loose analogies can still guide design if their limits remain visible.

Borrowed term What AI retained Where the analogy stops
Neuron Weighted integration followed by a nonlinear response, inherited from early abstractions of nerve cells (McCulloch and Pitts 1943; Rosenblatt 1958) Artificial units omit spikes, dendrites, biochemistry, and most neural dynamics. Hebb's proposal about activity-dependent strengthening inspired learning ideas, but backpropagation is not a faithful model of it (Hebb 1949).
Attention A differentiable operation that assigns different weights to available information The name does not show that transformer attention implements human selective attention.
System 1 / System 2 A useful contrast between fast answers and more deliberate computation (Stanovich and West 2000; Kahneman 2011) A longer generated trace does not by itself create a second cognitive system.

The mistake is not using an analogy. The mistake is allowing its familiarity to supply evidence that has not been measured. For any borrowed idea, ask what maps, what mathematical structure survives, what new prediction transfers, and where the connection fails. The answer tells you whether you are using an identity, a scientific model, an imported tool, or a helpful picture.

Further reading

  • Shannon, “A Mathematical Theory of Communication” (entropy, the bit, and the link between compression and prediction), 1948.
    Shannon founds information theory, defining entropy as the measure of information and establishing the limits of compression and reliable communication over noisy channels.
  • Rissanen, “Modeling by Shortest Data Description” (Minimum Description Length; model selection as compression), 1978.
    Rissanen introduces the Minimum Description Length principle, framing model selection as choosing the model that most compresses the data.
  • McCulloch & Pitts, “A Logical Calculus of the Ideas Immanent in Nervous Activity” (the artificial neuron as a threshold logic unit), 1943.
    McCulloch and Pitts give the first mathematical model of a neuron, showing networks of threshold logic units can compute any logical function.
  • Rosenblatt, “The Perceptron: A Probabilistic Model for Information Storage and Organization in the Brain” (the trainable single-layer perceptron), 1958.
    Rosenblatt introduces the perceptron, a trainable linear classifier with a weight-update learning rule, an early foundation of neural networks.
  • Hebb, Donald O.. The Organization of Behavior: A Neuropsychological Theory (Hebbian learning; co-active neurons strengthen their connection). John Wiley & Sons, 1949.
    Hebb proposes that learning strengthens synapses between co-active neurons (cells that fire together wire together), the basis of Hebbian learning.
  • Seung et al., “Statistical Mechanics of Learning from Examples” (statistical mechanics of generalization and learning curves), 1992.
    Seung, Sompolinsky, and Tishby apply statistical mechanics to learning, deriving generalization error and learning curves as a function of training-set size.
  • Schultz et al., “A Neural Substrate of Prediction and Reward” (dopamine responses show patterns consistent with a temporal-difference reward-prediction error), 1997.
    Schultz, Dayan, and Montague report midbrain dopamine responses that resemble a reward-prediction error, linking neuroscience to temporal-difference reinforcement learning.
  • Sutton, “Learning to Predict by the Methods of Temporal Differences” (temporal-difference learning), 1988.
    Sutton introduces temporal-difference learning, which updates predictions from the difference between successive estimates rather than waiting for the final outcome.
  • Rao & Ballard, “Predictive Coding in the Visual Cortex: A Functional Interpretation of Some Extra-Classical Receptive-Field Effects” (predictive coding; only residual prediction error propagates forward), 1999.
    Rao and Ballard propose predictive coding, where higher cortical areas predict lower-level activity and only the prediction errors propagate forward.
  • Friston, “The Free-Energy Principle: A Unified Brain Theory?” (adaptive systems minimize a variational free-energy upper bound on surprisal), 2010.
    Friston proposes the free-energy principle, arguing the brain minimizes a variational free-energy bound on surprise to perceive, learn, and act.
  • Kahneman, Daniel. Thinking, Fast and Slow (dual-process cognition: System 1 (fast) and System 2 (deliberate)). Farrar, Straus,Giroux, 2011.
    Kahneman contrasts fast intuitive System 1 thinking with slow deliberate System 2 reasoning, and the cognitive biases each produces.
  • Stanovich & West, “Individual Differences in Reasoning: Implications for the Rationality Debate?” (coined the System 1 / System 2 labels Kahneman later popularized), 2000.
    Stanovich and West introduce the System 1 / System 2 terminology for dual-process reasoning and analyze individual differences in human rationality.
  • Dabney et al., “A Distributional Code for Value in Dopamine-Based Reinforcement Learning” (dopamine responses provide evidence consistent with a distributional temporal-difference code), 2020.
    Dabney et al. find heterogeneous dopamine responses consistent with a population code over distributions of discounted returns.

Comments

Log in to comment