BrainDistill: Implantable Motor Decoding with Task-Specific Knowledge Distillation
Yuhan Xie, Jinhan Liu, Xiaoyong Ni, Fei Tan, Icare Sakr, Thibault Collin, Shiqi Sun, Alejandro Rodriguez Guajardo, Demon Fanny, Charles-francois Vincent Latchoumane, Henri Lorach, Jocelyne Bloch, Gregoire Courtine, Mahsa Shoaran
TL;DR
BrainDistill tackles implantable BCI constraints by combining a lightweight neural decoder (IND) with a task-specific knowledge distillation (TSKD) framework that compresses a large teacher’s embeddings into a task-relevant subspace. A novel Task-Specific Ratio (TSR) metric guides projection quality, enabling effective distillation even with limited recalibration data, and a quantization-aware training (QAT) regime supports integer-only inference for energy-efficient, chip-ready deployment. Across diverse ECoG datasets and recording modalities, BrainDistill outperforms traditional decoders and other distillation methods, with particular strength in few-shot calibration and cross-session/generalization. The approach demonstrates on-chip feasibility through 8-bit quantization, modest power costs, and applicability to EEG and spike-based data, signaling a practical path toward clinical, implantable neural decoding systems.
Abstract
Transformer-based neural decoders with large parameter counts, pre-trained on large-scale datasets, have recently outperformed classical machine learning models and small neural networks on brain-computer interface (BCI) tasks. However, their large parameter counts and high computational demands hinder deployment in power-constrained implantable systems. To address this challenge, we introduce BrainDistill, a novel implantable motor decoding pipeline that integrates an implantable neural decoder (IND) with a task-specific knowledge distillation (TSKD) framework. Unlike standard feature distillation methods that attempt to preserve teacher representations in full, TSKD explicitly prioritizes features critical for decoding through supervised projection. Across multiple neural datasets, IND consistently outperforms prior neural decoders on motor decoding tasks, while its TSKD-distilled variant further surpasses alternative distillation methods in few-shot calibration settings. Finally, we present a quantization-aware training scheme that enables integer-only inference with activation clipping ranges learned during training. The quantized IND enables deployment under the strict power constraints of implantable BCIs with minimal performance loss.
