--- license: other license_name: upstream-undeclared license_link: https://huggingface.co/datasets/weikaih/imaginative-perception-token-pet-ipt pretty_name: "Spatial MMCoT v1 - ipt_pet" language: - en task_categories: - visual-question-answering - image-to-image tags: - spatial-reasoning - multimodal-chain-of-thought size_categories: - 1K` value). This is the training subset: 12 rows of r4 are not in it, listed with their reason in `reports/subset_dropped.jsonl`: 12 the rewrite model judged the stored answer doubtful (its note is in the list) (`label_doubt`). Self-check of the rewritten text (measured 2026-10-02 on 22 rows sampled from this source before the removals above, each judged against its full-resolution pictures): 0.32 faithfulness errors per row (a claim the pictures contradict), 77% of rows with none; the plan names the real obstacle on 100%, the read-back reads the picture it follows on 91%, and the answer follows from the text on 96%. The measured caveats on the r3 card were counted on r3's rows and text and are not repeated here; the per-row known-issue lists below were measured again on these rows and this text. **Supervision kind** (`supervision_kind` in `meta`): `visual_aux` on every row: in the previous release (r3) the reasoning text was a text-only chain of thought written by a model that saw the input image(s) but never the target image, and `meta` keeps that value. In this release the text was rewritten by a model shown every image of the row, the target images included, and its plan does not state the answer before the image (see the r4 section above). Upstream: images, questions and answers from [`weikaih/imaginative-perception-token-pet-ipt`](https://huggingface.co/datasets/weikaih/imaginative-perception-token-pet-ipt); every thought (plan and read-back) from the text chain-of-thought release [`weikaih/imaginative-perception-token-pet-textcot`](https://huggingface.co/datasets/weikaih/imaginative-perception-token-pet-textcot). Licence: **undeclared**. Neither upstream repository declares a licence; this converted copy is shared for research use only, whatever terms the upstream authors set apply to it as well, and it will be taken down at their request. The images are renders of ProcTHOR houses made with AI2-THOR, both released by the Allen Institute for AI under Apache-2.0. ## Known issues Rows with a measured per-row problem are listed in `reports/known_issues/`, one TSV per issue (a `# ` line, then `row_uidsplitdetail` lines), so they can be filtered out. They are still in this release: no row was removed for these issues. | issue | rows | train | validation | what | how it was found | file | |---|---:|---:|---:|---|---|---| | `contradicting_answers_same_images` | 15 | 15 | 0 | Another shipped row asks the same question (with the options in another order, or reworded) of the same input and target images and has the opposite answer; S10's conflict check compares the question with its options in listed order, so it did not see them. | rows grouped by (input-image md5, question text, option set) or by (input-image md5, question type, turn direction, last object phrase incl. 'on the left/right') whose answers differ; every member is listed; measured 2026-10-03; known_issues.py sha1 b2249331; export b3fa1b9 rows 5c179900/c9380539 | `reports/known_issues/contradicting_answers_same_images.tsv` | | `plan_turn_rule_backwards` | 1 | 1 | 0 | The plan states the 90-degree turn backwards (e.g. on a right turn 'what was in front of me is now on my right') and still names the labelled side; the text is a rationale for the stored answer, not geometry. | thought_0 has a 'what was <front|left|right|behind> ... is/becomes/moves ... <side>' statement that contradicts the question's turn direction (right turn: front->left, right->front, behind->right, left->behind; mirrored for left); measured 2026-10-03; known_issues.py sha1 b2249331; export b3fa1b9 rows 5c179900/c9380539 | `reports/known_issues/plan_turn_rule_backwards.tsv` | To leave the listed rows out (the snippet in the loader section downloads `reports/known_issues/` with the data): ```python import glob, os root = "/ipt_pet" drop = {line.split("\t")[0] for f in glob.glob(os.path.join(root, "reports/known_issues/*.tsv")) for line in open(f) if line.strip() and not line.startswith(("#", "row_uid\t"))} # keep a row when its row_uid (a column of train/, meta/ and preview/) is not in drop ``` ## Size | split | rows | target image slots | distinct target images | |---|---:|---:|---:| | train | 8,409 | 8,409 | 4,842 | | validation | 211 | 211 | 126 | A slot is one target position in one row; rows can share a target image (same scene or same intermediate state), and a row can repeat one of its own targets, so there are fewer distinct images (by content hash) than slots. | task | train | validation | |---|---:|---:| | perspective_taking | 8,409 | 211 | Input images per row: 1. Target images per row (the images the model is trained to generate): 1. Image corpus (`source_scene_corpus`): procthor 8,620. ## Row format One row is: input image(s) and a question, then K rounds of *thought → target image* (the target is the source's own ground-truth image, which the model is trained to generate), then a final thought (normally a read-back of the last target; where a source's final thought is something else, or often leaves out the answer, the source note or Known issues says so) and the answer; here K is 1. In the `train` config: ``` image_list list inputs first, then the K target images in order num_input_images int64 how many of image_list are inputs instruction_list list one element: system prompt + question + options output_text_list list K+1 elements: [0] plan 1 [j] plan j+1 [K] read-backanswer row_uid string join key to `meta` and `preview` ``` On every row `` holds the option key (answer type `mcq_letter` 8,620) that the model is trained to emit (a letter for `mcq_letter`), while `meta.answer_value` (the `answer` column of `preview`) holds that option's text. Map the key through the options listed in the question before comparing the two, and score model output against ``. The system prompt is ThinkMorph's `VLM_THINK_SYSTEM_PROMPT` from its `inferencer.py`, verbatim (`GEN_THINK_SYSTEM_PROMPT` there has the same text), including its leading and trailing newline. The markers are plain strings, not tokenizer special tokens; the prompt writes `` and the data writes ``, exactly as the ThinkMorph-7B checkpoint was trained. `preview` shows the same rows with one column per slot: `input_image_i` for the inputs; for each of the K = `num_steps` rounds, the plan `thought_j` and its target `target_image_j`; and the read-back in `thought_1` on every row. `meta` holds the per-row sidecar: task, `scene_id` and `geometry_uid` (the scene and geometry keys; the split key is named in the split paragraph below), `trajectory_id` (a camera-path or sample label, empty where the source has none), `num_steps`, `num_input_images`, `answer_type`, `answer_value`, `majority_class_rate`, `target_image_kind`, `target_px`, `est_tokens`, licence, `split` (`train` / `validation`, the Hub split names), `supervision_kind` (`full_interleaved` / `visual_aux` / `visual_only`) and `filter_flags`. `majority_class_rate` is the share of the task's most frequent `answer_value` among its training rows: it measures answer skew and is not a guessing baseline (where a task mixes question types or each row has its own options it can be far below chance); compare scores with the text-only baselines below. `scene_id` (equal to `geometry_uid`) is the ProcTHOR house. `trajectory_id` is a per-house sample index (`perspective_sample_0`-`9`), so one sample is the pair (`scene_id`, `trajectory_id`); never group by `trajectory_id` alone. Per-row `license` in `meta`: undeclared 8,620. Flags on released rows (`filter_flags` in `meta` and `preview`, comma-separated): | flag | rows | meaning | |---|---:|---| | `S5.replay_unsupported` | 8,620 | no solver re-derives this task's answer from the trace, so S5 did not replay it | | `src_split=distance_change_closer` | 1,850 | the upstream split file the row came from | | `src_split=distance_change_further` | 1,848 | the upstream split file the row came from | | `src_split=relative_position_left_right` | 1,234 | the upstream split file the row came from | | `src_split=relative_position_left_left` | 1,232 | the upstream split file the row came from | | `src_split=relative_position_right_right` | 1,229 | the upstream split file the row came from | | `src_split=relative_position_right_left` | 1,227 | the upstream split file the row came from | | `S14.sampled_qa` | 200 | chosen for the S14 human spot-check (`reports/s14_sample.tsv`) | | `S0.row_uid_salted` | 69 | the content-derived row_uid repeated within the build and was re-derived | | `S4.answer_moved` | 1 | the plan stated the answer before the image ('the answer is X'); that phrase was cut from the plan and 'The answer is X.' appended to the read-back | ### Training with a BAGEL-family loader Every row here has one input image (`num_input_images` is 1), so the stock ThinkMorph `UnifiedEditIterableDataset` (https://github.com/ThinkMorph/ThinkMorph: `image_list[0]` as input, `image_list[j+1]` after `output_text_list[j]`) and the IPT release's version (which reads `num_input_images`) both read it as intended. Mixed with a source whose rows have more than one input image, only a loader that reads `num_input_images` is correct. The stock BAGEL edit loader (ByteDance-Seed/Bagel) cannot train these rows: it never reads `output_text_list` and expects each `instruction_list` element to be a list of paraphrases. `parquet_info.json` keys each training chunk as `//`, here `ipt_pet/train/chunk_00000.parquet`, with row-group counts read from the parquet footers. The loader matches a chunk only when its key equals the path it builds, `os.path.join(data_dir, file)`, and skips a chunk with no key without a warning: a source that is alone in its group then fails with `IndexError: list index out of range`, and in a mixed group it adds no rows. Download into a directory named after the source, not after the repository: ```python from huggingface_hub import snapshot_download snapshot_download("yrlyrl/spatial-mmcot-ipt_pet", repo_type="dataset", local_dir="/ipt_pet", allow_patterns=["train/*", "validation/*", "parquet_info.json", "reports/known_issues/*"]) ``` Then either run from `` with `data_dir: ipt_pet/train` and `parquet_info_path: ipt_pet/parquet_info.json`, or rebuild the index with absolute keys and use an absolute `data_dir`: ```python import json, os root = "/abs/path/to/root" # the directory that holds ipt_pet/ info = json.load(open(os.path.join(root, "ipt_pet", "parquet_info.json"))) info = {os.path.join(root, k): v for k, v in info.items()} json.dump(info, open(os.path.join(root, "ipt_pet", "parquet_info_abs.json"), "w")) # data_dir = os.path.join(root, "ipt_pet", "train") (spelled exactly so, no trailing slash) # parquet_info_path = os.path.join(root, "ipt_pet", "parquet_info_abs.json") ``` The Hugging Face cache (`.../snapshots//train/`) or a folder named `spatial-mmcot-ipt_pet` matches no key. `num_used_data` counts chunk files, not rows: the loader repeats this source's file list up to that number, lists every (file, row group) pair, and deals whole row groups out, floor(R / world_size) to each rank and floor(that / num_workers) to each DataLoader worker. The remainder is never read. This source has 1 training chunk file holding 66 row groups of up to 128 rows, so keep `num_used_data` large, e.g. the 128 of ThinkMorph's `interleaved_reasoning.yaml` (upstream's `example.yaml` asks for more than GPUs x workers); every row group is then read. Set to 1 and alone in its group on 8 GPUs with 4 workers, it reads only 64 of the 66 row groups. In a run that mixes sources, give each source the same multiple of its own training chunk-file count, e.g. 128 per file (128 here): the file list is repeated up to `num_used_data` entries, so a flat 128 for every source would read a two-file source's rows half as often as a one-file source's. ## How the rows were chosen | stage | rows | |---|---:| | upstream rows read | 20,531 | | refused before conversion (`S0raw`) | 0 | | after conversion and per-row filters | 20,531 | | removed by S10 (369 exact duplicates; 6 withheld as label conflicts: identical question text, options in the same order, identical images, different answers) | 375 | | removed by answer-prior balancing (S13) | 11,524 | | removed for training after the r4 rewrite (`subset_dropped.jsonl`) | 12 | | **released** | **8,620** | Every removed row has one line, with its reason, in `reports/`: | file | step | reason (the line's `flag`, or the field shown) | rows | |---|---|---|---:| | `s10_dropped.jsonl` | S10 | `level: exact` | 369 | | `s10_label_conflicts.jsonl` | S10 | `S10.label_conflict` | 6 | | `s13_dropped.jsonl` | S13 | `step: cell` | 11,524 | | `subset_dropped.jsonl` | r4 | `reason: label_doubt` | 12 | Every line of `s13_dropped.jsonl` has `reason: prior_downsample`; `step` names the balancing pass that removed it, and `split` is written `train` or `val` (the Hub's `validation`).
Per-step counters of the conversion 20,531 upstream rows were read; `S0raw` refused 0 before a row existed and passed 20,531 to the first step. `S0` runs once more, last, on the final bytes. The reason for every refused, dropped or quarantined row is in the files above. | step | in | out | dropped | quarantined | rejected | repaired | |---|---:|---:|---:|---:|---:|---:| | S4 | 20,531 | 20,531 | 0 | 0 | 0 | 1 | | S4c | 20,531 | 20,531 | 0 | 0 | 0 | 0 | | S5 | 20,531 | 20,531 | 0 | 0 | 0 | 0 | | S8 | 20,531 | 20,531 | 0 | 0 | 0 | 0 | | S9 | 20,531 | 20,531 | 0 | 0 | 0 | 0 | | S0 (final structural check, after S9) | 20,531 | 20,531 | 0 | 0 | 0 | 0 |
The train/validation split keeps rows sharing a `scene_id` in `meta` on one side, and the assignment is frozen (`splits/` in the summary repository). S12 saw 20,156 rows under 7,560 keys. No validation input image has the content of a training input image. The S12 run did not record whether its pixel-level near-copy test ran for this source, so near-copies are not ruled out. ### Answer-prior balancing (S13) Each (task, split) group is checked separately. An answer is the answer value compared as lower-cased text without a trailing full stop, with 'farther' read as 'further' and 'nearer' as 'closer' (for multiple choice, the option text, not the letter; where the candidates are drawn in the image, as in zebra_jigsaw and zebra_tetris, the answer is the letter itself). An answer is real when it holds at least 5 rows and 2% of the group; k is the number of real answers. Answer step: the target is max(30%, 1/k) when k >= 2, and max(30%, 1/d) over the d distinct answers when k = 1; a validation group uses the larger of its own target and its task's train target. A group is cut only when k >= 1 and its most common answer holds more than the target plus 5 percentage points; every answer is then capped at one common count, chosen so that none exceeds the target, and smaller answers keep all their rows. At the answer step, a group at or below that trigger, or with no real answer (k = 0), is left as it is, so its most common answer can hold up to the target plus 5 percentage points. A task whose train group has exactly two real answers is instead cut, in every split, so that its two largest answers have equal counts, with no trigger. Rank and label steps: then, in a group where every option value of every row is a number, the rank of the correct option among the sorted values, and after it, in a group where every trained answer is an option label, the label, are each capped by the same cut-and-trigger rule on their own counts (own target, validation included): capped, never evened out, so two labels are cut only when one exceeds 55%, and then only down to 50%. These steps can also cut groups the answer step left whole, including k = 0 groups, and can raise an answer's final share above its target; the run fails if a real answer ends above the target plus 5 percentage points. A train group of at least 20 rows in which one answer holds 90% or more fails the run. PET (exact_cells_pet) instead cuts each (question type x turn direction) cell to equal counts of its two answers; a PET cell that shows only one answer is removed. Before this cut the PET answer could be guessed without the image: distance questions were answered 'closer' on 74.8% of training rows whichever way the turn went; position questions were answered with the side opposite the turn on 80.6% of training rows. The marginal answer counts hide this, because the shortcut depends on the question type and the turn, so each (question type x turn direction) cell is cut to equal counts of its two answers. | task | split | cell | answers before | kept per answer | |---|---|---|---|---:| | perspective_taking | train | distance/left | closer 2,506, further 1,001 | 1,001 | | perspective_taking | train | distance/right | closer 2,851, further 803 | 803 | | perspective_taking | train | position/left | left 1,196, right 4,918 | 1,196 | | perspective_taking | train | position/right | left 5,077, right 1,210 | 1,210 | | perspective_taking | validation | distance/left | closer 86, further 33 | 33 | | perspective_taking | validation | distance/right | closer 82, further 13 | 13 | | perspective_taking | validation | position/left | left 39, right 151 | 39 | | perspective_taking | validation | position/right | left 169, right 21 | 21 | S13 removed 11,524 rows from this source. ### Text-only baselines Accuracy of guessers that never see an image. For each task the released training rows are split into two fixed halves by a hash of `row_uid`; each guesser is fitted on one half and scored once on the other (one held-out half, not cross-validation; `eval rows` below). The reference is chance (the mean of 1 / number of options) where every row is multiple choice, and otherwise the eval-half accuracy of always giving the answer most common in the fit half (when a task's top answers are nearly tied, this need not be the task's most common answer; the line after the table gives that answer's validation score). Accuracies are recounted from the stored rates and `eval rows`, so they are exact. A task is flagged when a text-only guesser beats its reference by more than 0.15 (for a free-form task, a guesser other than the most common answer). A flagged task can be partly answered from the text alone; an unflagged task passed only these probes, which do not prove the text carries no answer. Report scores on every task next to this baseline. Guessers: `keywords`: the most common answer per set of spatial words in the question; `last_mentioned`: the option named last in the question body; `letter_prior`: the most common answer letter; `majority`: the answer most common in the fit half; `option_prior`: the option text that won most often when shown; `template`: the most common answer per question wording (numbers masked, object names kept). | task | best text-only guesser | accuracy | reference | margin | eval rows | flagged | |---|---|---:|---:|---:|---:|---| | perspective_taking | `option_prior` | 0.498 | 0.500 (chance) | -0.002 | 4,220 | no | ## Spot-check (S14) **Pending.** The S14 rows are chosen and flagged `S14.sampled_qa` in `meta` and `preview`; the human pass over them has not been signed off yet. ## Citation Both upstream repositories were released with Bigverdi et al., *Imaginative Perception Tokens Enhance Spatial Reasoning in Multimodal Language Models* ([arXiv:2606.03988](https://arxiv.org/abs/2606.03988)); please cite it: ```bibtex @misc{bigverdi2026imaginativeperceptiontokensenhance, title={Imaginative Perception Tokens Enhance Spatial Reasoning in Multimodal Language Models}, author={Mahtab Bigverdi and Linjie Li and Weikai Huang and Yiming Liu and Jaemin Cho and Jieyu Zhang and Tuhin Kundu and Chris Dangjoo Kim and Zelun Luo and Linda Shapiro and Ranjay Krishna}, year={2026}, eprint={2606.03988}, archivePrefix={arXiv}, primaryClass={cs.AI}, url={https://arxiv.org/abs/2606.03988} } ``` ## Provenance The release files were written by our conversion code (the code repository is not public yet), `scripts/convert/export.py` at commit `b3fa1b993ca9`, from build `ipt_pet_r3`. The build was made by `scripts/convert/run_source.py` from the same repository at commit `76c78bd817c2`. S10, S12 and S13 ran before the export; `reports/export_manifest.json` pins every input the export read by SHA-1 (`build_manifest_sha1`, `s10_keep_sha1`, `s12_assignments_sha1`, `s13_balanced_keep_sha1`). Every row removed between upstream and this release has one line, with its reason, in `reports/`: `build/dropped.jsonl` (rows refused before conversion or dropped by a conversion step); `build/quarantine.jsonl` (rows set aside by S4c because an automatic check could not match the read-back's conclusion to the label); `s10_dropped.jsonl` (duplicates removed by S10); `s10_label_conflicts.jsonl` (rows S10 withheld because another row asks the identical question, options in the same order, of the same images with a different answer); `s13_dropped.jsonl` (rows removed by answer-prior balancing). `known_issues/` lists rows with a measured problem (see Known issues); `reports/` also holds the build manifest (absolute paths cut to basenames) and counters, the S14 sample list (`s14_sample.tsv`: row_uid, task, split) and `export_manifest.json`. Part of [`yrlyrl/spatial-mmcot`](https://huggingface.co/datasets/yrlyrl/spatial-mmcot).