Randomly select and train parameters

For any semantic segmentation model, I wish to randomly select a few parameters (say 30%) and train only those parameters in the backward pass, but the forward function should use all the parameters. Also, I wish to get some id or tag for these parameters because I wish to do so multiple times on the same model for different categories of images (possibly with different loss functions). Kindly guide me as to how this can be done?