VISCORE
← All works

Modelling & ResearchNov 2026Exploration

Spectrum Interference Recognition with GRPO and Quantisation

A self-written OFDM spectrum simulator generates the data; a vision-language model is fine-tuned to name the interference type, time span and band, then GRPO fine-tuning and FP8 / 4-bit quantisation are tried.

Sole designer and experimenter, coded with AI assistance

  • NumPy
  • Qwen2.5-VL-3B
  • LLaMA-Factory
  • TRL GRPO
  • PEFT
  • vLLM
  • llmcompressor FP8
  • FastAPI
  • Colab T4 / L4
1.87 → 1.27 sP50 latency after FP8vLLM 0.19, NVIDIA L4, 576 evaluation samples, greedy decoding; BF16 versus FP8
1.0 / 0.306Reward auditScore of the correct answer / best score of a gaming strategy, interference samples only
1,152Simulated waterfalls4 balanced classes, SNR −5 to 20 dB in 6 levels, with time-frequency ground truth

Background

Troubleshooting interference in a wireless network comes down to three questions: what the interference is, when it appears and which band it occupies. Accurate ground truth for real spectrum data is hard to get, so a simulator comes first. The question is whether a 3B vision-language model can read those three answers from a waterfall plot, and whether it still holds up when SNR, channel, bandwidth and plot style change.

What the system does

  • The simulator generates an OFDM signal, channel and interference from parameters and outputs waterfall plots, IQ features and ground truth
  • The model returns structured JSON: interference type, time span and band
  • A demo page shows four panels side by side (waterfall, rule box, model box, ground truth) with an SNR slider

My work

  • Simulator: an OFDM signal with 15 kHz subcarriers and 600 active subcarriers over AWGN / EPA / EVA channels; narrowband, adjacent-channel leakage and burst interference with power set by SIR, SNR scaling only the noise, and ground truth taken from the clean components.
  • Dataset: 1,152 samples, 4 balanced classes, SNR from −5 to 20 dB in 6 levels; the EVA channel, bandwidth and a fourth plot style are held out for out-of-distribution tests.
  • Training: SFT with LLaMA-Factory QLoRA, then GRPO with TRL (LoRA r16) and verifiable rewards, on Colab T4 and L4.
  • Reward audit: before training, several gaming strategies were run against the reward. The correct answer scores 1.0 and the best gaming strategy 0.306; the first reward version failed the audit and was rewritten.
  • Quantisation: offline FP8 with llmcompressor (vision tower and lm_head kept in BF16) and uncalibrated RTN W4A16, measured on the same 576 samples with vLLM 0.19 on an L4.
  • 27 pytest tests cover the simulator and the reward function.

Problems and fixes

Rewards can be gamed. Under the first reward, “right class, box covering the whole band” scored 0.544, level with the rule baseline that actually localises (0.542). After classification was cut to 0.1 and most of the score moved to localisation, gaming strategies such as always reporting one interference type, covering the whole band or emitting only the format all stayed at or below 0.306, and only then did training start.

4-bit output broke outright. Under W4A16 none of the 576 outputs could be parsed; the cause was RTN quantisation corrupting the JSON key names. Calibrated methods such as GPTQ or AWQ have not been tried yet.

Results

  • FP8 against BF16: P50 latency 1865 → 1266 ms, weights 7.16 → 4.59 GiB, overall macro-F1 0.6549 → 0.6428, low-SNR 0.5632 → 0.5476.
  • GRPO gave no visible gain: 49 steps on a T4 came out 0.008 above SFT and 120 steps on an L4 0.002 below, both within a few samples.
  • The model’s overall macro-F1 is about 0.65. The power-spectrum rule baseline scores higher on its own splits (0.759 on test), but the two have not been compared on the same samples, so the model cannot be said to beat the rules.

Retrospective

  • All data is simulated; no measured wireless data is used.
  • Everything was measured on a cloud L4, not on an edge device.
  • Next: calibrated 4-bit quantisation, and comparing rules and model on the same samples.