For the Tesseract Hackathon 2026 I built Differentiable Silicon. It changes how a ferroelectric transistor is fabricated so that a spiking neural network built from that transistor classifies heartbeats better. The gradient travels from the classifier's loss back into a device simulator: Sentaurus TCAD, a commercial program that gives no derivatives at all, or DEVSIM, an open-source twin of the same transistor. In 64 DEVSIM calls the loss fell from 1.40 to 1.02. The project was selected as the Best in Track winner for Track 3.
What was the Tesseract Hackathon 2026?
Pasteur Labs and the Institute for Simulation Intelligence (ISI) organized this hackathon online from 3 to 31 August 2026. It is built around Tesseract, their open-source tool for packing a piece of scientific software into a container with a fixed list of inputs and outputs. A packed component can also offer its derivatives through standard functions, so components written in different languages can be chained and differentiated as a single pipeline.
The task was to connect several Tesseracts and use gradients that flow from end to end to solve a real design, inference or training problem. A gradient here is a set of numbers that says how much the final result changes when each input is nudged a little. There were five tracks. I entered Track 3, which joins machine learning with mechanistic models, meaning models built from physical laws rather than learned from data.
Nearly 125 participants from 33 countries took part, and 30 projects were completed. The prize pool was $20,000.
What problem did I pick?
A spiking neural network (SNN) is a neural network whose neurons send short pulses, called spikes, over time instead of passing continuous numbers. That makes it a good fit for hardware, because its synapses (the weighted links between neurons) can be built from real devices.
In my BSc thesis the synapses are ferroelectric field-effect transistors (FeFETs). A ferroelectric material keeps an electric polarization after the voltage that set it is removed, and it flips when a strong enough voltage is applied the other way. With a ferroelectric film in its gate, a transistor remembers which state it was left in, so its conductance can store a synaptic weight. The network classifies heartbeats from ECG (electrocardiogram) recordings in the MIT-BIH Arrhythmia Database, a standard public dataset.
How well the network classifies depends on how the transistor was fabricated: how thick the ferroelectric film is, how long the gate is, and how heavily the channel is doped. Normally these two sides never meet. A device engineer tunes the transistor for a device metric and hands it over. A machine learning engineer then trains the network on whatever device arrives. Neither side sees the other's goal.
I wanted the classifier's own loss to tell the device engineer which way to change the fabrication.
How does the gradient travel from the classifier to the device?
The pipeline has four stages, and the gradient goes through them in reverse:
- Four fabrication settings go into the device simulator: ferroelectric thickness, gate length, channel doping and the thickness of the thin interfacial layer under the ferroelectric.
- The simulator returns seven figures of merit, summary numbers that describe the finished device, such as its memory window and its on and off conductance.
- A small circuit model written in JAX (a Python library that computes exact derivatives) turns those seven numbers into the five parameters a neuron needs.
- The SNN, written in PyTorch, classifies the beats and reports its loss. The loss is class-balanced cross-entropy, a standard error measure that weights rare heartbeat types as heavily as common ones.

Each stage is its own Tesseract in its own container. The gradient leaves PyTorch, crosses into JAX, then crosses an SSH connection into a commercial simulator.
How do you get a gradient from a simulator that gives none?
The device simulator is Synopsys Sentaurus TCAD. TCAD (technology computer-aided design) software predicts how a transistor will behave before it is fabricated. Sentaurus is a closed program with no derivatives. In my setup it lives on a CentOS 7 server, reached over SSH, with only Python 2.7 available.
So I estimated its derivatives with finite differences: nudge each fabrication setting a little, simulate again, and see how the seven outputs move. Two methods keep this affordable:
- A trust region limits each design step to a small area where the estimate can be relied on, and grows or shrinks that area depending on how well the last step went.
- Broyden's method updates the derivative estimate from the steps already taken, so the simulator does not have to be probed again in every direction after each step.
The values going forward always come from the real simulator. Only the derivatives are estimated.
A single Sentaurus solve takes about five minutes, so I also built the same transistor in DEVSIM, an open-source device simulator that solves it in about 20 seconds. Both simulator containers take and return exactly the same values, so switching between them is a single setting, and nothing else in the pipeline changes. The full optimization below used DEVSIM.
The network needed the same treatment. Automatic differentiation through 111 time steps of spikes gave gradients near 1.2 × 106, while a careful finite difference gave about 3.9. The loss itself is bounded near 5, so the larger number was floating-point noise. I used central differences of the network's loss instead.
What did the optimization find?
The optimization started from a deliberately poor device: a thin, weakly polarized film whose memory window was too small to separate the two stored states. The memory window is the voltage gap between the transistor's two remembered states. The film's material constants were locked to a measured hafnium zirconium oxide (HZO) film, with remanent polarization Pr = 32 µC/cm2 and coercive field Ec = 1.4 MV/cm. Remanent polarization is how strongly the film stays polarized, and the coercive field is how hard it must be pushed to flip. These are properties of the deposited film, so the optimizer was not allowed to change them.
| Measure | Start | End |
|---|---|---|
| Class-balanced loss | 1.3996 | 1.0177 |
| Accuracy on the 16 beats used in the optimization | 0.250 | 0.688 |
| Memory window | 0.415 V | 0.576 V |
| Subthreshold swing | 71 mV/dec | 97 mV/dec |
Subthreshold swing is how many millivolts on the gate it takes to change the current tenfold when the transistor is nearly off. Lower is sharper. The optimizer traded some of that sharpness for a wider memory window, and it found that trade by itself.

The accuracy is measured on the 16 heartbeats used during the optimization, so it compares devices against each other. It is not a test score on unseen patients. The repository reports the held-out numbers.
Can it work without a Sentaurus license?
Yes. DEVSIM is open source, so a public Docker image lets readers take the full gradient through it without a license.
For the Sentaurus results, the repository keeps a stored record of the simulator calls. A replay script rebuilds all 164 stored Sentaurus values bit for bit in 1.4 seconds, standing in for 0.93 hours of simulator time, with network access blocked so nothing can come from the real simulator.
Did the hackathon change the Tesseract tools?
Using the tools on this problem showed two gaps, and I sent a pull request for each. Both are now merged:
tesseract-core #712 lets the finite-difference helpers take a separate step size for each input. Fabrication settings live on very different scales, so a single step size does not suit all of them.
tesseract-jax #248 lets a Tesseract return text or true/false values next to its arrays. Before the fix, that crashed with an error that pointed nowhere near the cause.
How did it end?
The code is open under the Apache-2.0 license at github.com/hozaifa1/differentiable-silicon.
Alhamdulillah, Pasteur Labs selected Differentiable Silicon as the Best in Track winner for Track 3. Their winners post called Sentaurus "the thorniest piece of software in the entire hackathon". I am grateful to Pasteur Labs and ISI for organizing the hackathon.