arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.17625cs.LGcs.AI
收藏

Alice在可微仙境中的奇遇——第一卷:大陆之旅

Alice's Adventures in a Differentiable Wonderland -- Volume I, A Tour of the Land

Simone Scardapane

AI总结:

本文是一篇可微编程入门教程,面向初学者介绍自动微分及卷积、注意力、循环等核心神经网络设计,并连接PyTorch与JAX实践以理解LLM和多模态架构。

摘要:

神经网络围绕着我们,其形式包括大型语言模型、语音转录系统、分子发现算法、机器人技术等等。剥去其他一切,神经网络就是可微原语的组合,研究它们意味着学习如何编程以及如何与这些模型交互,这是所谓可微编程的一个特定例子。本入门读物是对这一迷人领域的介绍,为像Alice一样刚刚踏入这个陌生可微仙境的人而设想。我概述了通过自动微分优化函数的基础知识,以及处理序列、图、文本和音频的一系列最常见设计。重点在于对最重要设计技术进行直观、自足的介绍,包括卷积、注意力和循环块,希望弥合理论与代码(PyTorch和JAX)之间的鸿沟,并使读者能够理解当下一些最先进的模型,例如大型语言模型(LLMs)和多模态架构。

英文摘要:

Neural networks surround us, in the form of large language models, speech transcription systems, molecular discovery algorithms, robotics, and much more. Stripped of anything else, neural networks are compositions of differentiable primitives, and studying them means learning how to program and how to interact with these models, a particular example of what is called differentiable programming. This primer is an introduction to this fascinating field imagined for someone, like Alice, who has just ventured into this strange differentiable wonderland. I overview the basics of optimizing a function via automatic differentiation, and a selection of the most common designs for handling sequences, graphs, texts, and audios. The focus is on a intuitive, self-contained introduction to the most important design techniques, including convolutional, attentional, and recurrent blocks, hoping to bridge the gap between theory and code (PyTorch and JAX) and leaving the reader capable of understanding some of the most advanced models out there, such as large language models (LLMs) and multimodal architectures.

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

↑