Search

Search papers and lessons

An Introduction to Deep Learning for the Physical Layer

Timothy J. O'Shea, Jakob Hoydis · 2017

O'Shea and Hoydis (2017) treat a radio link as one autoencoder whose transmitter and receiver are trained together through the noisy channel, so the system learns its own signal design.

On this page

  • Colour = topic mix
  • Calculus
  • Discrete math
  • Probability
  • Linear algebra
  • Neural network basics
  • Communications
  • Sign in to see your progress

TL;DR

O'Shea and Hoydis (2017) treat a radio link as one autoencoder. The transmitter and the receiver are neural networks, the channel is a fixed noise layer between them, and the whole chain is trained with gradient descent to reproduce the message. The network then learns its own signal design, with no modulation or code chosen by hand.

Where you'll see it: research on learned air interfaces, and the origin of the idea that a radio system can be optimised end to end as one trained model.

The problem

A radio link is a chain of separately designed blocks. The transmitter source-codes, channel-codes and modulates the bits. The receiver equalises, demodulates and decodes them. Each block is designed on its own, using a mathematical model of the channel. Those models work well when the channel is well understood. Real hardware is messier. Power amplifiers bend the signal, converters round it, and fading channels change from moment to moment.

The paper asks whether a neural network can learn a whole transmitter and receiver for a channel where the best scheme is unknown. It also asks whether deep learning can beat decades of hand-built signal features in a place where it is known to work. The authors are direct about the bar. Communications is a mature field, and any learned method has to beat a strong baseline before it is useful. Their claim is narrower: learning is a new way to think about system design, and it may pay off where tractable models break down.

Key idea

Write the link as a chain. A message is picked, a transmitter network turns it into a signal, the channel adds noise, and a receiver network outputs a probability for every possible message. The most likely message is the decoded answer.

flowchart LR
  S[Message s, one-hot] --> T[Transmitter network]
  T --> N[Normalise to power limit]
  N --> C[Channel adds noise]
  C --> R[Receiver network]
  R --> P[Probability for each message]
  P --> H[Pick the most likely message]

Seen this way, the communication system is an autoencoder. A normal autoencoder squeezes data into a short code and throws away redundancy. This one does the opposite. It learns a signal that is spread out enough that noise cannot destroy the message. The training loss is the cross-entropy of the correct message, and the gradient flows back through the receiver, through the noise layer, and into the transmitter. The noise layer adds a value to its input, so its gradient passes straight through. The one real requirement is that the channel must be differentiable during training. The paper flags this as a major open problem in Section IV-E.

The method

The channel autoencoder

Let the message be ss, one of MM possible values. It is sent over nn real channel uses. The transmitter ff maps the one-hot vector of ss to a signal x∈Rn\mathbf{x} \in \mathbb{R}^n. The hardware imposes a power limit. The paper uses an energy constraint ∥x∥22=n\lVert \mathbf{x} \rVert_2^2 = n, enforced by a normalisation layer at the end of the transmitter. The channel output is y=x+n\mathbf{y} = \mathbf{x} + \mathbf{n}, where n\mathbf{n} is Gaussian noise with variance β\beta. The receiver outputs a probability vector p\mathbf{p} through a Softmax layer, and its loss is −log⁡ps-\log p_s.

The noise variance is set by the operating point. The paper writes β=(2REb/N0)−1\beta = (2 R E_b / N_0)^{-1}, where RR is the rate in bits per channel use, EbE_b is the energy per bit and N0N_0 is the noise power per unit bandwidth. A higher signal-to-noise ratio per bit means less noise. This connects to Signal-to-Noise Ratio and to the noise model behind Digital Modulation.

Example
Normalising a transmit vector
  1. The transmitter produces the raw vector (3,4)(3, 4) for one message, with n=2n = 2.
  2. Its length is 32+42=5\sqrt{3^2 + 4^2} = 5.
  3. The energy constraint asks for ∥x∥22=2\lVert \mathbf{x} \rVert_2^2 = 2. Scale the vector by 2/5≈0.2828\sqrt{2}/5 \approx 0.2828.
  4. The transmitted vector is (0.8485,1.1314)(0.8485, 1.1314).
  5. Check: 0.84852+1.13142≈0.72+1.28=2.000.8485^2 + 1.1314^2 \approx 0.72 + 1.28 = 2.00. The constraint holds.

The network is free to choose the raw direction. The normalisation only fixes the length, so the power limit is never broken.

Example
Noise variance at two operating points
  1. The rate RR and the energy ratio Eb/N0E_b/N_0 fix the noise. Use β=1/(2REb/N0)\beta = 1/(2 R E_b/N_0).
  2. Uncoded case: R=1R = 1 and Eb/N0=10E_b/N_0 = 10 (linear). Then β=1/(2⋅1⋅10)=0.05\beta = 1/(2 \cdot 1 \cdot 10) = 0.05.
  3. Coded case: a rate 4/74/7 code at Eb/N0=2E_b/N_0 = 2. Then β=1/(2⋅(4/7)⋅2)=1/(16/7)=7/16=0.4375\beta = 1/(2 \cdot (4/7) \cdot 2) = 1/(16/7) = 7/16 = 0.4375.
  4. The coded case has far more noise. The code spends channel uses on redundancy, so each use carries less energy per bit.

Inside the autoencoder, the transmitter and receiver are feedforward networks with Rectified Linear Unit (ReLU) activations in the hidden layers. The paper's layout for a message of MM values and nn channel uses has four dense layers, with a normalisation layer and a noise layer in the middle. The parameter count works out to (2M+1)(M+n)+2M(2M+1)(M+n) + 2M. This reflects the structure of the network: two mirror-image blocks of M×MM \times M and M×nM \times n weights.

Example
Counting the parameters of the autoencoder
  1. Take M=16M = 16 messages and n=7n = 7 channel uses.
  2. Transmitter, first dense layer, M→MM \to M: 16⋅16+16=27216 \cdot 16 + 16 = 272 parameters.
  3. Transmitter, second dense layer, M→nM \to n: 16⋅7+7=11916 \cdot 7 + 7 = 119 parameters.
  4. Receiver, first dense layer, n→Mn \to M: 7⋅16+16=1287 \cdot 16 + 16 = 128 parameters.
  5. Receiver, second dense layer, M→MM \to M: 16⋅16+16=27216 \cdot 16 + 16 = 272 parameters.
  6. Sum: 272+119+128+272=791272 + 119 + 128 + 272 = 791.
  7. This matches the 791 reported in the paper for the (7,4)(7,4) autoencoder. The count is small because the message is one-hot, so the network only needs to learn MM codewords.

Training is plain Stochastic Gradient Descent. Each step uses a small random batch of messages and their noisy channel outputs, computes the gradient with Backpropagation, and moves the weights a little. The network starts from random weights and is never told what a good code looks like. It finds one by trial.

Several transmitters and receivers

The same idea extends to a shared channel. In the two-user interference channel, each transmitter sends its own message, and each receiver hears both signals plus noise:

y1=x1+x2+n1,y2=x2+x1+n2\mathbf{y}_1 = \mathbf{x}_1 + \mathbf{x}_2 + \mathbf{n}_1, \qquad \mathbf{y}_2 = \mathbf{x}_2 + \mathbf{x}_1 + \mathbf{n}_2

Each pair has its own cross-entropy loss, l1l_1 and l2l_2. The obvious choice of a fixed equal weight does not work well. The paper reports that with equal weights the two pairs end up unequal and suboptimal. Their fix is to weight the loss dynamically, so that the pair with the larger loss gets more weight at the next step:

αt+1=L~1(θt)L~1(θt)+L~2(θt),α0=0.5\alpha_{t+1} = \frac{\tilde{L}_1(\boldsymbol{\theta}_t)}{\tilde{L}_1(\boldsymbol{\theta}_t) + \tilde{L}_2(\boldsymbol{\theta}_t)}, \qquad \alpha_0 = 0.5

The total loss is αL~1+(1−α)L~2\alpha \tilde{L}_1 + (1-\alpha)\tilde{L}_2. If α=1\alpha = 1, the second transmitter learns to send a constant that the first receiver can subtract. The weighting is a practical trick, and the authors say they do not claim it is optimal.

Radio transformer networks

A plain autoencoder has to learn every correction inside its weights. That is wasteful when the physics is well known. The radio transformer network (RTN) splits the receiver into three parts:

  1. A learned parameter estimator gωg_{\boldsymbol{\omega}} reads the received signal and outputs a small vector of parameters ω\boldsymbol{\omega}.
  2. A fixed, differentiable transform tt uses those parameters to undo a known effect, such as a phase rotation or a channel filter.
  3. A discriminative network gg classifies the corrected signal.

The phase case shows the idea. If the signal has been rotated by φ\varphi, the estimator outputs φ^\hat{\varphi}, and the transform rotates the signal back by −φ^-\hat{\varphi}. The rotation is written as a fixed 2×22 \times 2 matrix acting on the real and imaginary parts, so gradients flow through it.

For the multipath Rayleigh channel with L=3L = 3 taps, the estimator predicts 2L2L real numbers, which describe a complex filter. The transform applies the inverse filter. The estimator is two dense layers with Hyperbolic Tangent activations, followed by a linear output layer. The paper reports that the autoencoder with an RTN outperforms the plain autoencoder on this channel, and that it also converges faster.

CNNs for modulation classification

The last application is different. It is not a transmitter design at all. It classifies which modulation a signal uses, from raw IQ samples. Classical methods compute expert features and feed them to a tree or a boosted ensemble. The paper instead feeds the raw samples to a Convolutional Neural Network.

The dataset is RML2016.10b. It has about 1.2 million sequences of 128 complex IQ samples, covering ten digital and analogue modulation schemes, sent over a harsh simulated channel with multipath fading and frequency offset. The samples are taken at 20 signal-to-noise ratios from −20-20 dB to 1818 dB.

The network is a stack of narrowing convolutions, then dense layers, then a softmax over the ten classes. Table V in the paper has these layers: a convolution with 128 filters of size 2×82 \times 8, a pool, a convolution with 64 filters of size 1×161 \times 16, a pool, a flatten to 1408 values, and dense layers of 128, 64, 32 and 10 units.

Example
Checking the CNN parameter count
  1. First convolution: 128 filters of size 2×82 \times 8 on one input channel. Weights 128⋅2⋅8=2048128 \cdot 2 \cdot 8 = 2048, biases 128128. Total 21762176.
  2. Second convolution: 64 filters of size 1×161 \times 16 over 128 input channels. Weights 64⋅128⋅16=13107264 \cdot 128 \cdot 16 = 131072, biases 6464. Total 131136131136.
  3. Dense 1408→1281408 \to 128: 1408⋅128+128=1803521408 \cdot 128 + 128 = 180352.
  4. Dense 128→64128 \to 64: 128⋅64+64=8256128 \cdot 64 + 64 = 8256.
  5. Dense 64→3264 \to 32: 64⋅32+32=208064 \cdot 32 + 32 = 2080.
  6. Dense 32→1032 \to 10: 32⋅10+10=33032 \cdot 10 + 10 = 330.
  7. Sum: 2176+131136+180352+8256+2080+330=3243302176 + 131136 + 180352 + 8256 + 2080 + 330 = 324330. This matches the count in Table V.

Results

Each claim below is what the paper reports. The numbers are from its own experiments.

  • Autoencoder against a classical code. For a rate 4/74/7 system over an AWGN channel, the learned (7,4)(7,4) autoencoder reaches the same block error rate as a Hamming (7,4)(7,4) code decoded by maximum likelihood. It does this without being told about codes. The (8,8)(8,8) autoencoder, at rate 11, beats uncoded binary phase-shift keying over the whole range tested. The authors note that a fair comparison would use a higher-order modulation with a code, and that is left for later work.
  • Learned constellations. The (2,2)(2,2) autoencoder converges to a QPSK-like arrangement, rotated. The (4,2)(4,2) case gives a rotated 16-PSK. With an average power constraint instead of a fixed energy constraint, the (2,4)(2,4) case gives a mixed pentagonal and hexagonal grid. The paper reports that its error rate is indistinguishable from 16-QAM.
  • Interference channel. Against time-sharing of QAM, the learned pairs gain about 0.7 dB at (4,4)(4,4) and about 1 dB at (4,8)(4,8), measured at a block error rate of 10−310^{-3}. The learned constellations for two users show superposition-like structure at (2,2)(2,2). The authors say the larger cases are harder to interpret.
  • RTN. On the three-tap Rayleigh channel, the plain autoencoder struggles to match differential BPSK with maximum likelihood sequence estimation and a Hamming (7,4)(7,4) code. The autoencoder with an RTN outperforms it, and converges faster.
  • CNN. The CNN beats a boosted-tree classifier on expert features by about 4 dB at low and medium signal-to-noise ratio. At high signal-to-noise ratio the two are almost identical. A single decision tree is about 6 dB worse than the CNN at medium signal-to-noise ratio and 3.5 percent worse at high signal-to-noise ratio.

Why it mattered

The paper was a research agenda, not a deployed system. Its main legacy is the framing. A radio link can be treated as one differentiable model, trained end to end, and that framing led to a large body of follow-up work on learned air interfaces. The RTN idea, inserting a fixed and differentiable domain transform into a network, is a practical way to bring expert knowledge into learned models. The CNN result showed that raw IQ samples can replace expert features for modulation classification.

The paper is also candid about what was missing. Scalability is the largest problem. With kk bits per message there are M=2kM = 2^k messages, and the autoencoder must see every one of them at least once. The authors give k=100k = 100 as an example where training is out of reach. Other open issues were the need for a differentiable channel model, since backpropagation needs the channel's transfer function, and the lack of complex-valued neural network support in the libraries of the time.

Reading guide

Read the paper in this order. Each step names the prerequisites it needs.

  1. Section I, Introduction and I-A. No new prerequisites. This is the argument for why communications is a hard place to beat with learning. Read it once to see the bar the authors set.
  2. Section II, Deep learning basics. Needs Feedforward Neural Network, Activation Function, Cross-Entropy Loss and Stochastic Gradient Descent. The mini-batch gradient step described there is the training loop the rest of the paper uses. Read Backpropagation first if the gradient step is unfamiliar.
  3. Section III-A and Figures 2 to 4. Needs Autoencoder, Softmax, Digital Modulation and Signal-to-Noise Ratio. The central idea is in Figure 2. Table IV is the parameter count worked through above.
  4. Section III-B and Figures 5 to 7. Needs Cross-Entropy Loss and the idea of MIMO (Multiple-Input Multiple-Output) only as background. The weighting in the loss update is the part to follow closely.
  5. Section III-C and Figures 8 to 10. Needs Rayleigh Fading, Hyperbolic Tangent and Channel State Information. The RTN's phase example is the simplest way in.
  6. Section III-D and Figures 11 and 12. Needs Convolutional Neural Network. The classifier is a direct use of the architecture, with the data described in the text.
  7. Section IV, Discussion. Needs Channel Capacity for the benchmark question, and Maximum Likelihood Estimation as the reference decoder. Read IV-D and IV-E closely, since they set the limits of the method.

Check yourself

QuestionIn a normal autoencoder the bottleneck removes redundancy. Why does the channel autoencoder add redundancy, and what does the added redundancy buy?Show answer

A normal autoencoder compresses, so its code is narrower than its input. The channel autoencoder learns a signal that is spread out enough that noise cannot flip the decoded message. Extra dimensions let the codewords sit farther apart, and that separation is what lets the receiver recover the message. The redundancy is not wasted. It is the mechanism that makes the message survive the channel.

QuestionAt a rate of R=1/2R = 1/2 and an energy ratio Eb/N0=4E_b/N_0 = 4 (linear), compute the noise variance β\beta using β=1/(2REb/N0)\beta = 1/(2 R E_b/N_0).Show answer

Substitute the values. The denominator is 2⋅0.5⋅4=42 \cdot 0.5 \cdot 4 = 4, so β=1/4=0.25\beta = 1/4 = 0.25. A lower Eb/N0E_b/N_0 would make β\beta larger, meaning more noise, which is the expected direction.

QuestionThe paper weights the two users' losses dynamically instead of using a fixed equal weight. Why would equal weights give an unfair result?Show answer

Each pair's loss depends on how the other transmitter behaves. Equal weights let one pair's loss dominate in practice, and the pair with the easier task can drift to a state where the harder pair has to cope. The paper reports that this produces highly unfair and suboptimal solutions. Weighting by the current loss gives more attention to the pair that is doing worse, which pushes both toward equal performance. The authors note this is a practical choice, not a proven optimum.

QuestionApplied: a designer wants the autoencoder approach for a 100-bit message. Why does the paper call this infeasible, and what would be a reasonable first step instead?Show answer

A 100-bit message has M=2100M = 2^{100} possibilities. The autoencoder is trained on a one-hot input, so it must see each message at least once, which is impossible at that size. A reasonable first step is to keep the message short, or to split it into smaller blocks and learn a code for each block, then combine them. The paper points to these smaller-scale approaches as the practical route for now.

Sources

Read the full paper

Timothy J. O'Shea, Jakob Hoydis, 2017. arXiv:1702.00832