Scalable Batch Correction for Cell Painting via Batch-Dependent Kernels and Adaptive Sampling
Aditya Narayan Ravi, Snehal Vadvalkar, Abhishek Pandey, Ilan Shomorony
ICLR 2026 submission
Abstract. Cell Painting is a microscopy-based, high-content imaging assay that captures rich morphological profiles of cells. By revealing how cells respond to different chemical perturbations, it can provide valuable insight for drug discovery. However, Cell Painting data suffers from batch effects caused by variations across laboratories, instruments, and protocols. These batch-dependent artifacts obscure biological signals, especially at scale. We introduce BALANS (read "balance'')---Batch Alignment via Local Affinities and Subsampling---a scalable batch correction method that aligns samples across batches using a smoothing affinity matrix constructed based on pairwise distances between the data points. Given data points, BALANS constructs a sparse affinity matrix following two key ideas. First, for data points and , it defines a local ``scale'' based on the distance from to its -th nearest neighbor within the batch of . The affinities are then computed using a Gaussian kernel calibrated by the local scales to account for batch-specific variation. Second, instead of populating all entries of , BALANS employs an adaptive sampling strategy that incrementally computes rows corresponding to points with low cumulative neighbor coverage and, within each row, retains the highest affinities. This yields a sparse but informative submatrix of . We prove that this novel sampling strategy is order-optimal in terms of sample complexity and has an approximation guarantee. Crucially, BALANS runs in almost-linear time with respect to the number of data points. We evaluate BALANS across many real-world datasets spanning diverse biological conditions and batch structures. We demonstrate scalability on these real-world datasets and perform controlled scalability experiments on large-scale synthetic data to assess efficiency under varying size and complexity. In both cases, BALANS outperforms native implementations of popular batch correction methods in runtime without compromising batch correction quality.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperadd · history
Loading the discussion…