# An Introduction to Deep Learning for the Physical Layer

Autoencoders can learn end-to-end communication systems that rival classical coding

Timothy J. O'Shea, Jakob Hoydis · arXiv · 2017-2-2

- **Problem** Communication blocks are designed separately from textbook models, so the chain may miss the best end-to-end result on real hardware. Those models often fail to capture effects like nonlinear amplifiers.
- **Method** The authors treat the transmitter, channel and receiver as one autoencoder trained jointly. Instead of tuning each block alone, the whole chain is trained with backpropagation on the channel model.
- **Results** A learned (7,4) autoencoder reaches block error rate close to a Hamming (7,4) code with maximum likelihood decoding.

## Why learn the whole link

Communication systems are built from a chain of blocks, each tuned to one well-defined function such as coding, modulation or equalization. Each block is usually designed from statistics and information theory, which assume linear, stationary and Gaussian behaviour. Real hardware departs from these assumptions through effects such as nonlinear power amplifiers and finite-resolution quantization.

A network trained on the actual hardware and channel does not need a tractable model of those effects. Separately optimized blocks do not guarantee the best end-to-end result. Source and channel coding separation for short block lengths and separate coding and modulation are cited as suboptimal, and joint designs based on factor graphs give gains at the cost of complex systems.

The authors also note that the wide use of DL in computer vision has not transferred to physical-layer tasks with tractable models, since a good classical solution already exists when the model is accurate. The argument therefore rests on settings where tractable models fail to capture the real effects, and the paper treats these as the places where learned blocks could add value.

## Autoencoder as a communication link

A message index s from M = {1, ..., M} is mapped to an n-dimensional transmit vector x, and the receiver maps the received vector y back to an estimate of s. The rate is k/n bits per channel use, with k = log2(M). The autoencoder view treats this chain as an autoencoder, but its goal differs from a compressing autoencoder. The hidden representation is chosen to add redundancy so that the channel impairments do not corrupt the message.

The message is one-hot encoded before it enters the transmitter, which is a stack of dense layers followed by a normalization layer. The normalization layer enforces the physical constraint on x, such as a fixed energy. The channel is an additive noise layer whose variance follows from the rate and Eb/N0. The receiver is a dense network whose softmax output is a probability vector over all messages, and the decoded message is the index with the highest probability.

Because the transmitter and receiver are differentiable, the complete chain, including the noise layer, is trained with backpropagation. The channel model therefore has to be known during training, a point returned to in the limitations.

## Training the autoencoder

The autoencoder is trained on all messages with categorical cross-entropy between the one-hot message and the output probability vector. Stochastic gradient descent updates the parameters on random mini-batches. Training uses Adam with a learning rate of 0.001 and a fixed Eb/N0 of 7 dB. The authors report that larger batches improved accuracy.

The autoencoder uses two transmit layers rather than one, because the authors found that SGD then converged to a better solution. They suggest the larger parameter search space makes poor local solutions less likely to be the endpoint. The model has (2M + 1)(M + n) + 2M trainable parameters, which gives 62,791 for (2,2), 135,944 for (8,8) and a count for (7,4) listed in the same table.

## Autoencoder against classical coded schemes

For the (7,4) setting, the block error rate of the learned autoencoder is compared with BPSK with a Hamming (7,4) code under hard-decision decoding and under maximum likelihood decoding, and with uncoded BPSK at (4,4). The rate is 4/7 for both coded systems. The autoencoder reaches a block error rate close to the Hamming code with maximum likelihood decoding, without being given the code structure.

The authors read this as the network learning an encoder and decoder pair that matches that performance.

For (2,2) and (8,8), both at rate 1, the autoencoder matches uncoded BPSK at (2,2) and outperforms uncoded BPSK at (8,8) across the tested Eb/N0 range. The authors interpret the (8,8) gain as a joint coding and modulation scheme. They note that a fair comparison would use a higher-order modulation with a channel code, or sphere packing in eight dimensions.

The learned constellations are shown for several (n,k) settings. The (2,2) autoencoder converges to a QPSK constellation with an arbitrary rotation, and the (4,2) case gives a rotated 16-PSK-like shape. With average power normalization instead of a fixed energy, the (4,2) constellation takes a mixed pentagonal and hexagonal arrangement with block error rate comparable to 16-QAM.

For (7,4), a two-dimensional t-SNE embedding of the noisy received symbols is used because the representation has seven dimensions.

## Two-user interference channel

Each transmitter-receiver pair is an autoencoder, and the two transmitted vectors add at each receiver with noise. The noisy observations are y1 = x1 + x2 + n1 and y2 = x2 + x1 + n2, with complex Gaussian noise. Training the two systems with one weighted sum of the losses is problematic. Weighting only the first loss makes the second transmitter send a signal that the first receiver can subtract, and the reverse holds for the other weight.

The authors use a dynamic weight for each mini-batch. The weight is the first pair's loss divided by the sum of both losses, so the pair with the smaller loss gets the smaller weight in the next mini-batch. The initial weight is 0.5. The authors report that equal fixed weights produced unfair and suboptimal solutions in their experiments, and they do not claim the dynamic rule is optimal.

## Interference channel results against time-sharing

The autoencoder is compared with 2^(k/n)-QAM time-sharing between the two transmitters over (n,k) in {(1,1), (2,2), (4,4), (4,8)}, with an average power constraint.

With the dynamic weighting, the two transmitter-receiver pairs reach identical block error rates in these experiments. The learned constellations for (1,1) are BPSK-like in orthogonal directions, which gives the same performance as QPSK with time-sharing. For (2,2) they become non-orthogonal and resemble superposition coding, with one transmitter using high power in the first symbol and the other in the second.

For (4,4) and (4,8) the constellations are harder to interpret, but they resemble ellipses with orthogonal major axes, and the effect is clearer at (4,8). The authors leave the dependence on normalization and initialization open.

## Radio transformer networks

An RTN has three parts: a learned parameter estimator, a deterministic differentiable transform parametrized by the estimate, and a discriminative network that decodes the canonicalized signal. The estimator can be a neural network, so the whole system is trained end-to-end. Training optimizes the way parameters are estimated for the end-to-end loss, rather than the accuracy of the estimate itself.

The authors compare RTNs to spatial transformer networks for computer vision.

For phase offset, the estimator outputs a scalar, and the transform rotates the received IQ samples by the negative of that estimate. The real and imaginary parts are combined through cosine and sine terms. For the Rayleigh fading case with L = 3 taps, the estimator predicts a complex vector of 2L real values, and the transform convolves the received samples with that vector to equalize the channel by inverse filtering.

## RTN results over Rayleigh fading

The plain (8,4) autoencoder struggles to match DBPSK with MLE and a Hamming (7,4) code over the fading channel, while the autoencoder with RTN outperforms the plain autoencoder.

Validation loss is compared against training epochs, and the RTN variant converges faster than the plain autoencoder. The authors explain that an RTN cannot compute anything a plain network cannot. They attribute the benefit to domain knowledge that simplifies the target manifold, which resembles the translation invariance of convolutional layers.

## CNN modulation classification on raw IQ samples

Raw IQ sequences are fed to a series of narrowing convolutional layers, then dense layers, and a dense softmax output over the modulation classes, in a style similar to VGG. The layout gives 324,330 trainable parameters. The dataset has 1.2M sequences of 128 complex baseband IQ samples over ten modulation schemes, taken at 20 SNRs from -20 dB to 18 dB, with multipath fading and sample rate and center frequency offsets.

The baselines are extreme gradient boosting with 1000 estimators and a single scikit-learn tree, both working on 16 analog and cumulant expert features. The authors note that short observation windows make expert features unstable, which places the task at a hard end of the modulation problem.

## CNN classification results and confusions

At SNR = 10 dB the confusion matrix shows the CNN mixing QAM16 with QAM64 and WBFM with AM-DSB, and the authors note these confusions remain at high SNR. The authors attribute the AM and FM confusion to idle voice signals and the QAM16 and QAM64 confusion to short observations that share constellation points.

## Limitations

Training complexity becomes prohibitive for large message sets. At k = 100 bits the autoencoder must see every message at least once, and naive neural decoders suffer the same curse of dimensionality. The conclusion states that scalability to long block lengths remains a challenge.

The channel transfer function must be known for backpropagation to compute gradients. Over real channels and hardware, that function is not available in closed form, and the authors frame this as system identification with transfer learning as one candidate.

The authors also state that complex-valued networks are not yet supported by the common DL libraries, and they do not expect a clear gain in expressive power from them.

## Paper info

- **Authors**: Timothy J. O'Shea, Jakob Hoydis
- **Venue**: arXiv · Preprint
- **First published**: 2017-2-2
- **Added**: 2026-11-12
- **Updated**: 2017-7-11
- **Version**: v2
- **arXiv**: 1702.00832
- **Category**: cs.IT · cs.LG · cs.NI
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1702.00832v2) · [PDF ↗](https://arxiv.org/pdf/1702.00832v2)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Timothy J. O'Shea, Jakob Hoydis (2017). An Introduction to Deep Learning for the Physical Layer. arXiv:1702.00832v2. https://arxiv.org/abs/1702.00832v2

**BibTeX**

```
@misc{oshea2017introduction,
  title = {{An Introduction to Deep Learning for the Physical Layer}},
  author = {Timothy J. O'Shea and Jakob Hoydis},
  year = {2017},
  eprint = {1702.00832},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1702.00832v2}
}
```

## Other paper commentary

- [On First-Order Meta-Learning Algorithms](https://refivu.com/en/papers/96fdc3b8-b749-4c6d-ac7d-17c8789f25d8-on-first-order-meta-learning-algorithms.md)
- [A Tutorial on Principal Component Analysis](https://refivu.com/en/papers/6c1b9168-7aa0-40d4-97a5-859e8217739b-a-tutorial-on-principal-component-analysis.md)
- [Estimation and Inference of Heterogeneous Treatment Effects using Random Forests](https://refivu.com/en/papers/ee58e924-ae1d-4d66-9ec5-6c7d18a8692c-estimation-and-inference-of-heterogeneous-treatment-effects.md)
- [Popular Ensemble Methods: An Empirical Study](https://refivu.com/en/papers/5090a4a5-58f8-4919-88f2-f93e9b4007cb-popular-ensemble-methods-an-empirical-study.md)
- [A Survey on Multi-Task Learning](https://refivu.com/en/papers/98bc12a0-4d8a-482c-a7f3-4cb8b097be35-a-survey-on-multi-task-learning.md)
- [A Survey on Deep Transfer Learning](https://refivu.com/en/papers/70d5585b-a29e-478d-99ba-9a1b29ac99c1-a-survey-on-deep-transfer-learning.md)
- [ByteTrack: Multi-Object Tracking by Associating Every Detection Box](https://refivu.com/en/papers/6d6f3415-7480-483d-afac-4b47286d13c9-bytetrack-multi-object-tracking-by-associating-every.md)
- [ViViT: A Video Vision Transformer](https://refivu.com/en/papers/4375a36b-0a1c-403c-8454-737a027ff973-vivit-a-video-vision-transformer.md)
- [Learning Important Features Through Propagating Activation Differences](https://refivu.com/en/papers/a23d41a4-f8c4-41eb-ac72-f85328d3740c-learning-important-features-through-propagating-activation.md)
- [Convolutional Sequence to Sequence Learning](https://refivu.com/en/papers/48e91a54-308d-4269-9616-28e683053df1-convolutional-sequence-to-sequence-learning.md)
- [Direct Sparse Odometry](https://refivu.com/en/papers/05fea2ab-dd17-4852-b079-020caac4ff45-direct-sparse-odometry.md)
- [Self-Attention with Relative Position Representations](https://refivu.com/en/papers/9457d4e9-5650-4947-91f7-51a786a383f6-self-attention-with-relative-position-representations.md)

## Terms in this paper

- [Stochastic Gradient Descent](https://refivu.com/en/terms/a49650824022-stochastic-gradient-descent)
- [Convolutional Neural Network](https://refivu.com/en/terms/610f2c09337d-convolutional-neural-network)
- [backpropagation](https://refivu.com/en/terms/e09284f057ac-backpropagation)
- [autoencoder](https://refivu.com/en/terms/a4d4d93d1cff-autoencoder)
- [AWGN channel](https://refivu.com/en/terms/3595d5941799-awgn-channel)
- [categorical cross-entropy](https://refivu.com/en/terms/52c7d59ab28b-categorical-cross-entropy)
- [Extreme Gradient Boosting](https://refivu.com/en/terms/2fad2c2f8094-extreme-gradient-boosting)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/f1790a96-c7b5-4b05-9672-d9d222404a87-an-introduction-to-deep-learning-for-the-physical)
