# 预测编码

预测编码是一个理论框架，其中大脑通过生成对感觉输入的自上而下预测，并在分层生成模型的各层级上最小化自下而上的预测误差来进行感知。<sup>[1](https://ar5iv.labs.arxiv.org/html/2107.12979)</sup> 在这一观点下，感知是近似[贝叶斯推断](https://www.edgepedia.org/zh/bayesian-inference)：大脑反演感觉之原因的生成模型，而在简化假设下，最小化预测误差等价于最小化变分自由能，后者是一个在推断过程中被最小化的、关于模型证据的可处理界。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC2666703/)</sup><sup> • </sup><sup>[3](https://onlinelibrary.wiley.com/doi/10.1111/pcn.13138)</sup> 该框架如今涵盖皮层理论、神经证据、计算精神病学和具有生物合理性的机器学习。

| 关键事实 | 详情 |
|---|---|
| 核心连接方式 | 反馈连接携带对低层活动的预测；前馈连接携带残差预测误差。<sup>[4](https://doi.org/10.1038/4580)</sup> |
| 形式原则 | 在简化假设下，最小化变分自由能相当于最小化预测误差；等价地，最小化预测误差优化负自由能目标。<sup>[5](https://doi.org/10.1016/j.neunet.2003.06.005)</sup> |
| 精度 | 方差倒数 \( \Sigma^{-1} \)（常记作 \( \Pi \)）以乘法方式加权预测误差；在分层高斯滤波器中，它充当每次试次更新的动态学习率。<sup>[1](https://ar5iv.labs.arxiv.org/html/2107.12979)</sup><sup> • </sup><sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC6705923/)</sup> |
| 层状映射 | 误差单元对应浅层锥体细胞，预测对应深层锥体细胞；前馈投射从L2/3到L4，反馈从L5/6到浅层。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC2666703/)</sup><sup> • </sup><sup>[7](https://www.frontiersin.org/journals/psychiatry/articles/10.3389/fpsyt.2025.1713833/full)</sup> |
| 经验特征 | 失匹配负波在偏差出现后约100–250毫秒达到峰值；单试次精度加权预测误差调制视觉事件相关电位（ERP）；预测在α/β频带传播，误差在γ频带传播。<sup>[8](https://www.frontiersin.org/journals/human-neuroscience/articles/10.3389/fnhum.2021.702520/full)</sup><sup> • </sup><sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC6705923/)</sup><sup> • </sup><sup>[9](https://www.nature.com/articles/s42003-022-04049-6/)</sup> |
| 临床框架 | 精神分裂症和自闭症被解释为精度障碍；这一进路称为计算精神病学。<sup>[1](https://ar5iv.labs.arxiv.org/html/2107.12979)</sup> |
| 主要批评 | 精度重加权给该理论足够自由度以拟合几乎任何反应模式，且反馈可能增强而非抑制被预测的活动。<sup>[10](https://www.sciencedirect.com/science/article/pii/S0149763423003731)</sup><sup> • </sup><sup>[11](https://www.sciencedirect.com/science/article/pii/S1364661325002712)</sup> |

## 如何运作

预测编码层级反演一个生成模型，其中每一层预测下一层的活动。弗里斯顿（Friston）的表述分配状态单元，其活动编码条件均值 \( \tilde{\mu}(t) \)，以及误差单元，其编码精度加权预测误差 \( \xi = \tilde{\Pi} \tilde{\epsilon} \)，每个状态对应一个误差单元；连接各层的唯一连接是前向连接，将预测误差传送至状态单元，以及相互的反向连接，介导预测。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC2666703/)</sup> 因为感知被设定为拉普拉斯近似下的变分推断，并受模型假设约束，自由能简化为按精度（方差倒数）加权的预测误差的平方和。<sup>[12](https://www.tnu.ethz.ch/fileadmin/user_upload/teaching/cpcourse/2020/Literature/Buckley_et_al_2017.pdf)</sup> 区分两个误差项：感觉预测误差 \( \epsilon_{z} = \phi - g(\mu; \theta) \) 和先验或动态预测误差 \( \epsilon_{w} = \mu - \bar{\mu} \)，各自乘以其精度。<sup>[12](https://www.tnu.ethz.ch/fileadmin/user_upload/teaching/cpcourse/2020/Literature/Buckley_et_al_2017.pdf)</sup>

精度是信号可靠性的估计：赋予预测误差的精度越高，它被加权得越多。<sup>[1](https://ar5iv.labs.arxiv.org/html/2107.12979)</sup> 在机器学习表述中，预测编码网络通过在活动和权重上做梯度下降，最小化能量函数 \( E(a, w) = \frac{1}{2} \sum_{\ell} (\epsilon_{\ell})^{2} \)，即预测误差平方和。<sup>[13](https://arxiv.org/html/2407.04117v3)</sup>

## 如何实现

在标准皮层映射中，前馈投射主要起源于浅层（L2/3），并靶向下一区域的第4层；而反馈投射起源于深层（L5/6），并靶向前一区域的浅层；误差单元是浅层[锥体细胞](https://www.edgepedia.org/zh/pyramidal-cell)，预测单元是深层锥体细胞。<sup>[7](https://www.frontiersin.org/journals/psychiatry/articles/10.3389/fpsyt.2025.1713833/full)</sup><sup> • </sup><sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC2666703/)</sup> 预测误差神经元的反应 \( R \) 可定义为自下而上输入的某个函数 \( S \) 与自上而下预测的某个函数 \( P \) 之差。<sup>[14](https://doi.org/10.1016/j.neuron.2018.10.003)</sup>

在实验上，该框架通过将分层模型拟合到行为和神经活动来检验。在一项视觉失匹配研究中，来自分层高斯滤波器的逐试次精度加权预测误差显著调制了对人脸颜色或情绪表达意外变化的ERP，其在时间和头皮分布上与经典偏差减标准失匹配反应相符，并且贝叶斯模型比较在时间-传感器空间中的大多数体素里支持pwPE模型而非分类变化检测模型。<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC6705923/)</sup> [动态因果建模](https://www.edgepedia.org/zh/dynamic-causal-modeling)研究已通过实验调制精度加权，可观察为皮层自我抑制的语境依赖性变化。<sup>[15](https://www.frontiersin.org/journals/human-neuroscience/articles/10.3389/fnhum.2025.1743028/pdf)</sup> 在一项听觉局部-全局范式中，预测信号在α/β频带中传递，预测误差信号在γ频带中传递，预测频率对层级具有特异性，且额叶α频带反应在学习后期增强。<sup>[9](https://www.nature.com/articles/s42003-022-04049-6/)</sup>

## 起源

预测编码最初是信息论中用于压缩的算法，之后才被应用于大脑。<sup>[16](https://journals.plos.org/ploscompbiol/article?id=10.1371%2Fjournal.pcbi.1011183)</sup> 斯里尼瓦桑（Srinivasan）、劳克林（Laughlin）和杜布斯（Dubs）于1982年在《皇家学会学报B》发表了《预测编码：视网膜抑制的新视角》，这是早期应用于神经系统的尝试。<sup>[17](https://doi.org/10.1098/rspb.1982.0085)</sup> 拉奥（Rao）和巴拉德（Ballard）1999年发表在《自然神经科学》的论文描述了一个模型，其中从高级视觉区到低级视觉区的反馈连接携带对低级活动的预测，而前馈连接携带残差误差；在自然图像块上训练的三层网络形成了类似简单细胞的感受野，其误差神经元表现出端停和其他经典感受野外效应。<sup>[4](https://doi.org/10.1038/4580)</sup> 弗里斯顿2008年的表述将底层思想——大脑推断感觉的原因——追溯到亥姆霍兹（Helmholtz）。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC2666703/)</sup>

现代数学形式在2000年代中期发展起来：弗里斯顿2003年的《神经网络》论文将预测编码表述为期望最大化实现，其中最大化自由能目标等价于最小化预测误差，<sup>[5](https://doi.org/10.1016/j.neunet.2003.06.005)</sup> 随后是《皮层反应的理论》（2005）发表于《皇家学会哲学学报B》，<sup>[18](https://doi.org/10.1098/rstb.2005.1622)</sup> 与基尔纳（Kilner）和哈里森（Harrison）提出的自由能原理（2006），<sup>[19](https://doi.org/10.1016/j.jphysparis.2006.10.001)</sup> 以及2009年发表于《认知科学趋势》的一篇综合文章，将该方案推广为对达扬（Dayan）、辛顿（Hinton）、尼尔（Neal）和泽梅尔（Zemel）1995年亥姆霍兹机的贝叶斯扩展。<sup>[20](https://doi.org/10.1016/j.tics.2009.04.005)</sup><sup> • </sup><sup>[21](https://doi.org/10.1162/neco.1995.7.5.889)</sup> 巴斯托斯（Bastos）及其同事2012年的《神经元》论文提出了经典微环路，将误差单元和预测单元分配到不同的皮层层次。<sup>[22](https://doi.org/10.1016/j.neuron.2012.10.038)</sup>

## 变体

存在若干有名称的扩展。时间预测编码通过HMM式生成模型将该方案扩展到动态序列，用纯局部赫布更新规则最小化精度加权的“感觉”和“时间”预测误差。<sup>[16](https://journals.plos.org/ploscompbiol/article?id=10.1371%2Fjournal.pcbi.1011183)</sup> 预测编码网络在数学上是前馈神经网络的超集，其学习算法称为推断学习，具有生物合理性，并且在充分并行化时可比反向传播更高效。<sup>[13](https://arxiv.org/html/2407.04117v3)</sup> 鲁德尔特（Rudelt）、米库拉施（Mikulasch）、维布拉尔（Wibral）和普里泽曼（Priesemann）2023年提出的电路级变体，通过树突误差计算提出分层预测编码。<sup>[23](https://doi.org/10.12751/nncn.bc2023.130)</sup> 主动推断将该框架扩展到行动，将运动控制重新表述为满足反事实本体感觉预测；两种误差最小化策略是感知推断（修正假设）和主动推断（行动以使预测成真）。<sup>[24](https://link.springer.com/article/10.1007/s11229-015-0762-9)</sup><sup> • </sup><sup>[25](https://journals.plos.org/ploscompbiol/article?id=10.1371%2Fjournal.pcbi.1011473)</sup>

## 应用

施特泽（Sterzer）及其同事在2018年《生物精神病学》论文中阐述的精神病性障碍预测编码解释，将幻觉和妄想框定为异常推断。<sup>[26](https://doi.org/10.1016/j.biopsych.2018.05.015)</sup> 在精神分裂症中，动态因果建模研究显示抑制性中间神经元与浅层锥体细胞（推定的误差单元）之间的局部突触连接减弱，与阴性症状严重程度相关，同时失匹配负波降低；在这一解释下，自上而下的信号获得了不恰当的高精度。<sup>[7](https://www.frontiersin.org/journals/psychiatry/articles/10.3389/fpsyt.2025.1713833/full)</sup> 对一项音调-灯光概率任务的计算建模发现，有听觉幻觉的个体高估听觉预测的精度，并比无幻觉者更常报告虚假听觉知觉。<sup>[3](https://onlinelibrary.wiley.com/doi/10.1111/pcn.13138)</sup>

在自闭症中，一种解释认为先验被赋予异常低的精度，因此后验信念由感觉证据主导，产生知觉过敏；瞳孔测量结合概率学习任务支持感觉预测的精度被低估，而精神分裂症和自闭症被置于预测编码谱系的两端。<sup>[7](https://www.frontiersin.org/journals/psychiatry/articles/10.3389/fpsyt.2025.1713833/full)</sup><sup> • </sup><sup>[3](https://onlinelibrary.wiley.com/doi/10.1111/pcn.13138)</sup> 然而，对感觉运动任务的HGF建模未发现支持“预测误差具有高而僵化的精度”这一解释的证据：自闭症中预测性握力和预期性眼动的逐试次更新并未加快，且第2层和第3层估计的学习率低于神经典型参与者，后验波动性更低，这与自闭症个体将世界加工为持续波动的预测相矛盾。<sup>[25](https://journals.plos.org/ploscompbiol/article?id=10.1371%2Fjournal.pcbi.1011473)</sup> 在抑郁症中，有人假设放大的预测误差对社会刺激的解释具有选择性，且位于更高层级，如背内侧前额叶皮层。<sup>[3](https://onlinelibrary.wiley.com/doi/10.1111/pcn.13138)</sup>

## 局限与替代方案

核心批评是可证伪性。“朴素”预测模式认为，完全意外的刺激应产生最大诱发反应，而完全预期的刺激应产生很小或无反应，但批评者认为，用精度重新加权这一模式提供了相当大的自由度，“有产生不可证伪理论的风险”。<sup>[10](https://www.sciencedirect.com/science/article/pii/S0149763423003731)</sup> 辩护者回应说，精度调制也会缩短潜伏期并提高反应频率，从而给出振幅之外的可检验特征；在一项研究中，在没有预测-注意交互的模型下，ERP成分潜伏期的可能性约高2至4倍。<sup>[10](https://www.sciencedirect.com/science/article/pii/S0149763423003731)</sup> 一项哲学评估认为，分层预测加工“缺乏预先评估模型合理性的工具，似乎是一个披着理论外衣的计算框架”，可调整以解释任何神经认知现象。<sup>[27](https://link.springer.com/article/10.1007/s11229-022-03891-9)</sup> 神经合理性反对意见包括：一对一的误差-价值连接与弥散的皮层连接不一致；只有相邻层级通信；自上而下连接必然为抑制性。<sup>[27](https://link.springer.com/article/10.1007/s11229-022-03891-9)</sup>

经验挑战已经更加尖锐。在头部固定小鼠中，V1第2/3层的皮层预测误差反映的是意外输入刺激特异性的放大，而不是从输入中减去预测；对意外刺激的反应几乎相同，无论预期的是哪种刺激，且VIP中间神经元和丘脑枕（LP）输入共同门控该信号。<sup>[28](https://doi.org/10.1016/j.cub.2024.09.026)</sup><sup> • </sup><sup>[29](https://doi.org/10.1038/s41586-024-07851-w)</sup> 这些数据直接反驳了前馈第2/3层神经元计算实际输入与预期输入之差的提议，一个修正模型提出前馈神经元直接表征感觉特征，其增益由预测误差幅度调制。<sup>[30](https://www.annualreviews.org/content/journals/10.1146/annurev-neuro-100223-121214)</sup> 《认知科学趋势》的一篇综述认为，反馈的主要影响是增强而非抑制被预测的活动，在这些情境中“预测编码把符号搞错了”，并提出对立的BELIEF框架（对有限信息的反馈增强与前馈通路中对预期信息的抑制），对被预测刺激的较弱反应源于局部抑制和适应。<sup>[11](https://www.sciencedirect.com/science/article/pii/S1364661325002712)</sup> 进一步局限：尚无确定性经验证据支持单个误差神经元，尽管预测信号和误差信号群体的层状分离得到支持；<sup>[31](https://arxiv.org/html/2308.07870)</sup> 失匹配负波可由神经适应解释，无需分层贝叶斯机制；<sup>[31](https://arxiv.org/html/2308.07870)</sup> 在抑郁症中，[Q学习](https://www.edgepedia.org/zh/q-learning)参数比改变精度加权等构念更直接地预测奖赏学习损伤；<sup>[15](https://www.frontiersin.org/journals/human-neuroscience/articles/10.3389/fnhum.2025.1743028/pdf)</sup> 而核心量（预测误差、价值更新、精度）也出现在强化学习和贝叶斯决策论中，除非模型做出不同预测，否则限制了区分力。<sup>[7](https://www.frontiersin.org/journals/psychiatry/articles/10.3389/fpsyt.2025.1713833/full)</sup>

近期工作扩展了该框架。2025年《神经网络》的一篇综述将预测编码视为反向传播的生物合理性替代方案，其基础在变分推断、异步计算，以及在控制和机器人学中的应用。<sup>[32](https://europepmc.org/article/med/41161207)</sup> 丙泊酚介导的意识丧失扰乱预测性路由和神经活动的局部场相位调制，<sup>[33](https://doi.org/10.1073/pnas.2315160121)</sup> 而赵（Chao）及其同事（2024）在自闭症谱系障碍的非人灵长类模型中报告了跨大脑层级错误的预测编码。<sup>[34](https://doi.org/10.1038/s42003-024-06545-3)</sup>

## References

1. [Predictive Coding: a Theoretical and Experimental Review (Millidge, Tschantz & Buckley)](https://ar5iv.labs.arxiv.org/html/2107.12979)
2. [Predictive coding under the free-energy principle (Friston, 2008, Phil. Trans. R. Soc. B)](https://pmc.ncbi.nlm.nih.gov/articles/PMC2666703/)
3. [Recent advances in the application of predictive coding and active inference models within clinical neuroscience (Psychiatry and Clinical Neurosciences)](https://onlinelibrary.wiley.com/doi/10.1111/pcn.13138)
4. [Rajesh P. N. Rao, Dana H. Ballard (1999). Predictive coding in the visual cortex: a functional interpretation of some extra-classical receptive-field effects. Nature Neuroscience.](https://doi.org/10.1038/4580)
5. [Karl Friston (2003). Learning and inference in the brain. Neural Networks.](https://doi.org/10.1016/j.neunet.2003.06.005)
6. [Visual Mismatch and Predictive Coding: A Computational Single-Trial ERP Study (Journal of Neuroscience)](https://pmc.ncbi.nlm.nih.gov/articles/PMC6705923/)
7. [Predictive coding and neurocomputational psychiatry: a mechanistic framework for understanding mental disorders (Frontiers in Psychiatry, 2025; also PMC12819327)](https://www.frontiersin.org/journals/psychiatry/articles/10.3389/fpsyt.2025.1713833/full)
8. [Automatic Sensory Predictions: A Review of Predictive Mechanisms in the Brain and Their Link to Conscious Processing (Frontiers in Human Neuroscience)](https://www.frontiersin.org/journals/human-neuroscience/articles/10.3389/fnhum.2021.702520/full)
9. [A quantitative model reveals a frequency ordering of prediction and prediction-error signals in the human brain (Communications Biology)](https://www.nature.com/articles/s42003-022-04049-6/)
10. [Is predictive coding falsifiable? (Neuroscience & Biobehavioral Reviews)](https://www.sciencedirect.com/science/article/pii/S0149763423003731)
11. [Hierarchical interactions between sensory cortices defy predictive coding (Trends in Cognitive Sciences)](https://www.sciencedirect.com/science/article/pii/S1364661325002712)
12. [The free energy principle: a technical guide (Buckley, Kim, McGregor & Seth, 2017, J. Math. Psychology)](https://www.tnu.ethz.ch/fileadmin/user_upload/teaching/cpcourse/2020/Literature/Buckley_et_al_2017.pdf)
13. [Predictive Coding Networks and Inference Learning: Tutorial and Survey (Zahid et al., 2024)](https://arxiv.org/html/2407.04117v3)
14. [Georg B. Keller, Thomas D. Mrsic-Flogel (2018). Predictive Processing: A Canonical Cortical Computation. Neuron.](https://doi.org/10.1016/j.neuron.2018.10.003)
15. [Predictive coding in psychopathology: mechanistic model or metaphorical re-description? (Frontiers in Human Neuroscience, 2025)](https://www.frontiersin.org/journals/human-neuroscience/articles/10.3389/fnhum.2025.1743028/pdf)
16. [Predictive coding networks for temporal prediction (PLOS Computational Biology, 2023)](https://journals.plos.org/ploscompbiol/article?id=10.1371%2Fjournal.pcbi.1011183)
17. [Mandyam Veerambudi Srinivasan, Simon Barry Laughlin, A. Dubs (1982). Predictive coding: a fresh view of inhibition in the retina. Proceedings of the Royal Society B Biological Sciences.](https://doi.org/10.1098/rspb.1982.0085)
18. [Karl Friston (2005). A theory of cortical responses. Philosophical Transactions of the Royal Society B Biological Sciences.](https://doi.org/10.1098/rstb.2005.1622)
19. [Karl Friston, James Kilner, Lee Harrison (2006). A free energy principle for the brain. Journal of Physiology-Paris.](https://doi.org/10.1016/j.jphysparis.2006.10.001)
20. [Karl Friston (2009). The free-energy principle: a rough guide to the brain?. Trends in Cognitive Sciences.](https://doi.org/10.1016/j.tics.2009.04.005)
21. [Peter Dayan and colleagues (1995). The Helmholtz Machine. Neural Computation.](https://doi.org/10.1162/neco.1995.7.5.889)
22. [Andre M. Bastos and colleagues (2012). Canonical Microcircuits for Predictive Coding. Neuron.](https://doi.org/10.1016/j.neuron.2012.10.038)
23. [Rudelt, Lucas and colleagues (2023). Where is the error? Hierarchical predictive coding through dendritic error computation. German Neuroinformatics Node.](https://doi.org/10.12751/nncn.bc2023.130)
24. [Predictive coding and representationalism (Synthese)](https://link.springer.com/article/10.1007/s11229-015-0762-9)
25. [Testing predictive coding theories of autism spectrum disorder using models of active inference (PLOS Computational Biology)](https://journals.plos.org/ploscompbiol/article?id=10.1371%2Fjournal.pcbi.1011473)
26. [Philipp Sterzer and colleagues (2018). The Predictive Coding Account of Psychosis. Biological Psychiatry.](https://doi.org/10.1016/j.biopsych.2018.05.015)
27. [Testable or bust: theoretical lessons for predictive processing (Synthese)](https://link.springer.com/article/10.1007/s11229-022-03891-9)
28. [Predictive coding: A distinction — without a difference (Current Biology, 2024)](https://doi.org/10.1016/j.cub.2024.09.026)
29. [Shohei Furutachi and colleagues (2024). Cooperative thalamocortical circuit mechanism for sensory prediction errors. Nature.](https://doi.org/10.1038/s41586-024-07851-w)
30. [Predictive Processing: A Circuit Approach to Psychosis (Annual Review of Neuroscience, 2024; incl. 'Rethinking Predictive Processing' material)](https://www.annualreviews.org/content/journals/10.1146/annurev-neuro-100223-121214)
31. [Brain-inspired Computational Intelligence via Predictive Coding (arXiv survey)](https://arxiv.org/html/2308.07870)
32. [A survey on neuro-mimetic deep learning via predictive coding (Neural Networks, 2025)](https://europepmc.org/article/med/41161207)
33. [Yihan (Sophy) Xiong and colleagues (2024). Propofol-mediated loss of consciousness disrupts predictive routing and local field phase modulation of neural activity. Proceedings of the National Academy of Sciences.](https://doi.org/10.1073/pnas.2315160121)
34. [Zenas C. Chao and colleagues (2024). Erroneous predictive coding across brain hierarchies in a non-human primate model of autism spectrum disorder. Communications Biology.](https://doi.org/10.1038/s42003-024-06545-3)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026; Oct 21, 2026 · Last review: Sep 30, 2026*

Topic: 社会与历史 › 社会生活与人类行为 › 心理学与行为 › Perception

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/predictive-coding

English original: https://www.edgepedia.org/predictive-coding
