NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Stochastic Coordinate Coding and Its Application for Drosophila Gene Expression Pattern Annotation

Binbin Lin, Qingyang Li, Qian Sun, Ming-Jun Lai, Ian Davidson, Wei Fan, Jieping Ye

Introduction

Sparse coding is a foundational technique in machine learning used to identify the "building blocks" or dictionary of a dataset. While powerful, its computational demands often limit its application to large-scale biological datasets. This paper introduces Stochastic Coordinate Coding (SCC), a highly efficient algorithm that drastically reduces the overhead of dictionary learning, enabling the automated annotation of complex gene expression patterns in Drosophila (fruit fly) embryos.

The Challenge of Sparse Coding in Biology

In biological research, sparse coding is used to extract features from images of gene expression patterns to automatically assign anatomical labels—a task traditionally performed by human experts. However, the process is computationally expensive. It requires solving a "chicken-and-egg" optimization problem: a dictionary is needed to find sparse codes, and sparse codes are needed to update the dictionary. On massive datasets with millions of image patches, standard methods can take days or weeks to converge.

Diverse gene expression patterns in Drosophila embryos.

Methodology: Stochastic Coordinate Coding (SCC)

The SCC algorithm optimizes the dictionary learning process through three key innovations:

  1. Partial Sparse Updates: Instead of solving the Lasso problem to full convergence for every image patch, SCC performs only a few steps of Coordinate Descent (CD). The authors found that identifying the support (non-zero atoms) is more critical for dictionary learning than finding exact coefficient values.
  2. Sparse Dictionary Updates: Unlike standard stochastic gradient descent that updates the entire dictionary, SCC only updates the columns (atoms) corresponding to non-zero entries in the current sparse code.
  3. Adaptive Learning Rate: By approximating the diagonal of the Hessian matrix, SCC provides a per-column learning rate that adjusts automatically, speeding up convergence and removing the need for manual tuning.

Datasets and Annotation Task

The researchers evaluated SCC using the FlyExpress database, which contains standardized images from the Berkeley Drosophila Genome Project (BDGP). The dataset included over 3 million image patches from embryos across five developmental stages. The primary task was multi-label annotation, assigning anatomical terms such as "trunk mesoderm" or "hindgut" to images based on their expression patterns.

Examples of image bags and their corresponding BDGP anatomical terms.

Key Results

The authors compared SCC against the state-of-the-art "Online Learning" (OL) algorithm. The results demonstrated:

  • Massive Speedup: For a dictionary of 2000 atoms, SCC completed the task in 0.75 hours, compared to 102.64 hours for the OL algorithm—a 136x speedup.
  • Comparable Accuracy: Despite the speed, SCC achieved nearly identical objective function values and annotation performance (AUC and Accuracy) across all stages.
  • Superior Scalability: SCC’s runtime increased only slightly as dictionary size grew, whereas the OL algorithm's runtime scaled poorly.

Conclusion

Stochastic Coordinate Coding makes large-scale feature learning practical for massive biological image datasets without sacrificing accuracy. By exploiting sparsity in both the representation and the update process, SCC provides a scalable solution for automated gene expression annotation. Future work may extend this to supervised sparse coding or apply the algorithm to other domains like video processing.

Summary updated

BibTeX
@misc{lin2014stochastic,
  author = {Binbin Lin and Qingyang Li and Qian Sun and Ming-Jun Lai and Ian Davidson and Wei Fan and Jieping Ye},
  title = {{Stochastic Coordinate Coding and Its Application for Drosophila Gene Expression Pattern Annotation}},
  year = {2014},
  eprint = {1407.8147},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1407.8147},
}
Figure