JaxDecompiler:重新定义梯度信息软件设计
JaxDecompiler: Redefining Gradient-Informed Software Design
AI总结:
JaxDecompiler将JAX函数转为可编辑Python代码,便于编辑梯度函数,简化反向工程与定制,性能与原始代码相当。
摘要:
在能够计算梯度下降优化的数值库中,JAX凭借其更多功能脱颖而出,这些功能由名为Jaxpr语言的中间表示加速实现。然而,直接编辑Jaxpr代码是不可能的。本文介绍了JaxDecompiler,这是一个将任意JAX函数转换为可编辑Python代码的工具,尤其适用于编辑由梯度函数生成的JAX函数。JaxDecompiler简化了JAX开发软件的反向工程、理解、定制和互操作过程。我们强调了其能力,重点介绍了其实际应用,特别是在深度学习和更广泛的梯度信息软件中,并证明了反编译代码的速度性能与原始代码相似。
英文摘要:
Among numerical libraries capable of computing gradient descent optimization, JAX stands out by offering more features, accelerated by an intermediate representation known as Jaxpr language. However, editing the Jaxpr code is not directly possible. This article introduces JaxDecompiler, a tool that transforms any JAX function into an editable Python code, especially useful for editing the JAX function generated by the gradient function. JaxDecompiler simplifies the processes of reverse engineering, understanding, customizing, and interoperability of software developed by JAX. We highlight its capabilities, emphasize its practical applications especially in deep learning and more generally gradient-informed software, and demonstrate that the decompiled code speed performance is similar to the original.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。