PoreCodec-RSQ742C12A is a lightweight neural codec for nanopore electrical signals. It converts continuous ionic current measurements into compact hierarchical discrete token sequences using a convolutional encoder followed by a production-oriented Residual Finite Scalar Quantization (Residual FSQ) module.
Unlike traditional VQ-VAE based codecs, PoreCodec employs deterministic finite scalar quantization with exhaustive codebooks stored directly inside the model checkpoint, eliminating codebook collapse while enabling efficient constant-time decoding.
The resulting discrete representations are designed to serve as the interface between raw nanopore signals and transformer-based foundation models.
Highlights
Production-ready neural codec for nanopore signals
Raw Nanopore Signal
│
▼
CNN Encoder
│
▼
512-D Latent Features
│
▼
Linear Projection
│
▼
Residual Finite Scalar Quantization
│
├──────────────► Hierarchical Token IDs
│
▼
Quantized Latent Features
│
▼
Linear Projection
│
▼
CNN Decoder
│
▼
Reconstructed Signal
The model consists of three major components:
CNN Encoder
The encoder extracts local electrical signal patterns through a deep one-dimensional convolutional network.
Property
Value
Input channels
1
Output channels
512
Downsampling factor
×4
Receptive field
33 samples
The encoder transforms raw nanopore current measurements into compact latent representations while preserving local temporal structures.
Residual Finite Scalar Quantization
Instead of learning vector codebooks as in conventional VQ-VAE methods, PoreCodec performs deterministic residual scalar quantization over a finite Cartesian lattice.
Each residual stage quantizes the reconstruction error produced by previous stages, progressively refining the latent representation.
Unlike learned vector quantizers:
no codebook collapse
no dead entries
deterministic encoding
stable optimization
exact reconstruction lookup
All exhaustive codebooks are precomputed and stored directly inside the model checkpoint, allowing constant-time lookup during decoding.
Quantization Configuration
Parameter
Value
Levels
7 7 7 7
Codebook size
2401
Residual quantizers
2
Hierarchical Tokens
Each latent position produces multiple residual quantization indices