5D Library › The Thermodynamics of Desire · 中文
Chapter 5. Leaking and Not Leaking: An Energy Account of Attention
An old word for an old problem
Chapter 3 introduced the Buddhist āsrava, the “outflows” or “leaks” through which the mind’s energy runs out towards its objects. The tradition did not treat them as a minor nuisance. Their ending was the goal of the whole path.
Evidence
In Buddhist accounts of the path, the destruction of the outflows (āsravakṣaya, 漏尽) marks the arhat, the one who has completed the training. The knowledge that the outflows have been destroyed is counted as the last of the six higher knowledges (abhijñā), in Chinese 漏尽通 (Buswell and Lopez 2014). “Without outflows” (anāsrava, 无漏) describes the states and wisdom that no longer feed craving.
Source text
名与身孰亲?身与货孰多?得与亡孰病?是故甚爱必大费,多藏必厚亡。知足不辱,知止不殆,可以长久。(老子, n.d.)
The author’s translation: Fame or the self, which is dearer? The self or goods, which is worth more? Gaining or losing, which does more harm? So great craving must cost much, and great hoarding must lose much. Know what is enough and you will not be disgraced; know when to stop and you will not be endangered; then you can last long. (Daodejing, chapter 44)
“Great craving must cost much” is an energy account in one line. This chapter tries to write the account out, using the learning model of Chapter 2 and the drive of Chapter 3, and to ask why one modern object, the smartphone, is so good at making attention leak.
The schedule that never resolves
In the 1950s, Charles Ferster and B. F. Skinner studied how animals respond when rewards arrive on different schedules: after every response, after a fixed number of responses, after a fixed time, or after an unpredictable number of responses.
Evidence
Variable-ratio schedules, in which a reward follows an unpredictable number of responses, produced high and steady rates of responding that persisted long after rewards stopped (Ferster and Skinner 1957). Half a century later, Christopher Fiorillo, Philippe Tobler and Wolfram Schultz found that dopamine neurons carry two signals: a brief response that scales with the probability of reward, and a slower, sustained activation during the wait for an uncertain reward, which was largest when reward and no reward were equally likely (Fiorillo, Tobler, and Schultz 2003).
The learning rule of Chapter 2 shows why unpredictable rewards never “settle”. If a reward arrives with probability , a learner’s prediction converges on , and the prediction error is when the reward comes and when it does not. Its average size is , which is zero only when is 0 or 1.
Calculation
import random
rng = random.Random(1)
alpha = 0.05
print("reward probability learned value mean |delta| (last 2000 trials) 2p(1-p)")
for p in (1.0, 0.9, 0.5, 0.25, 0.1):
V, errs = 0.0, []
for t in range(6000):
r = 1.0 if rng.random() < p else 0.0
d = r - V
V += alpha * d
if t >= 4000:
errs.append(abs(d))
print(f"{p:18.2f} {V:13.2f} {sum(errs) / len(errs):31.2f} {2 * p * (1 - p):7.2f}")
# reward probability learned value mean |delta| (last 2000 trials) 2p(1-p)
# 1.00 1.00 0.00 0.00
# 0.90 0.95 0.19 0.18
# 0.50 0.55 0.50 0.50
# 0.25 0.27 0.37 0.38
# 0.10 0.08 0.18 0.18A reliable source of reward, , stops producing prediction errors once it is learned; this is the fading of Chapter 2. A source that pays off half the time never stops producing them. The errors are as large on the ten-thousandth trial as on the hundredth. A feed that sometimes shows something wonderful, a message that might be important, a notification that might be good news: each of these is a variable-ratio schedule, and each keeps the learning machinery running indefinitely.
How an uncertain reward captures an evening
Chapter 4 explained that a healthy mind values information: it is drawn to what it is uncertain about, because resolving uncertainty is useful. Reinforcement-learning models often build this in as an exploration bonus: an option’s attractiveness is its expected value plus a bonus that grows with how uncertain the learner is about it.
For most things, this bonus is self-limiting. Explore a new restaurant a few times and the uncertainty resolves; the bonus disappears. A variable-ratio source is different. Its uncertainty is not ignorance that can be reduced; it is built into the schedule. The bonus never disappears.
Calculation
A three-hour evening is divided into minutes. Each minute, attention goes to the partner or the phone. The partner is reliably rewarding (0.3 per minute). The phone pays 1.0 with probability 0.15, an average of only 0.15 per minute. The learner tracks each option’s value and how large its prediction errors have been, and chooses with a probability that grows with value plus times that uncertainty. After thirty evenings of learning, the last evening is reported, with the Shannon entropy of attention from Chapter 1.
import math, random
from math import log2
def evening(phone_available, kappa, seed=3, minutes=180):
"""Each minute, attend to the partner or the phone. The partner is reliably rewarding (0.3 per minute);
the phone pays 1.0 with probability 0.15 (mean 0.15). kappa = how strongly unresolved uncertainty attracts."""
rng = random.Random(seed)
Q = {"partner": 0.0, "phone": 0.0} # learned value per minute
U = {"partner": 0.0, "phone": 0.0} # running mean of squared prediction error
use = {"partner": 0, "phone": 0}
switches, last = 0, None
for day in range(30): # thirty evenings of learning; report the last one
use = {"partner": 0, "phone": 0}
switches, last = 0, None
for m in range(minutes):
options = ["partner", "phone"] if phone_available else ["partner"]
w = [math.exp(8 * (Q[o] + kappa * U[o] ** 0.5)) for o in options]
o = rng.choices(options, weights=w)[0]
r = 0.3 if o == "partner" else (1.0 if rng.random() < 0.15 else 0.0)
d = r - Q[o]
Q[o] += 0.05 * d
U[o] += 0.05 * (d * d - U[o])
use[o] += 1
switches += (last is not None and o != last)
last = o
p = [use[o] / minutes for o in use if use[o]]
H = 0.0 - sum(x * log2(x) for x in p)
return use["partner"], use["phone"], switches, H
print(f"{'scenario':38s} partner phone switches H (bits)")
for name, avail, kappa in (("phone present, no pull of uncertainty", True, 0.0),
("phone present, uncertainty attracts", True, 0.6),
("phone in another room", False, 0.6)):
a, b, s, H = evening(avail, kappa)
print(f"{name:38s} {a:5d} {b:5d} {s:8d} {H:8.2f}")
# scenario partner phone switches H (bits)
# phone present, no pull of uncertainty 134 46 65 0.82
# phone present, uncertainty attracts 68 112 75 0.96
# phone in another room 180 0 0 0.00Even without any pull of uncertainty (), some minutes go to the phone: a choice by probability always samples the alternatives. But once uncertainty attracts, the phone takes 112 of 180 minutes, although its average reward is half the partner’s. The partner has not become less rewarding. The partner has become known, and the phone never will be. When the phone is in another room, the leak is zero and the entropy of the evening falls to zero bits.
Hypothesis · not established · Counterfeit information
A variable-ratio source exploits the mind’s healthy appetite for information. Its uncertainty looks, to the learning machinery, like something still to be learned, but checking it never reduces that uncertainty: it delivers prediction errors without information gain. In the terms of Chapter 4, it offers counterfeit epistemic value. This predicts that the attraction of such sources should be strongest in people and situations where genuine epistemic value is lowest, for example in a relationship whose shared life has become fully predictable, and that adding real, learnable novelty to the relationship should reduce the time spent on such sources even without any rule about phones.
Evidence: phones at the table
Evidence
In a field experiment, people who had their phones on the table during a meal with friends or family enjoyed the meal somewhat less and felt more distracted than people whose phones were put away (Dwyer, Kushlev, and Dunn 2018). In surveys of adults in romantic relationships, being snubbed by a partner in favour of their phone (“phubbing”) was associated with more conflict over phone use and with lower relationship satisfaction (Roberts and David 2016).
Note
The effects in these studies are modest, and the survey results are correlations: they cannot show that phone use lowers satisfaction rather than the reverse. They are consistent with the model of this chapter but do not prove it. Chapter 8 proposes a test that can distinguish the two directions.
The ledger
Combine the pieces into an account that a couple can actually keep. For one evening, write down:
| Line | What to record | Sign in |
|---|---|---|
| Shared minutes | Minutes both people attended to the same thing, together | contributes to |
| Novelty | Did the evening contain one new, learnable shared experience? | contributes to |
| Repair | After any friction, minutes until both felt normal again | protects (Chapter 6) |
| Leaked minutes | Minutes of the protected time spent on screens | |
| Pickups | Number of times a phone was picked up | |
| Entropy | Shannon entropy of the evening’s attention, in bits | rises with |
The table is not a scoring system for love, and it should not be used to accuse a partner. It is a way to make an invisible flow visible. Most people underestimate their leaked minutes, for the same reason the learner in the simulation does not notice its drift: no single minute feels like a choice.
Hypothesis · not established
Of the two ways to raise the drive , reducing the leak should often be cheaper than increasing the inflow . An hour of protected time costs nothing but a decision, while a novel weekend costs planning, money and energy. If the model is right, a nightly protected hour should do at least as much for desire and closeness as a weekly novel activity. Chapter 8 tests exactly this comparison.
The Daodejing passage ends with “know when to stop, and you can last long”. Read through the ledger, it is not a call to renounce pleasure. It is the observation that a flow which leaks without limit cannot sustain any structure, and that the cheapest negentropy is often the leak one does not allow.
References
Fan, Y. (2026). The Thermodynamics of Desire: Entropy, Dopamine Prediction Error and Dissipative Structures in Human Bonds [欲望的热力学] (Version 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.23682498 · Licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0).