Analog in-memory computing does the matrix multiplications of a neural network inside a grid of resistive memory cells, so the weights never have to move between memory and processor. That promises large energy savings for training. The catch is that these memory cells nudge their stored value up and down by unequal amounts, and this asymmetry quietly pulls every weight toward a hardware-defined resting value. Single-cell RNA sequencing produces a very different kind of input from the images these devices have been tested on. It measures the expression of roughly 20,000 genes in each individual cell, and more than 90% of the entries are zero. Our central claim is that the hardware pull does not fall evenly across such inputs. It falls hardest on the input weights of genes that are rarely detected, and those are disproportionately the marker genes of rare cell types. We predict that on-chip training of a single-cell model will therefore erase rare populations first, even when global reconstruction looks acceptable. We also propose a cheap fix: give each gene its own update clock, so that its gradient is accumulated over a fixed number of detection events rather than a fixed number of mini-batches before it is written to the device.
Put simply for a colleague: asymmetric analog devices act like weight decay whose strength depends on how often a weight's gradient changes sign. Sparse, rarely detected genes produce exactly that kind of gradient, so analog training should forget rare cell types first. Per-gene, event-counted accumulation should prevent this at the cost of one counter per gene.
Core Claim and Mechanism
Work on update asymmetry treats the device bias as one global phenomenon. Analog In-memory Training on General Non-ideal Resistive Elements derives a discrete-time model of analog stochastic gradient descent under general device response curves. It shows that asymmetry acts as an implicit L2 penalty pulling weights toward the device's symmetric point (the conductance at which up and down steps are equal), and that gradient noise strengthens this pull. Towards Exact Gradient-based Training on Analog In-memory Computing proves that this produces an error floor for plain analog training on asymmetric linear devices. It also proves that Tiki-Taka removes the floor by low-pass filtering gradients in an auxiliary array before transferring them to the weights. Both papers motivate our question. Neither asks how the pull is distributed across individual weights when the inputs are sparse and heavy-tailed.
A paraphrase of the asymmetric linear device model makes the per-weight picture concrete. Suppose each pulse update moves a weight $w$ by $\eta g - (\eta/\tau)\,|g|\,(w - w_{sp})$. Here $g$ is the gradient sample, $\eta$ the step size, $w_{sp}$ the symmetric point, and $\tau$ a device constant that grows as the device becomes more symmetric. Setting the expected update to zero gives the weight's resting value:
$$ w_{\infty} = w_{sp} + \tau \, \frac{\mathbb{E}[g]}{\mathbb{E}|g|}. $$
The ratio $\mathbb{E}[g]/\mathbb{E}|g|$ is the sign coherence of the weight's gradient stream. It is near one when the gradient consistently points one way and near zero when it flips sign. In the first encoder layer of a single-cell model, the gradient for the weight from gene $j$ is the product of the input count $x_j$ and the backpropagated error. Under stochastic pulse updates it fires only in cells where gene $j$ is detected. For a broadly expressed gene, many detections per batch average into a coherent signal. For a marker detected in 1% of cells, each detection arrives alone, with a heavy-tailed count magnitude and an error sign that depends on the particular cell. Its coherence is therefore low, and its weight sits near $w_{sp}$ whatever the data say. Fixed-clock accumulation, as in Tiki-Taka and Residual Learning v2, raises coherence only for genes that are detected often within one accumulation window. We expect it to leave rare markers mostly unprotected.
Our fix follows from the same equation. Summing $k$ gradient samples before a pulse raises coherence roughly by the ratio $|\sum g|/\sum|g|$, which grows with $k$ when there is a nonzero mean. The fix is therefore to make $k$ count detection events per gene rather than time steps. Each gene's accumulated update is transferred to the crossbar only after $k_j$ nonzero inputs, with $k_j$ chosen so that a running estimate of coherence crosses a threshold. The added digital state is one counter and one coherence estimate per gene, which scales with $G$. A full residual buffer scales with $G \times H$, where $H$ is the hidden width. That difference bears on the buffer-overhead problem raised by Dynamic Symmetric Point Tracking.
Research Program
There are three pieces of work. The first is to build a single-cell variational autoencoder whose layers run on simulated analog crossbars. The model is scVI (Lopez et al., implemented in scvi-tools): an encoder maps counts to a 10–30 dimensional latent cell state, and a decoder outputs zero-inflated negative binomial parameters. The analog simulation uses the IBM toolkit aihwkit, with asymmetric linear and soft-bounds device presets, device-to-device spread in symmetric points, and analog-to-digital and digital-to-analog quantization. The likelihood computation stays digital, as is standard. The large gene-by-hidden encoder and decoder matrices are the analog layers.
The second piece is to test the coherence prediction directly. For each gene we log its detection rate, the empirical coherence of its gradient stream, and the distance of its learned weights from both the symmetric point and the digital-trained weights. The prediction is a monotone relationship: genes with lower detection rates end up closer to $w_{sp}$ under plain analog training, Tiki-Taka, and E-RIDER. Our method should flatten this curve.
The third piece is to implement detection-clocked transfer as a modified Tiki-Taka/residual optimizer in aihwkit and compare it fairly against existing methods. We will also try composing it with E-RIDER's symmetric-point tracking. That method's chopping and low-pass filtering assume a steady gradient stream, and per-gene event clocks give it one for rare genes as well.
Baselines
The naive reference points are digital training of the same scVI architecture at float32, and plain analog SGD with static symmetric-point calibration ("zero-shifting"). The digital model sets the ceiling. Plain analog SGD shows the size of the problem. On vision tasks it loses more than 6% on MNIST CNNs (Wu et al., 2024) and reaches about 69% against 81.1% digital on CIFAR-100 ResNet-18 (Wu et al., 2025).
The strongest analog competitors are Residual Learning v2, which reports about 80% on CIFAR-100 against 81.1% digital (Wu et al., 2025), and E-RIDER. E-RIDER holds about 95% on an MNIST fully connected network under symmetric-point offsets where TT-v2 falls to 60–70%, and it beats AGAD by 2–3% on ImageNet-1K (Xiao et al.). These are the competitors because they are the current methods for asymmetry and reference offset. There is no reported result found on Lacuna for any analog training method on scRNA-seq data, so we must produce the reference numbers ourselves.
On the biology side, there is no reported result found on Lacuna for scVI's PBMC adjusted Rand index (ARI, a measure of agreement between clusters and known labels). The closest reported PBMC clustering numbers are from a different, federated setting: FedSC reaches 62.57 ARI against 59.70 for FedBYOL (FedSC). On Tabula Muris, MARS reports a silhouette score of 0.8 against 0.3 for scVI (Brbić et al.). We use these only for orientation, not as direct targets.
Fairness rules apply to every analog method. All of them use the same architecture, device presets, symmetric-point offset distribution, and preprocessing. Each gets the same hyperparameter search budget: an equal number of trials over learning rate and transfer period or threshold. All run for the same number of epochs and are scored on the same random seeds. Beating the field means two things. First, a statistically significant gain in rare-population recovery over E-RIDER and Residual Learning v2, with global ARI and held-out likelihood no worse than theirs. Second, digital state smaller than Residual Learning v2's buffer.
Two ablations isolate the key ingredient. The first gives every gene the same, longer accumulation window, matched to our method's average number of transfers. If per-gene clocking matters, this uniform slowdown should help rare genes less and hurt convergence speed more. The second keeps per-gene clocks but counts mini-batches instead of detection events. This separates "per-gene" from "event-driven."
Why not just…?
Why not just train digitally and deploy the weights onto analog hardware for inference? For a fixed reference atlas this is a real threat. If inference is the only goal, hardware-aware digital training is the sensible path; Le Gallo et al. show that such training is needed to survive noise at deployment. Our target is different: on-chip learning, either training from scratch or mapping new patient batches onto a reference, scArches-style, on the device. Programming weights statically also carries the calibration cost that Xiao et al. show scales as $O(1/\Delta w_{min})$, where $\Delta w_{min}$ is the smallest conductance step a device can make. We include a query-adaptation experiment so the on-chip case is tested where it matters. We will report honestly if deployment plus occasional digital retraining is good enough.
Why not just keep the sparse gene-input layer digital? This is the simplest fix, and we run it as an explicit hybrid baseline. The gene-by-hidden matrices hold most of the model's parameters and multiplications, so leaving them digital gives up most of the analog energy benefit. We will report the fraction of multiply operations kept analog under each design. If the hybrid matches our method on rare-type recovery and keeps an acceptable analog fraction, our contribution reduces to a diagnosis, and we will say so.
Why not just preprocess away the sparsity with highly variable gene selection and log-normalization? Standard preprocessing shrinks $G$ and tames heavy-tailed counts, but it does not make rare markers commonly detected. A gene expressed in 1% of cells is still zero in 99% of them. We run every method on raw counts, and also on log-normalized counts restricted to 2,000 highly variable genes. If the low-detection penalty disappears after preprocessing, the coherence account is wrong for practical pipelines.
Why not just rescale per-gene learning rates, Adagrad-style? Scaling a gradient scales the useful signal and the asymmetric drift by the same factor, so the resting value in the equation above does not change. Only averaging before pulsing changes coherence. A per-gene learning-rate variant is a cheap control that should fail if the mechanism is right.
Proposed Experiments
The datasets are PBMC (12,039 cells), CORTEX (3,005), and RETINA (27,499 cells, 15 types, with batches), all used by Lopez et al., plus Tabula Muris (44,516 cells) for its many rare types (Brbić et al.). The metrics are held-out zero-inflated negative binomial log-likelihood, ARI and NMI of Leiden clusters against annotations, per-cell-type cluster F1 stratified by population frequency, batch mixing on RETINA, and the gene-level curves relating detection rate to weight distance described above.
The decisive check is a controlled rare-population titration. In PBMC we subsample one annotated cell type to 0.5%, 1%, 2%, and 5% of cells. Then, for each optimizer, we measure the frequency at which that type stops forming its own cluster and the fraction of its top marker genes whose encoder weights stay within a small distance of $w_{sp}$. The hypothesis is supported if three things hold. Under Tiki-Taka, Residual Learning v2, and E-RIDER, the breakdown frequency is clearly higher than under digital training. Marker weights collapse toward $w_{sp}$ before global ARI moves. Detection-clocked transfer shifts the breakdown frequency back toward the digital value, while the uniform-window and batch-counted ablations do not.
The hypothesis is refuted if the existing methods already recover rare types at digital-level frequencies, or if weight distance from $w_{sp}$ does not track detection rate. Either result is useful: it would show that current asymmetry mitigation carries over to sparse biological data without change. A secondary check repeats the titration under increasing device-to-device spread in symmetric points, to test whether detection clocks are needed to keep E-RIDER's tracking from stalling on rarely active columns.
References
- Analog In-memory Training on General Non-ideal Resistive Elements: The Impact of Response Functions
- Towards Exact Gradient-based Training on Analog In-memory Computing
- Dynamic Symmetric Point Tracking: Tackling Non-ideal Reference in Analog In-memory Training
- Bayesian Inference for a Generative Model of Transcriptome Profiles from Single-cell RNA Sequencing
- scvi-tools: a library for deep probabilistic analysis of single-cell omics data
- Using the IBM analog in-memory hardware acceleration kit for neural network training and inference
- Federated Self-Supervised Single-cell Clustering of scRNA-seq Data
- Discovering Novel Cell Types across Heterogeneous Single-cell Experiments