Skip to main content
QUICK REVIEW

[论文解读] Large Language Models Can Automatically Engineer Features for Few-Shot Tabular Learning

Sungwon Han, Jinsung Yoon|arXiv (Cornell University)|Apr 15, 2024
Topic ModelingComputer Science被引用 3
一句话总结

FeatLLM 是一种新颖的少样本表格学习上下文学习框架,利用大语言模型(LLMs)自动构建高质量的基于规则的特征。通过从 LLM 推断的规则生成二值特征,并使用线性回归等简单下游模型,FeatLLM 在显著降低推理成本的同时,无需微调或对每个样本调用 LLM,即可实现最先进性能。

ABSTRACT

Large Language Models (LLMs), with their remarkable ability to tackle challenging and unseen reasoning problems, hold immense potential for tabular learning, that is vital for many real-world applications. In this paper, we propose a novel in-context learning framework, FeatLLM, which employs LLMs as feature engineers to produce an input data set that is optimally suited for tabular predictions. The generated features are used to infer class likelihood with a simple downstream machine learning model, such as linear regression and yields high performance few-shot learning. The proposed FeatLLM framework only uses this simple predictive model with the discovered features at inference time. Compared to existing LLM-based approaches, FeatLLM eliminates the need to send queries to the LLM for each sample at inference time. Moreover, it merely requires API-level access to LLMs, and overcomes prompt size limitations. As demonstrated across numerous tabular datasets from a wide range of domains, FeatLLM generates high-quality rules, significantly (10% on average) outperforming alternatives such as TabLLM and STUNT.

研究动机与目标

  • 解决现有基于 LLM 的表格学习方法在低样本场景下的高计算成本和训练依赖问题。
  • 克服 LLM 推理中提示长度限制和仅支持 API 访问带来的局限性。
  • 通过将特征工程与预测解耦,仅使用简单下游模型,实现出色的高效、低延迟推理。
  • 利用 LLM 的推理能力和先验知识,生成高质量、可解释的特征,且无需微调。
  • 通过特征袋装和集成技术缓解提示大小限制,优化特征工程流程。

提出的方法

  • 使用少样本示例进行上下文学习,引导 LLM 推断能区分目标类别的决策规则。
  • 将生成的规则解析为可执行代码,应用于表格数据,生成指示规则满足情况的二值特征。
  • 应用特征袋装技术,通过采样特征和样本子集来减少提示长度并提高鲁棒性。
  • 在生成的二值特征上训练轻量级下游模型(如线性回归),以估计类别概率。
  • 通过多次重复特征工程过程,使用不同的袋装子集,采用集成学习提升泛化能力。
  • 在特征生成后,仅保留下游模型进行推理,消除推理阶段对每个样本的 LLM 调用。
Figure 1: Illustration of FeatLLM . FeatLLM extracts rules for each class, utilizing prior knowledge and few-shot examples. These rules are then parsed and applied to create binary features for data samples. A linear layer is trained on these binary features to estimate class likelihoods. This proce
Figure 1: Illustration of FeatLLM . FeatLLM extracts rules for each class, utilizing prior knowledge and few-shot examples. These rules are then parsed and applied to create binary features for data samples. A linear layer is trained on these binary features to estimate class likelihoods. This proce

实验结果

研究问题

  • RQ1LLM 能否在不微调的情况下有效生成高质量、基于规则的表格数据特征?
  • RQ2将 LLM 作为特征工程师,是否相比端到端 LLM 预测能带来更好的少样本性能?
  • RQ3在基于 LLM 的特征工程中,能否通过特征袋装和集成策略缓解提示长度限制?
  • RQ4所提出的框架是否能在仅通过 API 访问 LLM 且无微调的情况下保持高性能?
  • RQ5FeatLLM 在低样本设置下与 SOTA 基线方法(如 TabLLM 和 STUNT)相比表现如何?

主要发现

  • 在 13 个多样化的表格数据集上,FeatLLM 在少样本学习设置下平均比现有方法(如 TabLLM 和 STUNT)高出 10%。
  • 在 NHANES 数据集上,FeatLLM 在 64 个样本下达到 99.79% 的准确率,显著优于其他方法在相同条件下的表现。
  • 在 Sequence-type 数据集上,FeatLLM 在 32 个样本下达到 99.67% 的准确率,展现出跨领域的强大泛化能力。
  • 即使在 Myocardial(64 个样本下准确率为 61.47%)和 Credit-g(64 个样本下准确率为 66.43%)等具有挑战性的数据集上,FeatLLM 仍保持高性能,而其他模型表现欠佳。
  • 特征袋装和集成策略有效降低了提示长度并提升了鲁棒性,使模型在输入大小变化时仍能保持稳定性能。
  • 通过消除每个样本的 LLM 推理,FeatLLM 实现了低延迟推理,使其适用于受限 LLM API 的实际部署场景。
Figure 4: Performance comparison summaries among conventional tabular baselines and FeatLLM . Averaged AUC over all datasets across the number of shots are reported.
Figure 4: Performance comparison summaries among conventional tabular baselines and FeatLLM . Averaged AUC over all datasets across the number of shots are reported.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。