The complete convolutional autoencoder from
arXiv:2012.00533, layer by layer, with a
real CIFAR image traced through every stage — captured live from the trained
C=16 checkpoint. See index.html for the interactive SNR explorer.
Two mirrored CNNs with a noisy channel wedged between them. The encoder shrinks
space and grows abstraction (3 colours → 16 learned feature channels); the
channel normalizes power and adds noise; the
decoder reverses the encoder to rebuild pixels. Every conv/deconv is followed
by PReLU and an AF module that injects the SNR.
A single CIFAR image captured at each stage of the trained model
(SNR=10 dB). Intermediate tiles are the mean across that layer’s
channels (coolwarm = signed activation); the codeword and received frames show all 16 channels;
the tile’s pixel size tracks the true spatial resolution, so you can watch 32→16→8 … 8→16→32.
Scroll the strip →
x : (B, 3, 32, 32)
Conv2d(3, 256, k5, s2, p2) → PReLU → AF # 32→16
Conv2d(256, 256, k5, s2, p2) → PReLU → AF # 16→8
Conv2d(256, 256, k5, s1, p2) → PReLU → AF # 8
Conv2d(256, 256, k5, s1, p2) → PReLU → AF # 8
Conv2d(256, 16, k5, s1, p2) → PReLU → AF # 8, C=16 channels
→ (B, 16, 8, 8) # the codeword
| Layer | in→out ch | kernel/stride | spatial | what changes |
|---|---|---|---|---|
| Conv1 | 3 → 256 | 5×5 / 2 | 32→16 | lift to 256 features, halve space |
| Conv2 | 256 → 256 | 5×5 / 2 | 16→8 | halve space again |
| Conv3 | 256 → 256 | 5×5 / 1 | 8 | refine |
| Conv4 | 256 → 256 | 5×5 / 1 | 8 | refine |
| Conv5 | 256 → 16 | 5×5 / 1 | 8 | squeeze to transmit budget |
z = flatten(code) # (B, 16·8·8) = (B, 1024)
z = z · sqrt(k / Σz²) # power-normalize: mean power = 1
# read as 512 complex symbols (first 512 real, next 512 imag)
σ² = 1 / 10^(SNR/10); y = z + N(0, σ²) # AWGN
y → reshape (B, 16, 8, 8) → decoder
Pure math, fully differentiable — gradients flow back through the noise into the encoder, so the encoder learns a noise-robust code end to end. This is the only stochastic step.
y : (B, 16, 8, 8)
ConvT2d(16, 256, k5, s1, p2) → PReLU → AF # 8
ConvT2d(256, 256, k5, s1, p2) → PReLU → AF # 8
ConvT2d(256, 256, k5, s1, p2) → PReLU → AF # 8
ConvT2d(256, 256, k5, s2, p2, out_pad=1) → PReLU → AF # 8→16
ConvT2d(256, 3, k5, s2, p2, out_pad=1) → sigmoid # 16→32
→ (B, 3, 32, 32) # reconstruction in [0,1]
Same shapes as the encoder, run backwards: channels go 16→256→…→3, space goes
8→16→32. Final sigmoid clamps pixels into [0,1]. Note the decoder’s AF
modules also receive the SNR — adaptation happens on the receive side too.
Inserted after every PReLU (5 in the encoder, 4 in the decoder). A squeeze-and-excitation block that mixes the feature summary with the channel SNR to produce a per-channel gate.
ctx = x.mean(dim=(H,W)) # (B, Ch)
gate = sigmoid(fc2(relu(fc1(cat([ctx, snr]))))) # (B, Ch), each in [0,1]
out = x * gate[:, :, None, None] # rescale each channel
for each batch:
snr = uniform(0, 20) # random channel each step (ADJSCC)
ĥ = model(image, snr) # enc → power-norm → AWGN → dec
loss = MSE(ĥ, image) # pixel reconstruction only
loss.backward() # grads flow through the noisy channel
Logged to Weights & Biases across three runs at R=1/6, AWGN:
ADJSCC (one model, SNR 0–20 dB) vs two fixed-SNR
DeepJSCC baselines trained at
19 dB and 1 dB.
The test-PSNR plots are the mismatch story: a baseline is great at its own SNR, weak elsewhere; ADJSCC holds
up everywhere.
Filmstrip + stats baked live from ckpt/adjscc_r16.pt via scripts/arch_page.py.
Architecture source: adjscc/models.py, adjscc/channel.py. arXiv:2012.00533, CIFAR-10 / AWGN.