Yes, this focal weight would change every iteration. I myself wasn’t entirely sure if focal weights should be backpropagated into, but it seems that way from open-source implementations (the original paper doesn’t have a clarification https://arxiv.org/abs/1708.02002 29)
In this case, the gradients would flow from the focal weights into/through the ‘classification’ vector (which are the logits) I guess.