arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.17609cs.CL
收藏

语言模型所知却不说:非生成性先验提取以提升泛化能力

What Language Models Know But Don't Say: Non-Generative Prior Extraction for Generalization

Michigan State University(密歇根州立大学)

Sara Rezaeimanesh, Kundan Thind, Farzan Siddiqui, Mohammad M. Ghassemi

AI总结:

本文提出LoID方法,通过直接访问语言模型的token级预测,提取信息丰富的先验分布用于贝叶斯逻辑回归,以解决小数据集下模型泛化能力不足的问题。

摘要:

在医学和金融等领域,大规模标记数据成本高且难以获取,导致模型在小数据集上训练后难以泛化到真实世界。大型语言模型包含多年跨这些领域的研究知识。我们提出LoID(Logit-Informed Distributions),一种确定性方法,通过直接访问其token级预测,提取用于贝叶斯逻辑回归的信息丰富先验分布。我们通过精心构造的句子探测模型对正负影响方向的置信度,测量模型在不同表达方式下对某一特征影响的偏好一致性,从而提取模型对每个特征影响的强度和可靠性。我们在具有协变量偏移的合成非分布(OOD)设置下评估LoID于十个真实世界表格数据集,其中训练数据仅代表人口的子集。我们比较了我们的方法与(1)标准无信息先验、(2)AutoElicit,一种通过文本补全生成先验的最新方法、(3)LLMProcesses,一种通过上下文学习生成数值预测的方法、(4)一个基于完整数据集拟合逻辑回归的oracle式上界。我们通过曲线下面积(AUC)评估性能。在所有数据集中,LoID显著优于基于OOD数据训练的逻辑回归,恢复相对于oracle模型性能差距的59%。LoID在10个数据集中的8个上优于AutoElicit和LLMProcesses,同时提供了一种可重复且计算高效的整合LLM知识到贝叶斯推断的机制。

英文摘要:

In domains like medicine and finance, large-scale labeled data is costly and often unavailable, leading to models trained on small datasets that struggle to generalize to real-world populations. Large language models contain extensive knowledge from years of research across these domains. We propose LoID (Logit-Informed Distributions), a deterministic method for extracting informative prior distributions for Bayesian logistic regression by directly accessing their token-level predictions. Rather than relying on generated text, we probe the model's confidence in opposing semantic directions (positive vs. negative impact) through carefully constructed sentences. By measuring how consistently the LLM favors one direction across diverse phrasings, we extract the strength and reliability of the model's belief about each feature's influence. We evaluate LoID on ten real-world tabular datasets under synthetic out-of-distribution (OOD) settings characterized by covariate shift, where the training data represents only a subset of the population. We compare our approach against (1) standard uninformative priors, (2) AutoElicit, a recent method that prompts LLMs to generate priors via text completions, (3) LLMProcesses, a method that uses LLMs to generate numerical predictions through in-context learning and (4) an oracle-style upper bound derived from fitting logistic regression on the full dataset. We assess performance using Area Under the Curve (AUC). Across datasets, LoID significantly improves performance over logistic regression trained on OOD data, recovering up to \textbf{59\%} of the performance gap relative to the oracle model. LoID outperforms AutoElicit and LLMProcessesc on 8 out of 10 datasets, while providing a reproducible and computationally efficient mechanism for integrating LLM knowledge into Bayesian inference.

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

↑