Question about loss validation and VLA evaluation in LeRobot
Hello ,
I am a master's student and am currently writing a scientific article comparing different VLA architectures (ACT, Pi0, SmolVLA, xVLA) with LeRobot. My use case: robotic manipulation (removing synthetic weeds) with an SO-101 robot.
Dataset context:
- 301 episodes of 15 seconds (controlled environment)
- I had previously trained on 250 episodes with excellent results
- The data is therefore sufficient and of good quality
Problem encountered:
When I train with a train/validation split (I selected 45 specific episodes from the 301 for validation, and 256 for training), the robot does not move at all during inference. The actions seem to be zero or almost zero.
However, if I train on all 301 episodes (100% of the data), the robot works perfectly with a good success rate. This is not due to insufficient data, as I had previously trained with 250 episodes and the results were good.
My attempted solution:
I noticed that LeRobot does not seem to natively support validation loss. So I modified lerobot_train.py to create a separate validation dataset by specifying the validation episodes in a flag and calculating the validation loss. The metrics on WandB seem consistent, but inference systematically fails with the model trained with validation.
I suspect that the normalization statistics in info.json (calculated over the 301 episodes) do not match the actual distribution of the 256 training episodes, causing corruption of the actions, but I am not sure if this is problematic.
My questions:
Does LeRobot officially support validation loss? If not, is this a known limitation?
For my scientific article: Is it methodologically acceptable to train on 100% of the data and evaluate only via physical rollouts on the robot? Or is in-training validation loss essential for scientific rigor?
In your own work: What approach do you recommend for evaluating robotic policies?
thank you for your help in advance.
Source: huggingface/lerobot