Add dataset card and link to paper
Browse filesThis PR improves the dataset card for LimiX-2M. It adds YAML metadata, links to the research paper, the official GitHub repository, and the project page. It also includes a sample usage snippet for classification tasks as found in the GitHub documentation.
README.md
CHANGED
|
@@ -1,3 +1,66 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- other
|
| 5 |
+
tags:
|
| 6 |
+
- tabular
|
| 7 |
+
- foundation-model
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
This repository contains the artifacts for **LimiX-2M**, a 2M-parameter tabular foundation model designed to mitigate low-rank collapse and attention bottlenecks in structured data.
|
| 11 |
+
|
| 12 |
+
- **Paper:** [LimiX-2M: Mitigating Low-Rank Collapse and Attention Bottlenecks in Tabular Foundation Models](https://huggingface.co/papers/2606.04485)
|
| 13 |
+
- **GitHub Repository:** [https://github.com/limix-ldm-ai/LimiX](https://github.com/limix-ldm-ai/LimiX)
|
| 14 |
+
- **Project Page:** [https://www.limix.ai/](https://www.limix.ai/)
|
| 15 |
+
|
| 16 |
+
## Model Description
|
| 17 |
+
LimiX-2M utilizes a unified *tokenize-and-route* framework. It expands scalar features into compact localized RBF features (RaBEL) and uses a reordered bidirectional block (S$\rightarrow$N$\rightarrow$F) to align computation with the readout. This architecture allows the model to outperform larger baselines while reducing training and inference costs.
|
| 18 |
+
|
| 19 |
+
## Sample Usage
|
| 20 |
+
|
| 21 |
+
The following example demonstrates how to use the `LimiXPredictor` for a classification task. Note that using the predictor requires the source code from the [GitHub repository](https://github.com/limix-ldm-ai/LimiX).
|
| 22 |
+
|
| 23 |
+
```python
|
| 24 |
+
from sklearn.datasets import load_breast_cancer
|
| 25 |
+
from sklearn.metrics import accuracy_score, roc_auc_score
|
| 26 |
+
from sklearn.model_selection import train_test_split
|
| 27 |
+
from huggingface_hub import hf_hub_download
|
| 28 |
+
import torch
|
| 29 |
+
import numpy as np
|
| 30 |
+
import os
|
| 31 |
+
from inference.predictor import LimiXPredictor
|
| 32 |
+
|
| 33 |
+
# Setup environment
|
| 34 |
+
os.environ["RANK"] = "0"
|
| 35 |
+
os.environ["WORLD_SIZE"] = "1"
|
| 36 |
+
os.environ["MASTER_ADDR"] = "127.0.0.1"
|
| 37 |
+
os.environ["MASTER_PORT"] = "29500"
|
| 38 |
+
|
| 39 |
+
# Load data
|
| 40 |
+
X, y = load_breast_cancer(return_X_y=True)
|
| 41 |
+
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.5, random_state=42)
|
| 42 |
+
|
| 43 |
+
# Download model
|
| 44 |
+
model_file = hf_hub_download(repo_id="stableai-org/LimiX-2M", filename="LimiX-2M.ckpt", local_dir="./cache")
|
| 45 |
+
|
| 46 |
+
# Initialize and predict
|
| 47 |
+
clf = LimiXPredictor(
|
| 48 |
+
device=torch.device('cuda' if torch.cuda.is_available() else 'cpu'),
|
| 49 |
+
model_path=model_file,
|
| 50 |
+
inference_config='config/cls_default_retrieval.json'
|
| 51 |
+
)
|
| 52 |
+
prediction = clf.predict(X_train, y_train, X_test)
|
| 53 |
+
|
| 54 |
+
print("roc_auc_score:", roc_auc_score(y_test, prediction[:, 1]))
|
| 55 |
+
print("accuracy_score:", accuracy_score(y_test, np.argmax(prediction, axis=1)))
|
| 56 |
+
```
|
| 57 |
+
|
| 58 |
+
## Citation
|
| 59 |
+
```bibtex
|
| 60 |
+
@article{limix2m2026,
|
| 61 |
+
title={LimiX-2M: Mitigating Low-Rank Collapse and Attention Bottlenecks in Tabular Foundation Models},
|
| 62 |
+
author={Zhang, Xingxuan and others},
|
| 63 |
+
journal={arXiv preprint arXiv:2606.04485},
|
| 64 |
+
year={2026}
|
| 65 |
+
}
|
| 66 |
+
```
|