Centroid Adapter — splade
Lightweight BottleneckResidualAdapter trained on top of
splade embeddings to produce
representation-invariant table embeddings.
Architecture
z = e + α · Up( Dropout( GELU( Down( LN(e) ) ) ) )
| Hyperparameter |
Value |
Embedding dim d |
30522 |
Bottleneck rank r |
512 |
Residual scale α |
0.01 |
| Use bias |
True |
Trained on: WTQ, WIKISQL
Usage
import torch
from huggingface_hub import hf_hub_download
import json
adapter = BottleneckResidualAdapter.from_pretrained("KBhandari11/centroid-adapter-subset-splade")
e = torch.randn(1, 30522)
z = adapter(e)
from safetensors.torch import load_file
weights_path = hf_hub_download("KBhandari11/centroid-adapter-subset-splade", "model.safetensors")
cfg_path = hf_hub_download("KBhandari11/centroid-adapter-subset-splade", "config.json")
with open(cfg_path) as f:
cfg = json.load(f)
adapter = BottleneckResidualAdapter(**cfg)
adapter.load_state_dict(load_file(weights_path))
adapter.eval()
Research Paper
Improving Robustness of Tabular Retrieval via Representational Stability