WaveSem: Frequency-Adaptive Tokenization for Disentangling Semantics and Noise in Genomics

Shou Zhi Chen, Bing He, Zhenchao Tang, Jun Zhu, Minghao Yang, Tianxu Lv, Yu Wang, Jiayang Wu, Fang Wang, Yu Zhao, Chenchen Qin, Jianhua YaoNeurIPS 2026

TL;DR

Raw genomic sequencing signals are massive, noisy electrical waveforms, and standard neural compression wastes most of its memory budget memorizing random sensor static rather than the underlying biology. WaveSem uses classical wavelet physics to split these signals into a clean, low-frequency "semantic" backbone and a high-frequency "noise" envelope before discretizing them. The result is a $14\times$ reduction in storage footprint that still preserves subtle biological clues—like chemical DNA modifications—making petabyte-scale genomic data vastly easier to store and analyze.

What Problem Does This Paper Address?

Imagine listening to a quiet flute solo recorded next to a roaring waterfall. That is nanopore DNA sequencing: as a strand of DNA threads through a microscopic pore, it creates tiny, step-like shifts in electrical current (the flute), buried under dense, high-frequency sensor fluctuations (the waterfall).

Biologists face an uncomfortable trade-off. If you translate those raw waveforms straight into A, C, G, and T text ("basecalling") and delete the raw files, you lose subtle electrical clues needed later to detect epigenetics—chemical tags on DNA that regulate genes without changing the letters. Conversely, saving the raw waveforms generates petabytes of data, and lossless compression hits an information-theoretic wall at around $2.4\times$ because random noise is fundamentally incompressible.

Standard neural codecs (like VQ-VAEs or audio compressors like SoundStream) try to turn continuous waves into compact, discrete tokens. However, they assume information is spread evenly across the signal. Confronted with nanopore data, they burn their limited codebook capacity trying to memorize high-entropy waterfall static, starving the biological flute solo of resolution.

Methods

WaveSem introduces a physics-informed inductive bias directly into the neural tokenizer: instead of forcing one codebook to handle the whole signal, it separates frequencies first and budgets bits asymmetrically.

Figure 1: Overview of the WAVESEM architecture. A CNN encoder first extracts latent features, which are then decomposed by a multi-level DWT into a low-frequency semantic core and high- frequency texture components. The Semantic Stream contextualizes the core with a Transformer, quantizes it with a 6-layer RVQ, and maps the contextual tokens back to wavelet-coefficient coordi- nates through a semantic inverse adapter. The Texture Stream compresses stochastic details with a 2-layer RVQ guided by a Hierarchical Gated Fusion module, and its decoder is conditioned on the reconstructed semantic core. Reconstruction then applies IDWT and a CNN decoder to produce ˆx.

Here is how the pipeline works:

  1. Wavelet Disentanglement: After a shallow CNN extracts initial local features ($4\times$ downsampling), WaveSem applies a classical 4-level Discrete Wavelet Transform (DWT). Unlike standard neural pooling, DWT cleanly and invertibly splits the signal into a $64\times$-downsampled low-frequency core (the slow-moving biological plateaus) and multi-scale high-frequency bands (the rapid sensor noise).
  2. Dual-Stream Residual Vector Quantization (RVQ): RVQ is a standard technique that quantizes vectors in stages, where each layer encodes the error left over by the previous one. WaveSem’s novelty is splitting this into two specialized streams:
  3. Semantic Stream: A Transformer captures long-range context across the low-frequency core, followed by a deep 6-stage RVQ that spends the lion's share of the bit budget preserving biological transitions.
  4. Texture Stream: A novel Hierarchical Gated Fusion module uses the coarsest high-frequency band to gate finer noise bands—filtering out erratic sample-level spikes—before summarizing the noise envelope with a shallow 2-stage RVQ.
  5. Sub-band Supervision: To prevent "information leakage" (where the noise stream accidentally tries to encode DNA bases or vice versa), the training loss explicitly penalizes reconstruction errors in the low- and high-frequency wavelet bands separately, alongside time-domain and multi-resolution spectral losses.

Datasets

The authors evaluate WaveSem using existing public nanopore sequencing benchmarks (no new datasets are introduced, though detailed splits are deferred to the paper's appendix):

  • Human Genome (HG002): Sequenced on Oxford Nanopore R10.4.1 chemistry, split 90/10 at the segment level to train the tokenizer and benchmark reconstruction and basecalling.
  • E. coli Benchmarks: Used for zero-shot cross-species generalization tests, official ONT 5mC CpG methylation probing (comparing enzymatically methylated vs. unmethylated runs), and wild-type endogenous modification transfer.
  • R9.4.1 Chemistry Data: Used to test zero-shot transfer across older sequencing hardware.

Key Insights and Ideas

  • Uniform compression can be worse than random features: When probing for 5mC DNA methylation (an epigenetic tag), a randomly initialized, untrained CNN operating on uncompressed signals gets 0.889 AUROC simply because methylation physically shifts the current. Standard neural audio codecs (SoundStream) drop this to 0.808—meaning homogeneous quantization actively destroys subtle epigenetic variations. WaveSem’s frequency-split tokens lift performance to 0.928.
  • Latent space geometry mirrors signal physics: Visualizing the learned codebooks reveals a striking split. WaveSem's semantic tokens cluster into distinct islands corresponding to recurring DNA $k$-mer motifs, while its texture tokens spread into a diffuse cloud with near-uniform codebook usage—exactly what information theory predicts for stochastic noise.
  • Semantics build the scaffold; texture builds the wave: Ablating the texture stream leaves basecalling accuracy untouched (95.61%) while doubling waveform reconstruction error. Conversely, using only the texture stream causes total collapse. The two streams genuinely specialize without leaking information (Normalized Mutual Information between their first-layer tokens is just 0.045).

Key Results

WaveSem compresses 190 GB of raw 16-bit integer waveforms (10 million segments) down to 13.4 GB—a $14.2\times$ storage reduction at a $64\times$ temporal downsampling rate.

Figure 2: Qualitative and spectral analysis of reconstruction fidelity. (a) Reconstruction fidelity across temporal downsampling factors. (b) Power spectral density (PSD) plots comparing the origi- nal signal energy with the reconstruction-error energy.
  • Signal Fidelity: At $64\times$ downsampling, WaveSem achieves a reconstruction MSE of 0.0757, vastly outperforming a standard VQ-VAE (0.5125). It also generalizes zero-shot to unseen E. coli DNA (MSE = 0.0830, Pearson $r = 0.930$).
  • Basecalling Accuracy: Using a lightweight token-adapted decoder, WaveSem reaches 96.88% accuracy at $32\times$ downsampling and 95.61% at $64\times$—approaching the uncompressed Bonito baseline (98.12%) and beating retrained SoundStream (92.64%) and Standard VQ (65.13%).
  • Epigenetic Probing: Linear probing on frozen $64\times$-downsampled tokens achieves 0.928 AUROC for 5mC methylation detection, outperforming single-codebook VQ-VAE (0.914) and RVQ-VAE (0.886).
  • Efficiency: WaveSem requires 9.91 GFLOPs for inference at $64\times$, running significantly lighter than SoundStream (16.45 GFLOPs).

Limitations and Future Work

The authors are careful to note what WaveSem is not:

  • Not a lossless replacement for clinical archives: Because it is lossy, WaveSem is not meant to replace lossless formats like SLOW5/BLOW5, nor is it evidence that raw waveforms can be safely discarded in high-stakes clinical workflows.
  • Requires token-adapted downstream models: You cannot feed WaveSem’s reconstructed waveforms directly into existing off-the-shelf raw-signal callers without a steep accuracy penalty (an unmodified Bonito model drops from 97.19% on clean signals to 85.00% on WaveSem reconstructions). Recovering that 95.61%+ utility requires training a lightweight adapter directly on the discrete tokens.
  • Cross-hardware shift: While WaveSem transfers seamlessly across biological species on the same nanopore chemistry (R10.4.1), zero-shot transfer to older pore physics (R9.4.1) incurs moderate degradation.

As a broader direction, the authors suggest this physics-informed, frequency-disentangled tokenization offers a general blueprint for managing petabyte-scale scientific sensor streams far beyond genomics.

Summary updated

Abstract

High-throughput scientific sensing, exemplified by genomics, faces a critical representation bottleneck: discrete biological events are often obscured by continuous, high-entropy stochastic noise. Standard neural codecs fail to distinguish deterministic semantics from stochastic sensor noise, inefficiently allocating their information budget to high-entropy fluctuations rather than to low-entropy structural motifs. We introduce \textsc{WaveSem}, a frequency-adaptive framework that imposes a physically motivated inductive bias on discrete representation learning. Through integrated wavelet decomposition, \textsc{WaveSem} explicitly disentangles each signal into a structured semantic core and a residual texture component. We validate this approach on large-scale nanopore sequencing data, a domain characterized by extreme sequence lengths and low signal-to-noise ratios (SNRs). \textsc{WaveSem} achieves a $14\times$ storage reduction while maintaining competitive downstream basecalling accuracy. Moreover, linear probing of the frozen encoder reaches $\mathrm{AUROC}=0.928$ for 5mC methylation detection, demonstrating that the learned tokens preserve semantic information beyond nucleotide identity. These results establish disentangled vector-quantized representations as a scalable foundation for efficient genomic analysis and long-term archival.
BibTeX
@inproceedings{chen2026wavesem,
  author = {Shou Zhi Chen and Bing He and Zhenchao Tang and Jun Zhu and Minghao Yang and Tianxu Lv and Yu Wang and Jiayang Wu and Fang Wang and Yu Zhao and Chenchen Qin and Jianhua Yao},
  title = {{WaveSem: Frequency-Adaptive Tokenization for Disentangling Semantics and Noise in Genomics}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=LEzwFjJstg},
}
Figure