I don't think this should be named shared_params, because it doesn't actually case any parameter sharing. It also has no effect on the biases. All it does is prevent you from changing the transformer. Maybe something like can_change_transformer? You can have a note that mentions that this is a useful way of implementing parameter sharing.