PLDR-LLM 学习一种可在推理阶段替代自身深度神经网络的泛化张量算子
PLDR-LLMs Learn A Generalizable Tensor Operator That Can Replace Its Own Deep Neural Net At Inference
AI总结:
本研究提出PLDR-LLM,其学习的能量-曲率张量可在推理时替代PLGA网络,结合G-cache与KV-cache提速且高保真,还揭示了训练推理不对称性并提供实现框架。
摘要:
我们证明,源自幂律解码器表示的大语言模型(PLDR-LLM)是一种基础模型,其演绎输出是仅存在微小扰动的不变张量。PLDR-LLM学习到演绎输出的一个奇点条件,使得单次推理得到的能量-曲率张量$\u200bG_{LM}$能够在推理阶段替代生成演绎输出的幂律图注意力(PLGA)深度神经网络。我们证明,可以直接实现$\u200bG_{LM}$缓存(G-cache)与KV-cache来提升推理速度。演绎输出的不变性与泛化特性具备极高保真度:缓存后演绎输出的RMSE与行列式值在15位小数精度下保持一致,且零样本基准测试分数无变化。消融实验表明,学习得到的演绎输出在损失与精度特征上,与以迁移张量、随机初始化张量或单位张量作为恒定张量算子预训练的模型存在显著差异;而采用缩放点积注意力(SDPA)的LLM是PLDR-LLM的一个特例,其中$\u200bG_{LM}$被预定义为单位矩阵。观测到的不变性特征揭示了带缓存的训练与推理阶段之间存在一种全新的不对称性。我们概述了针对所学习的奇点条件,演绎输出呈现的共性特征。我们还提供了集成KV-cache与G-cache的PLDR-LLM训练与推理框架实现。
英文摘要:
We show that Large Language Model from Power Law Decoder Representations (PLDR-LLM) is a foundational model whose deductive outputs are invariant tensors up to a small perturbation. PLDR-LLM learns a singularity condition for the deductive outputs that enable the once-inferred energy-curvature tensor $\mathbf{G}_{LM}$ to replace the deep neural network of power law graph attention (PLGA) generating the deductive outputs at inference. We demonstrate that a cache for $\mathbf{G}_{LM}$ (G-cache) and KV-cache can be implemented in a straightforward manner to improve the inference time. The invariance and generalizable nature of deductive outputs is at a very high fidelity where deductive outputs have same RMSE and determinant values up to 15 decimal places after caching, and zero-shot benchmark scores remain unchanged. Ablation studies show that learned deductive outputs have distinct loss and accuracy characteristics from models pretrained with transferred, randomly initialized or identity tensors as a constant tensor operator and an LLM with scaled-dot product attention (SDPA) is a special case of PLDR-LLM where $\mathbf{G}_{LM}$ is predefined as identity. The observed invariance characteristic introduces a novel asymmetry between training and inference phases with caching. We outline observed common characteristics of the deductive outputs for the learned singularity condition. We provide an implementation of a training and inference framework for PLDR-LLM with KV-cache and G-cache.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。