When you apply a Lightroom preset to an image, the local adjustments embedded in that preset — Subject masks, Sky masks, object selections — don’t simply transfer. They have to be rebuilt, pixel by pixel, against the new photo. That reconstruction process is what Lightroom calls mask regeneration, and understanding what’s actually happening during it changes how you build presets, how you batch-apply them, and what you do when the result isn’t what you expected.
Why Presets Carry Masks at All
A Lightroom preset is essentially a text record of edit instructions. When you save a preset that includes a masked adjustment — say, a Luminance Range mask brightening the sky, or an AI Subject selection with a local clarity boost — those instructions get written into the preset file in XMP-adjacent syntax. The mask geometry itself isn’t stored as a pixel map. Instead, the preset records what kind of mask it was (Subject, Sky, Background, Object, Luminance Range, Color Range, etc.), what adjustments were applied through it, and any refinement settings you added.
The complication is that Subject and Sky masks are generated by a neural network analyzing the specific pixel content of a specific image. A Subject mask trained on your portrait of a woman in a red coat cannot simply be pasted over a landscape and remain valid. So when Lightroom applies a preset that contains one of these AI-generated masks to a different photo, it has to discard the stored selection geometry entirely and run the detection model from scratch on the new image.
That’s the regeneration step. For AI masks — Subject, Sky, Background, Object — it’s unavoidable. For range-based masks (Luminance Range, Color Range), Lightroom can apply the same thresholds directly; no regeneration is needed because those masks are defined by pixel values, not by object identity.
What Actually Happens During Regeneration
Lightroom’s masking pipeline, at least in the current version of the desktop application, runs Subject and Sky detection through Adobe’s Sensei-based segmentation models. These are the same models used when you click “Add Subject” or “Add Sky” manually — the regeneration step is literally that process, triggered automatically.
When regeneration runs, Lightroom analyzes the full image at the pixel level to generate a confidence map: a floating-point mask where each pixel gets a probability score for belonging to the detected category. Edges are where this matters most. The model uses edge-aware refinement, looking for contrast transitions and texture gradients, which is why a Subject mask on a portrait with a busy background can come back with soft, uncertain edges around fine hair even when the overall selection is clean.
The regeneration is non-destructive in Lightroom’s standard sense — the source file is unchanged, and the mask lives only in the catalog or sidecar XMP. If regeneration produces an unwanted selection, you can delete the mask or refine it without touching the underlying image data.
One place this process creates genuine friction: batch processing. If you apply a preset containing an AI mask to a hundred images at once using the Sync or “Apply During Import” method, each image must run through the detection model individually. That serialization can be slow if the catalog is large or the machine’s resources are committed elsewhere. There’s no shortcut that reuses a previously computed Subject mask across different images — and there shouldn’t be, because the subjects are different.
The Regeneration Trick, Explained
The workflow technique often described as the “mask regeneration trick” is a specific approach to correcting regenerated masks that came back wrong — or to forcing Lightroom to discard a stale mask and rebuild it cleanly.
Here’s how it works in practice:
- Apply the preset to the target image as normal.
- Open the Masks panel. If the AI mask regenerated with a poor selection (clipping into a background element, missing part of the subject), don’t immediately reach for the brush tool.
- Right-click the mask in the panel and choose “Refresh Mask.” This tells Lightroom to discard the current computed mask and rerun the detection model on that image, which can yield a different result if the model’s confidence at certain edges was marginal the first time.
- If the refreshed result is still off, check whether the problem is with the mask’s selection parameters. A Subject mask that keeps grabbing background elements may improve if you switch the mask type to a narrower Object selection drawn manually over the intended target, or if you intersect the Subject mask with a Luminance Range mask to exclude bright background areas.
- For Luminance Range or Color Range masks that look correct but aren’t affecting the right tonal areas, the issue usually isn’t the regeneration — it’s that the preset’s thresholds were calibrated against the source image’s specific tonal distribution and need manual adjustment for the new photo.
The underlying principle is that regeneration is probabilistic, not deterministic. Refreshing asks the model to take another pass, and because edge cases in segmentation are genuinely ambiguous, a second pass sometimes resolves an edge differently. It’s not a bug fix — it’s just querying the model again with the same input.
This connects directly to a broader shift in how Lightroom handles selections. Why AI Masks in Lightroom Changed What ‘Undoable’ Means covers the non-destructive implications of this model-based approach in more depth, particularly why “undo” works differently when a mask is regenerated versus manually drawn.
Building Presets That Regenerate More Predictably
The most reliable way to use presets with AI masks is to set up the preset so that the mask type matches what the target images reliably contain. A preset built around a Sky mask is highly predictable when applied to landscapes — sky detection is one of the more stable categories in Lightroom’s segmentation models, because the class has consistent visual properties across images. Subject detection is more variable, particularly when subjects are partially occluded, shot from unusual angles, or placed against backgrounds with similar tonal values.
A few structural choices that reduce regeneration failures:
- Layer mask types intentionally. A Subject mask intersected with a Color Range restriction is more likely to hold up across a diverse set of images than a bare Subject mask, because the color constraint narrows the ambiguous-edge zone.
- Avoid brush refinements in presets meant for batch use. If you refined a mask with a manual brush stroke in the source image, that stroke geometry is recorded in the preset — but it refers to coordinates on the original image, not the new one. On a differently composed photo, that stored brush stroke may activate in the wrong area entirely.
- Test the preset on at least three structurally different images before committing it to a batch workflow. Lighting direction, subject scale, and background complexity all affect where the model’s segmentation confidence drops to the edge-case zone.
Presets that rely only on global adjustments and range-based masks are the most portable. An AI mask preset is really a two-step tool: the adjustment is recorded precisely, and the mask is regenerated fresh every time. Treating it that way — rather than expecting the mask to transfer like a stamp — makes the results predictable.
When Regeneration Consistently Fails
If refreshing a mask repeatedly produces poor results on a specific image, the issue is typically one of three things: the subject category isn’t clearly enough represented in that image for the model, the image’s exposure or white balance is so far from typical training data that edge confidence collapses, or the image content genuinely has ambiguous regions where no segmentation model would reliably agree with what you intend.
In those cases, regeneration isn’t the tool to lean on. A manually drawn Radial Gradient or brush mask — which doesn’t involve the neural network at all and transfers across images as exact geometry — is more appropriate as a starting point. You can then intersect that manual region with a Luminance Range or Color Range mask to give it some image-responsive behavior without depending on the detection model.
Lightroom’s New Editable AI Masks: What Changed and Why It Matters is worth reading alongside this if you’re working with the current mask editing interface — the ability to edit individual mask components after generation changes what’s worth fixing versus what’s worth starting over.
What to Do Next
Before adding AI-masked presets to any production workflow, open the Masks panel immediately after applying the preset to each image and do a quick visual check: confirm the mask thumbnail shows the selection you expect, zoom to 100% on one or two critical edges, and use Refresh Mask once if the initial result is off. That thirty-second check per image prevents the kind of batch-processing surprise where a hundred exports have subtly wrong local adjustments because a Subject mask kept grabbing sky.
For faster iteration on complex preset builds, Ten Lightroom Shortcuts That Speed Up Your Editing Workflow includes several relevant to mask panel navigation that reduce the overhead of checking and adjusting masks image by image.