personal research project — channel_estimation
August 2026Channel estimation recovers a wireless channel's frequency response from a
small number of known pilot measurements. This project builds a fully
synthetic, ground-truth-labeled OFDM testbed (64 subcarriers, an 8-tap
Rayleigh channel, 16 comb pilots, 1000 independent realizations, 0–30 dB
SNR) and uses it to run a controlled comparison of classical and learned
estimators. Least-Squares (LS) and Linear-MMSE (LMMSE) with the exact
channel covariance R are established first, since for this
Gaussian data-generating process LMMSE is provably the Bayes-optimal
estimator — a rare case where the ceiling is known analytically rather than
discovered empirically. Three learned architectures (MLP, 1D-CNN, and a
small Transformer) are then trained directly on raw noisy pilots, and all
three approach but never beat that ceiling, exactly as theory predicts. To
give the networks something real to learn, the covariance is deliberately
mismatched — estimated from only 8 channel realizations instead of known
exactly — which drops LMMSE's accuracy below even plain LS at some SNR
points. On top of this mismatched estimate, three residual-correction
hybrids (LMMSE output → NN correction, in the spirit of ChannelNet/ComNet)
are trained and compared. The MLP hybrid provides the most reliable partial
recovery of the lost accuracy; the CNN hybrid needed real hyperparameter
retuning to escape a degenerate near-zero-residual solution; the Transformer
hybrid did not converge under the tested configuration and is reported
as an open negative result rather than smoothed over. The project's throughline
is a single, testable idea: architectural inductive bias (or its absence)
only matters where the data actually has exploitable structure to bias
toward, and a synthetic dataset built to satisfy an estimator's assumptions
exactly leaves nothing for a more flexible model to find.
In OFDM, a wideband channel is split into narrow subcarriers, each of which sees an approximately flat, single complex gain. A receiver never observes this gain directly — it observes a noisy version of it only at a handful of known pilot subcarriers, and must infer the rest. Every pilot is overhead (it displaces payload), so the central problem in the field is recovering the full-band channel from as few pilots as possible, as accurately as possible.
This project treats that problem as a controlled testbed rather than a single deliverable. Every estimator, classical or learned, is scored against the same 1000 channel realizations at the same 7 SNR points, so differences in the results tables below are attributable to the estimator, not to lucky draws. Four questions motivate the structure of the work:
R) buy over ignoring it
(LS)?One OFDM symbol, N = 64 subcarriers, an
L = 8 tap Rayleigh channel with an exponentially
decaying power delay profile (unit total power). The frequency response is
the DFT of the taps:
Pilots sit at every 4th subcarrier (16 of 64, all-ones symbols so the received pilot value is the raw LS estimate) and the noisy observation model is
Because the taps are independent zero-mean complex Gaussians, the channel covariance is known in closed form — the Fourier transform of the power delay profile:
Two properties of R drive most of the results below. First,
it is rank 8 — despite being a 64×64 matrix, only 8
eigenvalues are nonzero, because 8 taps generate all 64 subcarrier gains and
the other 56 dimensions carry zero energy. Second, it is
Toeplitz — R[a,b] depends only on the lag
a−b, not on absolute position, since the underlying physical
process (multipath delay) has no preferred frequency origin. Both properties
are exploited directly by later sections.
Generated by make_dataset.py: 1000 independent channel
realizations, 7 SNR points (0–30 dB in 5 dB steps), written as three
CSVs — ground-truth channel.csv (64,000 rows, never seen by any
estimator), noisy pilot observations.csv (112,000 rows, the only
input any estimator receives), and covariance.csv (4,096 rows,
LMMSE's side information). An 80/20 train/test split by realization (seed 0,
800/200) is held fixed across every learned model in this report, so all NMSE
numbers below are on identical held-out data.
LS linearly interpolates the 16 noisy pilots onto all 64 subcarriers, using no statistical knowledge. LMMSE applies one linear filter built from the exact covariance:
Geometrically this projects the 16 noisy measurements onto the rank-8
subspace R defines, discarding anything living outside it as
provably noise. Since H and the pilot observations are jointly
Gaussian here, LMMSE is not merely the best linear estimator — it is
the Bayes-optimal estimator, full stop. No architecture, however flexible,
can beat it while this data-generating process holds.
| SNR (dB) | LS + interp. | LMMSE (true R) | gain |
|---|---|---|---|
| 0 | −1.15 | −5.25 | 4.10 |
| 5 | −5.73 | −9.00 | 3.27 |
| 10 | −9.37 | −13.24 | 3.88 |
| 15 | −11.87 | −17.97 | 6.10 |
| 20 | −12.99 | −22.99 | 10.00 |
| 25 | −13.45 | −27.95 | 14.50 |
| 30 | −13.61 | −32.88 | 19.27 |
LS hits a hard floor near −13.6 dB past 15 dB: past that point the
limiting error is not noise but interpolation — straight-line segments
cannot follow a curved frequency response. LMMSE has no such floor, because
it reconstructs the channel's shape from R rather than
connecting dots. This exact-R LMMSE curve is the ceiling every
learned estimator in this report is measured against.
Three architectures, all trained end-to-end on the identical input/output contract — 33-dim input (16 pilots × re/im + SNR), 128-dim output (64 subcarriers × re/im), 200 epochs, Adam, seed 0:
| Model | Key structure | Params |
|---|---|---|
| MLP | 3× Linear(·,128) + ReLU, fully unconstrained | 37,376 |
| CNN | 2× Conv1d(k=3) over pilot position, then a linear head | 33,920 |
| Transformer | 2-layer self-attention (d_model=16), learned absolute positions | 37,776 |
The CNN's convolution deliberately encodes the Toeplitz property from §2 as weight-sharing: the same small filter is reused at every pilot position, matching the assumption that correlation depends on distance, not absolute position. The Transformer makes no such assumption — every position can attend to every other position, with any positional structure learned from scratch via a plain per-index embedding.
| SNR (dB) | LS | LMMSE | MLP | CNN | Transformer |
|---|---|---|---|---|---|
| 0 | −1.15 | −5.25 | −4.32 | −4.60 | −4.65 |
| 5 | −5.73 | −9.00 | −8.02 | −8.52 | −8.54 |
| 10 | −9.37 | −13.24 | −11.68 | −12.52 | −12.62 |
| 15 | −11.87 | −17.97 | −15.44 | −16.44 | −16.42 |
| 20 | −12.99 | −22.99 | −18.49 | −19.43 | −18.87 |
| 25 | −13.45 | −27.95 | −20.18 | −20.96 | −20.09 |
| 30 | −13.61 | −32.88 | −20.84 | −21.53 | −20.61 |
| mean | −9.74 | −18.47 | −14.14 | −14.86 | −14.54 |
Two findings, both consistent with theory rather than surprising:
The LMMSE ceiling in §5 is an oracle: it is handed the exact
R and exact σ². A real receiver never
knows R exactly — it estimates it from a limited number of past
observations. This is precisely the gap that model-driven deep-learning
channel-estimation papers (ChannelNet, ComNet, and similar) exploit: LMMSE
built on an imperfect statistical model is no longer optimal, so a learned
correction has a real target to hit. On the exact-R data used
above, that gap does not exist, so reproducing those papers' recipe there
would show a foregone null result.
make_dataset_mismatched.py replaces covariance.csv
with the sample covariance estimated from only N_EST extra
channel realizations (drawn after the main 1000, no leakage into the eval
set), leaving channel.csv/observations.csv
untouched. Sweeping N_EST surfaces exactly the threshold §2
predicts: R has only 8 nonzero eigenvalues, so LMMSE barely
degrades once N_EST clears 8 (enough samples to span the true
subspace) and collapses sharply below it.
| NEST | R̂ rel. error | Mean LMMSE(R̂) NMSE |
|---|---|---|
| 3 | −1.57 dB | −2.69 dB |
| 5 | −2.84 dB | −5.47 dB |
| 8 | −2.94 dB | −13.50 dB |
| 15 | −4.88 dB | −17.61 dB |
| 30 | −6.37 dB | −18.34 dB |
| 100 | −14.51 dB | −18.46 dB ≈ oracle |
N_EST=8 was fixed for the rest of this report — the smallest
sample count for which the estimate remains meaningfully usable while still
leaving a real, non-trivial gap to the true-R ceiling (roughly 5 dB
mean, and at 10 dB the mismatched LMMSE actually loses to plain LS).
Each hybrid reuses the raw-pilot architectures from §5 unmodified, just with a different input/output contract and, critically, a different statistical estimator supplying that input:
The model only has to learn the correction, not rebuild the channel from
scratch. Passing n_pilots=N=64 into the existing ChannelMLP
/ ChannelCNN / ChannelTransformer classes was sufficient
to repurpose each unmodified — no new model code, only two small
feature/target builders.
| SNR (dB) | LS | LMMSE(R̂) | LMMSE(true R) | MLP resid. | CNN resid. | Transformer resid. |
|---|---|---|---|---|---|---|
| 0 | −1.15 | −3.69 | −5.25 | −3.60 | −3.69 | −4.04 |
| 5 | −5.73 | −6.45 | −9.00 | −6.46 | −6.44 | −7.05 |
| 10 | −9.37 | −9.16 | −13.24 | −10.06 | −9.16 | −9.96 |
| 15 | −11.87 | −12.01 | −17.97 | −14.15 | −12.00 | −12.76 |
| 20 | −12.99 | −15.24 | −22.99 | −17.86 | −15.21 | −15.16 |
| 25 | −13.45 | −20.30 | −27.95 | −21.80 | −20.16 | −16.93 |
| 30 | −13.61 | −27.33 | −32.88 | −24.93 | −26.52 | −16.62 |
| mean | −9.74 | −13.45 | −18.47 | −14.12 | −13.31 | −11.79 |
Best overall (−14.12 dB mean, 49,664 params), but not a clean win:
it helps substantially at 15–25 dB (e.g. −17.86 vs. −15.24 at
20 dB) while underperforming plain LMMSE(R̂) at the
extremes (0, 5, 10, 30 dB). Likely cause: one architecture pooled across
all 7 SNR levels isn't SNR-conditioned enough to know when to trust its own
correction — at low SNR the residual is mostly noise and should be
suppressed toward zero; at high SNR the correction is small but structured,
and the model appears to add variance rather than remove bias there.
The first attempt (default lr=1e-3, matching the raw-pilot CNN's
recipe) failed outright: train loss stalled at MSE 0.043 and the resulting
curve went flat around −12 dB regardless of SNR — worse than
doing nothing at 20–30 dB. A small hyperparameter sweep found the fix was
counterintuitive: a higher learning rate (1e-2) and more
channels (32) escaped the collapse, even though it left a higher raw train
loss than a lower-lr run that looked better on paper. The lower-loss run
(lr=3e-3, more epochs) had in fact converged to a degenerate,
flat, near-zero-residual solution — minimizing pooled MSE across
SNR levels by giving up on the small, structured high-SNR residual in favor
of not-being-wrong on the large-magnitude low-SNR one. The retuned model
(−13.31 dB mean, 265,728 params) is a real fix but still roughly breaks
even with LMMSE(R̂) alone — the locality bias that helped so much
in §5 does not carry over to a residual-correction target the same way.
Trained at the same default configuration as the raw-pilot Transformer
(§5), this hybrid did not converge to a useful solution: mean NMSE
−11.79 dB, worse than LMMSE(R̂) alone
(−13.45 dB), and the curve degrades rather than improves between 25 and
30 dB — a clear sign of the same collapse pattern documented in §7.2,
uncorrected. This result is reported as-is rather than silently retrained to
look better: the CNN residual case shows the fix (a higher learning rate)
plausibly transfers, but that has not been verified for the Transformer at
the time of writing.
Three results together tell a single, coherent story:
R
LMMSE, and why the covariance mismatch of §6 was necessary before any
hybrid experiment in §7 could show a non-trivial result at all.Across eight estimators evaluated on identical held-out data, the ranking observed here is: LMMSE(true R) > MLP residual > CNN(raw) > Transformer(raw) > MLP(raw) > CNN residual ≈ LMMSE(R̂) > LS > Transformer residual by mean NMSE. The headline findings:
Concrete next steps, in rough priority order: (1) fix the Transformer residual's convergence, mirroring the CNN's lr fix, before drawing any architecture-level conclusion about attention on this task; (2) replace the Transformer's learned absolute positional embedding with a relative, distance-based scheme (relative position bias / ALiBi-style), which would give it the same kind of structural prior the CNN already has for both the raw-pilot and residual tasks; (3) move beyond the single-realization, single-symbol, purely-Gaussian data-generating process — off-grid delays, per-realization-varying delay spread, or a nonlinear front-end (clipping, PA distortion, quantization) would create a genuine nonlinear advantage for learned estimators that this dataset, by construction, does not have; (4) validate any of the above against 3GPP TDL channel profiles before treating any result here as more than a controlled, synthetic demonstration.
| File | Purpose |
|---|---|
make_dataset.py | Exact-R dataset generator |
make_dataset_mismatched.py | Overwrites covariance.csv with an 8-sample estimate |
estimate.py | LS / LMMSE baseline, Fig. 1 |
nn_model.py | All model classes + shared train/eval utilities |
channel_nn.ipynb | MLP, raw pilots (§5) |
channel_cnn.ipynb | CNN, raw pilots (§5) |
channel_transformer.ipynb | Transformer, raw pilots (§5) |
channel_residual.ipynb | MLP residual hybrid (§7.1) |
channel_residual_cnn.ipynb | CNN residual hybrid, tuned (§7.2) |
channel_residual_transformer.ipynb | Transformer residual hybrid (§7.3) |
python3 -m venv .venv
.venv/bin/pip install numpy matplotlib torch torchinfo jupyter
.venv/bin/python make_dataset.py # exact-R dataset
.venv/bin/python estimate.py # LS/LMMSE baseline, Fig. 1
.venv/bin/python make_dataset_mismatched.py # overwrite covariance.csv with R̂
# then run any notebook: jupyter nbconvert --to notebook --execute --inplace <name>.ipynb