Algorithmadvanced
Tone reservation
Also called peak-reduction tones.
Lowers the PAPR of OFDM by keeping a few subcarriers free of data and filling them with a signal that cancels the peaks. The data subcarriers stay unchanged and no side information is sent.
- Time
- O(L N log(L N) + K L N) worst
- Space
- O(L N) extra
- Where
- K = the number of iterations; L = the oversampling factor; N = the number of subcarriers
- Model
- Real RAM
- Properties
- adds powercosts subcarriersdeterministicdistortionlessnot side information
- Evidence
- Proof sketchCode in 1 languages
- Origin
- Jose Tellado, 2000
Tone reservation lowers the peak-to-average power ratio (PAPR) of an OFDM symbol by keeping a small set of subcarriers free of data. The transmitter fills these reserved tones with values chosen so that the added time signal cancels the peaks. The data subcarriers are not touched, so the receiver demodulates them as usual, ignores the tones in , and needs no side information. Finding the best is a convex problem. The common fast method, due to Tellado, uses a kernel: a time signal whose spectrum lies on and which has one tall peak at time 0. Each step shifts the kernel to the current largest sample and subtracts just enough of it to bring that sample down to a target magnitude . The price is the subcarriers that carry no data and the extra power on them. The page uses the unitary DFT pair , is the imaginary unit, and the data have .
In plain words
Some tones in the OFDM symbol are set aside and carry no data. The sender may put anything on them, because the receiver throws them away. The sender uses them to build a correction signal that pushes the tall peaks down. A good correction looks like one sharp spike with small ripples, so it can remove one peak without making new ones. The sender finds the tallest peak, puts the spike there with the right size and angle, and subtracts it. Then it looks for the next tallest peak and repeats a few times. The data tones never change, so the receiver does nothing new. The cost is the tones that carry no data and a little extra power.
The problem
The input is a block of data symbols with on the reserved set , an oversampling factor , usually 4, a target peak magnitude and a number of iterations . The output is a vector that is zero off and the oversampled symbol of , where and are the symbols of and . The goal is a small . The best minimizes , which is a convex function of . The algorithm below gives a good quickly but does not always reach that minimum.
The algorithm
TR(X[0..N-1], R, L, A, K) ▷ X[k] = 0 for k in R- 1
x ← √L · F_LNᴴ (X, with (L-1)N zeros in the middle) - 2
p ← (√N/|R|) · √L · F_LNᴴ (indicator of R, zeros in the middle) ▷ p[0] = 1 - 3
c ← 0, a vector of LN samples - 4
repeat K times - 5
m ← argmax_t |x[t] + c[t]|; v ← x[m] + c[m] - 6
if |v| ≤ A then stop - 7
α ← v · (1 - A/|v|) - 8
c[t] ← c[t] - α · p[(t - m) mod LN] for every t - 9
return y = x + c and C = the N in-band values of F_LN c / √L
Line L1 is the oversampled OFDM symbol; the zeros go in the middle of the spectrum because the indices are the negative frequencies. Line L2 builds the kernel once per reserved set. It is the time signal of the indicator of , scaled so that . Every other sample has , and a good set makes them much smaller. A circular shift of by samples multiplies each tone by a phase, so the shifted kernel still lives on . Line L5 finds the largest sample. Line L7 computes the excess over with the phase of that sample, and line L8 subtracts the shifted kernel times the excess, which sets the sample to magnitude exactly. The other samples change by at most each, so a new peak can appear; line L5 looks for it on the next pass. Line L9 returns the symbol and the reserved-tone values. The receiver reads the data tones and discards .
Example
Take QPSK subcarriers, and reserved tones, . This set was the best of 200 random sets of 8 tones, by the largest kernel sidelobe , which is 0.80 for it. Eight equally spaced tones give 1.0 and eight adjacent tones give 0.97. The target is , with the mean power per sample of the data alone. The PAPR below is measured on , with the reserved-tone power in the mean. Over 200 random blocks (Python random.Random(2)):
| target | iterations | mean PAPR | 99 percent below | extra power on |
|---|---|---|---|---|
| none | 0 | 7.33 dB | 9.62 dB | 0 dB |
| 4 dB | 5 | 5.82 dB | 7.62 dB | 0.47 dB |
| 4 dB | 10 | 5.44 dB | 7.37 dB | 0.56 dB |
| 4 dB | 40 | 5.05 dB | 6.35 dB | 0.74 dB |
| 5 dB | 5 | 5.64 dB | 7.22 dB | 0.28 dB |
| 5 dB | 10 | 5.30 dB | 6.95 dB | 0.34 dB |
| 5 dB | 40 | 4.90 dB | 5.80 dB | 0.48 dB |
| 6 dB | 5 | 6.04 dB | 7.09 dB | 0.12 dB |
| 6 dB | 10 | 5.93 dB | 6.81 dB | 0.14 dB |
| 6 dB | 40 | 5.85 dB | 6.00 dB | 0.16 dB |
With the 6 dB target the result stays near the target and costs little power. A lower target lowers the PAPR further but spends more power on , and with 4 dB the loop cannot reach the target in 40 passes. For a tiny case with , and one reserved tone, where the convex optimum can be found by a direct search, setting to the optimal peak makes the loop reach that peak to within 0.1 percent in 200 passes.
Correctness
The claim is that the output is the oversampled symbol of with zero off , so the data tones are exactly , and that each pass that reaches line L8 sets its selected sample to magnitude . The invariant is that is always the symbol of a vector on . It holds after line L3, and line L8 keeps it because a shifted kernel is the symbol of a phase-rotated indicator of . The step is exact because , so the sample becomes . If the loop stops at line L6, every sample is at most . The correction adds the mean power and nothing else. The full proof is in proofs/correctness.md.
Proof: Tone reservation leaves the data subcarriers unchanged, puts the whole correction on the reserved set, and clips each selected peak exactly to the thresholdfull
Let be the number of subcarriers, the oversampling factor and the reserved set, with for . The subcarrier has the integer frequency for and for . Write for the map of line L1 from subcarrier values to the oversampled symbol, , where puts zeros in the middle of . Written out,
Say that a vector is on if for every . We work in exact arithmetic, and all indices of time samples are taken modulo .
Lemma 1 (the kernel). The kernel of line L2 is , where is the indicator of . It satisfies
Proof. Put in the formula for and multiply by . At every term is 1, so . For every the sum has terms of magnitude 1, so the triangle inequality gives .
Lemma 2 (a shift stays on ). For every integer , the shifted kernel is with
So is on .
Proof. Each is an integer, so does not change when changes by a multiple of . The circular shift is therefore well defined, and
A delay in time is a modulation in frequency, and a modulation changes only the phase of each subcarrier.
Lemma 3 (invariant). At the start of every pass through line L4, there is a vector on with .
Proof. By induction on the number of passes. Line L3 sets , and is on . Suppose with on , and the pass reaches line L8 with the index and the factor . Line L8 replaces by . By Lemma 2 and the linearity of , this equals , and is on because both and are on .
Lemma 4 (one step). Suppose a pass reaches line L7, so the largest sample has . After line L8, the sample of equals : it has magnitude exactly and the phase of .
Proof. Line L7 sets . Line L8 changes the sample by by Lemma 1. So the new sample is .
The other samples change by , and by Lemma 1. A sample can therefore grow, so the peak need not fall at every step. This is why line L5 searches for the largest sample again on each pass.
Theorem. Let and be the outputs of line L9. Then:
- for a vector on , and ;
- the data subcarriers are unchanged: the in-band values of equal for every ;
- if the loop ends at line L6, then for every ; otherwise the loop ends after the given number of passes, and each pass clipped its selected sample exactly to ;
- the energy of is , so the correction adds the mean power and nothing else.
Proof. By Lemma 3, at line L9 the correction is with on , and by line L1, so by linearity. The map that keeps the in-band values of and divides by is a left inverse of , because is unitary and only places values. Applied to it returns , which is item 1. For , , so the in-band value of at is , which is item 2. Line L6 ends the loop only when the largest magnitude is at most , and the other exit is the end of the counted loop; Lemma 4 gives the rest of item 3. For item 4, because is unitary. and have disjoint supports, so .
The receiver. After the cyclic prefix is removed and the channel is equalized, the receiver sees plus noise on each subcarrier . On the data subcarriers this is plus noise, exactly as without tone reservation, so the receiver ignores and needs no side information.
What is not claimed. The best correction solves the problem of minimizing over the vectors on . It is a convex problem, because each is a convex function of and a maximum of convex functions is convex. It can be written as a second-order cone program. The greedy loop of lines L4 to L8 gives a valid correction for any number of passes, by the theorem, but it does not in general reach the minimum of that problem.
Complexity
Lines L1 and L2 cost two inverse FFTs of size , , and the kernel can be stored once for a fixed . Each pass of lines L5 to L8 costs for the search and the update. One block therefore costs operations in the real-RAM model, with memory. Ten passes for and are about 2560 complex multiply-adds plus the searches, similar to the inverse FFT itself.
Properties
- Distortionless. The data subcarriers reach the receiver unchanged. There is no clipping noise in the band of the data.
- No side information. The receiver discards the reserved tones and needs no change.
- Costs subcarriers. The tones carry no data, here 8 of 64, a rate loss of 12.5 percent.
- Adds power. The correction carries power on , between 0.1 and 0.8 dB in the example.
- Depends on the set. The kernel sidelobes, and with them the result, depend on which tones are reserved.
- Not optimal. The loop gives a valid correction for any but does not in general reach the convex optimum.
Variants and improvements
- Exact optimization. Minimizing over on is a second-order cone program. For the real-valued baseband signals of DMT in DSL it is a linear program, which is how Tellado first posed it. The solvers are slower than the kernel loop but give the optimum.
- Clip and project. Clip at , take the FFT of the clipping noise, keep only its values on and subtract their time signal. This is a projected gradient step, like clipping and filtering with the band of the correction limited to .
- Several peaks per pass. Cancel all samples above in one pass with one shifted kernel each. This needs fewer passes at the same cost per pass.
- Tone injection. Also from Tellado: instead of reserving tones, move some data points to equivalent points of a larger constellation, which the receiver maps back with a modulo operation. It costs no subcarriers but adds power.
- Standards. The DVB-T2 broadcasting standard includes tone reservation as an option, with fixed reserved sets.
When to use it
Use tone reservation when the receiver must not change and no side information can be sent, and the system can spare a few percent of its subcarriers, for example tones that are already unused or are reserved by the standard. It suits DSL and broadcasting. If no tones can be spared, use active constellation extension, which also needs no receiver change. If some side information is acceptable, selected mapping and partial transmit sequences cost no subcarriers and no extra power.
Pitfalls
- A periodic reserved set. Choosing in line L2 gives a kernel that repeats 8 times, with sidelobes of magnitude 1, so line L8 creates peaks as tall as the one it removes. Choose in line L2 by a search for small sidelobes.
- Data on the reserved tones. If for some in line L1, the correction changes those data. Set on before line L1; the code raises an error otherwise.
- An unscaled kernel. Line L7 assumes . Without the factor in line L2 the step overshoots or falls short. Keep the scale in line L2.
- Nyquist-rate samples. Line L1 with cancels the sampled peaks only, and the analog peaks between them remain. Use in lines L1 and L2.
- A target that cannot be reached. A value of in line L6 far below what can achieve makes the loop run all passes and spend more power on for little gain, as the 4 dB rows show. Set in line L6 near a target that the reserved set can reach.
Implementations
Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/tone-reservation/. The authors are listed in prov/N335YA.jsonl.
"""Tone reservation (Tellado) with the peak-cancelling kernel.
A set R of subcarriers carries no data. The transmitter adds a signal c whose
spectrum lies only on R, so the data subcarriers are untouched and the receiver
simply ignores R. The kernel p is the oversampled time signal of the indicator
of R, scaled so that p[0] = 1. A circular shift of p by m samples still has its
spectrum on R. Each iteration finds the largest sample of x + c and subtracts
the shifted kernel times the excess over the threshold A, which sets that
sample to magnitude A exactly. The FFT is a radix-2 FFT, so N and L must be
powers of two.
"""
import cmath
import math
from typing import Sequence
def fft(a: Sequence[complex], inverse: bool = False) -> list[complex]:
"""Radix-2 FFT with no scale factor: sum_n a[n] e^(-+ j 2 pi k n / n_len)."""
n = len(a)
if n == 0 or n & (n - 1):
raise ValueError("the length must be a power of two")
out = [complex(v) for v in a]
j = 0
for i in range(1, n):
bit = n >> 1
while j & bit:
j ^= bit
bit >>= 1
j |= bit
if i < j:
out[i], out[j] = out[j], out[i]
sign = 1 if inverse else -1
size = 2
while size <= n:
half = size // 2
tw = [cmath.exp(sign * 2j * math.pi * k / size) for k in range(half)]
for s in range(0, n, size):
for k in range(half):
u = out[s + k]
v = out[s + k + half] * tw[k]
out[s + k] = u + v
out[s + k + half] = u - v
size *= 2
return out
def to_time(X: Sequence[complex], L: int) -> list[complex]:
"""sqrt(L) F^H Z: the OFDM symbol of X oversampled by L, zeros in the middle of the spectrum."""
n = len(X)
z = [0j] * (L * n)
z[: n // 2] = [complex(v) for v in X[: n // 2]]
z[L * n - n + n // 2:] = [complex(v) for v in X[n // 2:]]
s = 1.0 / math.sqrt(n)
return [v * s for v in fft(z, inverse=True)]
def to_bins(x: Sequence[complex], L: int) -> list[complex]:
"""The N in-band subcarrier values of an oversampled symbol: the inverse of to_time."""
n = len(x) // L
c = fft(x)
s = 1.0 / (L * math.sqrt(n))
return [v * s for v in c[: n // 2] + c[L * n - n // 2:]]
def papr(x: Sequence[complex]) -> float:
"""max |x[m]|^2 over the time average of |x[m]|^2."""
p = [abs(v) ** 2 for v in x]
return max(p) / (sum(p) / len(p))
def kernel(n: int, reserved: Sequence[int], L: int) -> list[complex]:
"""The oversampled time signal of the indicator of the reserved set, with p[0] = 1."""
ind = [0j] * n
for k in reserved:
ind[k] = 1 + 0j
s = math.sqrt(n) / len(reserved)
return [v * s for v in to_time(ind, L)]
def tone_reservation(X: Sequence[complex], reserved: Sequence[int], L: int, a: float, iterations: int) -> tuple[list[complex], list[complex]]:
"""Return the oversampled symbol x + c and the N subcarrier values of c (zero off the reserved set).
X must be zero on the reserved subcarriers. a is the target peak magnitude.
"""
if any(X[k] != 0 for k in reserved):
raise ValueError("the reserved subcarriers must carry no data")
x = to_time(X, L) # @line L1
p = kernel(len(X), reserved, L) # @line L2
size = len(x)
c = [0j] * size # @line L3
for _ in range(iterations): # @line L4
m = max(range(size), key=lambda t: abs(x[t] + c[t])) # @line L5
v = x[m] + c[m]
if abs(v) <= a: # @line L6
break
alpha = v * (1.0 - a / abs(v)) # @line L7
for t in range(size): # @line L8
c[t] -= alpha * p[(t - m) % size]
return [u + w for u, w in zip(x, c)], to_bins(c, L) # @line L9
test_tone_reservation.py 144 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/tone-reservation/. The authors are listed in prov/N335YA.jsonl.
import cmath
import math
import random
import pytest
from tone_reservation import fft, kernel, papr, to_bins, to_time, tone_reservation
QPSK = [complex(a, b) / math.sqrt(2) for a in (1, -1) for b in (1, -1)]
R8 = [10, 28, 30, 31, 34, 37, 39, 41]
def direct_time(X, L):
n = len(X)
freqs = list(range(n // 2)) + list(range(-(n // 2), 0))
size = L * n
return [sum(X[k] * cmath.exp(2j * math.pi * freqs[k] * t / size) for k in range(n)) * math.sqrt(L) / math.sqrt(size) for t in range(size)]
def block(rng, n, reserved):
X = [rng.choice(QPSK) for _ in range(n)]
for k in reserved:
X[k] = 0j
return X
def opt_one_tone(x, q1):
"""min over complex C of max_t |x[t] + C q1[t]|, a convex problem, by nested ternary search."""
def f(a, b):
c = complex(a, b)
return max(abs(u + c * w) for u, w in zip(x, q1))
def g(a):
lo, hi = -3.0, 3.0
for _ in range(70):
m1, m2 = lo + (hi - lo) / 3, hi - (hi - lo) / 3
if f(a, m1) < f(a, m2):
hi = m2
else:
lo = m1
return f(a, (lo + hi) / 2)
lo, hi = -3.0, 3.0
for _ in range(70):
m1, m2 = lo + (hi - lo) / 3, hi - (hi - lo) / 3
if g(m1) < g(m2):
hi = m2
else:
lo = m1
return g((lo + hi) / 2)
def test_transforms():
rng = random.Random(11)
X = [complex(rng.gauss(0, 1), rng.gauss(0, 1)) for _ in range(16)]
x = to_time(X, 4)
ref = direct_time(X, 4)
assert max(abs(u - v) for u, v in zip(x, ref)) < 1e-9
assert max(abs(u - v) for u, v in zip(to_bins(x, 4), X)) < 1e-9
a = [complex(rng.gauss(0, 1), rng.gauss(0, 1)) for _ in range(32)]
back = [v / 32 for v in fft(fft(a), inverse=True)]
assert max(abs(u - v) for u, v in zip(a, back)) < 1e-9
def test_kernel():
p = kernel(64, R8, 4)
assert abs(p[0] - 1) < 1e-12
assert max(abs(v) for v in p) <= 1 + 1e-12
P = to_bins(p, 4)
assert max(abs(P[k]) for k in range(64) if k not in R8) < 1e-9
# a circular shift of the kernel is a modulation: its spectrum stays on R
m = 37
shifted = [p[(t - m) % 256] for t in range(256)]
S = to_bins(shifted, 4)
assert max(abs(S[k]) for k in range(64) if k not in R8) < 1e-9
def test_data_untouched_and_spectrum_on_reserved_set():
rng = random.Random(3)
for _ in range(5):
X = block(rng, 64, R8)
a = math.sqrt(10 ** 0.5 * 56 / 64)
y, C = tone_reservation(X, R8, 4, a, 20)
Y = to_bins(y, 4)
assert max(abs(Y[k] - X[k]) for k in range(64) if k not in R8) < 1e-9
assert max(abs(C[k]) for k in range(64) if k not in R8) < 1e-9
assert max(abs(Y[k] - C[k]) for k in R8) < 1e-9
def test_one_step_clips_the_peak_exactly():
rng = random.Random(5)
X = block(rng, 64, R8)
x = to_time(X, 4)
m = max(range(256), key=lambda t: abs(x[t]))
a = 0.8 * abs(x[m])
y, _ = tone_reservation(X, R8, 4, a, 1)
assert abs(abs(y[m]) - a) < 1e-9
assert abs(cmath.phase(y[m] / x[m])) < 1e-9
def test_stops_below_target():
rng = random.Random(6)
X = block(rng, 64, R8)
x = to_time(X, 4)
a = max(abs(v) for v in x) + 0.01
y, C = tone_reservation(X, R8, 4, a, 50)
assert y == x
assert max(abs(v) for v in C) < 1e-12
def test_reaches_convex_optimum_with_one_tone():
rng = random.Random(1)
for _ in range(3):
X = block(rng, 8, [3])
x = to_time(X, 2)
q1 = to_time([1 if k == 3 else 0 for k in range(8)], 2)
opt = opt_one_tone(x, q1)
y, _ = tone_reservation(X, [3], 2, opt, 200)
peak = max(abs(v) for v in y)
assert peak >= opt - 1e-6
assert peak <= opt * (1 + 2e-3)
def test_papr_drops():
rng = random.Random(2)
before, after = [], []
for _ in range(60):
X = block(rng, 64, R8)
a = math.sqrt(10 ** 0.5 * 56 / 64)
y, _ = tone_reservation(X, R8, 4, a, 10)
before.append(papr(to_time(X, 4)))
after.append(papr(y))
gain = 10 * math.log10(sum(before) / len(before)) - 10 * math.log10(sum(after) / len(after))
assert gain > 1.5
def test_rejects_data_on_reserved_tones():
X = [1 + 0j] * 16
with pytest.raises(ValueError):
tone_reservation(X, [2, 5], 4, 1.0, 5)
History
Tellado developed tone reservation in his work on peak reduction for multicarrier transmission at Stanford, first for DSL, where the signals are real and the problem is a linear program. His book of 2000 collects tone reservation, the kernel algorithm and tone injection, with applications to DSL and wireless. The overview of Han and Lee (2005) places it among the distortionless methods that need no side information. It later became an option in the DVB-T2 broadcasting standard.
References
- Jose Tellado, Multicarrier Modulation with Low PAR: Applications to DSL and Wireless, Kluwer Academic Publishers, 2000, chapter PAR Reduction by Tone Reservation (the reserved tones, the optimization over them and the gradient algorithm with the peak-cancelling kernel)
- Seung Hee Han and Jae Hong Lee, An overview of peak-to-average power ratio reduction techniques for multicarrier transmission, IEEE Wireless Communications 12(2), 2005, pages 56 to 65, the section on tone reservation and tone injection
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H1 sketch |
|
| Lean | L0 no Lean part |
|
| Code (python) | I0 not checked yet |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag N335YA Edit this page History Report an error Markdown