Techniqueresearch
Universal filtered multicarrier
Also called UFMC.
OFDM with the subcarriers in subbands and a short filter on each subband. The filter tails replace the cyclic prefix and cut the out-of-band emission.
Universal filtered multicarrier (UFMC) is a variant of OFDM proposed by Vakilian, Wild, Schaich, ten Brink and Frigon in 2013. The subcarriers are grouped into subbands of a few adjacent subcarriers. Each subband is turned into time with an -point inverse DFT, as in OFDM, and then passes through its own short FIR filter of length . The filtered subbands are added. A block has samples and no cyclic prefix: the rising and falling tails of the filter take the place of the prefix. The filter is narrow enough to attenuate the sidelobes of the subband outside its edges, so the out-of-band emission is much lower than for OFDM, but wide enough to pass the subband. The filters are short because a subband is much wider than one subcarrier. The receiver pads the block to samples, takes one -point FFT, keeps the even bins, and divides each by the filter and channel response. The page uses for the imaginary unit.
In plain words
An OFDM signal spreads some power outside its own band, which disturbs neighbors. UFMC cuts the band into small groups of subcarriers and smooths each group with a short filter, so very little power leaves the group. The smoothing makes each block a little longer, and this extra length also does the job of the guard interval of OFDM. The receiver uses one transform of twice the usual size and then undoes the known effect of the filter on each subcarrier.
When it applies
- Users or services share a band and must not disturb each other, for example uplink users that are not exactly synchronized in time or frequency, or narrow allocations next to other systems.
- The blocks are short, so a filter per subcarrier as in filter bank multicarrier would give too long a tail, but a filter per subband stays short.
- The channel delay spread is short compared with the filter length, or a short zero guard is added after each block.
- The receiver can afford a -point FFT and a division per subcarrier.
The template
UFMC(X[0..N-1], subbands, f_1..f_B, h) ▷ f_i has length L; bins k are signed, -N/2 ≤ k < N/2- 1
x_i ← the unitary N-point inverse DFT of X on the bins of subband i, for each i - 2
x ← Σ_i f_i ∗ x_i ▷ linear convolution; N + L - 1 samples - 3
send x with no cyclic prefix - 4
Y ← the 2N-point DFT of the received block, padded with zeros to 2N samples - 5
X̂[k] ← Y[2k] / (√N · F_i[2k] · H[2k]) for each bin k of subband i
Here and are the -point DFTs of the filter and the channel.
Why the even bins work. The -point DFT of at bin is its -point DFT at bin , which is on the bins of subband and 0 elsewhere. The linear convolutions with and with the channel have at most samples, so if this fits in samples the -point DFT turns them into products. Bin then holds and nothing from the other subbands, which have zeros at bin . Line L5 is exact in the noiseless case.
The filter. Vakilian and coauthors use a Dolph-Chebyshev window shifted to the center of each subband. This window has the narrowest main lobe for a given sidelobe level and the same height for all its sidelobes. Its coefficients come from the Chebyshev polynomial .
Cost. Line L1 costs one inverse FFT per subband (or a smaller inverse transform on the subband bins), and line L2 costs multiplications per sample per subband. The receiver costs one FFT of size .
Classic examples
Out-of-band emission. , 4 subbands of 6 subcarriers on bins to , QPSK, 40 random blocks, Dolph-Chebyshev filters. The table lists the highest average spectrum at more than subcarrier spacings beyond the band edge, relative to the average in-band level, and two costs of the filter: the drop of the filter response at the subband edge, and the average noise gain of the division in line L5 relative to the subband center. OFDM uses the same bins and a cyclic prefix of 16 samples.
| scheme | edge drop | noise gain | ||||
|---|---|---|---|---|---|---|
| OFDM | dB | dB | dB | dB | 0 | 0 |
| UFMC, , 40 dB sidelobes | dB | dB | dB | dB | 0.88 dB | 0.40 dB |
| UFMC, , 40 dB sidelobes | dB | dB | dB | dB | 3.27 dB | 1.66 dB |
| UFMC, , 60 dB sidelobes | dB | dB | dB | dB | 2.32 dB | 1.14 dB |
| UFMC, , 60 dB sidelobes | dB | dB | dB | dB | 9.33 dB | 5.85 dB |
A longer filter cuts the spectrum closer to the band, but its main lobe gets narrower than the subband and the edge subcarriers lose power. With subbands of 12 subcarriers the same filters drop the edge by 4.56 dB (), 20.2 dB (, 40 dB) and 67.1 dB (, 60 dB): the subband width and the filter length must be chosen together. For OFDM the leakage falls slowly, because the rectangular pulse has sidelobes that fall only as in power.
A round trip. With the same bins, and a random 8-tap channel, the received block has samples, which fits in . Lines L4 and L5 give back the QPSK symbols with an error below .
Variations
- Other filters. Any short filter with a flat pass band over the subband and low sidelobes works. Windowed-sinc and other window designs trade edge flatness against sidelobe level.
- Zero guard. A short run of zeros after each block, or a longer filter tail, protects against a channel longer than the soft ramps of the filter.
- Per-subband settings. Each subband can have its own filter, subcarrier spacing or power, which suits users with different needs in one band.
- Receiver windowing. A window before the -point FFT cuts the noise and interference from outside the block at the cost of exact recovery.
- Filtered OFDM. One longer filter over a whole allocation, with a cyclic prefix kept, is a close relative for wider allocations.
Pitfalls
- Filter too long for the subband. Line L2 with a long filter on a wide subband attenuates the edge subcarriers, and line L5 then amplifies the noise there. Choose the filter length so that its main lobe covers the subband.
- Receiver window too short. Line L4 with only samples cuts off the channel tail, and line L5 is no longer exact. Keep all samples, at most , or add a zero guard.
- Odd bins. Line L5 must use the even bins . The odd bins hold the interpolated spectrum between subcarriers and mix the data of neighbors.
- Missing scale. Line L5 must divide by as well as by . Dividing by the channel alone leaves the filter gain and phase on each symbol.
- Wrong filter for a bin. In line L5 the bin must be divided by the filter of its own subband. The filter of a neighbor has a different phase and gain at that bin.
Code
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/universal-filtered-multicarrier/. The authors are listed in prov/45M7YX.jsonl.
"""UFMC: OFDM in subbands, each subband filtered by its own short filter.
The N subcarriers are grouped into subbands. Subband i is turned into time
by an N-point inverse DFT, convolved with a filter f_i of length L, and the
subbands are added. A block has N + L - 1 samples and no cyclic prefix: the
filter ramps take its place. The filters are one Dolph-Chebyshev window
shifted to the center of each subband.
The receiver pads a block to 2N samples and takes a 2N-point DFT. Its even
bins are Y[2k] = H(2k) F_i(2k) X[k], where F_i and H are the 2N-point DFTs of
the filter and the channel, so dividing by them recovers X[k] exactly when
the received block fits in 2N samples. Bins are signed: -N/2 <= k < N/2,
stored at index k mod N.
"""
import cmath
import math
from typing import Sequence
def fft(a: Sequence[complex], inverse: bool = False) -> list[complex]:
"""Radix-2 DFT with no factor; inverse uses e^(+j). The length must be a power of 2."""
n = len(a)
if n & (n - 1):
raise ValueError("length must be a power of 2")
a = [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:
a[i], a[j] = a[j], a[i]
size = 2
s = 1 if inverse else -1
while size <= n:
w = cmath.exp(s * 2j * math.pi / size)
for start in range(0, n, size):
t = 1 + 0j
for k in range(size // 2):
u = a[start + k]
v = a[start + k + size // 2] * t
a[start + k] = u + v
a[start + k + size // 2] = u - v
t *= w
size *= 2
return a
def chebyshev(m: int, x: float) -> float:
"""The Chebyshev polynomial T_m(x) for any real x."""
if abs(x) <= 1:
return math.cos(m * math.acos(x))
if x > 1:
return math.cosh(m * math.acosh(x))
return (-1) ** m * math.cosh(m * math.acosh(-x))
def dolph_chebyshev(length: int, attenuation_db: float) -> list[float]:
"""The Dolph-Chebyshev window of odd length with the given sidelobe attenuation, sum 1."""
if length < 3 or length % 2 == 0:
raise ValueError("length must be odd and at least 3")
r = 10 ** (attenuation_db / 20)
x0 = math.cosh(math.acosh(r) / (length - 1))
c = (length - 1) / 2
w = []
for n in range(length):
s = r + 2 * sum(chebyshev(length - 1, x0 * math.cos(math.pi * k / length)) * math.cos(2 * math.pi * k * (n - c) / length) for k in range(1, (length + 1) // 2))
w.append(s)
total = sum(w)
return [v / total for v in w]
def subband_filters(bands: Sequence[Sequence[int]], n: int, window: Sequence[float]) -> list[list[complex]]:
"""The window shifted to the center of each subband (bins on the N-point grid)."""
c = (len(window) - 1) / 2
out = []
for band in bands:
f0 = sum(band) / len(band)
out.append([w * cmath.exp(2j * math.pi * f0 * (t - c) / n) for t, w in enumerate(window)])
return out
def transmit(X: Sequence[complex], bands: Sequence[Sequence[int]], filters: Sequence[Sequence[complex]]) -> list[complex]:
"""One UFMC block of N + L - 1 samples. X has N bins; only the bins in bands are sent."""
n = len(X)
length = len(filters[0])
x = [0j] * (n + length - 1)
for band, f in zip(bands, filters):
Xi = [0j] * n
for k in band:
Xi[k % n] = X[k % n]
xi = [v / math.sqrt(n) for v in fft(Xi, inverse=True)] # @line L1
for t, a in enumerate(xi): # @line L2
for l, b in enumerate(f):
x[t + l] += a * b
return x # @line L3
def receive(y: Sequence[complex], n: int, bands: Sequence[Sequence[int]], filters: Sequence[Sequence[complex]], h: Sequence[complex] = (1,)) -> list[complex]:
"""The N bins of one block from at most 2N received samples, divided by filter and channel."""
if len(y) > 2 * n:
raise ValueError("the block does not fit in 2N samples")
Y = fft(list(y) + [0j] * (2 * n - len(y))) # @line L4
H = fft(list(h) + [0j] * (2 * n - len(h)))
X = [0j] * n
for band, f in zip(bands, filters):
F = fft(list(f) + [0j] * (2 * n - len(f)))
for k in band:
i = (2 * k) % (2 * n)
X[k % n] = Y[i] / (math.sqrt(n) * F[i] * H[i]) # @line L5
return X
def ofdm_block(X: Sequence[complex], bins: Sequence[int], cp: int) -> list[complex]:
"""A CP-OFDM block on the same bins, for comparison."""
n = len(X)
Z = [0j] * n
for k in bins:
Z[k % n] = X[k % n]
x = [v / math.sqrt(n) for v in fft(Z, inverse=True)]
return x[n - cp:] + x
def channel(x: Sequence[complex], h: Sequence[complex]) -> list[complex]:
"""Full linear convolution with h."""
out = [0j] * (len(x) + len(h) - 1)
for i, a in enumerate(x):
for k, b in enumerate(h):
out[i + k] += a * b
return out
def spectrum(x: Sequence[complex], size: int) -> list[float]:
"""|DFT|^2 of x padded to size, on a grid of size / N points per subcarrier."""
return [abs(v) ** 2 for v in fft(list(x) + [0j] * (size - len(x)))]
test_universal_filtered_multicarrier.py 107 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/universal-filtered-multicarrier/. The authors are listed in prov/45M7YX.jsonl.
import cmath
import math
import random
from universal_filtered_multicarrier import (
channel,
dolph_chebyshev,
fft,
ofdm_block,
receive,
spectrum,
subband_filters,
transmit,
)
N = 64
BANDS = [list(range(-12 + 6 * i, -6 + 6 * i)) for i in range(4)]
USED = [k for b in BANDS for k in b]
QPSK = [complex(a, b) / math.sqrt(2) for a in (-1, 1) for b in (-1, 1)]
def random_bins(rng):
X = [0j] * N
for k in USED:
X[k % N] = rng.choice(QPSK)
return X
def test_fft_matches_direct_sum():
rng = random.Random(1)
a = [complex(rng.gauss(0, 1), rng.gauss(0, 1)) for _ in range(16)]
A = fft(a)
for k in range(16):
d = sum(a[n] * cmath.exp(-2j * math.pi * k * n / 16) for n in range(16))
assert abs(A[k] - d) < 1e-12
b = fft(A, inverse=True)
assert max(abs(u / 16 - v) for u, v in zip(b, a)) < 1e-12
def test_dolph_chebyshev_is_equiripple():
for length, att in ((17, 40), (9, 40), (33, 60)):
w = dolph_chebyshev(length, att)
assert abs(sum(w) - 1) < 1e-12
assert max(abs(w[n] - w[length - 1 - n]) for n in range(length)) < 1e-12
x0 = math.cosh(math.acosh(10 ** (att / 20)) / (length - 1))
null = 2 * math.acos(math.cos(math.pi / (2 * (length - 1))) / x0)
c = (length - 1) / 2
grid = [null + (math.pi - null) * i / 400 for i in range(401)]
peak = max(abs(sum(v * cmath.exp(-1j * om * (t - c)) for t, v in enumerate(w))) for om in grid)
assert abs(20 * math.log10(peak) + att) < 0.01
def test_round_trip_without_channel():
rng = random.Random(2)
for length in (9, 17, 33):
f = subband_filters(BANDS, N, dolph_chebyshev(length, 40))
X = random_bins(rng)
x = transmit(X, BANDS, f)
assert len(x) == N + length - 1
Xh = receive(x, N, BANDS, f)
assert max(abs(Xh[k % N] - X[k % N]) for k in USED) < 1e-9
def test_round_trip_through_a_channel():
rng = random.Random(3)
f = subband_filters(BANDS, N, dolph_chebyshev(17, 40))
for _ in range(3):
h = [complex(rng.gauss(0, 1), rng.gauss(0, 1)) for _ in range(8)]
X = random_bins(rng)
y = channel(transmit(X, BANDS, f), h)
Xh = receive(y, N, BANDS, f, h)
assert max(abs(Xh[k % N] - X[k % N]) for k in USED) < 1e-9
def test_even_bins_carry_the_data():
rng = random.Random(4)
f = subband_filters(BANDS, N, dolph_chebyshev(17, 40))
X = random_bins(rng)
Y = fft(transmit(X, BANDS, f) + [0j] * (N - 16))
for band, fi in zip(BANDS, f):
F = fft(fi + [0j] * (2 * N - len(fi)))
for k in band:
i = (2 * k) % (2 * N)
assert abs(Y[i] - math.sqrt(N) * F[i] * X[k % N]) < 1e-9
def test_less_out_of_band_power_than_ofdm():
rng = random.Random(5)
length = 17
f = subband_filters(BANDS, N, dolph_chebyshev(length, 40))
su = [0.0] * 256
so = [0.0] * 256
for _ in range(20):
X = random_bins(rng)
su = [a + b for a, b in zip(su, spectrum(transmit(X, BANDS, f), 256))]
so = [a + b for a, b in zip(so, spectrum(ofdm_block(X, USED, length - 1), 256))]
def leak(s):
inband = sum(s[i % 256] for i in range(-48, 48)) / 96
far = max(s[i % 256] for i in range(-128, 128) if i < -64 or i >= 64)
return 10 * math.log10(far / inband)
assert leak(su) < -45
assert leak(so) > -25
Exercises
- Show that the -point DFT of a signal of samples, padded with zeros, takes at the even bins the values of its -point DFT.
- Show that the block of line L2 has samples and that its middle samples are not affected by the filter ramps of a single subband.
- Explain why the division of line L5 cannot recover a bin where the filter response is zero, and how the filter design avoids this.
- With , and a channel of taps, find the largest for which line L5 is still exact.
- Compare the overhead of one UFMC block with and one OFDM symbol with a cyclic prefix of 16 samples, both with .
References
- Vida Vakilian, Thorsten Wild, Frank Schaich, Stephan ten Brink and Jean-François Frigon, Universal-filtered multi-carrier technique for wireless systems beyond LTE, IEEE Globecom Workshops, 2013, pages 223 to 228, the transmitter with one Dolph-Chebyshev filter per subband, the block without a cyclic prefix and the receiver with a 2N-point FFT
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 | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Code (python) | I0 not checked yet |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag 45M7YX Edit this page History Report an error Markdown