Fine-Tuning Gemma 4 Edge Models for MATLAB Signal-Processing Code with SFT and QLoRA on a Laptop iGPU
Mehmet Altan Toks\"oz
Key points
From the paper's conclusion- We apply supervised fine-tuning (SFT) to the Gemma 4 edge models E2B and E4B with 66 checked examples covering 11 signal-processing MATLAB subtasks, using low-rank adaptation (LoRA) and quantized LoRA (QLoRA) on the integrated GPU (iGPU) of a laptop, and deploy the 8-bit integer (int8) models with the adapters through OpenVINO.
Abstract
Small language models that run on a laptop are attractive for writing signal-processing code offline, but they make systematic errors on digital signal processing (DSP) conventions. We apply supervised fine-tuning (SFT) to the Gemma 4 edge models E2B and E4B with 66 checked examples covering 11 signal-processing MATLAB subtasks, using low-rank adaptation (LoRA) and quantized LoRA (QLoRA) on the integrated GPU (iGPU) of a laptop, and deploy the 8-bit integer (int8) models with the adapters through OpenVINO. On held-out variants scored by deterministic checkers, the pass rate rises from 18/66 to 37/66 (LoRA) and 37/66 (QLoRA) for E2B and from 32/66 to 47/66 for E4B (QLoRA). Reading all 159 failing programs shows that the adapters remove most errors of convention, such as the sign of a lag, units and array shapes, but few errors in building signals and noise. Applied at run time, the adapter costs 17-19% of the generation speed.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- μNet: Ultra-Low-Memory and Low-Complexity Speech Enhancement for Embedded Digital Signal ProcessorsarXiv · 2026
- Compressing Onboard Language Models for Space Robots under a Behavioral-Fidelity RequirementarXiv · 2026
- AgentDP: Towards Automated Model Deployment for Heterogeneous Embedded AI ApplicationsarXiv · 2026
- AnalogCoder-Pro: Unifying Analog Circuit Generation and Optimization via Multi-modal LLMsIEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems · 2026
- PACT: NVFP4 Data-Flow LoRA Fine-Tuning on Consumer GPUsarXiv · 2026
- Parameter-Efficient Fine-Tuning of LLMs for Low-Power Sentiment Analysis ApplicationsJOIV International Journal on Informatics Visualization · 2026