Light as Logic: The Dawn of All-Optical Intelligence

How a perovskite crystal is rewriting the rules of computation — one photon at a time
The Scene
The server room is cold. Rows of GPU racks hum under cooling systems that draw enough power to supply a city block. Somewhere inside that noise and heat, a deep learning model is reading a handwritten number. Billions of math steps fire in order (memory grabs data, processors crunch weights, results go back to memory) over and over, millions of times per second. All that work, all that heat, all that energy, just to read the curve of a seven.
Now consider something else entirely. A thin film of amber-tinted crystal, roughly the size of a thumbnail, sits on a glass slide. A beam of UV light pulses across it. The crystal dims. A second pulse arrives. It dims further, but not evenly — the pattern of light writes itself into the material. A red laser then passes through, its waves bending as they travel. By the time the light reaches the detector on the other side, the answer is already there. No processors, no memory transfers, no heat to speak of.
That second scene is not a thought experiment. It comes from research published in Photonics (2026) by Yang Fang, Yitong Wu, Qing Hou, and Xi Chen of the University of Shanghai for Science and Technology. Their work may represent one of the most important shifts in how computing is physically built.
Section I: The Problem with Electrons
Why the Old Model Is Running Out of Road
To appreciate what this research achieves, it helps to understand what it replaces.
Every modern computer, from a smartphone chip to a data center GPU, runs on the same core layout that John von Neumann set out in the 1940s. In that model, data lives in memory. Processing happens in the CPU. Between every operation, data must travel back and forth across a bus. This constant shuffling, known as the von Neumann bottleneck, burns energy, makes heat, and puts a hard cap on how fast any electronic system can work.
Decades of effort have pushed silicon electronics to great heights. Nevertheless, physics does not bend. Chip makers have shrunk transistors down to the size of single atoms, and heat removal has consequently become a core design problem. Furthermore, the energy needed to run large AI models has grown so large that analysts now cite it alongside industrial carbon output.
In response, researchers have begun looking past electrons entirely. If light moves data at the speed of, well, light — and if a material can process that data as it passes through — then the bottleneck does not get reduced. Instead, it gets removed at the root. That is exactly what the researchers in Shanghai set out to build.
Why Light Is the Natural Answer
Light carries no charge, produces no heat from resistance, and travels faster than any electrical signal in a wire. These are not new facts. Yet, until recently, no practical material existed that could hold a memory state using light alone and also serve as a weight in a neural network. Fortunately, the perovskite crystal described in this paper fills that gap.
Section II: The Crystal That Learns
From Chemistry to Computation
The material at the center of this work is a lead halide perovskite called MAPbBr2I — methylammonium lead bromide iodide. In its water-holding form, this crystal has one key trait that sets it apart: its see-through quality is not fixed. It changes.
When UV light hits the crystal, the material pushes water molecules out of its structure and grows darker. When moisture returns, water re-enters and the crystal brightens. Importantly, this back-and-forth is fully reversible. Furthermore, engineers can control the speed of this cycle simply by adjusting the humidity level around the device.
What makes this chemistry so useful is what it means in computing terms. The amount of light the crystal lets through at any moment holds information. A brighter state means one value, while a darker state means another. More importantly, the full history of light pulses — their strength, their length, their timing — writes itself into the material’s physical state. In short, the crystal remembers.
Memory, Timing, and Humidity
This is, at its core, what a biological synapse does. Neurons grow stronger or weaker links based on the signals they receive over time. The perovskite crystal works the same way, except that the signals are photons rather than brain chemicals, and memory sits in crystal structure rather than protein. The researchers confirmed four key synaptic behaviors in their material.
Paired-pulse facilitation occurs when a second light stimulus gets a stronger response than the first, because the first primed the material. In tests, a second UV pulse applied 60 seconds after the first produced a response 1.40 times larger. As the gap grew toward 110 seconds, that ratio fell toward 1.20. Notably, this decay followed the same double-curve pattern seen in living brain tissue, with time constants of 1.5 seconds and 23 seconds.
Short-term memory and long-term memory split according to humidity. At 60 percent relative humidity, the light-transmission change fades fast as water rushes back in. At 30 percent, by contrast, the change holds — the crystal keeps its state. As a result, engineers can shift between short and long memory simply by setting the humidity level.
Packaging and Relearning
A practical note for device builders: future products will likely handle this humidity dependence through sealed packaging with built-in gas control. This approach would lock a fixed humidity level inside the housing at manufacture. Doing so removes outside environmental variation entirely, making the device behave the same way regardless of where it is used.
Learning acceleration shows up as well. This is the effect where relearning a lost skill takes less effort than learning it the first time. In tests, the first learning phase needed 15 seconds of light to raise the transmission change from 36 percent to 49 percent. After a period of fading, however, only 10 seconds were enough to reach the same level again. Structural traces of the first run lowered the energy barrier for the next one. Overall, relearning ran 33 percent faster than initial learning. Taken together, these are not rough comparisons to biology — rather, they are measured, numbered behaviors from a piece of optical material on a glass slide.
Key Performance Numbers
| Metric | Result |
|---|---|
| Transmission control range | 10% to 75% across 600 nm |
| Programmable weight states (DNN) | 25 discrete levels |
| MNIST classification accuracy | 89% over 10,000 test images |
| Dynamic pattern recognition accuracy | 100% after 200 training epochs |
| Relearning speed vs. initial learning | 33% faster |
| PPF index range | 1.20 to 1.40 |
Section III: Writing Words in Light
The 5×5 Array Test
With the synaptic behaviors confirmed, the researchers moved to a live test of what this material can do in an array.
Engineers built a 5 by 5 grid of all-optical synapses and projected words onto it with UV light. Each letter lit up certain synapses, causing a transmission change in proportion to the light strength. That pattern of values then converted into a grayscale image. Specifically, five percent of transmission change mapped to a grayscale value of 255.
The test words — ANT, AT, MAN, NEW, ON, PAN — went into a three-layer neural network as grayscale images. That network had five input neurons, a 20-cell memory layer, and a two-neuron output. After 200 training rounds, every word came back correctly. Accuracy reached 100 percent.
Reading Order, Not Just Shape
The harder test involved the word pair TA and AT. Both words use the same letters, so telling them apart requires knowing the order in which those letters appeared — not just which ones were used.
To build the image for TA, researchers projected T onto the array for two seconds, waited two seconds, and then projected A. For AT, the order reversed. Because the synapses retain a short memory of recent light exposure, the synapse that received the first letter still carries a faint trace when the second letter arrives. That trace makes the two images detectably different. Accordingly, the network learned to tell them apart — again reaching 100 percent accuracy at epoch 200.
Taken as a whole, this result matters because it shows the system can handle time. Sequential order, not just shape, was captured and decoded using entirely optical means.
Section IV: The Network Made of Light
How Light Does Arithmetic
Pattern recognition with a standard neural network is well-mapped territory. The second part of this research, however, moves into something with almost no electronic match — the diffractive neural network.
A diffractive neural network handles data through the physical travel of light through layered materials. Rather than storing neural weights as numbers in memory and doing math on a processor, the system holds the weights as transmission values in a physical material. When light passes through a layer, each synaptic element changes the strength of the incoming wave. Consequently, the weighted sum that any standard network computes with code here happens in space, through the natural mixing of light waves.
The logic becomes clear when written out simply. In a standard chip, every step requires the processor to compute:
Output = Sum of (Input × Weight)
for every neuron, in order, pulling numbers from memory. In the perovskite diffractive network, however, the Weight is the physical opacity of the crystal at that spot. The multiplication happens on its own as light passes through. Crucially, the Sum is just the waves from all inputs landing on the detector at the same time. The arithmetic is not run by a program — rather, it is carried out by physics.
From MNIST to the Speed of Light
Researchers set their perovskite synapses to 25 distinct transmission levels. Specifically, each level came from a specific UV pulse length at low humidity. These levels ranged from 15 percent to 61 percent and served as the adjustable weights of a two-layer diffractive network. That network then trained on 60,000 handwritten digit images from the MNIST dataset.
Testing on 10,000 new images gave 89 percent accuracy. When a handwritten six entered the system, the light distribution at the output peaked at the sixth detector. Notably, the whole thing happened in nanoseconds — the time it takes light to cross the device, not the milliseconds of a GPU inference run.
For scale: a GPU running the same task fires billions of floating-point steps, each moving data between memory and processor. A single electronic synaptic switch burns roughly 1 to 10 picojoules per step — a picojoule being one-trillionth of a joule. By contrast, the all-optical device does the whole job in one forward pass of light through two crystal layers. There is no resistive switching, no charge movement, and no memory fetch. As a result, the energy per step sits orders of magnitude lower — nearer to the femtojoule range of biological synapses than to the picojoule range of the best chips. That gap is not a small gain. It is a different physical world.
Billions of steps · Memory fetched · Heat generated
One forward pass · No memory · No heat
Section V: Cold Intelligence
What Gets Removed
One of the more striking aspects of this work is what it cuts from the computing process entirely.
The device has no transistors, no metal wires, and no clock signal to keep steps in order. Equally, there is no memory bus moving data back and forth between storage and logic. The material acts as both memory and processor at once, so the transmission level encodes the weight while the passage of light applies that weight to the input.
No charge carriers move through resistive material, so no resistive heat builds up. The thermal output of this computing process is, in practical terms, close to zero. Essentially, the standard cost of electronic computing — electrical energy turning into heat as electrons push through resistance — simply does not arise here.
The Bottleneck Made Structurally Impossible
The von Neumann bottleneck exists because memory and processing sit in separate physical places. In this optical system, by contrast, they share the same physical material. As a result, the bottleneck has not been reduced — it has been made structurally impossible.
This distinction matters for how engineers think about scaling. In electronic AI systems, cutting the bottleneck calls for complex cache designs, custom memory layouts, and tight chip-level work. All of that adds cost and effort. In this optical system, however, the absence of the bottleneck is not an engineering feat. It is simply a property of how the physics work.
Section VI: Where This Goes
Current Trade-offs
The researchers are open about where the technology stands today. Switching speed and control depth in the all-optical device currently fall short of what the best light-and-chip devices reach. These are real engineering gaps, not minor details. Therefore, future work will need to close them for uses that demand fast reprogramming.
Durable Advantages
Even so, the structural advantages of this approach hold firm. A device with no circuits, no active power draw for computing, and no cooling needs occupies a very different design space from standard processors. That difference grows more attractive as AI workloads push the energy and heat budgets of data centers toward their upper limits.
The researchers point to four main use areas. First, edge AI, where computing resources are tight. Second, adaptive optical pre-processing, where sensing and processing happen in the same physical layer. Third, robust vision systems for settings where electronic parts break down under harsh conditions. Fourth, reprogrammable holography, where optical elements must update in the field. In each of these cases, the profile of all-optical computing (fast, passive, circuit-free) offers something that electronic systems cannot easily copy.
Section VII: The Broader Context of Perovskite
A Material With a Track Record
MAPbBr2I belongs to a materials family that researchers have studied closely across many fields over the past decade. For instance, halide perovskites have produced some of the most efficient solar cells ever recorded in lab conditions. Beyond solar, researchers have also used them to build high-output LEDs and explored them for light sensors, lasers, and radiation detectors.
What This Work Adds
What the Shanghai researchers add to this picture is a demonstration that this same class of materials can act as physically built-in neural weights. These are not just passive optical parts. Instead, they are active, programmable, memory-holding elements that respond to their light history in ways that match biological behavior.
The breadth of that materials base is a real practical asset. Building methods for halide perovskite films are mature, precursor chemicals are sold commercially, and the process used here (spin-coating followed by low-temperature heating) works on standard lab tools. For these reasons, the path from lab proof to scaled production is shorter here than it would be for a brand-new material with no prior development history.
Section VIII: A Different Way of Thinking About Thinking
Software on Hardware — and What Comes After
There is a deeper conceptual point in this work, one that is easy to miss amid the transmission data and accuracy scores.
Standard AI places software on top of hardware. The intelligence lives in code — in trained weights stored as numbers in memory, applied to inputs through millions of math steps. Hardware runs instructions and plays no role in the thinking itself.
By contrast, the all-optical synapse collapses that split entirely. Light enters, and the history of the crystal shapes what comes out. Put simply, the material does not run a computation — it is the computation.
Closer to Biology Than Silicon
This sits much closer to how real nervous systems work. After all, synaptic strength in brain tissue is a physical trait. It encodes in the molecular parts of the synapse itself, not in a number held somewhere else. When a neuron fires, it does not fetch a weight from a table. Instead, it sends a signal through a connection whose physical properties carry the weight directly.
Accordingly, the perovskite all-optical synapse brings that same principle into a form that can be built and used with optical hardware. Light is the signal. Crystal structure is the memory. Transmission is the computation.
Section IX: What 89 Percent Means
Context for the Number
Eighty-nine percent accuracy on MNIST digit classification is not a top score. Digital neural networks have pushed past 99 percent on the same test set. However, using that comparison to judge this work would miss the point entirely.
The real question is not whether this optical system beats the best digital classifiers on a benchmark. Rather, it is whether a fully optical, circuit-free, passively powered system can reach useful accuracy — and whether its structural properties justify the raw accuracy trade-off for the uses it targets.
Why the Trade-off Makes Sense
For edge vision systems in power-tight settings, 89 percent accuracy from a device with no active electronics may be a better fit than 99 percent from a system that needs a GPU and a cooling unit. Similarly, for pre-processing layers that cut the computing load on downstream chips, any solid optical classification at the front end shifts the system economics in a meaningful way.
Beyond that, 89 percent is a starting point, not a ceiling. The device currently uses 25 programmable weight states, and the material’s light-control range is not yet fully developed. Both of those, therefore, are levers that engineers can pull in the next round of work.
Conclusion: The Photon’s Turn
For most of computing history, electrons have carried the load. They have done it well. Through relentless effort and miniaturization, the silicon transistor has shrunk from room-sized machines to billions of devices on a fingernail. Yet the physics of electron-based computing carry costs that grow with the work: heat, energy use, and the constant movement of data between memory and logic.
The research from Yang Fang, Yitong Wu, Qing Hou, and Xi Chen offers a different path, This is not a small step forward from what already exists, but a new physical model for what computing can be. Light carries the signal. Crystal structure holds the memory. Diffraction does the math. Ultimately, the material itself becomes the intelligence.
The age of the electron will not end next year, or the year after. Silicon will stay dominant for the foreseeable future. Nevertheless, the work published in Photonics in March 2026 shows clearly that another way is real, tested in the lab, and ready to be built on.
The photon has been waiting for its turn. The perovskite crystal is its first serious audition.
Citation
Fang, Y., Wu, Y., Hou, Q., & Chen, X. (2026). Perovskite MAPbBr2I All-Optical Synapses for Dynamic Pattern Recognition and Diffractive Neuromorphic Computing. Photonics, 13(4), 328. https://doi.org/10.3390/photonics13040328
