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

SymTorch: 神经网络的符号化蒸馏

SymTorch: Symbolic Distillation of Neural Networks

Department of Applied Mathematics and Theoretical Physics(应用数学与理论物理系)

Elizabeth S. Z. Tan, Adil Soubki, Miles Cranmer

AI总结:

SymTorch通过符号化蒸馏方法,将神经网络组件转化为可解释的数学表达式,揭示训练过程中学习的函数结构。其在物理定律自动发现中表现出色,包括从图神经网络中恢复相互作用力、从物理启发型神经网络中提取精确解,以及揭示洛伦兹系统的混沌动力学。

摘要:

SymTorch通过符号化蒸馏方法,将神经网络组件转化为可解释的数学表达式,揭示训练过程中学习的函数结构。其在物理定律自动发现中表现出色,包括从图神经网络中恢复相互作用力、从物理启发型神经网络中提取精确解,以及揭示洛伦兹系统的混沌动力学。

英文摘要:

What mathematical functions do neural network components learn? Symbolic distillation addresses this question by expressing neural network components with interpretable, closed-form mathematical expressions that expose the functional structure learned during training. We develop symbolic distillation as a systematic, architecture-agnostic methodology, and release our approach as the open-source SymTorch package - a PySR-powered library built natively for the PyTorch ecosystem. Applying this methodology across diverse architectures, we find that SymTorch is successful in the automated discovery of physical laws. Specifically, our approach (1) recovers pairwise interaction forces from graph neural networks trained on empirical $n$-body observations, (2) distills the exact closed-form PDE/ODE solutions of multiple physical systems, including the value of constants, from physics-informed neural networks trained on sparse data, and (3) uncovers the chaotic dynamics of the Lorenz system from high-dimensional data, ultimately outperforming the base neural network on downstream prediction tasks. We further demonstrate the utility of our framework for model interpretability by providing an optimized implementation of SLIME - a symbolic extension to the LIME explainability method. SLIME consistently outperforms LIME across predictive metrics across eight popular classification and regression benchmarks, while still providing an interpretable local symbolic model. Lastly, we investigate replacing transformer MLP layers with symbolic surrogates: replacing 1-7 layers with symbolic approximations yields 2-19\% throughput improvements and up to 18.7\% VRAM reduction, with the resulting hybrid models lying on the Pareto front of throughput versus perplexity among open-source LLMs of comparable scale.

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

↑