Downloads · 30 days
4
7% of all-time downloads
Kunyang-YU/TWT-RL
TWT-RL is a machine learning model from Kunyang-YU. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Thinking with Tables (TWT) is a multi-modal model family trained for Tabular-Vision Multi-Modal Understanding (TVMU): jointly using table-related images, text, and executable Python in a sandbox to solve multi-modal t…
Downloads · 30 days
4
7% of all-time downloads
All-time downloads
59
Public
Parameters
770K
17.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors17.5 GB · 100%
From the Hugging Face model README
Thinking with Tables (TWT) is a multi-modal model family trained for Tabular-Vision Multi-Modal Understanding (TVMU): jointly using table-related images, text, and executable Python in a sandbox to solve multi-modal table question answering and multi-modal table prediction tasks.
The approach is program-aided neuro-symbolic reasoning: the model emits structured outputs (<analy>, <code>, <answer>), code is executed in a controlled environment, and results are fed back in <code_result> for multi-turn reasoning until a final answer is produced.
| Artifact | Hugging Face link |
|---|---|
| TWT (RL / GRPO) | Kunyang-YU/TWT-RL |
| TWT (SFT) | Kunyang-YU/TWT-SFT |
| Training data | Kunyang-YU/TWT-Training |
| GitHub | kunyang-YU/Thinking-with-Tables |
Paper: Thinking with Tables: Enhancing Multi-Modal Tabular Understanding via Neuro-Symbolic Reasoning (arXiv:2603.24004, 2026).
Code: See the project README for clone URL, environment setup, ms-swift training scripts, and evaluation pipelines.
<analy> / <code> / <answer> protocol; <code_result> is masked during training (loss on model-generated tokens only).default+code loss scaling).Approximate data scale (from the paper / README): SFT on the order of ~1.5K table QA + ~1.2K table prediction + ~5K additional samples; GRPO on the order of ~0.5K table QA + ~0.4K table prediction (exact counts may vary by release).
Primary use cases
ResNet50Predict for vision features) plus tabular code to produce a classification or regression answer.Out-of-scope / not guaranteed
The model is expected to produce parseable segments:
| Tag | Role |
|---|---|
<analy>...</analy> | Reasoning |
<code>...</code> | Python for the sandbox |
<code_result>...</code_result> | Filled by the system after execution (not model-generated) |
<answer>...</answer> | Final answer |
Inference is typically multi-turn: generate → execute <code> → append <code_result> → repeat until <answer>.
tools.py / ResNet50Predict(task, image_path) interface in the sandbox path.Important: At inference time the full table is usually not pasted into the prompt; the model must read the file via generated code using the provided path.
@article{yu2026thinking,
title={Thinking with Tables: Enhancing Multi-Modal Tabular Understanding via Neuro-Symbolic Reasoning},
author={Yu, Kun-Yang and Zhou, Zhi and Tian, Shi-Yu and Yang, Xiao-Wen and Jia, Zi-Yi and Yang, Ming and Cheng, Zi-Jian and Guo, Lan-Zhe and Li, Yu-Feng},
journal={arXiv preprint arXiv:2603.24004},
year={2026}
}
This model is trained based on Qwen3VL, thanks!
Questions about paths or reproduction: open an issue in the project repository or email [email protected] (as listed in the main README).