Algorithmadvanced
Reduced-state sequence estimation
Also called RSSE, delayed decision-feedback sequence estimation, DDFSE.
Cuts the trellis of the Viterbi equalizer by keeping only part of the channel memory as state and feeding back decisions for the rest.
- Solves
- Channel equalization
- Time
- O(N S (M + L)) worst
- Space
- O(N S) extra
- Where
- L = the number of channel taps; M = the alphabet size; N = the number of symbols; S = the number of states, J_1 J_2 ... J_K
- Model
- Word RAM
- Properties
- deterministicneeds channelneeds minimum phase
- Evidence
- Proof sketchCode in 1 languages
- Origin
- M. Vedat Eyuboglu, Shahid U. H. Qureshi, 1988
Reduced-state sequence estimation (RSSE) is a family of detectors between the Viterbi equalizer and the decision feedback equalizer. The Viterbi equalizer for a channel with taps and an alphabet of points keeps states, which is too many for long channels or large constellations. RSSE keeps only partial information about the recent symbols in the state: for each of the last symbols, the label of the subset of the alphabet that holds it. The subsets come from nested partitions, like the set partitioning of trellis-coded modulation. The rest of the intersymbol interference is cancelled with the symbols stored on each survivor path, so each survivor runs its own decision feedback. With full partitions RSSE is the Viterbi equalizer. With no partition it is the DFE. Delayed decision-feedback sequence estimation (DDFSE) is the special case that keeps the first symbols in full, with states.
In plain words
The full Viterbi equalizer remembers every possible combination of the last few symbols. That is safe but costly. A DFE remembers only its own best guess, so one wrong guess spoils the next ones. RSSE keeps a few guesses alive, but only where a wrong guess is likely. It keeps the most recent symbols, whose taps are large, and among them it only keeps apart the symbols that are close to each other and easy to confuse. Symbols that are far apart are decided on each path at once, because the risk of mixing them up is small.
The problem
The input is a known channel with , usually minimum phase after a whitened matched filter, an alphabet of points, the known symbols before the block, the samples , and a list of partitions of into subsets. Each partition must refine the next one: two points in the same subset of are in the same subset of . The output is a sequence with a small , found with states.
The algorithm
Write for the label of the subset of that holds . The state at time is . Each state keeps one survivor: a metric and the last symbols of its path.
RSSE(y, f, A, Ω(1..K), pre)- 1
survivors ← { state of pre: (metric 0, history pre) } - 2
for k ← 0 to N - 1 - 3
for each survivor (t, metric, hist): isi ← Σ_{l=1}^{L-1} f[l] hist[l] ▷ its own past symbols - 4
for each symbol a in A - 5
λ ← |y[k] - f[0] a - isi|² - 6
t' ← (ℓ_1(a), ℓ_2(hist[1]), …, ℓ_K(hist[K-1])) - 7
if metric + λ is the smallest into t' so far, keep it with history (a, hist) and a pointer - 8
take the survivor with the smallest metric and follow the pointers back - 9
return its symbols
Line L3 is the decision feedback: the ISI comes from the survivor's own history, not from a common decision. Line L6 builds the next state. The nesting makes it depend only on and , so the trellis is well defined. Symbols with the same are parallel branches, and line L7 keeps the best one. The choices of partitions give the whole family:
| partitions | states | detector |
|---|---|---|
| , all into single points | Viterbi equalizer, exact ML | |
| , all into single points | DDFSE | |
| , into subsets | RSSE with one partition | |
| 1 | zero-forcing DFE on |
Example
Take , BPSK, the known symbols , and DDFSE with , so the state is and there are 2 states in place of 4. Each survivor stores its own . The transmitted block is , and the received samples are . Each cell shows the metric of the survivor and its path:
| state | state | ||
|---|---|---|---|
| 0 | 1.4 | 0.25: | 2.25: |
| 1 | 0.8 | 1.46: | 1.06: |
| 2 | 1.8 | 1.47: | 5.07: |
| 3 | 1.4 | 1.72: | 3.72: |
| 4 | 0.0 | 4.21: | 1.73: |
At the ISI of the true past is , so the sample is closer to than to , and the path has the smaller metric. A DFE decides here and goes wrong. DDFSE keeps the path in the other state. At , the sample 1.8 fits followed by almost exactly (), and the path dies. The final answer is correct and is the same as the 4-state ML answer. The DFE gives .
Measured with 200 blocks of 50 BPSK symbols on this channel at noise standard deviation 0.35 (seed 7703), the 2-state DDFSE gave the same block as 4-state ML 198 times, and the DFE 184 times. On 4-PAM with and 2 states (seed 7704, 200 blocks of 40 symbols, deviation 0.35), the set partition agreed with the 4-state ML result on all 200 blocks. The partition agreed on 182 and the DFE on 177. The good partition keeps apart the neighbours, which are the points easy to confuse, and lets each survivor decide between points at the distance 4.
Correctness
Claim. The trellis is well defined when the partitions are nested, and each survivor metric is the exact Euclidean metric of its own path. With full partitions RSSE is exact maximum likelihood. With no partition it is the zero-forcing DFE on . Without noise it returns the transmitted sequence for every choice of partitions.
Key step. The nesting makes the label a function of , so the next state depends only on the current state and the label of the new symbol. Since the ISI uses the survivor's own symbols, its metric is the true metric of its path. Without noise the true path has metric 0 and no other path does, so it always survives. RSSE is not exact in general, because two paths in one reduced state can differ in symbols that the state does not hold, and the compare step drops one of them. The proofs folder has the details.
Proof: RSSE is a well-defined trellis search, exact ML with full partitions, the DFE with none, and error-free without noise for every partitionfull
The channel taps are with , the alphabet has points, and the known symbols before the block are . The samples are for . For a sequence write .
There are partitions of , and is the label of the subset of that holds . They are nested: implies (the function check_partitions tests this). The state of a sequence at time is .
Lemma 1 (the trellis is well defined). is a function of and . So the number of states is , and the symbols with the same are parallel branches between the same pair of states.
Proof. . For , is a function of by the nesting, and is entry of .
The code computes from the survivor's own symbols (line L6), which gives the same value by Lemma 1.
Lemma 2 (survivor metrics). After step , each survivor is a sequence , with the known symbols before it, and its stored metric equals of that sequence. Its stored history holds its own last symbols.
Proof. By induction. At the start there is one survivor with metric 0 and the known history (line L1). A step extends a survivor by a symbol and adds , where come from the survivor's own history (lines L3 to L5). This is the term of for the extended sequence. The new history is followed by the old one, cut to symbols, and line L7 stores it with the metric.
So the output is the sequence with the smallest among the final survivors (line L8). RSSE is suboptimal only because the compare step at line L7 drops a path when another path with a smaller metric enters the same reduced state. Two such paths can differ in symbols that the state does not hold, so their future branch metrics differ, and the dropped one can be the better full path.
Theorem 1 (full partitions give ML). If and every is the partition into single points, RSSE returns a sequence that minimizes over .
Proof. The state is then , the full channel memory, with states. The history that a survivor uses at line L3 is fixed by its state, so two paths into the same state have the same future branch metrics, and the compare step keeps a path that can be extended to an optimal one. This is the Viterbi equalizer, and its proof applies.
Theorem 2 (no partition gives the DFE). If , there is one state and one survivor, and RSSE decides . This is the zero-forcing DFE on : subtract the ISI of the past decisions and take the nearest point to .
Proof. With the state tuple is empty, so all branches enter the same state, and line L7 keeps the branch with the smallest metric. All candidates share the same survivor metric, so the smallest metric is the smallest branch metric. And , so this is the nearest point to .
Theorem 3 (no noise, no errors). If , RSSE returns the transmitted sequence for every choice of nested partitions.
Proof. First, a sequence with equals the transmitted up to time . Indeed, gives for every , and , so from the known past, and then , and so on. Now show by induction that after step the true state has a survivor equal to up to time , with metric 0. Before the loop this holds. If it holds after step , the extension of that survivor by enters with metric 0 by Lemma 2. Every candidate has metric at least 0, and a candidate with metric 0 is the true sequence by the first part, so the survivor kept in is the true sequence. At the end, the best final survivor has metric 0 and is the true sequence.
Theorem 4 (the cost). Each step costs for states: the ISI of the survivor history in , then branch metrics in each. The traceback pointers need space. Against the states of the Viterbi equalizer, the saving is the factor . For DDFSE with memory , , a factor of .
Proof. Count the operations in lines L2 to L7.
Complexity
Each step costs per survivor for the ISI and for the branches, so symbols cost in the word RAM, with the metrics as numbers of fixed precision, and space for the pointers. The full Viterbi equalizer has states, so the saving is the factor . For DDFSE with memory it is . For example, 16-QAM on 5 taps needs states for ML, 16 states for DDFSE with , and 4 states for RSSE with one partition of 16-QAM into 4 subsets.
Properties
- A family. One parameter set covers the DFE, DDFSE, RSSE and the Viterbi equalizer, and the cost and the performance move smoothly between them.
- Survivor feedback. Each survivor uses its own past decisions, so a wrong decision on one path does not spoil the others. Error propagation is much weaker than in a DFE.
- Needs minimum phase. The symbols outside the state are fed back from tentative decisions. If the channel energy comes late, these decisions are unreliable. The whitened matched filter or an MMSE prefilter puts the energy first.
- Set partitioning. The distance between the points inside a subset sets how reliable the per-survivor decisions are. A good partition makes the smallest such distance large, which is the same rule as in trellis-coded modulation.
- Parallel branches. With there are branches between each pair of states, and the compare step picks the best of them at once.
Variants and improvements
- DDFSE. The partitions into single points for the first symbols. It is the simplest member and is common in practice.
- Ungerboeck metric. RSSE can run on the Ungerboeck metric, but the matched filter output also holds the ISI from the future symbols, so the minimum-phase Forney form is the usual choice.
- Per-survivor processing. Running a channel or phase estimator on each survivor is the same idea as the per-survivor feedback. See per-survivor processing.
- Breadth-first searches. The M-algorithm and the T-algorithm keep a fixed number of the best paths, or the paths within a threshold, instead of one path per reduced state. They are a beam search on the full trellis, and the K-best detector is the same idea for MIMO.
- Soft outputs. A reduced-state BCJR or a reduced-state soft-output Viterbi algorithm gives soft outputs for turbo equalization.
When to use it
Use RSSE when the full Viterbi equalizer is too costly and the DFE loses too much: long channels with small alphabets, or large constellations on short channels. Start with DDFSE with or 2. For large QAM constellations, use one or two set-partition levels for the first taps. Put a minimum-phase prefilter in front. If the channel is very long, use a DFE or frequency-domain equalization instead.
Pitfalls
- Partitions that do not nest. If two points share a subset in but not in , the next state is not a function of the current state, and the search is not a trellis search.
- A maximum-phase channel. Without a minimum-phase prefilter, the large taps are fed back from early decisions and RSSE can be worse than a linear equalizer.
- A common decision. Feeding back one global decision for the taps outside the state, in place of each survivor's own history, gives a DFE in front of a smaller Viterbi search. It loses the main benefit.
- The wrong partition. Grouping neighbours into one subset, such as in 4-PAM, leaves the hard decisions to the feedback. In the example it agreed with ML on 182 blocks of 200, against 200 for the set partition.
- Not ML. RSSE does not guarantee the ML sequence, so a test that compares it with ML must allow some differences and report how many.
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/reduced-state-sequence-estimation/. The authors are listed in prov/J2DFVA.jsonl.
"""Reduced-state sequence estimation (Eyuboglu and Qureshi) on an ISI channel.
The channel is y[k] = sum_{l=0}^{L-1} f[l] x[k-l] + n[k] with white noise, for
example the minimum-phase output of a whitened matched filter. The full Viterbi
equalizer has M^(L-1) states. RSSE chooses K <= L-1 partitions of the alphabet:
partition i splits it into J_i subsets, and partition i must refine partition
i+1 (so J_1 >= J_2 >= ... >= J_K). The state at time k is the tuple of subset
labels (label_1(x[k-1]), ..., label_K(x[k-K])), so there are J_1 J_2 ... J_K
states. Each survivor keeps its own symbol history, and the ISI of the symbols
that the state does not hold comes from that history (decision feedback per
survivor). Symbols with the same label_1 are parallel branches; the best one is
kept.
Special cases: every J_i = M gives the full Viterbi equalizer (exact ML);
J_1 = ... = J_mu = M and K = mu gives DDFSE (Duel-Hallen and Heegard) with M^mu
states; K = 0 gives one state, the zero-forcing DFE on f.
"""
def check_partitions(parts: list[list[int]], m: int) -> list[int]:
"""Check the labels and the nesting; return J_1, ..., J_K."""
sizes = []
for p in parts:
if len(p) != m or sorted(set(p)) != list(range(len(set(p)))):
raise ValueError("a partition labels each point with 0..J-1")
sizes.append(len(set(p)))
for i in range(len(parts) - 1):
# partition i must refine partition i+1: the same label in i means the same label in i+1
seen: dict[int, int] = {}
for a in range(m):
if seen.setdefault(parts[i][a], parts[i + 1][a]) != parts[i + 1][a]:
raise ValueError("each partition must refine the next one")
return sizes
def ddfse_partitions(m: int, mu: int) -> list[list[int]]:
"""The DDFSE choice: the first mu symbols are kept in full."""
return [list(range(m)) for _ in range(mu)]
def rsse(y: list[complex], f: list[complex], alphabet: list[complex], parts: list[list[int]], pre: list[complex] | None = None) -> list[complex]:
"""The RSSE decisions for y on the channel f with the given partitions.
pre holds the L-1 known symbols before x[0], oldest first.
"""
m, mem = len(alphabet), len(f) - 1
if len(parts) > mem:
raise ValueError("at most L-1 partitions")
check_partitions(parts, m)
pre = list(pre) if pre is not None else [alphabet[0]] * mem
if len(pre) != mem:
raise ValueError("pre must hold L-1 symbols")
index = {complex(a): i for i, a in enumerate(alphabet)}
hist0 = tuple(index[complex(v)] for v in reversed(pre)) # most recent first
def state_of(hist: tuple[int, ...]) -> tuple[int, ...]:
return tuple(parts[i][hist[i]] for i in range(len(parts)))
# each survivor: state -> (metric, last mem symbol indices, most recent first)
surv = {state_of(hist0): (0.0, hist0)} # @line L1
back: list[dict] = []
for k in range(len(y)): # @line L2
new: dict[tuple[int, ...], tuple[float, tuple[int, ...]]] = {}
ptr: dict[tuple[int, ...], tuple[tuple[int, ...], int]] = {}
for t, (met, hist) in surv.items():
isi = sum(f[l] * alphabet[hist[l - 1]] for l in range(1, mem + 1)) # @line L3
for i0 in range(m): # @line L4
d = abs(y[k] - f[0] * alphabet[i0] - isi) ** 2 # @line L5
h2 = ((i0,) + hist)[:mem]
t2 = state_of(h2) # @line L6
if t2 not in new or met + d < new[t2][0]: # @line L7
new[t2] = (met + d, h2)
ptr[t2] = (t, i0)
surv = new
back.append(ptr)
t = min(surv, key=lambda q: surv[q][0]) # @line L8
out = []
for k in range(len(y) - 1, -1, -1):
t, i0 = back[k][t][0], back[k][t][1]
out.append(alphabet[i0])
out.reverse()
return out # @line L9
def number_of_states(parts: list[list[int]]) -> int:
n = 1
for p in parts:
n *= len(set(p))
return n
test_reduced_state_sequence_estimation.py 127 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/reduced-state-sequence-estimation/. The authors are listed in prov/J2DFVA.jsonl.
import itertools
import math
import random
import pytest
from reduced_state_sequence_estimation import check_partitions, ddfse_partitions, number_of_states, rsse
def cn(rng, var):
s = math.sqrt(var / 2)
return complex(rng.gauss(0, s), rng.gauss(0, s))
def channel_out(f, x, pre):
mem = len(f) - 1
full = list(pre) + list(x)
return [sum(f[l] * full[mem + k - l] for l in range(len(f))) for k in range(len(x))]
def metric(y, f, x, pre):
return sum(abs(a - b) ** 2 for a, b in zip(y, channel_out(f, x, pre)))
def brute_force(y, f, alphabet, pre):
return min((list(c) for c in itertools.product(alphabet, repeat=len(y))), key=lambda c: metric(y, f, c, pre))
def dfe(y, f, alphabet, pre):
past, out = list(pre), []
for v in y:
isi = sum(f[l] * past[-l] for l in range(1, len(f)))
a = min(alphabet, key=lambda p: abs(v - isi - f[0] * p))
out.append(a)
past.append(a)
return out
def test_example_on_the_page() -> None:
f, y = [1, 0.6, 0.3], [1.4, 0.8, 1.8, 1.4, 0.0]
assert rsse(y, f, [1, -1], ddfse_partitions(2, 1), pre=[1, 1]) == [1, 1, 1, 1, -1]
assert rsse(y, f, [1, -1], ddfse_partitions(2, 2), pre=[1, 1]) == [1, 1, 1, 1, -1]
assert rsse(y, f, [1, -1], [], pre=[1, 1]) == [1, -1, 1, 1, -1]
assert abs(metric(y, f, [1, 1, 1, 1, -1], [1, 1]) - 1.73) < 1e-12
def test_full_partitions_are_exact_ml() -> None:
rng = random.Random(7701)
for _ in range(12):
f = [rng.gauss(0, 1) for _ in range(rng.randint(1, 4))]
pre = [rng.choice((-1, 1)) for _ in range(len(f) - 1)]
x = [rng.choice((-1, 1)) for _ in range(10)]
y = [v + rng.gauss(0, 0.8) for v in channel_out(f, x, pre)]
assert rsse(y, f, [1, -1], ddfse_partitions(2, len(f) - 1), pre=pre) == brute_force(y, f, [1, -1], pre)
qpsk = [complex(a, b) for a in (-1, 1) for b in (-1, 1)]
for _ in range(6):
f = [cn(rng, 1.0) for _ in range(3)]
pre = [rng.choice(qpsk) for _ in range(2)]
x = [rng.choice(qpsk) for _ in range(5)]
y = [v + cn(rng, 1.0) for v in channel_out(f, x, pre)]
assert rsse(y, f, qpsk, ddfse_partitions(4, 2), pre=pre) == brute_force(y, f, qpsk, pre)
def test_no_partition_is_the_dfe() -> None:
rng = random.Random(7702)
pam = [3, 1, -1, -3]
for _ in range(20):
f = [1.0] + [rng.uniform(-0.6, 0.6) for _ in range(rng.randint(0, 3))]
pre = [rng.choice(pam) for _ in range(len(f) - 1)]
x = [rng.choice(pam) for _ in range(40)]
y = [v + rng.gauss(0, 0.6) for v in channel_out(f, x, pre)]
assert rsse(y, f, pam, [], pre=pre) == dfe(y, f, pam, pre)
def test_ddfse_agrees_with_ml_on_most_blocks_at_high_snr() -> None:
# 200 blocks of 50 BPSK symbols on f = (1, 0.6, 0.3), sigma = 0.35, seed 7703:
# DDFSE with 2 states agrees with 4-state ML on 198 blocks, the DFE on 184
rng = random.Random(7703)
f = [1, 0.6, 0.3]
agree_ddfse = agree_dfe = 0
for _ in range(200):
x = [rng.choice((1, -1)) for _ in range(50)]
y = [v + rng.gauss(0, 0.35) for v in channel_out(f, x, [1, 1])]
ml = rsse(y, f, [1, -1], ddfse_partitions(2, 2), pre=[1, 1])
agree_ddfse += rsse(y, f, [1, -1], ddfse_partitions(2, 1), pre=[1, 1]) == ml
agree_dfe += rsse(y, f, [1, -1], [], pre=[1, 1]) == ml
assert agree_ddfse == 198 and agree_dfe == 184
def test_set_partition_beats_a_bad_partition_on_4pam() -> None:
# 2 states on 4-PAM, f = (1, 0.7), sigma = 0.35, seed 7704, 200 blocks of 40 symbols:
# the partition {3, -1} {1, -3} agrees with ML on all 200, {3, 1} {-1, -3} on 182, the DFE on 177
rng = random.Random(7704)
pam, f = [3, 1, -1, -3], [1, 0.7]
good, bad = [0, 1, 0, 1], [0, 0, 1, 1]
counts = [0, 0, 0]
for _ in range(200):
x = [rng.choice(pam) for _ in range(40)]
y = [v + rng.gauss(0, 0.35) for v in channel_out(f, x, [3])]
ml = rsse(y, f, pam, [list(range(4))], pre=[3])
for i, parts in enumerate(([good], [bad], [])):
counts[i] += rsse(y, f, pam, parts, pre=[3]) == ml
assert counts == [200, 182, 177]
def test_noiseless_recovery_with_any_partition() -> None:
rng = random.Random(7705)
pam = [3, 1, -1, -3]
f = [1, 0.5, -0.3]
x = [rng.choice(pam) for _ in range(100)]
y = channel_out(f, x, [1, 1])
for parts in ([], [[0, 1, 0, 1]], [[0, 1, 2, 3]], [[0, 1, 2, 3], [0, 1, 0, 1]], [[0, 1, 0, 1], [0, 0, 0, 0]]):
assert rsse(y, f, pam, parts, pre=[1, 1]) == x
def test_state_count_and_partition_checks() -> None:
assert number_of_states([[0, 1, 2, 3], [0, 1, 0, 1]]) == 8
assert check_partitions([[0, 1, 2, 3], [0, 1, 0, 1]], 4) == [4, 2]
with pytest.raises(ValueError):
check_partitions([[0, 1, 0, 1], [0, 0, 1, 1]], 4) # {3, -1} is split by the next partition
with pytest.raises(ValueError):
check_partitions([[0, 2, 0, 2]], 4)
with pytest.raises(ValueError):
rsse([1.0], [1, 0.5], [1, -1], [[0, 1], [0, 1]], pre=[1])
History
The Viterbi equalizer of Forney (1972) has a number of states that grows exponentially with the channel memory. In 1988, Eyuboglu and Qureshi defined reduced-state sequence estimation with set partitions of the alphabet, as in Ungerboeck's trellis-coded modulation, and decision feedback on each survivor. In 1989, Duel-Hallen and Heegard published delayed decision-feedback sequence estimation, which keeps the first taps in the trellis and feeds back the rest along each survivor. Per-survivor processing in the 1990s took the same idea to channel and phase estimation.
References
- M. Vedat Eyuboglu and Shahid U. H. Qureshi, Reduced-state sequence estimation with set partitioning and decision feedback, IEEE Transactions on Communications 36(1), 1988, pages 13 to 20, the subset trellis, the nesting condition on the partitions and the decision feedback per survivor
- Alexandra Duel-Hallen and Chris Heegard, Delayed decision-feedback sequence estimation, IEEE Transactions on Communications 37(5), 1989, pages 428 to 436, the trellis on the first mu channel taps with decision feedback per survivor for the rest
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 J2DFVA Edit this page History Report an error Markdown