arXiv:2610.17699cs.AIOct 2026

Manuscript Offprint

arXiv:2610.17699

Understanding Gene Expression-to-Image Learning: Spatial Structure and Information Fidelity

Xiaoqing Lian, Pei Liu, Jiahui Tan, Quan Zou, Chen Lin, Xiangxiang Zeng

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Single-cell RNA sequencing (scRNA-seq) enables cell-level analysis of biological heterogeneity, but learning effective representations from high-dimensional, unordered gene expression profiles remains challenging. Gene Expression-to-Image (GE2I) offers an effective learning strategy by arranging gene values on pixel grids for convolutional neural networks, but its underlying mechanisms remain unclear. We study GE2I on full-transcriptome data while keeping the network and training procedure fixed. Our results reveal a trade-off between spatial smoothness and gene-level fidelity. Structured mappings produce smooth, low-frequency patterns that support faster early optimization, whereas assigning multiple genes to the same pixel obscures expression differences and can reduce predictive performance. This trade-off explains why random mappings can compete with structured layouts when many genes are represented. One-to-one gene-to-pixel assignment improves prediction across the tested visual backbones even when image smoothness decreases. We further find that the benefits of pretraining and augmentation depend on the backbone and mapping. These findings provide practical guidance for pixel allocation and the transfer of vision priors to gene expression data.

1 Introduction

Single-cell RNA sequencing (scRNA-seq) measures gene expression in individual cells and helps researchers study how cells differ from one another (Bunne et al., 2024; Eraslan et al., 2022). The resulting data form a high-dimensional matrix: each row represents a cell, and each column records the expression level of a gene (Tang et al., 2009). Unlike pixels in an image or words in a sentence, the genes in each row have no natural spatial order. Computational models therefore need a useful way to represent these gene expression vectors (Gunawan et al., 2023).

Common representation learning methods include probabilistic latent-variable models, such as Variational Autoencoders (VAEs) (Kingma & Welling, 2013; Grönbech et al., 2020), and self-attention-based sequence models, such as Transformers (Vaswani et al., 2017; Cui et al., 2024; Zeng et al., 2025). Another approach places the unordered gene values on a 2D pixel grid (Figure 1). We call this approach Gene Expression-to-Image (GE2I). Once the values are arranged as an image, a Convolutional Neural Network (CNN) can learn high-order statistics and nonlinear correlations without manually designed features (Islam & Xing, 2023). Placing correlated genes together may also combine weak signals into clearer

1D to 2D Transformation

Unordered 1D Gene Vector (Sparse & Fragmented)

Structured 2D Gene Image (Induced Spatial Topology)

Figure

Figure 1: Gene expression-to-image (GE2I). A coordinate mapping M and aggregation operator A convert gene expression vectors into 2D images for a CNN. Colored gene labels illustrate local neighborhoods in the layout.

biological patterns. In addition, researchers can inspect the images directly to compare phenotypic differences across samples (Sharma et al., 2019).

Most GE2I methods place functionally related genes near one another because they assume that biological neighborhoods improve the representation. Many mapping algorithms are designed around this idea. However, a structured layout changes two things at once: it preserves some gene relationships and gives the data a smoother spatial pattern. It is therefore unclear which property accounts for better learning. We ask:

Which properties of gene expression images explain differences in optimization and predictive performance across mappings?

We investigate this question on full-transcriptome data while holding the network and training conditions fixed. We measure image properties, track training behavior, and use beta regression to relate each property to prediction. The results show a trade-off between spatial smoothness and gene-level fidelity. A structured layout can produce patterns that a CNN learns quickly, but placing several genes in the same pixel merges their values and can remove useful differences. Faster early optimization may therefore lead to little or no improvement in final prediction. We test this explanation by changing how genes are assigned to pixels, then use the results to guide image construction and the use of pretrained vision models. Our contributions are:

• Mechanistic analysis. Image measurements, training dynamics, and beta regression show how spatial smoothness and gene-level fidelity affect early optimization and final prediction differently.

• Assignment interventions. We test one-to-one gene-to-pixel assignments and introduce a greedy allocation procedure. Prediction improves even when these changes make the images less smooth.

• Backbone evaluation and transfer guidelines. We compare assignment effects across visual backbones and test pretraining and augmentation. The results clarify when vision priors help with transcriptomic learning.

References (53)