You can’t think it as numbers’ adding.
It‘s optimization of mathmatics, finding the minimum params apply to the loss function.
So according to the Lagrange multiplier 14, you can find the most appropriate a to balance loss_ctf and loss_reg.