TabuLLM: Feature extraction and interpretation of text columns in tabular data using large language models

TabuLLM is a Python package for extracting and interpreting LLM-based text features from datasets that combine free-text and structured columns. Motivated by a clinical study predicting postoperative acute kidney injury in paediatric cardiopulmonary bypass patients from electronic health records, the package integrates large language model (LLM) embeddings into scikit-learn -compatible pipelines for tabular datasets containing text columns alongside structured features. The package provides three core components: 1) TextColumnTransformer wraps the LangChain embedding ecosystem in a scikit-learn transformer interface with native multi-column handling; 2) GMMFeatureExtractor extends scikit-learn ’s Gaussian mixture model with a transform() method that returns per-cluster log-joint features for dimensionality reduction; and 3) ClusterExplainer generates natural language cluster descriptions using LLMs with recursive summarization, optional outcome-based statistical testing, and narrative synthesis. On a fraud detection benchmark (4.8% fraud rate), incorporating text features via TabuLLM improves PR-AUC from 0.64 (structured features only) to 0.82 (text concatenation), with per-column stacking ensembles reaching 0.91. TabuLLM thus lowers the barrier to text–tabular integration: state-of-the-art embeddings become a drop-in addition to existing scikit-learn pipelines, with interpretability tools to understand what the text features capture. The package is available via pip install tabullm .

Authors

Institutions

Publication Details

Journal
SoftwareX
Published
2026-06-17
DOI
https://doi.org/10.1016/j.softx.2026.102810
Primary Topic
Topic Modeling
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

TabuLLM: Feature extraction and interpretation of text columns in tabular data using large language models

Alireza S. Mahani, Alex Bottle, Mansour T.A. Sharabiani
SoftwareX
Topic Modeling
article

TabuLLM: Feature extraction and interpretation of text columns in tabular data using large language models

Alireza S. Mahani, Alex Bottle, Mansour T.A. Sharabiani
article en

Abstract

TabuLLM is a Python package for extracting and interpreting LLM-based text features from datasets that combine free-text and structured columns. Motivated by a clinical study predicting postoperative acute kidney injury in paediatric cardiopulmonary bypass patients from electronic health records, the package integrates large language model (LLM) embeddings into scikit-learn -compatible pipelines for tabular datasets containing text columns alongside structured features. The package provides three core components: 1) TextColumnTransformer wraps the LangChain embedding ecosystem in a scikit-learn transformer interface with native multi-column handling; 2) GMMFeatureExtractor extends scikit-learn ’s Gaussian mixture model with a transform() method that returns per-cluster log-joint features for dimensionality reduction; and 3) ClusterExplainer generates natural language cluster descriptions using LLMs with recursive summarization, optional outcome-based statistical testing, and narrative synthesis. On a fraud detection benchmark (4.8% fraud rate), incorporating text features via TabuLLM improves PR-AUC from 0.64 (structured features only) to 0.82 (text concatenation), with per-column stacking ensembles reaching 0.91. TabuLLM thus lowers the barrier to text–tabular integration: state-of-the-art embeddings become a drop-in addition to existing scikit-learn pipelines, with interpretability tools to understand what the text features capture. The package is available via pip install tabullm .

SoftwareXVol. 35
Imperial College London (GB)
Quality Education
Openalex Percentile: Top 5%
Topic Modeling
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.