arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.15933cs.LG
收藏

基于误差的双向预测编码实现深度4位预测编码网络

Error-Based Bidirectional Predictive Coding Enables Deep, 4-Bit Predictive Coding Networks

McGill University(麦吉尔大学)

Garrett Kinman, Zeljko Zilic

AI总结:

本文结合双向PC(bPC)与基于误差的重参数化(ePC),实现可稳定训练至8层的4位预测编码网络,在6层网络中分类准确率远超基于状态的bPC,且量化后性能损失极小。

摘要:

预测编码网络(PCN)具备反向传播训练网络所不具备的特性:仅从局部信息学习、兼具判别与生成功能的单一网络、通过能量最小化实现灵活推理。然而其迭代推理成本高昂,亟需硬件加速,而实用高效的加速器需兼具深度与激进量化能力。经典基于状态的PC无法满足这两点:其推理信号随深度呈指数衰减,导致深度模型难以训练,低精度会加剧该问题。本文展示将两种近期方法结合可将完整PCN特性带入深度4位场景:双向PC(bPC)统一判别与生成功能,基于误差的重参数化(ePC)在推理时优化预测误差而非状态。误差优化通过单次反向传播将输出信号传递至所有层,消除信号衰减;额外加入误差梯度的全局范数裁剪,可稳定深度下的误差动态。所得ePC+bPC模型可稳定训练至至少8层,在W4A4E4量化感知训练下,于FP4及三种posit格式中均保持全精度准确率与清晰的类条件生成能力。在6层网络中,基于状态的bPC训练1个epoch后准确率降至随机水平,而ePC+bPC的分类准确率超出其50个百分点以上,类条件生成的RMSE提升5-9倍。4位量化几乎无损失:全精度与4位准确率差异最多约5个百分点,在表现最佳的格式中差异小于2个百分点。本文还分析了该方法克服的两种失效模式:基于状态的PC的有限信号衰减、未正则化误差优化的误差发散,并探讨了对原生4位PCN加速器的意义。

英文摘要:

Predictive coding networks (PCNs) promise properties not offered by backpropagation-trained networks: learning from purely local information, a single network that both discriminates and generates, and flexible inference by energy minimization. However, their iterative inference is expensive, making hardware acceleration desirable, and a useful, efficient accelerator needs both depth and aggressive quantization. Canonical state-based PC delivers neither: its inference signal decays exponentially with depth, so deep models fail to train, and low precision makes it worse. We show that pairing two recent methods carries the full PCN property set into the deep, 4-bit regime: bidirectional PC (bPC), which unifies discrimination and generation, and the error-based reparameterization (ePC), which optimizes prediction errors rather than states during inference. Error optimization delivers the output signal to every layer in a single backward pass, removing the signal decay; one additional element, global-norm clipping of the error gradients, stabilizes the error dynamics at depth. The resulting ePC+bPC model trains stably up to at least eight layers and retains its full-precision accuracy and clean class-conditional generation under W4A4E4 quantization-aware training, across FP4 and three posit formats. On six-layer networks, where state-based bPC collapses to chance, ePC+bPC classifies more than 50 accuracy points above it after one epoch of training, with class-conditional generations 5-9x better in RMSE. 4-bit quantization is nearly free: full-precision and 4-bit accuracies differ by at most ~5 points, and by under two in the best-performing formats. We characterize the two failure modes the method overcomes, bounded signal decay in state-based PC and error divergence in unregularized error optimization, and discuss implications for a 4-bit-native PCN accelerator.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑