TL;DR
Right now, the WiFi waves bouncing around your room are subtly warping every time you move or breathe. Historically, turning these invisible ripples into useful sensors required training brittle, bespoke models from scratch for every single task and room. AmbientFM changes the game by introducing the first large-scale foundation model for WiFi sensing—pre-trained on over a year of real-world, unlabeled home WiFi data—that effortlessly adapts to everything from fall detection to 276-class gesture recognition with minimal labeled examples.
What Problem Does This Paper Address?
Every modern room is bathed in radio waves from routers, smart speakers, and IoT gadgets. As these signals travel from transmitter to receiver, they capture Channel State Information (CSI)—essentially a fine-grained, multi-frequency snapshot of how the room reflects and absorbs radio energy. Because human bodies are mostly water, moving (or even breathing) perturbs this field, offering an always-on, through-the-wall, privacy-preserving alternative to cameras.
So why isn't WiFi sensing everywhere? Because WiFi was engineered to move data packets, not to act as radar. Commodity routers constantly shift bandwidths, drop packets, and abruptly adjust transmission power on the fly. Worse, static reflections off walls and furniture (multipath) can be 10 to 100 times stronger than the tiny perturbations caused by a person moving. Consequently, researchers have been stuck building fragmented, task-specific pipelines that require massive amounts of labeled data and break the moment you move to a new room or swap routers. Standard vision or audio foundation model recipes fail on such chaotic signals.
Methods
To tame wild WiFi signals, the authors pair a custom 5M-parameter Transformer architecture with physics-tailored self-supervised learning. First, they preprocess raw CSI into 5-second amplitude windows (discarding noisy phase data) and zero-pad across varying device bandwidths.
The encoder introduces adaptive frequency aggregation, using cross-attention with 10 learnable queries to compress heterogeneous frequency subcarriers (up to 112) into a clean, unified representation that filters out bad channels. A 6-layer Transformer with relative temporal position bias then extracts motion patterns regardless of where they fall in the 5-second window.
During pre-training, the model optimizes three complementary objectives simultaneously:
- Contrastive Learning (NT-Xent): Uses nine wireless-specific augmentations (e.g., frequency masking, amplitude modulation) rather than image-style crops.
- Full Masked Reconstruction: Masks 10% of time blocks and 10% of frequency bands (simulating packet loss and fading), forcing a decoder to reconstruct the entire signal to capture cross-frequency multipath physics.
- Physics-Informed Autocorrelation (ACF) Prediction: Predicts the first 50 time lags of the signal's energy autocorrelation, explicitly nudging the encoder to isolate rhythmic human motion from overwhelming static wall reflections.
For downstream tasks, the frozen backbone is paired with a lightweight 1-layer LSTM head (Temporal Probing), optionally adding parallel residual Bottleneck Adapters inside the Transformer blocks for trickier tasks.
Datasets
- Pre-training Corpus (New): The largest real-world WiFi CSI dataset to date—9.2 million unlabeled samples (~20 TB) recorded over 439+ days across 11 real residences, 26 participants, and 20 commercial IoT device types (spanning 8 chipset families, 2.4/5 GHz bands, and 20/40/80 MHz bandwidths). Due to privacy consent terms, this corpus is not publicly released.
- Downstream Evaluation (Public, strictly disjoint from pre-training):
- CSI-Bench: 461 hours of in-the-wild data across 26 environments for fall detection, human activity recognition (HAR), motion source recognition, occupancy, localization, proximity, and user ID.
- SignFi: 276-class fine-grained sign language gesture recognition.
- WiFiCam: Spatial WiFi imaging/reconstruction.
Key Insights and Ideas
- Vision augmentations actively ruin WiFi representations: Swapping the authors' wireless-tailored augmentations for standard SimCLR image augmentations caused HAR performance to plummet from 0.923 to 0.561 AUROC. Naive cropping slices right through critical temporal periodicity and frequency correlations.
- Bigger isn't automatically better (yet): Scaling from Small (2M) to Base (5M) boosted performance across the board, but scaling to Large (12M) actually hurt both pre-training convergence and fine-grained motion tasks—a classic capacity-data mismatch showing even 9.2M samples has scaling limits.
- Massive natural class separation: Without seeing a single label, pre-training expands the Euclidean distance between downstream task class centroids by 25.9× on average compared to random initialization.
Key Results
Using a single pre-trained Base backbone with bottleneck adapters, AmbientFM achieves >0.90 AUROC across all 8 classification tasks (including 0.999 on 276-class gesture recognition, 0.995 on localization, and 0.919 on fall detection) and 0.726 SSIM / 18.87 dB PSNR on spatial imaging. Even freezing the backbone completely (Temporal Probing) yields >0.91 AUROC on six of the eight classification tasks.
Where AmbientFM truly shines is label efficiency: with 500 shots per class, a supervised baseline trained from scratch stalls at 0.592 AUROC on Localization and 0.530 on Proximity, while AmbientFM hits 0.989 and 0.870. Better yet, the 5.57M Base encoder runs in 26.3–29.0 ms per 5-second window on a standard laptop CPU—no GPU required.
Limitations and Future Work
- Adaptation required & fixed context: AmbientFM is not a zero-shot, promptable model; every new task requires training a lightweight head/adapter, and it only sees 5-second windows at a time.
- Reproducibility & physical limits: The private pre-training corpus prevents end-to-end reproduction of pre-training, and zero-padding may leak subtle device bandwidth cues. Moreover, discarding phase information leaves fine spatial precision on the table, and WiFi physics inherently cannot resolve fine visual appearance.
- Future directions: Exploring prompt-based/zero-shot task interfaces, incorporating calibrated phase modeling, and scaling to larger datasets to unlock higher-capacity models.
Summary updated