arXiv:2610.34428cond-mat.dis-nnOct 2026

Manuscript Offprint

arXiv:2610.34428

Matter that learns what matters

Natalia G. Berloff

Abstract

Can a material learn what deserves its attention? We show that it can in a model optical network, in which action outcomes train a persistent record in each link. The record biases whether a source is consulted and sets how strongly it changes a stored answer, so useful sources gain attention and influence without being identified in advance. The network's experience thus shapes the information available for its future learning. Resonant readouts make this learning fragile: reinforcement can carry a record past resonance, where it persists but its influence weakens. We derive bounds within which relevant signals guide the answer, irrelevant signals are rejected and stored answers remain open to revision. These bounds guide a learning rule that limits reinforcement as records form; in simulations, it acquires useful records and keeps them functional. When relevance changes, an obsolete record can block its own replacement. A local state that strengthens negative writing after unsuccessful actions releases obsolete records and completes the learning sequence more often. How a memory is read should decide how it is written.

An animal searching for food hears many sounds, but only a few tell it where to look. It must learn from experience which signals to examine and how strongly an observation should change what it remembers [1–3]. Physical materials can also learn [4]. Mechanical, flow, electrical and optical networks retain records of past forcing and can be trained to give a required response [5–15]. Some learn from reward [16, 17]. Local learning rules have also been demonstrated [9, 15, 17–20], in some cases without a processor [9, 18]. In these systems, whether trained by examples, targets or rewards [16, 17] or adapting to their inputs [19, 20], the learned state shapes the response to whatever input arrives. Here, by contrast, a persistent material state trained by action outcomes governs both which source is consulted and how strongly that source can change a stored answer.

Optical cavities coupled to excitation reservoirs have been used for neuromorphic computing [21, 22]. In optical networks, a stored state can route incoming light [20]. Optical reservoir computers have also used reward to select among pretrained readouts or learn control policies, with readout weights trained off-chip [23, 24]. Here we ask a different question: can the outcomes of a material's own actions train a persistent physical state that governs the material's intake of information, deciding which external source is read and how strongly it changes a stored answer? We call this endogenous information control. It is the physical counterpart of learned attention in the psychological sense, the learned selection and weighting of information sources [1, 2], not the attention mechanism of transformer networks: the material's stored experience sets which information it takes in and how far it trusts it, so that experience shapes the evidence available for its future learning. We show it in a model network of optical cavities (Fig. 1; the terms used throughout are collected in Table 1). The model's analysis also yields a design principle for any memory that is read through a resonance.

The network repeatedly answers two yes-or-no questions about hidden binary values. We call each question a need and label the two E and I; two needs let us test whether learning for one interferes with the other. Each need has an optical answer memory: a degenerate parametric oscillator whose stable phases, 0 and π\pi, represent yes and no (Methods). Three input beams, the sources, carry binary signals in their phase. For each need, one source is valid: it tracks the corresponding hidden value. The two needs have different valid sources, while the third source is unrelated to both. These pairings define the assignment. Because the hidden values change at random, the network must keep consulting sources. It does best by consulting the valid source and allowing only that source to change its answer.

Every source connects to both answer memories through separate optical links. Each link contains a cavity and a second resonator, the reader, which couples the source to the answer memory. Absorbed light fills a reservoir of excitations shared by the cavity and the reader, whose population forms the link's persistent relevance record. Changes in this population shift both resonances, as long-lived excitons blueshift optical modes in polariton microcavities [25, 26]. The cavity is probed at a fixed frequency, so its response depends on the record and biases source selection. The reader couples to a source field at a fixed frequency, so the same record sets how strongly an ordinary reading changes the answer (Fig. 1a).

The experimenter sets the timing of sensing, reading and feedback, with the needs acting in turn (Fig. 1b,c). Each cycle begins with a weak probe of the acting need's links. Their cavity responses determine the probability of selecting each source through a fixed rule that favours stronger responses (Methods). The selected source then acts on both answer memories through its readers. An external scorer checks the acting need's answer against the correct answer.

Each link keeps a trace, a temporary signal that marks its recent activity, such as light in its reader, until feedback arrives. A common outcome signal reaches all links and drives the writer, which weights each record update by the local trace. The writer's outcome signal is positive for correct answers and negative for errors at the operating baseline. The writer's contribution to the record change is the link's credit. A separate correction drive resets only the acting need's answer memory to the correct answer and writes no relevance record. For binary answers, the known action and its score determine the required correction, so the correction supplies no additional task information. The reinforcement threshold makes the mean outcome signal nearly zero when the network merely retains the corrected answer (Methods).

The protocol provides assisted reading: on half of all readings, the acting need's selected reader is tuned to resonance, regardless of which source was chosen. This allows a source to revise a wrong answer and earn credit before its record has formed. Without assistance, even a valid source would initially be too weakly coupled to do so (Supplementary Sections S1.3 and S3.2). The experimenter supplies neither the valid-source assignment nor a target record for any link; the network must infer source relevance from its readings and their outcomes.

These coupled readouts place a physical limit on learning. Reinforcement can carry a record past resonance, where it persists while both readouts weaken: a stored record is not automatically a functional one. We derive sufficient bounds within which fixed records favour valid sources, protect stored answers from irrelevant inputs and permit revision by valid signals. These bounds tell the writer where reinforcement should stop. A self-limiting writer that weakens positive updates as a record forms, and ceases them at a ceiling inside the functional range, acquired functional records in all six initial validation networks and kept them functional through operation before reassignment. When relevance changes, a further obstacle appears: an obsolete record keeps its source favoured and so restricts the readings that could replace it. A local state that strengthens negative writing after adverse outcomes releases such records and completes the full sequence of learning, operation and replacement more often (Fig. 5).

One population stores the record and sets both readouts

Optical bistability allows each link to retain a record under a continuous holding drive. Absorbed light fills the reservoir, whose growing population initially shifts the cavity resonance towards the drive frequency. The resulting increase in absorption reinforces the population growth. When the cavity field relaxes much faster than the reservoir, the balance between filling and decay reduces to

x˙/γ=−x+A/D(x),D(x)=1+(δ−x)2,(1)\dot{x}/\gamma=-x+A/D(x),\qquad D(x)=1+(\delta-x)^{2}, \tag{1}

where xx is the normalised population, γ\gamma the reservoir decay rate, AA the drive power and δ\delta the detuning (Methods). At δ=3\delta = 3 and holding power A=A0=4A = A_0 = 4, this feedback produces two stable populations [27], xL=2−2x_L = 2 - \sqrt{2} and xH=2+2x_H = 2 + \sqrt{2}, separated by the unstable population xU=2x_U = 2 (Fig. 1a). In these reduced dynamics, a pulse that raises xx above xUx_U is followed by relaxation towards one link

Figure

storage by bistability

two readouts of one record

b

same outcome pulse to all six links; each link writes at a rate set by its own trace and record

grey lines: waveguides

C

Figure

Figure 1: One population per link controls both source choice and memory revision. a, One link. Left: absorbed light fills a reservoir of excitations (purple balls). Its population x, the relevance record, shifts the cavity and reader resonances relative to the fixed frequencies of the drive, probe and source field. Middle: optical bistability, Eq. (1), shown as motion in the effective potential U(x)U(x). Its minima are the stable populations of the unformed (xL(x_L, dashed circle) and formed (xH(x_H, filled circle) records. Outcome pulses can push the record across the barrier at xUx_U. Right: the two readouts, normalised to their peaks. The cavity's probe response 1/D(x)1/D(x) is proportional to the sensing signal and biases source choice. The reader gain g(x)/g0g(x)/g_0, shown for width w=0.6w = 0.6, sets how strongly the source moves the answer. Both peak near resonance. Green marks the range proved at w=0.6w = 0.6, with valid records in [3.30, 3.70], where both readouts work (the functional window, Fig. 4). Beyond this range (arrow), a record can stay formed but cease to be useful (open circle). b, Network crossbar. Source lines (columns; only the selected one is open) cross memory lines (rows, one per need). At each crossing, a cavity holds a reservoir of population xjkx_{jk}, and a reader resonator couples the lines efficiently only near resonance. The reader's glow represents the activity recorded by the trace ϵjk\epsilon_{jk} under the admission rule. (1) The probe of the acting need E gives the sensing signals DkD_k (blue bars): cavity intensities proportional to 1/D(x)1/D(x) in panel a. (2) A supplied rule, Eq. (11), selects a source. It pushes memory E strongly through the formed link and memory I weakly through the unformed one. The source reaches both memories, but the records determine which memory it can change. (3) The phase of memory E is scored. (4) One outcome pulse, a proposed device operation, reaches all six links; each writes at a rate Πjk∝ϵjkH(xjk)\Pi_{jk} \propto \epsilon_{jk} H(x_{jk}), Eq. (3). (5) The correction drive resets memory E; it writes no record. c, Timing of one decision cycle and the role of the record in each step; assisted reading bypasses the record of the selected reader.

Table 1: Glossary. The model's parts and the terms used for them. Symbols refer to the network equations in Methods.

TermMeaning
Need (E, I)One of the two yes-or-no questions the network answers in turn. The acting need is the one answered in the current cycle.
SourceOne of three input beams carrying a binary signal in its phase. A source is valid for a need if it tracks that need's hidden value; the assignment pairs each need with its valid source. The third source is unrelated to both needs.
Answer memory zjz_jDegenerate parametric oscillator of need jj; its phase, 00 or π\pi, stores the current answer.
LinkOptical path from source kk to the memory of need jj (six in all). Contains a cavity, a reader and a reservoir.
Cavity bjkb_{jk}Resonator under a continuous holding drive. Probed at a fixed frequency during sensing; its response biases which source is selected.
Reader cjkc_{jk}Second resonator coupling source kk to memory jj; its gain sets how strongly the source moves the answer.
Relevance record xjkx_{jk}Reservoir population shared by the cavity and reader of a link. It shifts both resonances and is the learned state. Formed when xjk>xUx_{jk}>x_U.
Sensing, protection, revisionThe three readout functions: a valid record wins source selection; non-valid readings cannot reverse a stored answer; a valid reading can revise it. The functional window is the record range in which all three hold.
Trace ϵjk\epsilon_{jk}Temporary local signal marking a link's recent activity until the outcome arrives. Three variants: co-presence (cavity light), admission (reader light), use (reader work on the answer).
Writer Πjk\Pi_{jk}Outcome pulse, common to all links, weighted by each link's trace; it changes the record. The self-limiting writer weakens positive writing as a record forms.
Correction drive uju_jResets the acting memory to the correct answer after scoring. Writes no record.
Assisted readingOn half of all readings, the selected reader is tuned to resonance, letting a source act before its record has formed.
Adverse-outcome susceptibility μjk\mu_{jk}Local signed state raised by adverse outcomes; its positive part strengthens negative writing on that link.

xHx_H. The holding drive sustains the high population after the pulse ends. We call a record formed when x>xUx > x_U.

At a fixed population, the settled cavity response to the probe is proportional to 1/D(x)1/D(x), and the selection rule favours stronger responses. The same population also shifts the reader resonance, setting the selected source's influence on the answer memory.

Without reader or correction drives, the answer memory zjz_j of need jj has stable states zj=±1z_j = \pm 1, corresponding to phases 00 and π\pi. Source kk carries the value yk=±3y_k = \pm 3 and connects to this memory through a link with population xjkx_{jk}. When the reader relaxes much faster than the population and answer memory, its contribution during an unassisted reading is approximately

z˙j∣readers≃∑kIkK(xjk)(yk−zj),(2)\dot{z}_{j}|_{\mathrm{readers}} \simeq \sum_{k} I_{k} K(x_{jk})(y_{k} - z_{j}), \tag{2}

where Ik=1I_k = 1 while source kk is read and 00 otherwise. The response is K(x)=g0/{1+i(x−xH)/w}K(x) = g_0 / \{1 + \mathrm{i}(x - x_H)/w\}, with reader width ww and peak gain g0g_0. In the reduced dynamics of the real answer coordinate, the gain g(x)=ReK(x)g(x) = \mathrm{Re} K(x) acts like the stiffness of a spring pulling the answer towards the source value. A weak pull can leave the answer in its original well. A sufficiently strong pull removes the stable state with sign opposite to the source, allowing the answer to change (Methods).

For settled cavity fields at equal drive power, the sensing response at xHx_H is 5.83 times that at xLx_L. The corresponding reader-gain ratio is 9 at w=1w = 1 and about 23 at w=0.6w = 0.6 (Fig. 1a). The two readouts peak at different populations: sensing at the probe resonance, x=δ=3x = \delta = 3, and reader gain at x=xHx = x_H. The reader is tuned by design so that its gain peaks at the formed population, where a valid record should rest, whereas the probe detuning is fixed by the bistability condition; the two peaks therefore need not coincide. Further growth beyond both peaks weakens both readouts without erasing the record. The six populations X={xjk}X = \{x_{jk}\}, shaped by action outcomes, carry the network's learned relevance (criteria D1–D5, Methods).

References (50)