LCM-12.2M

Large Causal Models (LCMs) for temporal causal discovery.

From the paper Large Causal Models for Temporal Causal Discovery.

Usage

pip install git+https://github.com/kougioulis/LCM
import torch
from lcm_pytorch.modules.lcm_module import LCMModule
from lcm_pytorch.utils.utils import lagged_batch_crosscorrelation

model = LCMModule.from_pretrained("nkougioulis/LCM-12.2M").eval()

# X: time series of shape (T, n_vars), padded to n_vars=12 & T=500
X = X.unsqueeze(0)
with torch.no_grad():
    # pred: discovered lagged adjacency tensor of shape (1, 12, 12, 3)
    pred = torch.sigmoid(model((X, lagged_batch_crosscorrelation(X, 3))))

For more information, check out README.md from the paper's repo.

Citation

@inproceedings{kougioulis2026large,
  title={Large causal models for temporal causal discovery},
  author={Kougioulis, Nikolaos and Gkorgkolis, Nikolaos and Wang, MingXue and Caglayan, Bora and Simionato, Dario and Tonon, Andrea and Tsamardinos, Ioannis},
  booktitle={Joint European Conference on Machine Learning and Knowledge Discovery in Databases},
  pages={414--429},
  year={2026},
  organization={Springer}
}
Downloads last month
33
Safetensors
Model size
12.5M params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Paper for nkougioulis/LCM-12.2M