Skip to main content
LimiX-2

LimiX: Large Foundation Models for Structured Data (LDMs)

preprint preprint preprint Project Page GitHub HuggingFace ModelScope License

Language   English  | 中文

🚀 News

  • [10 Nov 2026] 🚀 LimiX-2-1016 open-source release. The LimiX-2 weights (LimiX-2-1016.ckpt) are released, and the package can now be installed directly with pip.
  • [16 Sept 2026] 🚀 LimiX-2 open-source release. The LimiX-2 weights (LimiX-2.ckpt) and inference code are released with this repository. A single pretrained model performs classification, regression and missing-value imputation in one forward pass, without task-specific parameter updates. Usage is subject to StableAI LimiX Non-Commercial License. The LimiX-2 technical report is released as well, please check the arxiv archive or LimiX_2_Technical_Report.pdf.
  • [4 June 2026] 🧠 Follow-up LimiX research accepted by ICML! Paper: LimiX-2M. This work extends the original LimiX structured-data foundation model.
  • [10 Nov 2025] 🚀 LimiX-2M lightweight model officially released! Compared with LimiX-16M, this lightweight model substantially reduces GPU memory usage and improves inference speed; the retrieval mechanism is also optimized, further improving model quality while reducing inference time and memory overhead.
  • [3 Sept 2025] 🧠 The LimiX paper is available on arXiv. Paper: arXiv:2509.03505. LimiX is the first structured-data large model for generalist intelligence, and the project is open-sourced under the Apache 2.0 license.
  • [29 Aug 2025] 🚀 LimiX V1.0 officially released. The first stable official release of the LimiX structured-data foundation model.

Available Models

Model Parameters Release date Download link Tasks supported
LimiX-2-1016 400M 10 Nov 2026 LimiX-2-1016.ckpt ✅ cls ✅ reg ✅ imputation
LimiX-2 400M 16 Sept 2026 LimiX-2.ckpt ✅ cls ✅ reg ✅ imputation
LimiX-2M 2M 10 Nov 2025 LimiX-2M.ckpt ✅ cls ✅ reg ✅ imputation
LimiX-16M 16M 29 Aug 2025 LimiX-16M.ckpt ✅ cls ✅ reg ✅ imputation

✨ Introduction

LimiX-2 is the new-generation model of the LimiX family, developed through model and data scaling guided by our previously established scaling laws. LimiX-2 adopts the contextual mechanism network (CMN) paradigm and is pretrained with context-conditional masked modeling (CCMM). CMN shifts the organizing principle of in-context learning from target-centric prediction to mechanism-oriented joint modeling. Rather than centering the network on the p(y | x, D_context) objective of conventional tabular PFNs (prior-fitted networks), it is designed to learn p(x, y | D_context), a context-dependent representation of the joint structure underlying data generation. Pretraining uses synthetic datasets generated by structural causal models (SCMs) spanning diverse graph structures, functional mechanisms, and observation processes. Evaluations on TabArena, TALENT, and BCCO show that LimiX-2 outperforms existing dataset-specific models and tabular foundation models. Beyond predictive performance, the CMN paradigm also endows LimiX-2 with causal awareness: its feature attention encodes direct causal relationships, enabling accurate recovery of the causal skeleton.

Figure 2: Overall structure of LimiX-2
Overall structure of LimiX-2.
Figure 3: Synthetic data generation pipeline for pretraining
Synthetic data generation pipeline for pretraining.

📈 Benchmark Results

➩ Overall Elo

LimiX-2 achieves the highest Elo rating on all three benchmarks, outperforming all compared foundation models and AutoGluon 1.6.

Figure 1: Performance overview on evaluated benchmarks
Performance overview on evaluated benchmarks.

➩ TabArena

On the full TabArena benchmark, LimiX-2 ranks first across all four predictive metrics, attaining an Elo of 1963 (147 points above the runner-up TabFM+), an improvability of 3.6%, an average rank of 5.0, and an aggregated win count of 21.7 (≈4.3× TabFM+).

Model Elo ↑ Improv. ↓ Rank ↓ Wins ↑
LimiX-2-1016 (D) 1963 3.6% 5.0 21.7
TabFM+ 1816 6.4% 9.1 5.1
Causilo (D) 1788 9.1% 10.1 1.3
AutoGluon 1.6 (NC, 4h) 1787 8.8% 10.2 0.9
TabFM (D) 1772 6.7% 10.7 5.0
Mitra-v2 (D) 1768 8.5% 10.9 3.0
EXAONE Tabular (D) 1746 9.7% 11.9 1.5
AutoGluon 1.6 (EX, 4h) 1737 9.4% 12.3 0.8
AutoGluon 1.5 (EX, 4h) 1647 10.4% 16.9 1.0
TabPFN-3 (D) 1631 11.8% 17.9 0.4

LimiX-2 also ranks first on both the classification (38 datasets, Table 3) and regression (13 datasets, Table 4) subsets:

Split Elo ↑ Improv. ↓ Rank ↓ Wins ↑ Win Rate ↑
Classification 1917 4.3% 6.0 10.6 94.5%
Regression 2206 0.6% 3.8 8.3 96.9%
Figure 4: Performance on the TabArena benchmark
Performance on the TabArena benchmark. Baseline results cover default, tuned, and tuned-plus-ensembled configurations; LimiX-2 under the default configuration attains an Elo of 1963, outperforming all compared foundation models and AutoGluon under its noncommercial 4h configuration.
Figure 5: Pairwise win rates on the TabArena benchmark
Pairwise win rates on the TabArena benchmark.

➩ TALENT

On TALENT, LimiX-2 attains an overall Elo of 1510 (39 points above TabFM) and the highest Elo on classification, regression, and binary classification, with a multiclass Elo of 1517 (TabFM leads this split at 1518). Improvability is 6.75%, and the aggregated win count is 89.5 (≈1.9× TabFM).

Model Elo CLS REG Binary Multi Improv. ↓ Wins ↑
LimiX-2-1016 1510 1466 1621 1444 1517 6.75% 89.5
TabFM 1471 1449 1531 1417 1518 9.39% 46.6
AutoGluon 1.6 1438 1380 1583 1339 1468 11.51% 47.8
EXAONE Tabular 1393 1357 1479 1369 1341 15.00% 12.3
TabPFN-3 1364 1331 1442 1333 1332 15.89% 15.1
LimiX-16M 1228 1210 1269 1217 1199 20.35% 6.4
CatBoost 1094 1095 1094 1107 1073 26.86% 4.3
RandomForest 1000 1000 1000 1000 1000 30.08% 3.8
Figure 6: Average-rank comparison on the TALENT benchmark
Average-rank comparison on the TALENT benchmark. LimiX-2 attains the lowest average rank on binary classification, multiclass classification, and regression (4.62, 3.91, and 3.88).
Figure 7: Pairwise win rates on the TALENT benchmark
Pairwise win rates on the TALENT benchmark.

➩ BCCO

On BCCO, LimiX-2 ranks first overall with an Elo of 1439 (64 / 71 / 209 points above AutoGluon 1.6 (EX, 4h), TabFM, and LimiX-16M), an improvability of 6.79%, and an aggregated win count of 51.2 (≈3.3× TabFM).

Model Elo CLS REG Binary Multi Improv. ↓ Wins ↑
LimiX-2-1016 1439 1320 1902 1269 1447 6.79% 51.2
AutoGluon 1.6 1375 1269 1781 1199 1445 9.88% 23.6
TabFM 1368 1259 1786 1212 1376 12.22% 15.3
EXAONE Tabular 1343 1253 1689 1221 1334 13.24% 7.8
TabPFN-3 1295 1188 1692 1154 1275 14.40% 5.9
LimiX-16M 1230 1194 1385 1172 1253 16.32% 6.3
CatBoost 1139 1100 1286 1095 1118 21.72% 4.6
RandomForest 1000 1000 1000 1000 1000 26.72% 2.6
Figure 9: Average-rank comparison on the BCCO benchmark
Average-rank comparison on the BCCO benchmark. LimiX-2 attains the lowest average rank on binary classification, multiclass classification, and regression.
Figure 10: Pairwise win rates on the BCCO benchmark
Pairwise win rates on the BCCO benchmark.

➩ Scaling Law

The scaling study evaluates LimiX-2 configurations ranging from 12.5M to 406.2M parameters and extrapolates the fitted log-linear trend toward the billion-parameter regime. Across all five evaluation series, downstream performance follows a clear log-linear trend with model size.

Evaluation Task α (Elo @100M) β (Elo / doubling) R² RMSE
TabArena 1950.46 45.73 0.9570 16.60
TALENT classification 1434.61 26.37 0.9530 10.04
TALENT regression 1618.26 19.07 0.8848 11.79
BCCO classification 1304.28 16.76 0.9038 9.37
BCCO regression 1869.14 35.19 0.9128 18.64
Figure 12: Parameter scaling on TabArena
Parameter scaling on TabArena. The solid line connects the observed LimiX-2 scale points, while the dashed line shows the log-linear fit extrapolated to 2B parameters.
Figure 13: Parameter scaling on TALENT classification and regression
Parameter scaling on TALENT classification and regression.
Figure 14: Parameter scaling on BCCO classification and regression
Parameter scaling on BCCO classification and regression.

➤ Tutorials

➩ Installation

Python >= 3.12 is required. The PyPI distribution name is ldm-limix. The import package is ldm_limix: from ldm_limix import LimiXPredictor. torch / flash-attn must match your local CUDA; you can install them in Step 1 (optional).

Step 1 (optional): Install PyTorch and flash-attn

Recommended versions (check constraints.txt): torch==2.9.1, torchvision==0.24.1, torchaudio==2.9.1. Install a CUDA-matched build from pytorch.org, for example:

pip install torch==2.9.1 torchvision==0.24.1 torchaudio==2.9.1

Then download a prebuilt wheel from flash-attention Releases that matches your Python / CUDA / torch versions (it must align with torch 2.9.1 above; the filename below is illustrative):

wget -O flash_attn.whl https://github.com/Dao-AILab/flash-attention/releases/download/v2.8.1/flash_attn-2.8.1+cu12torch2.9cxx11abiTRUE-cp312-cp312-linux_x86_64.whl
pip install flash_attn.whl

Step 2: Install ldm-limix

From PyPI:

python -m pip install ldm-limix

From a local checkout, editable install:

git clone https://github.com/limix-ldm-ai/LimiX.git
cd LimiX
python -m pip install -e .

Both commands install LimiX-infer and make from ldm_limix import LimiXPredictor work from any working directory. If torch==2.9.1 was already installed in Step 1, that build is reused.


➤ Inference

LimiX supports classification, regression, and missing-value imputation. The public entry point is ldm_limix.LimiXPredictor, which routes to v1_0 / v2_0 from the checkpoint architecture version. Use a config that matches the model (LimiX-2 / V2.0 uses *_v2.json).

➩ Command-line: LimiX-infer

After pip install ldm-limix (or pip install -e . from a checkout), LimiX-infer is the same entry as python -m ldm_limix.infer. Required flags: --task_type, --data_dir, --model_path. If --inference_config_path is omitted, a packaged default config is chosen from the task and checkpoint version (*_v2.json for V2.0).

--data_dir is a benchmark root: one subdirectory per dataset. Check the public bcco_cls / bcco_reg layout. Subdirectories without the required CSVs are skipped.

<data_dir>/
  <dataset_name>/
    <dataset_name>_train.csv
    <dataset_name>_test.csv
    <dataset_name>_0.05.csv    # Feature_imputation only; suffix follows --mask_ratio (default 0.05)

Each CSV has a header. The last column is the target (label on classification sets; the regression target value on regression sets); all other columns are features.

LimiX-infer --help

Classification / regression / missing-value imputation:

LimiX-infer --task_type Classification --data_dir /path/to/class202512_527 --model_path /path/to/LimiX-2.ckpt --gpuid 0 --save_name limix_cls
LimiX-infer --task_type Regression --data_dir /path/to/reg202512_288 --model_path /path/to/LimiX-2.ckpt --gpuid 0 --save_name limix_reg
LimiX-infer --task_type Feature_imputation --data_dir /path/to/mvi_data --model_path /path/to/LimiX-2.ckpt --gpuid 0 --save_name limix_mvi

--task_type also accepts aliases cls / reg / imputation. Common optional flags:

Flag Description
--inference_config_path JSON config path (packaged default if omitted)
--save_name Result directory name
--device cuda (default) or cpu
--gpuid GPU id(s), default 0; ignored when --device cpu
--gpu_num_per_predictor GPUs per predictor (V2.0 only)
--autobatch Enable autobatch
--show_progress Show progress
--seed Random seed

➩ Interface description

Model Creation

from ldm_limix import LimiXPredictor

class LimiXPredictor:
    def __init__(self,
                 device: torch.device,
                 model_path: str,
                 inference_config: dict | list | str,
                 mix_precision: bool = True,
                 outlier_remove_std: float = 12,
                 softmax_temperature: float = 0.9,
                 average_before_softmax: bool = True,
                 categorical_features_indices: List[int] | None = None,
                 inference_with_DDP: bool = False,
                 use_data_cache: bool = False,
                 seed: int = 0)
Parameter Data Type Description
device torch.device Inference device; cuda recommended
model_path str Path to the checkpoint
inference_config dict / list / str Inference config (dict / list / JSON path)
mix_precision bool Whether to use mixed precision
outlier_remove_std float Std-dev multiplier for outlier clipping
softmax_temperature float Temperature for the softmax operator; must be > 0
average_before_softmax bool Bucket regression: average before softmax
categorical_features_indices list Indices of categorical columns
inference_with_DDP bool Whether to enable DDP (keep False on V2.0)
use_data_cache bool Whether to cache preprocessing results
seed int Seed for random states

Predict

def predict(self,
            x_train: np.ndarray,
            y_train: np.ndarray,
            x_test: np.ndarray,
            task_type: Literal["Classification", "Regression", "Feature_imputation"] = "Classification",
            unique_dataset_name: str | None = None) -> np.ndarray:
Parameter Data Type Description
x_train np.ndarray Training features, shape (n_train, n_features)
y_train np.ndarray Training targets, shape (n_train,)
x_test np.ndarray Query features; columns must align with x_train
task_type str "Classification" (default), "Regression", or "Feature_imputation"
unique_dataset_name str Optional dataset id for the preprocess cache

Return value:

  • Classification: class probabilities of shape (n_query, n_classes); rows sum to 1
  • Regression: predictions of shape (n_query,) (V2.0 returns the original target scale; no manual denormalization)
  • Missing-value imputation: the imputed feature matrix

➩ Inference configuration files

Configuration File Name Models Description
cls_default_noretrieval_v2.json LimiX-2 / V2.0 Default classification (no retrieval)
reg_default_noretrieval_v2.json LimiX-2 / V2.0 Default regression (no retrieval)
reg_default_noretrieval_MVI_v2.json LimiX-2 / V2.0 Default missing-value imputation
cls_default_retrieval.json LimiX-16M / LimiX-2M Classification + retrieval; better accuracy
cls_default_noretrieval.json LimiX-16M / LimiX-2M Classification, no retrieval; faster
reg_default_retrieval.json LimiX-16M / LimiX-2M Regression + retrieval; better accuracy
reg_default_noretrieval.json LimiX-16M / LimiX-2M Regression, no retrieval; faster
reg_default_noretrieval_MVI.json LimiX-16M / LimiX-2M Missing-value imputation

➩ Classification

from sklearn.datasets import load_breast_cancer
from sklearn.metrics import accuracy_score, roc_auc_score
from sklearn.model_selection import train_test_split
from huggingface_hub import hf_hub_download
import numpy as np
import os, sys
import torch

os.environ["RANK"] = "0"
os.environ["WORLD_SIZE"] = "1"
os.environ["MASTER_ADDR"] = "127.0.0.1"
os.environ["MASTER_PORT"] = "29500"

ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
if ROOT_DIR not in sys.path:
    sys.path.insert(0, ROOT_DIR)
from ldm_limix import LimiXPredictor

X, y = load_breast_cancer(return_X_y=True)
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.5, random_state=42)

model_file = hf_hub_download(repo_id="stable-ai/LimiX-2", filename="LimiX-2.ckpt", local_dir="./cache")

clf = LimiXPredictor(
    device=torch.device("cuda"),
    model_path=model_file,
    inference_config=os.path.join(ROOT_DIR, "ldm_limix", "config", "cls_default_noretrieval_v2.json"),
)
prediction = clf.predict(X_train, y_train, X_test, task_type="Classification")

print("roc_auc_score:", roc_auc_score(y_test, prediction[:, 1]))
print("accuracy_score:", accuracy_score(y_test, np.argmax(prediction, axis=1)))

For the full example, please check examples/demo_classification.py

➩ Regression

from functools import partial

from sklearn.datasets import load_diabetes
from sklearn.model_selection import train_test_split
from sklearn.metrics import r2_score
from huggingface_hub import hf_hub_download
import torch

try:
    from sklearn.metrics import root_mean_squared_error as mean_squared_error
except:
    from sklearn.metrics import mean_squared_error
    mean_squared_error = partial(mean_squared_error, squared=False)
import os, sys

os.environ["RANK"] = "0"
os.environ["WORLD_SIZE"] = "1"
os.environ["MASTER_ADDR"] = "127.0.0.1"
os.environ["MASTER_PORT"] = "29500"

ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
if ROOT_DIR not in sys.path:
    sys.path.insert(0, ROOT_DIR)
from ldm_limix import LimiXPredictor

X, y = load_diabetes(return_X_y=True)
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.33, random_state=42)

model_path = hf_hub_download(repo_id="stable-ai/LimiX-2", filename="LimiX-2.ckpt", local_dir="./cache")

model = LimiXPredictor(
    device=torch.device("cuda"),
    model_path=model_path,
    inference_config=os.path.join(ROOT_DIR, "ldm_limix", "config", "reg_default_noretrieval_v2.json"),
)
y_pred = model.predict(X_train, y_train, X_test, task_type="Regression")

rmse = mean_squared_error(y_test, y_pred)
r2 = r2_score(y_test, y_pred)

print(f"RMSE: {rmse}")
print(f"R2: {r2}")

For the full example, please check examples/demo_regression.py

➩ Missing value imputation

model = LimiXPredictor(
    device=torch.device("cuda"),
    model_path=model_path,
    inference_config=os.path.join(ROOT_DIR, "ldm_limix", "config", "reg_default_noretrieval_MVI_v2.json"),
)
reconstructed_X = model.predict(X_train, y_train, x_test_with_nan, task_type="Feature_imputation")

For the full example, please check examples/demo_missing_value_imputation.py

📃 License

The code in this repository is licensed under the Stable AI Technology Co., Ltd. License, Version 1.0 (September 2026), which is derived from the Apache License, Version 2.0: Sections 1–9 reproduce the terms and conditions of Apache 2.0, with the definition of "License" in Section 1 modified solely to incorporate the additional provisions of Section 10 (Additional Attribution and Model Naming Requirements). Third-party code is subject to its own licenses and attribution requirements; please check LICENSE.txt. Model weights are licensed separately:

📝 Citation

@misc{zhang2026limix2contextualmechanismnetwork,
  title={LimiX-2: A Contextual Mechanism Network Towards General Structured-Data Intelligence}, 
  author={Xingxuan Zhang and Gang Ren and Hao Yuan and Hao Zou and Hongze Tan and Hui Wang and Jianhao Song and Jiansheng Li and Jiayao Zhang and Jinghan Zhang and Kaifang Li and Lang Mo and Li Mao and Mingchao Hao and Nuo Xu and Rui Ding and Ruiji Zhang and Shuyang Li and Siyu Mei and Tianyang Zhang and Weiyang Mu and Yancheng Dong and Yongxian Wei and Yuan Xue and Yuanrui Wang and Yue He and Zijia Yang and Ziyun Li and Dongzhe Li and Fuqiang Wang and Jiandong Liu and Jiawei Chen and Jiaxin Du and Kaijie Cheng and Kehan Li and Lei Sun and Linjun Zhou and Ningbo Dai and Qi Wang and Renzhe Xu and Shaoxing Du and Shumeng Yang and Wang Lu and Wenjing Chu and Xiannan Huang and Xiaoyu Lin and Xing Ai and Xinyan Han and Xuanyue Li and Xuanyue Su and Xukun Zhang and Yan Lu and Yaxin Zhang and Yi Qin and Yifei Huang and Yihan Xu and Yongle Lv and Yuanyuan Jiang and Yushan Han and Peng Cui},
  year={2026},
  eprint={2609.17488},
  archivePrefix={arXiv},
  primaryClass={cs.AI},
  url={https://arxiv.org/abs/2609.17488}, 
}

@article{wang2026limix,
  title={LimiX-2M: Mitigating Low-Rank Collapse and Attention Bottlenecks in Tabular Foundation Models},
  author={Wang, Yuanrui and Zhang, Xingxuan and Yu, Han and Hao, Mingchao and Ren, Gang and Yuan, Hao and Mao, Li and Zhang, Yunjia and Yuan, Chun and Cui, Peng},
  journal={arXiv preprint arXiv:2606.04485},
  year={2026}
}

@article{zhang2025limix,
  title={Limix: Unleashing structured-data modeling capability for generalist intelligence},
  author={Zhang, Xingxuan and Ren, Gang and Yu, Han and Yuan, Hao and Wang, Hui and Li, Jiansheng and Wu, Jiayun and Mo, Lang and Mao, Li and Hao, Mingchao and others},
  journal={arXiv preprint arXiv:2509.03505},
  year={2025}
}

Metadata

Release files for ldm-limix 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ldm-limix 2.0.0
File Size Uploaded Provenance Actions
ldm_limix-2.0.0.tar.gz 260.9 kB Without provenance Details for ldm_limix-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ldm-limix 2.0.0
File Interpreter ABI Platform Actions
ldm_limix-2.0.0-py3-none-any.whl Python 3 none any Details for ldm_limix-2.0.0-py3-none-any.whl

Total release size: 534.1 kB

Release files / ldm_limix-2.0.0.tar.gz

Download URL ldm_limix-2.0.0.tar.gz
Size 260.9 kB
Tags Source
SHA-256 checksum
How to use checksums
33ee97f7f4f0c8c9f1887af6b71f38d1d804be18786e8250e883f89359a02604
BLAKE2b-256 checksum
How to use checksums
a98a2bfad6432d792c40018c8a9cb93e831d695e1584306a66e403f37b8d93b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / ldm_limix-2.0.0-py3-none-any.whl

Download URL ldm_limix-2.0.0-py3-none-any.whl
Size 273.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8eccc295e4b5587e451b7e1f97e8eb776926e09691b902ed878a28820baf32bf
BLAKE2b-256 checksum
How to use checksums
eb0ee6edf2a8f8289f30bec1a2a17bc8aa61234946a98a0b392b19ab74d8bcf5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for ldm-limix 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page