最新 微软与美国政府警告:重大技术故障还将持续 The Verge
研究与论文 ●●●○○

果蝇启发AI Spi-Fly少样本学气味,内存需求大降

Fruit fly-inspired AI learns smells quickly with far less memory

摘要Summary

OIST 团队提出脉冲神经网络 Spi-Fly,模仿果蝇嗅觉系统的稀疏编码,在少量样本下快速学会识别气味,且几乎不遗忘旧类别。其片外内存需求比 BPTT 低约五个数量级,适合神经形态硬件等资源受限场景。

Researchers at OIST developed Spi-Fly, a spiking neural network modeled on the fruit fly olfactory system's sparse coding, which learns odors from few examples while largely avoiding catastrophic forgetting. Its off-chip memory needs were estimated to be about five orders of magnitude lower than BPTT, making it suited to energy-constrained neuromorphic hardware.

  • 模仿果蝇稀疏编码,仅约5%神经元对气味活跃
  • 气体传感器数据集上每类气味看三次即达峰值
  • 片外内存需求比BPTT低约五个数量级

全文对照Full text · 中 / EN

Spi-Fly 利用稀疏神经活动快速识别气味,同时所需内存远少于反向传播。(图片来源:Catherine Hodges/OIST)

Spi-Fly uses sparse neural activity to recognize smells quickly while requiring far less memory than backpropagation. (CREDIT: Catherine Hodges/OIST)

果蝇的大脑仅包含约 14 万个神经元,却能以惊人的效率识别气味。研究人员如今借鉴了其中部分策略,构建了一个人工系统,能够快速学习气味,同时占用极少内存。

A fruit fly brain contains only about 140,000 neurons, yet it can recognize odors with remarkable efficiency. Researchers have now borrowed part of that strategy to build an artificial system that learns smells quickly while using little memory.

该算法名为 Spi-Fly,采用以果蝇嗅觉系统为模型的脉冲神经网络。日本冲绳科学技术大学院大学(OIST)的研究人员将其设计用于训练样本、内存和算力均有限的情境。

The algorithm, called Spi-Fly, uses a spiking neural network modeled on the fruit fly olfactory system. Researchers at the Okinawa Institute of Science and Technology , or OIST, designed it for situations where training examples, memory and computing power are limited.

在每种气味仅有少量样本的情况下,该系统表现尤为出色。它还能学习新类别,而不会大幅遗忘此前的类别。

The system performed especially well when it had only a few examples of each odor . It also learned new categories without substantially forgetting earlier ones.

“它是映射最完善的大脑之一;它足够简单,让我们能够将大脑作为一个整体来研究,但它仍能实现复杂的处理,”OIST 共同作者 Yang Shen 表示。

“It’s one of the best-mapped brains; it’s simple enough that we can study the brain as a whole, but it still achieves complex processing,” said co-author Yang Shen of OIST.

果蝇处理气味的方式是将输入信息扩展到一个大得多的神经元群体中,然后严格限制保持活跃的细胞数量。

Fruit flies process odors by expanding incoming information into a much larger neural population and then sharply limiting how many cells remain active.

气味信息到达一个名为蘑菇体的脑结构中的约 2,000 个 Kenyon 细胞。每个 Kenyon 细胞仅采样少量输入。

Odor information reaches roughly 2,000 Kenyon cells in a brain structure called the mushroom body. Each Kenyon cell samples only a small number of inputs.

强烈的抑制随后使其中约 95% 的细胞沉默。

Strong inhibition then silences about 95% of those cells.

对于某种特定气味,只有约 5% 保持活跃,产生一种稀疏模式,其作用有些类似神经条形码。

Only around 5% remain active for a particular smell, producing a sparse pattern that functions somewhat like a neural barcode.

“它拥有一个特别有趣的嗅觉系统,实现了稀疏编码——一种无需训练即可帮助减少不同信号之间重叠的计算方案,因此我们可以用更低的能量成本高效地表示气味,”Shen 说。

“It has a particularly interesting olfactory system that implements sparse coding, a computational scheme that helps reduce overlap between different signals without training, so we can efficiently represent odors with lower energy cost,” Shen said.

Spi-Fly 通过三层结构重现了这些原理。

Spi-Fly recreates those principles with three layers.

输入的传感器数值转化为电脉冲。这些输入神经元以稀疏且随机的方式连接到一个大得多的隐藏层,在主要实验中该隐藏层包含 1,000 个神经元。

Incoming sensor values become electrical spikes. Those input neurons connect sparsely and randomly to a much larger hidden layer, which contained 1,000 neurons in the main experiments.

隐藏神经元之间的竞争使得只有一小部分保持活跃。网络随后会加强这些活跃神经元与分配给正确气味的输出之间的连接。

Competition among hidden neurons leaves only a small fraction active. The network then strengthens connections between those active neurons and the output assigned to the correct odor.

与传统神经网络不同,Spi-Fly 不需要反向传播来调整网络的每一个部分。

Unlike conventional neural networks, Spi-Fly does not need backpropagation to adjust every part of the network.

研究人员在两个气味数据集上测试了 Spi-Fly。

Researchers tested Spi-Fly on two odor datasets.

第一个数据集包含 200 条气体传感器记录,代表 10 种化合物,包括丙酮、氨、甲烷、甲醇、苯和甲苯。每条记录使用了 72 个传感器。

The first contained 200 gas-sensor recordings representing 10 compounds, including acetone, ammonia, methane, methanol, benzene and toluene. Each recording used 72 sensors.

该网络包含 72 个输入神经元、1,000 个隐藏神经元和 10 个输出神经元。

The network contained 72 input neurons, 1,000 hidden neurons and 10 output neurons.

在该数据集上,Spi-Fly 在每种气味仅出现三次后就达到了其最佳性能。

On that dataset, Spi-Fly reached its peak performance after seeing each odor only three times.

第二个实验使用了基于果蝇嗅觉受体建模的合成数据。它包含 18 种气味、五种受体类型和 450 条电极记录。

A second experiment used synthetic data modeled on fruit fly olfactory receptors. It included 18 odors, five receptor types and 450 electrode traces.

该版本的 Spi-Fly 使用了五个输入神经元、相同的 1,000 个神经元的隐藏层和 18 个输出。

That version of Spi-Fly used five input neurons, the same 1,000-neuron hidden layer and 18 outputs.

它在每种气味仅呈现一次后就达到了最佳性能。

It reached its best performance after just one presentation of each odor.

“Spi-Fly 是少样本学习中表现最好的方法,只需看到几个样本就能轻松分类气味,”OIST 神经计算单元的合著者 Kevin Max 说。

“Spi-Fly was the best performing method for few-shot learning, classifying scents easily after seeing only a few samples,” said co-author Kevin Max of OIST’s Neural Computation Unit.

传统训练在反复接触后最终在合成数据集上取得了更好的准确率,但从稀缺样本中快速学习是 Spi-Fly 的主要优势。

Conventional training eventually achieved better accuracy on the synthetic dataset after repeated exposure, but rapid learning from scarce examples was Spi-Fly’s main advantage.

研究人员还测试了持续学习,这是人工神经网络面临的一个重大挑战。

The researchers also tested continual learning, a major challenge for artificial neural networks.

许多系统会遭受灾难性遗忘。当它们学习新任务时,内部连接的变化可能会破坏先前任务中存储的信息。

Many systems suffer from catastrophic forgetting. When they learn a new task, changes to their internal connections can damage information stored from earlier tasks.

该团队依次教网络学习成对的气味类别。每学习一对新类别后,系统都会在迄今为止学到的所有类别上进行测试。

The team taught networks pairs of odor classes one after another. After each new pair, the systems were tested on every class learned so far.

与同时训练所有类别相比,Spi-Fly 没有表现出显著的性能损失。

Spi-Fly showed no significant performance loss compared with training on all classes together.

使用时间反向传播(BPTT)训练的脉冲网络表现要差得多,最终得分仅略高于随机水平。

A spiking network trained with backpropagation through time, or BPTT, performed much worse and eventually scored only slightly above chance.

研究人员还加入了弹性权重巩固,这是一种旨在保护重要旧连接的技术。它并未显著改善 BPTT 的持续学习性能。

Researchers also added elastic weight consolidation, a technique designed to protect important old connections. It did not significantly improve BPTT’s continual-learning performance.

Spi-Fly 的工作方式不同,因为添加一个新类别主要改变的是通向该类别输出神经元的连接。

Spi-Fly works differently because adding a new class mainly changes connections leading to that class’s output neuron .

负责先前学习过的气味的连接基本保持不变。

Connections responsible for previously learned odors stay largely untouched.

“它在持续学习方面也表现良好,能够正确学习分类新气味而不忘记过去学过的气味,这是标准训练方法的一个巨大问题,被称为灾难性遗忘,”Max 说。

“It was also good at continual learning, correctly learning to classify new odors without forgetting about past learned ones, a huge issue with standard training methods, known as catastrophic forgetting,” Max said.

当研究人员降低网络权重的精度时,另一个优势出现了。

Another advantage appeared when researchers reduced the precision of the network’s weights.

神经形态硬件通常仅使用几个数字位来存储突触值,因为内存有限。

Neuromorphic hardware often stores synaptic values using only a few digital bits because memory is limited.

Spi-Fly 在 6 位精度下仍然有效,并且随着精度降低,其性能损失比 BPTT 更小。

Spi-Fly remained effective at 6-bit precision and lost less performance than BPTT as precision decreased.

在气体传感器数据集上,它甚至在 4 位时超过了 BPTT。

On the gas-sensor dataset, it even outperformed BPTT at 4 bits.

反向传播在训练期间需要存储权重、神经活动和梯度。持续学习方法也可能需要额外信息。

Backpropagation requires storage for weights, neural activity and gradients during training. Continual-learning methods can require extra information as well.

Spi-Fly 主要需要局部学习和一个用于脉冲计数的缓冲区。

Spi-Fly mainly needs local learning and a buffer for spike counts.

研究人员估计,在气体传感器实验中,其片外内存需求比 BPTT 和带弹性权重巩固的 BPTT 低约五个数量级。

Researchers estimated that its off-chip memory requirements were about five orders of magnitude lower than BPTT and BPTT with elastic weight consolidation in the gas-sensor experiment.

这种降低对于设计在小型、能源受限的硬件上运行而非强大的外部计算机上的系统可能很重要。

That reduction could matter for systems designed to operate on small, energy-constrained hardware rather than powerful external computers.

Spi-Fly 仍然有重要的局限性。

Spi-Fly still has important limitations.

在多次重复训练样本后,其分类性能低于更强的传统机器学习方法。

After many repeated training examples, its classification performance falls below stronger conventional machine-learning methods.

该系统也不更新其输入层和隐藏层之间的连接,限制了其细化内部表示的程度。

The system also does not update connections between its input and hidden layers, limiting how much it can refine internal representations.

在极低的权重精度下,其性能会下降,尽管它比 BPTT 更好地处理了这种下降。

Its performance declines at very low weight precision, even though it handles that decline better than BPTT.

实验还使用了单个气味。

The experiments also used individual odors.

自然环境中通常含有混合物和背景气味,研究人员尚不清楚 Spi-Fly 能多好地分离这些复杂的信号。

Natural environments commonly contain mixtures and background smells , and researchers do not yet know how well Spi-Fly will separate those complicated signals.

该网络在学习过程中需要监督标签,其容量部分取决于隐藏层的大小。

The network requires supervised labels during learning, and its capacity depends partly on the size of the hidden layer.

它也没有明确利用精确的脉冲时序,尽管时序对真实果蝇的气味处理有贡献。

It also does not explicitly use precise spike timing, even though timing contributes to real fruit fly smell processing.

Spi-Fly 的直接价值在于表明,受生物启发的学习可以同时解决若干实际限制。

The immediate value of Spi-Fly lies in showing that biologically inspired learning can address several practical limits at once.

该系统从少量样本中学习,能抵抗灾难性遗忘,并且比传统反向传播使用更少的内存。

The system learns from few examples, resists catastrophic forgetting and uses much less memory than conventional backpropagation.

研究人员目前正致力于将该算法与正在与 TU Eindhoven 和 Kiel University 合作者开发的气味传感硬件集成。

Researchers are now working toward integrating the algorithm with odor-sensing hardware being developed with collaborators at TU Eindhoven and Kiel University.

“检测爆炸物;评估过敏原水平;确保食品安全;识别药物,气味分类有非常广泛的应用,”Max 说。

“Detecting explosives; assessing allergen levels; ensuring food safety; identifying drugs, there’s a huge range of applications for scent classification,” Max said.

该团队的最终目标是构建一种将化学传感器与类脑处理相结合的人工鼻子。

The team ultimately aims to build an artificial nose that combines chemical sensors with brain-inspired processing .

未来的工作将需要测试混合气味、提高准确性、改进权重量化,并检查在真实硬件上的性能。

Future work will need to test mixed odors, improve accuracy, refine weight quantization and examine performance on real hardware.

目前,果蝇提供了一个简洁的教训:复杂的学习不一定需要大的大脑或庞大的计算系统。

For now, the fruit fly offers a compact lesson: sophisticated learning does not necessarily require a large brain or a massive computing system.

这些资源探讨了启发 Spi-Fly 等系统的稀疏神经编码和持续学习思想。

These resources explore the sparse neural coding and continual-learning ideas that inspired systems such as Spi-Fly.

蘑菇体中的稀疏、去相关气味编码增强学习气味辨别:这项研究表明,抑制性反馈使果蝇 Kenyon 细胞反应保持稀疏,并帮助果蝇区分相似气味。(Nature Neuroscience, 2014)

Sparse, decorrelated odor coding in the mushroom body enhances learned odor discrimination : This study showed that inhibitory feedback keeps fruit fly Kenyon cell responses sparse and helps flies distinguish similar odors. (Nature Neuroscience, 2014)

蘑菇体回忆录:从图谱到模型:这篇基础性综述解释了果蝇蘑菇体如何通过稀疏神经表征支持气味学习和记忆。(Nature Reviews Neuroscience, 2003)

Mushroom body memoir: from maps to models : This foundational review explains how the fruit fly mushroom body supports odor learning and memory through sparse neural representations. (Nature Reviews Neuroscience, 2003)

果蝇嗅觉记忆:从单基因到复杂神经回路:该综述追溯了蘑菇体回路及其分子机制如何支持果蝇的气味学习与记忆。(Nature Reviews Neuroscience,2007)

Drosophila olfactory memory: single genes to complex neural circuits : The review traces how mushroom body circuits and their molecular machinery support odor learning and memory in fruit flies. (Nature Reviews Neuroscience, 2007)

记忆计数的神经理论:这项理论研究探讨了蘑菇体中的稀疏随机投影如何支持高效的记忆存储。(Nature Communications,2022)

A neural theory for counting memories : This theoretical work examines how sparse random projections in the mushroom body can support efficient memory storage. (Nature Communications, 2022)

神经形态持续学习系统综述与展望:该综述探讨了类脑硬件与算法如何在学习新信息的同时减少灾难性遗忘。(Frontiers in Neuroscience,2023)

A survey and perspective on neuromorphic c o ntinual learning systems : This review examines how brain-inspired hardware and algorithms can learn new information while reducing catastrophic forgetting. (Frontiers in Neuroscience, 2023)

研究成果可在期刊 Neuromorphic Computing and Engineering 上在线获取。

Research findings are available online in the journal Neuromorphic Computing and Engineering .

原报道《受果蝇启发的 AI 以远少得多的内存快速学习气味》发表于 The Brighter Side of News。

The original story " Fruit fly-inspired AI learns smells quickly with f ar less memory " is published in The Brighter Side of News.