ADJSCC — Model Architecture

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.

The whole network at a glance

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.

image3×32×32 256×16² 256×8² 256×8² 256×8² code16×8² +noise16×8² 256×8² 256×8² 256×8² 256×16² image ĥ3×32×32 ENCODER · 5 conv, space ↓ abstraction ↑ CHANNEL DECODER · 5 deconv, space ↑ back to pixels

One real image through every layer

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 →

encoder channel decoder − … 0 … + activation

Encoder — 5 conv layers

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
Layerin→out chkernel/stridespatialwhat changes
Conv13 → 2565×5 / 232→16lift to 256 features, halve space
Conv2256 → 2565×5 / 216→8halve space again
Conv3256 → 2565×5 / 18refine
Conv4256 → 2565×5 / 18refine
Conv5256 → 165×5 / 18squeeze to transmit budget

Channel block — no learned weights

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.

Decoder — 5 transposed-conv layers (mirror)

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.

AF module — the SNR-conditioned gate (used 9×)

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.

xB·Ch·H·W avg-pool→ Ch concat SNR FC→ReLU FC→sigmoidgate∈[0,1] x · 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
Because the SNR is an input to all 9 gates, one weight set spans the whole 0–20 dB range — no per-SNR retraining. That single idea is the paper’s contribution; see it move on the interactive page.

End-to-end training

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

Training & evaluation curves

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.