Paper: 2607.14086 Authors: Ximeng Mao, Nanda H. Krishna, Avery Hee-Woon Ryoo, Matthew G. Perich, Guillaume Lajoie Categories: cs.LG, q-bio.NC
The Gap
Recent work introduced a powerful idea: tokenize neural spike trains the way NLP tokenizes words, then train transformer-style models to decode behavior. This “spike tokenization” approach enables multi-session pretraining and achieves state-of-the-art decoding accuracy. But there’s a catch — every one of these models is trained purely with supervised learning (SL). That means you need behavioral labels (what was the animal doing at each moment?) paired with every snippet of neural data you train on. Labels are expensive: they require carefully designed experimental paradigms, human annotation, or synchronized behavioral recordings. Enormous datasets of neural recordings exist without such labels, and they sit unused.
The logical path from this limitation to MOJO’s contribution:
Spike-tokenizing models exist
|
v
But they only use supervised learning (SL)
|
v
SL requires paired behavioral labels for every training sample
|
v
Massive unlabelled neural datasets are wasted
|
v
MOJO: add masked autoencoder (SSL) alongside SL
|
v
Joint training uses both labelled AND unlabelled data
|
v
Better performance, especially when labels are scarce
|
v
+ interpretable representations, + cross-modal generalization
The Increment
One sentence: Before this paper, spike-tokenizing neural decoders could only learn from labelled data; after this paper, they can also learn from unlabelled data via masked autoencoding, dramatically improving performance when labels are scarce.
Core Mechanism
MOJO’s architecture has two training objectives applied jointly to the same spike-tokenizing backbone. The backbone — a transformer that ingests tokenized spike events from multi-electrode recordings — is shared between both objectives. During training, each batch of neural data flows through two parallel paths:
Path 1 — Supervised Learning (SL): Spike tokens from a labelled session are fed through the transformer to produce a hidden representation, which is projected onto a behavioral output (e.g., hand velocity during reaching). Standard regression loss is computed.
Path 2 — Self-Supervised Learning (SSL): A portion of spike tokens are randomly masked (analogous to BERT’s masked language modeling or MAE in vision). The same transformer receives the corrupted sequence and must reconstruct the masked tokens from context. No labels are needed — the “answer” is the original spike data itself.
The total loss is a weighted combination of the SL and SSL objectives. During pretraining, you can throw in large amounts of unlabelled data (only SSL loss applies to those samples) alongside smaller labelled datasets (both losses apply). During fine-tuning on a new session with limited labels, the pretrained model transfers better because it has already learned meaningful neural representations through SSL.
+------------------+
| Neural Spikes |
| (tokenized) |
+--------+---------+
|
+--------v---------+
| Random Mask |
| a portion of |
| spike tokens |
+--------+---------+
|
+------------+------------+
| |
+--------v--------+ +---------v---------+
| Masked Tokens | | Unmasked Tokens |
| (corrupted seq) | | (full seq) |
+--------+---------+ +---------+----------+
| |
+--------v--------+ +---------v----------+
| | | |
| Backbone | | Backbone |
| Transformer | | Transformer |
| (shared) | | (shared) |
+--------+--------+ +---------+----------+
| |
+--------v--------+ +---------v----------+
| Reconstruct | | Decode behavior |
| masked tokens | | (e.g. velocity) |
+--------+--------+ +---------+----------+
| |
+--------v--------+ +---------v----------+
| SSL Loss | | SL Loss |
| (no labels | | (needs labels) |
| needed!) | | |
+--------+--------+ +---------+----------+
| |
+------------+------------+
|
+--------v---------+
| Combined Loss |
| = w1*SSL + w2*SL|
+------------------+
Structural metaphor: Think of a medical residency. A young doctor (the transformer) can learn medicine in two ways. The supervised path is like sitting the board exam: you’re given a patient case and must produce the correct diagnosis — you learn, but only from cases your attending physician has graded. The self-supervised path is like clinical rotations where you see hundreds of patients daily, take histories, observe symptoms, and try to predict what’s wrong before the lab results come back. Nobody gives you the answer immediately, but the act of prediction from context teaches you deep patterns of disease. MOJO does both simultaneously: the model studies for exams (SL on labelled data) while also doing clinical rounds (SSL on unlabelled data). The result is a doctor who performs better on exams — especially when there are few practice cases available — and who develops an intuitive understanding of the underlying biology that shows up in unexpected ways (like better organ-system classification without ever being taught it explicitly).
Key Concepts
-
Spike Tokenization: Traditional neural decoding treats each time bin as a vector of firing rates across electrodes. Spike tokenization instead converts each individual spike event into a discrete token — like converting a speech waveform into a sequence of phonemes. This is powerful because it preserves temporal precision and allows transformer architectures (designed for sequences) to be applied directly. Imagine recording from 64 electrodes over 2 seconds: instead of getting a 64×100 rate matrix (100 time bins), you get a variable-length sequence of “who spiked when” tokens that the transformer can attend over.
-
Masked Autoencoder (MAE) for Neural Data: The core SSL trick. You take a complete spike sequence, randomly hide ~40-80% of the tokens, and train the model to fill in the blanks. The model must learn the statistical structure of neural population activity — which neurons tend to co-fire, what temporal patterns precede specific behaviors, how activity relates to brain region — just from the unmasked context. It’s like solving a crossword puzzle: the constraints of the surrounding words force you to learn deep patterns of language, even though nobody explicitly taught you grammar rules.
-
Few-Shot Fine-Tuning: After pretraining MOJO on a large dataset, you encounter a new experimental session with a different animal, different electrode placement, or different task — and you only have 5 minutes of labelled data. You fine-tune the pretrained model on this tiny labelled set. The SSL pretraining pays off enormously here because the model has already learned general features of neural activity; it just needs a small nudge to adapt to the specifics of the new session. Without SSL, the model must learn neural representations and behavioral mapping simultaneously from scratch with very few examples — a much harder problem.
Framework Shift
Before (mainstream approach): After (MOJO):
Labelled neural data only Labelled + Unlabelled data
| |
v v
+----------------+ +----------------+
| SL objective | | SL + SSL |
| (regression | | objectives |
| to behavior) | | (joint train) |
+----------------+ +----------------+
| |
v v
Decoder trained Decoder trained
on labelled data on ALL data
only (labelled + not)
| |
v v
Limited to datasets Leverages unlabelled
with behavioural neural recordings
labels for richer features
From “label-gated training” to “open-data training,” the core shift is that self-supervised pretraining on spike sequences lets the model extract useful neural features without any labels, and joint optimization with SL means labelled data still guides task-relevant learning — you get the best of both worlds in a single framework.
Expert Assessment
Problem choice: This is a real and well-motivated gap. The spike tokenization literature (including the authors’ own prior work) has been explicitly SL-only, and the NLP/vision communities demonstrated years ago that SSL dramatically improves data efficiency. Applying this to neural decoding is a natural and overdue step. The gap sits squarely in the mainstream trajectory of neural foundation models — this is the obvious next move, and someone had to make it rigorously.
Method maturity: The approach is conceptually straightforward — it’s a masked autoencoder added to an existing supervised pipeline. This is a “clever incremental” rather than a “radical new paradigm.” The insight is less about architectural novelty and more about recognizing that the existing MAE framework transfers cleanly to spike tokens. There’s a risk that simpler alternatives (e.g., contrastive learning, or even just pretraining with next-spike prediction) might work comparably well, but the authors don’t explore these. Still, masked autoencoding is well-understood and reliable, so the choice is defensible.
Experimental integrity: The experiments are solid in breadth — three datasets across species (monkey, mouse, human) and modalities (spikes, ECoG). The few-shot fine-tuning evaluation is the most compelling result and directly addresses the claimed benefit. The comparisons against purely SL-trained baselines are fair (same architecture, same data, minus SSL). The inclusion of ECoG generalization is a nice touch that demonstrates the method isn’t spike-specific. One concern: the paper claims performance “comparable to neuro-foundation models designed specifically for continuous signals” for ECoG, but this comparison deserves more scrutiny — are those NFMs using comparable amounts of training data? The paper could be more transparent about this.
Writing quality: The paper reads clearly and follows a logical structure. The weakest section is the related work, which could better position MOJO against the broader self-supervised learning literature in neuroscience (e.g., contrastive methods on calcium imaging). The ablations on SSL weight and masking ratio are present but could be more thorough — how sensitive is MOJO to these hyperparameters across different datasets?
Verdict: weak accept — The contribution is solid incremental work that answers an obvious question with clean experiments across multiple datasets, but lacks the architectural innovation or surprising insight that would make it a standout. It’s the kind of paper the field needed to have written.
Takeaways
For neural engineers building BCIs: The most concrete takeaway is the few-shot fine-tuning recipe. If you’re deploying a BCI decoder that needs to adapt to a new user or a new day’s recording, pretrain with MOJO’s joint objective on your existing large dataset, then fine-tune with just a few minutes of calibration data. The SSL component meaningfully reduces the labelled data requirement.
For ML practitioners in other domains: The principle — “add a masked reconstruction objective to any supervised sequence model to exploit unlabelled data” — is domain-agnostic. If you’re working with any sequential data where labels are expensive but raw data is plentiful (e.g., sensor streams, financial time series, seismology), this joint-training recipe transfers directly.
For computational neuroscientists: The finding that SSL-trained representations improve brain region classification and spike-statistics prediction without explicit supervision suggests these models are learning genuine neurobiological structure, not just task-relevant shortcuts. This has implications for using trained models as scientific tools, not just engineering artifacts.
论文: 2607.14086 作者: Ximeng Mao, Nanda H. Krishna, Avery Hee-Woon Ryoo, Matthew G. Perich, Guillaume Lajoie 分类: cs.LG, q-bio.NC
缺口
近期的研究提出了一个很有威力的想法:像自然语言处理对文字做分词一样,对神经脉冲序列进行分词(spike tokenization),然后用 Transformer 风格的模型来解码行为。 这类方法实现了多会话预训练,达到了当前最优的解码精度。 但问题在于——所有这些模型都只用监督学习(SL)训练,意味着每一段训练数据都必须配有行为标签(动物在做什么)。 标签很贵:需要精心设计的实验范式、人工标注或同步的行为记录。 大量已有的无标签神经数据就这样白白闲置。
从这个局限到 MOJO 的逻辑路径:
脉冲分词模型已经存在
|
v
但只能用监督学习(SL)
|
v
SL 要求每条训练样本都有配对的行为标签
|
v
大量无标签神经数据被浪费
|
v
MOJO:在 SL 之外加入掩码自编码器(SSL)
|
v
联合训练同时利用有标签和无标签数据
|
v
标签稀缺时性能显著提升
|
v
+ 可解释性更强的表征,+ 跨模态泛化能力
增量
一句话: 这篇论文之前,脉冲分词的神经解码器只能从有标签数据学习;之后,它们还能通过掩码自编码从无标签数据学习,在标签稀缺场景下大幅提升性能。
核心机制
MOJO 的架构在同一个脉冲分词骨干网络上施加两个训练目标。 骨干是一个 Transformer,接收多电极记录中分词后的脉冲事件。 训练时,每批神经数据走两条并行路径:
路径一——监督学习(SL): 来自有标签会话的脉冲序列送入 Transformer,产生隐层表征,再投影到行为输出(如运动时的手部速度),计算标准回归损失。
路径二——自监督学习(SSL): 随机遮蔽一部分脉冲 token(类似 BERT 的掩码语言建模或视觉领域的 MAE)。 同一个 Transformer 接收被破坏的序列,必须从上下文中重建被遮蔽的 token。 不需要标签——“答案”就是原始脉冲数据本身。
总损失是 SL 和 SSL 目标的加权组合。 预训练阶段,可以混入大量无标签数据(仅计算 SSL 损失)和少量有标签数据(两个损失都算)。 在新会话上做少量标签微调时,预训练模型迁移效果更好,因为 SSL 已经让它学会了有意义的神经表征。
+------------------+
| 神经脉冲数据 |
| (已分词) |
+--------+---------+
|
+--------v---------+
| 随机遮蔽部分 |
| 脉冲 token |
+--------+---------+
|
+------------+------------+
| |
+--------v--------+ +---------v---------+
| 被遮蔽的 token | | 未遮蔽的完整序列 |
| (破坏序列) | | |
+--------+--------+ +---------+----------+
| |
+--------v--------+ +---------v----------+
| | | |
| 骨干网络 | | 骨干网络 |
| Transformer | | Transformer |
| (共享参数) | | (共享参数) |
+--------+--------+ +---------+----------+
| |
+--------v--------+ +---------v----------+
| 重建被遮蔽的 | | 解码行为 |
| 脉冲 token | | (如运动速度) |
+--------+--------+ +---------+----------+
| |
+--------v--------+ +---------v----------+
| SSL 损失 | | SL 损失 |
| (不需要标签!) | | (需要标签) |
+--------+--------+ +---------+----------+
| |
+------------+------------+
|
+--------v---------+
| 总损失 |
| = w1*SSL |
| + w2*SL |
+------------------+
结构性比喻:把它想成医学院的培养模式。 一个年轻医生(Transformer)可以通过两种方式学医。 监督学习路径像考执业资格考试:给你一个病例,要求写出正确诊断——你确实能学到东西,但只能从带教老师批改过的病例中学。 自监督学习路径像临床轮转:每天看几十上百个病人,问病史、观察症状,在化验结果出来之前先试着判断病情。 没人立刻给你答案,但”从上下文做预测”这个动作本身就在教你疾病的深层规律。 MOJO 同时做两件事:模型一边备考(在有标签数据上做 SL),一边做临床轮转(在无标签数据上做 SSL)。 结果是一个考试成绩更好的医生——尤其在练习病例很少的时候——而且他对底层生物学产生了直觉性的理解, 这种理解会在意想不到的地方冒出来(比如从未被明确教过的器官系统分类也能做得更好)。
关键概念
-
脉冲分词(Spike Tokenization): 传统神经解码把每个时间窗口看成一个各电极放电率组成的向量。 脉冲分词则把每一次放电事件转换成一个离散 token——就像把语音波形转换成音素序列。 这样做的好处是保留了时间精度,可以直接用为序列设计的 Transformer 架构。 想象一下从 64 根电极记录 2 秒数据:传统方法得到一个 64×100 的放电率矩阵,而分词方法得到一条变长的”谁在什么时候放了电”序列,Transformer 可以直接对其做注意力运算。
-
脉冲数据的掩码自编码器(Masked Autoencoder): 核心的 SSL 技巧。 取一条完整的脉冲序列,随机隐藏约 40%-80% 的 token,训练模型把空缺填上。 模型必须仅从未遮蔽的上下文中学会神经群体活动的统计结构——哪些神经元倾向于同时放电、什么时间模式先于特定行为出现、活动与脑区有什么关系。 就像做填字游戏:周围格子的约束迫使你学会语言的深层模式,即使没人明确教过你语法规则。
-
少样本微调(Few-Shot Fine-Tuning): 在大数据集上用 MOJO 预训练之后,遇到一个新的实验记录——可能是不同的动物、不同的电极位置或不同的任务——而且只拿到了 5 分钟的有标签数据。 你用这极少的标签对预训练模型做微调。 SSL 预训练在这里回报巨大,因为模型已经学会了神经活动的通用特征;它只需要少量数据来适配新会话的具体情况。 没有 SSL 的话,模型必须从头同时学习神经表征和行为映射——一个困难得多的问题。
框架转变
之前(主流方法): 之后(MOJO):
仅有有标签神经数据 有标签 + 无标签数据
| |
v v
+----------------+ +----------------+
| SL 单一目标 | | SL + SSL |
| (回归到行为) | | 联合目标 |
+----------------+ +----------------+
| |
v v
解码器只在有标签 解码器在所有数据
数据上训练 (有标签 + 无标签)上训练
| |
v v
受限于带行为标签 利用无标签神经记录
的数据集 提取更丰富的特征
从”标签把关的训练”到”开放数据训练”,核心转变是:自监督预训练让模型无需标签就能从脉冲序列中提取有用特征,而与 SL 的联合优化保证有标签数据仍能引导任务相关学习——一次训练,两全其美。
专家评审
选题眼光: 这是一个真实且动机充分的缺口。 脉冲分词文献(包括作者此前的工作)此前一直是纯 SL 的,而 NLP 和视觉领域几年前就已证明 SSL 能大幅提升数据效率。 将这一思路应用到神经解码是自然且迟来的一步。 这个缺口位于神经基础模型发展轨迹的主流路径上——这是最显而易见的下一步,总得有人严谨地做出来。
方法成熟度: 概念上直截了当——在已有的监督流水线上加一个掩码自编码器。 这属于”巧妙的增量贡献”而非”激进的新范式”。 洞见不在于架构创新,而在于认识到现有 MAE 框架可以干净地迁移到脉冲 token 上。 存在一种风险:更简单的替代方案(如对比学习、甚至仅用下一个脉冲预测做预训练)效果可能差不多,但作者没有探索。 不过,掩码自编码已经被充分理解且可靠,所以这个选择是有道理的。
实验诚意: 实验在广度上做得扎实——三个数据集跨物种(猴、鼠、人)和跨模态(脉冲、皮层电图 ECoG)。 少样本微调评估是最有说服力的结果,直接回应了论文的核心主张。 与纯 SL 基线的对比是公平的(相同架构、相同数据,减去 SSL)。 ECoG 泛化的展示是一个亮点,表明方法不限于脉冲数据。 一个疑虑:论文声称在 ECoG 上性能”与专门为连续信号设计的神经基础模型相当”,但这个对比值得更多审视——那些基础模型用了相当的训练数据量吗?论文在这方面可以更透明。
写作功力: 文章行文清晰,逻辑顺畅。 最薄弱的部分是相关工作,本可以更好地将 MOJO 定位在神经科学领域更广泛的自监督学习文献中(如钙成像数据上的对比学习方法)。 关于 SSL 权重和遮蔽比例的消融实验有但不够深入——这些超参数在不同数据集上有多敏感?
判决: 弱接收——这篇论文用跨多个数据集的扎实实验回答了一个显而易见的问题,但缺乏让人眼前一亮的架构创新或出人意料的洞见。它是领域需要有人来写的那种论文。
要点总结
给做脑机接口的神经工程师: 最实际的收获是少样本微调方案。 如果你要部署一个需要适配新用户或新一天记录的 BCI 解码器,就用 MOJO 的联合目标在已有的大数据集上预训练,然后仅用几分钟的校准数据做微调。 SSL 成分能实质性地减少对标签数据的需求。
给其他领域的机器学习从业者: 核心原则——“给任何监督序列模型加一个掩码重建目标来利用无标签数据”——是与领域无关的。 如果你在处理任何序列数据,标签昂贵但原始数据充足(传感器流、金融时间序列、地震数据),这个联合训练配方可以直接迁移。
给计算神经科学家: SSL 训练出的表征在没有被显式优化的情况下提升了脑区分类和脉冲统计预测性能,这说明模型学到了真正的神经生物学结构,而不仅仅是任务相关的捷径。 这意味着可以把训练好的模型当作科学工具来用,而不仅仅是工程部件。