通过联合欧几里得镜面恢复LLM响应中的流形结构
Recovering manifold structure in LLM responses through a joint Euclidean mirror
AI总结:
本文通过联合欧几里得镜面分析LLM响应分布的变化,揭示模型参数与响应分布之间的几何关系,提出估计镜面和推断模型参数的方法,用于预测不同调参下的响应分布。
摘要:
理解黑盒大语言模型的行为并确定有效比较其性能的方法是现代机器学习中的关键任务。我们考虑大型语言模型对特定查询的响应方式,通过分析响应分布在不同调参值下的变化来分析。我们将此问题置于一般数学框架中,将模型参数到响应分布的映射视为一个结构化的概率测度族,并通过不相似度度量赋予其几何结构。我们展示如何通过联合欧几里得镜面将响应分布的不相似度表示为低维欧几里得空间中的点,从而允许对大语言模型进行定性和定量分析,并提供预测不同调参值下响应分布的洞察。我们提出了一种基于响应分布观测样本的镜面估计程序,并证明了其渐近性质。此外,我们还提出了一种统计上一致的程序,用于根据相应响应分布的样本和估计的联合欧几里得镜面推断未知模型参数的值。在大型语言模型的实验设置中,我们发现不同调参值的变化对应于嵌入空间中的不同方向,使得能够估计生成给定响应所使用的调参值。
英文摘要:
Understanding the behavior of black-box large language models and determining effective means of comparing their performance is a key task in modern machine learning. We consider how large language models respond to a specific query by analyzing how the distributions of responses vary over different values of tuning parameters. We frame this problem in a general mathematical setting, treating the mapping from model parameters to response distributions as a structured family of probability measures, endowed with a geometry via a dissimilarity measure. We show how dissimilarities between response distributions can be represented in low-dimensional Euclidean space through a joint Euclidean mirror surface encoding the underlying geometry, which permits both qualitative and quantitative analysis of large language models and provides insight into predicting response distributions for different values of tuning parameters. We propose an estimation procedure for the underlying joint Euclidean mirror based on observed samples from the response distributions, and we prove its asymptotic properties. Additionally, we propose a statistically consistent procedure to infer the value of an unknown model parameter based on samples from the corresponding response distribution and the estimated joint Euclidean mirror. In an experimental setting with large language models, we find that changes in different tuning parameter values correspond to distinct directions in the embedding space, making it possible to estimate the tuning parameters that were used to generate a given response.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。