arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.16714cs.CLcs.AIcs.LGq-bio.NC
收藏

通过向LLM提问来构建可解释的嵌入

Crafting Interpretable Embeddings by Asking LLMs Questions

UC Berkeley(加州大学伯克利分校);Microsoft Research(微软研究院);Cornell University(康奈尔大学);UT Austin(德克萨斯大学奥斯汀分校)

Vinamra Benara, Chandan Singh, John X. Morris, Richard Antonello, Ion Stoica, Alexander G. Huth, Jianfeng Gao

AI总结:

本研究提出QA-Emb,通过向LLM提问生成可解释嵌入,用于预测fMRI反应,显著优于基线且问题少,并探索了高效近似与NLP应用。

摘要:

大型语言模型(LLMs)已迅速改善了日益增长的自然语言处理任务中的文本嵌入。然而,它们的不可解释性及其向神经科学等科学领域的扩散,催生了对可解释性的日益增长的需求。在此,我们探究是否可以通过LLM提示来获得可解释的嵌入。我们引入了问答嵌入(QA-Emb),这是一种嵌入,其中每个特征代表向LLM提出的一个是/否问题的答案。训练QA-Emb简化为选择一组基础问题,而非学习模型权重。我们使用QA-Emb来灵活生成可解释的模型,用于预测fMRI体素对语言刺激的反应。QA-Emb显著优于一个已建立的可解释基线,且所需问题数量极少。这为构建灵活的特征空间铺平了道路,该空间可以具体化并评估我们对语义大脑表征的理解。我们还发现,QA-Emb可以通过一个高效的模型进行有效近似,并探索了其在简单NLP任务中的更广泛应用。

英文摘要:

Large language models (LLMs) have rapidly improved text embeddings for a growing array of natural-language processing tasks. However, their opaqueness and proliferation into scientific domains such as neuroscience have created a growing need for interpretability. Here, we ask whether we can obtain interpretable embeddings through LLM prompting. We introduce question-answering embeddings (QA-Emb), embeddings where each feature represents an answer to a yes/no question asked to an LLM. Training QA-Emb reduces to selecting a set of underlying questions rather than learning model weights. We use QA-Emb to flexibly generate interpretable models for predicting fMRI voxel responses to language stimuli. QA-Emb significantly outperforms an established interpretable baseline, and does so while requiring very few questions. This paves the way towards building flexible feature spaces that can concretize and evaluate our understanding of semantic brain representations. We additionally find that QA-Emb can be effectively approximated with an efficient model, and we explore broader applications in simple NLP tasks.

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

↑