fill-in-the-middle — the middle can see the ending
Training a model to fill a gap is different from training it to continue a sentence. The example is laid out as the opening, then the ending, then the missing middle, so a mask that only looks backward still lets the middle read the ending. The cost shows up when two examples share that mask: the second can read every token of the first. Isolating the examples removes those pairs, and each middle token still sees its own ending.
One example is ordered prefix, then suffix, then middle. A causal mask on that order lets the first middle token see every suffix token.
Two examples under one causal mask add a cross pair for every token of the first example seen by every token of the second. That count is the square of one example's length. Isolating the examples sets it to 0, and each middle token still sees its own suffix.