per-frame loss