Neural ODE Transformers: Analyzing Internal Dynamics and Adaptive Fine-tuning
Korea University(高丽大学);Johns Hopkins University(约翰斯·霍普金斯大学);Texas A&M University-Commerce(德州农工大学 Commerce 分校);Qualcomm AI Research(高通人工智能研究部);Stanford(斯坦福大学);KAIST(韩国科学技术院);Qualcomm Vietnam Company Limited(高通越南有限公司)
Anh Tong, Thanh Nguyen-Tang, Dongeun Lee, Duc Nguyen, Toan Tran, David Hall, Cheongwoong Kang, Jaesik Choi
Recent advancements in large language models (LLMs) based on transformer architectures have sparked significant interest in understanding their inner workings. In this paper, we introduce a novel approach to modeling transformer architectures using highly flexible non-autonomous neural ordinary differential equations (ODEs). Our proposed model parameterizes all weights of attention and feed-forward blocks through neural networks, expressing these weights as functions of a continuous layer index. Through spectral analysis of the model's dynamics, we uncover an increase in eigenvalue magnitude that challenges the weight-sharing assumption prevalent in existing theoretical studies. We also leverage the Lyapunov exponent to examine token-level sensitivity, enhancing model interpretability. Our neural ODE transformer demonstrates performance comparable to or better than vanilla transformers across various configurations and datasets, while offering flexible fine-tuning capabilities that can adapt to different architectural constraints.
ODESteer: A Unified ODE-Based Steering Framework for LLM Alignment
University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Northwestern University(西北大学);William & Mary(威廉与玛丽学院);University of Washington(华盛顿大学);Stanford University(斯坦福大学)
Farther the Shift, Sparser the Representation: Analyzing OOD Mechanisms in LLMs
Rutgers University(罗格斯大学);Northwestern University(西北大学);UKP Lab, TU Darmstadt(德累斯顿技术大学UKP实验室);New Jersey Institute of Technology(新泽西理工学院);NEC Lab American(美国NEC实验室);University of North Carolina at Chapel Hill(北卡罗来纳大学教堂山分校)
University of Macau(澳门大学);Hanyang University(汉阳大学);Zhejiang University(浙江大学);Wuhan University(武汉大学);Tsinghua University(清华大学);South China University of Technology(华南理工大学);University of Liverpool(利物浦大学)