a question about m2t task
Hi, when I input the test dataset from humanml3d into the model of the M2T task, I found that the output text was incorrect. I checked the mean and standard deviation of the dataset and found no issues. However, the actions generated by the model based on the t2m task can correctly generate text. What could be the possible reasons?
Hi, when I input the test dataset from humanml3d into the model of the M2T task, I found that the output text was incorrect. I checked the mean and standard deviation of the dataset and found no issues. However, the actions generated by the model based on the t2m task can correctly generate text. What could be the possible reasons?
did you figure it out?
Hi, when I input the test dataset from humanml3d into the model of the M2T task, I found that the output text was incorrect. I checked the mean and standard deviation of the dataset and found no issues. However, the actions generated by the model based on the t2m task can correctly generate text. What could be the possible reasons?
I meet the same problem. Is this similar to the problem you encountered?
I ran into the same thing and traced it token by token. Posting the diagnosis in case it helps, and because it leaves one question for the authors.
Environment: commit cf5bab7, Python 3.11.11, torch 2.0.0+cu118, transformers 4.47.1, checkpoints/motiongpt3.ckpt (sha256-identical to the Hugging Face copy).
What the model emits
With python -m test --cfg configs/test.yaml --task m2t, about half the samples come out whitespace-only (15/32 on one batch), which then crashes the NLG metrics with IndexError in nlgmetricverse. Decoding the generated ids rather than the cleaned string:
[220, 50256, 50256, ...] -> ' ', '<|endoftext|>', '<|endoftext|>', ...
It is not garbled text — the model declines to answer. Measuring the next-token distribution at the first generation step:
| prompt | top candidates at step 1 |
|---|---|
Generate text: <Motion_Placeholder> (hardcoded at motgpt_lm.py:898) |
' ' 90.9–100%, <EOS> 0–6.8%, ' a' 0–2.2% |
Describe the motion represented by <Motion_Placeholder> using text. |
' a' 31.3%, ' person' 27.9%, <EOS> 26.9%, ' the' 11.5% |
At step 2, after a space, P(' ') is 96–100%, so the model loops on the space token until repetition_penalty=1.1 erodes it and EOS wins. That is why some outputs are a single space and others are 40 spaces.
Why the prompt looks like the trigger
Grepping the five templates in prepare/instructions/ for Generate text: returns 0 hits (same for Generate motion: at line 832). The released model is instruction-tuned on 139–189 paraphrases per task, none with this wording, so evaluation feeds it a format it never saw. With a phrasing that is in the templates, the caption tokens are on top instead (second row above).
One thing I ruled out: training builds inputs + ' \n ' + outputs + eos (motgpt_lm.py:519) while inference appends ' \n' twice (lines 922 and 614). Removing the duplication alone still leaves 20/32 blank, so that is not the main cause.
Two one-line workarounds
- (A) Keep the prompt, add the 23 whitespace-only token ids (
' '=220,'\n'=198, the'\xa0'variants, …) tobad_words_idsat line 927.' 'is only narrowly ahead of the caption tokens — in one sample' '39.7% vs' a'36.0% — so removing it surfaces the caption the model was about to write. - (B) Replace the prompt at line 898 with one that exists in the templates.
Both give 0/32 blank. Beam search does not help; sampling does.
Metrics after each (full test set, configs/test.yaml, REPLICATION_TIMES: 2)
| R@1 | R@3 | MMDist ↓ | Bleu@1 | Bleu@4 | ROUGE | CIDEr | BertScore | |
|---|---|---|---|---|---|---|---|---|
| (A) whitespace ban | 0.535 | 0.804 | 2.890 | 57.3 | 17.5 | 42.9 | 34.9 | 35.8 |
| (B) prompt replaced | 0.530 | 0.805 | 2.889 | 56.9 | 17.2 | 42.7 | 33.7 | 35.5 |
stage2_instruct.ckpt, unmodified |
0.552 | 0.831 | 2.738 | 57.0 | 17.1 | 43.3 | 21.9 | 32.2 |
| paper, Table 2 | 0.573 | 0.864 | 2.426 | 59.1 | 19.4 | 46.2 | 28.7 | 35.2 |
The language metrics land at or above the paper's, the retrieval metrics stay below. Worth noting that stage2_instruct.ckpt runs unmodified and produces sensible captions — only motiongpt3.ckpt shows the blank behaviour. T2M with the same checkpoint reproduces the paper closely (R@1 0.546 ± 0.007, FID 0.234 ± 0.015 over 10 replications at ω=4), so this looks specific to M2T.
Question
Which prompt did you use for the M2T numbers in the paper? If Generate text: <Motion_Placeholder> is the intended one, was the released checkpoint trained with an instruction set that contains it? Both workarounds above change the evaluation protocol, so I would rather re-run with the prompt you intended than report numbers from a modified setup. Happy to send a PR for whichever you consider correct.