Abstract
As the Internet of Things (IoT) expands, gateways must support an increasingly diverse array of wireless protocols. Traditional hardware-based modulators offer high efficiency but lack the flexibility to adapt to new standards, while Software-Defined Radio (SDR) solutions provide flexibility at the cost of significant manual optimization and poor cross-platform portability. This paper presents the NN-defined modulator, a novel paradigm that utilizes neural networks as an abstraction layer for the physical layer. By mapping traditional digital modulation mathematics onto standard AI layers—specifically 1D transposed convolutions—this approach achieves high portability via the ONNX runtime and superior performance on modern AI-accelerated IoT hardware.
Introduction
IoT gateways serve as the critical bridge between heterogeneous edge devices (using protocols like ZigBee, WiFi, and Bluetooth) and the broader internet. Currently, developers face a stark trade-off between hardware-based and software-based modulation. Hardware modulators are efficient but fixed; SDR toolkits like GNURadio are flexible but often require platform-specific tuning to run efficiently on different architectures (e.g., x86 vs. ARM).
The NN-defined modulator addresses this "portability vs. efficiency" dilemma. By redefining the modulation process as a neural network inference task, wireless signals can be generated using standard AI accelerators found in modern IoT gateways, ensuring both high throughput and ease of deployment across diverse hardware environments.
Methods: The Model-Driven NN Template
The core innovation of this work is the realization that digital modulation math is functionally equivalent to specific neural network operations. Rather than treating the neural network as a "black box," the authors propose a model-driven template.
Mathematical Equivalence
The process of upsampling and pulse-shaping—fundamental to converting digital symbols into analog-like waveforms—is mathematically identical to a 1D transposed convolutional layer. By leveraging this equivalence, the authors designed a universal template consisting of a transposed convolutional layer followed by a fully-connected (linear) layer.
Configuration and Portability
The template can be configured in three distinct modes:
- Manual Configuration: Experts input known mathematical coefficients directly into the layers.
- Learning-based: The network is trained to mimic the output of an existing SDR modulator.
- Fine-tuning (NN-PD): The network is trained to compensate for real-world hardware imperfections, such as power amplifier distortion, through Neural Network Predistortion.
To ensure portability, the modulator is exported to the Open Neural Network Exchange (ONNX) format. This allows the same modulator file to execute on Nvidia GPUs, ARM CPUs, or specialized AI chips using standard, optimized runtimes without manual code rewrites.
Experimental Evaluation
Datasets and Setup
The system was evaluated using synthetic datasets generated via the MATLAB Signal Processing Toolbox for standard schemes (PAM-2, QPSK, 16-QAM, and 64-S.C. OFDM). For real-world validation, the authors generated protocol-compliant packets for ZigBee (IEEE 802.15.4) and WiFi (IEEE 802.11a/g) to test interoperability with commercial hardware like the TI CC2650 and Intel AX201 NIC.
Key Results
- Performance Gains: On an Nvidia Jetson Nano, the NN-defined modulator achieved a 4.7x speedup over conventional software modulators. On a Raspberry Pi (CPU only), it still provided a 1.1x performance gain.
- Signal Fidelity: The Bit Error Rate (BER) of the NN-defined modulator matched theoretical mathematical models perfectly, ensuring no loss in signal quality.
- Hardware Compensation: Using the fine-tuning (NN-PD) mode, the system significantly reduced Error Vector Magnitude (EVM) caused by hardware non-linearity, outperforming "ideal" mathematical modulators that do not account for physical hardware quirks.
- Protocol Compliance: The system successfully transmitted WiFi beacons and ZigBee packets, achieving a 96% Packet Reception Ratio (PRR) on off-the-shelf commercial receivers.
Discussion and Future Work
The NN-defined modulator effectively repurposes idle AI accelerators in IoT gateways for physical layer tasks. Through "protocol inheritance," developers can build upon base templates to quickly deploy new standards.
However, limitations remain. The current implementation focuses on linear amplitude and phase modulation (QAM, PSK, OFDM) and does not yet support non-linear schemes like GFSK (used in Bluetooth). Additionally, this work focuses exclusively on the transmitter side; extending this model-driven approach to the receiver (demodulation and decoding) represents a more complex but promising future research direction. Further study is also required to quantify the energy consumption trade-offs between AI accelerators and dedicated radio hardware.
Summary updated