Random Poisson Blending
- Random Poisson Blending is a technique that solves gradient-domain Poisson equations while incorporating stochastic variations in region selection, guidance composition, and sampling.
- It bridges classical discretized formulations with modern INR-based methods to balance deterministic constraints with randomization for improved image blending.
- Empirical evaluations show that INR-based random blending reduces artifacts and color discrepancies compared to traditional methods, though challenges remain with mask accuracy and extreme content mismatches.
Searching arXiv for the cited papers to ground the article in current paper metadata and context. Random Poisson Blending denotes a family of gradient-domain compositing procedures in which Poisson constraints are retained while stochasticity is introduced into the blending region, guidance construction, sampling process, or optimization schedule. In the classical formulation, blending reconstructs an unknown composite image inside a region by matching a guidance field under Dirichlet boundary conditions. In more recent neural variants, the same variational principle is implemented either as a differentiable loss on pixel images or as a continuous optimization problem over Implicit Neural Representations (INRs). Within this literature, "Deep Image Blending" formalizes a deterministic differentiable Poisson blending loss coupled to deep style and content objectives, and explicitly does not define a randomized Poisson method (Zhang et al., 2019). By contrast, the Neural Poisson Solver framework presents a continuous INR-based solver and describes random Poisson blending as stochastic variation in region selection, guidance composition, and coordinate sampling while still solving Poisson-domain constraints (Wu et al., 2024).
1. Classical Poisson formulation and the role of randomness
Classical Poisson blending is posed on a blending region with boundary , a target image , a source image , and an unknown composite image reconstructed inside . The standard variational objective minimizes
subject to the Dirichlet boundary condition
The associated Euler–Lagrange condition yields
On a regular pixel grid, discretization produces a sparse SPD linear system with the standard 4-neighbor discrete Laplacian on the left-hand side and the discrete divergence of the guidance field plus boundary injections on the right-hand side (Zhang et al., 2019).
This formulation is deterministic once the source, target, mask, and guidance field are fixed. Consequently, randomness is not intrinsic to classical Poisson image editing. The data describe "Random Poisson Blending" as an extension in which stochasticity is introduced while preserving the Poisson objective. In the INR-based account, this includes randomly sampling 0, randomly mixing source and target gradients in the guidance field, and using stochastic coordinate minibatches during optimization (Wu et al., 2024). This suggests that randomness operates at the level of problem instantiation or solver dynamics rather than altering the underlying variational principle.
2. Deterministic deep image blending and its Poisson loss
"Deep Image Blending" replaces the classical linear-system solve with a differentiable loss that emulates Poisson image blending and jointly optimizes it with deep style and content objectives (Zhang et al., 2019). The method constructs a blended image
1
where 2 is the optimizable image, 3 is the target image, and 4 is a coarse binary mask aligned to 5.
Its Poisson gradient loss is
6
where 7 denotes a Laplacian filter applied channel-wise. Because 8 equals 9 outside 0, applying the Laplacian over the whole 1 implicitly enforces the target boundary condition, while the interior term emulates gradient-domain matching (Zhang et al., 2019).
The method is explicitly non-random with respect to the Poisson formulation itself. The paper states that it does not define any randomized variant of Poisson blending and does not introduce randomness into the guidance field, boundary conditions, or the Poisson constraints. The only explicit randomness is the initialization of 2 as 2D random noise at the start of stage one, which affects the optimization trajectory but is unrelated to the Poisson formulation itself (Zhang et al., 2019). This distinction is central to the concept of random Poisson blending: stochastic initialization alone is not equivalent to randomizing the Poisson problem.
3. Full deep objective, masks, and optimization dynamics
The deep formulation combines the Poisson gradient loss with VGG-16-based content, style, histogram, and total variation terms. Features 3 and Gram matrices 4 are computed from VGG-16 pretrained on ImageNet. The style loss uses layers conv1_2, conv2_2, conv3_3, and conv4_3, while the content loss uses conv2_2 (Zhang et al., 2019).
In stage one, the content loss is masked to preserve source semantics inside the object region,
5
and the style loss compares the blended image to the target style,
6
The histogram loss is
7
and the total variation loss is
8
The full stage-one objective is
9
Stage two refines the result using content-to-0 and style-to-1 losses, but omits the Poisson term (Zhang et al., 2019).
Optimization proceeds in two stages with L-BFGS over image pixels. Stage one initializes 2 as 2D random noise, computes 3, evaluates the losses, and updates 4 to minimize 5. Stage two initializes 6 and optimizes 7 using content, style, histogram, and TV losses. The reported setting is 8 iterations in both stages, with runtime of approximately 5 minutes for 9 on a single NVIDIA GTX 1080Ti (Zhang et al., 2019).
The mask and boundary treatment are integral to the method’s interpretation. Boundary consistency is ensured by constructing 0 with the target outside 1 and applying the Laplacian over the whole image. No explicit feathering or edge-aware filtering is used; smoothness is enforced by the gradient loss and TV, while interior style adaptation is driven by deep style and content features (Zhang et al., 2019). Coarse masks are acceptable, and the content loss helps retain object identity even with coarse delineation.
4. Continuous INR-based Poisson solving and boundary-condition-free blending
The Neural Poisson Solver reformulates Poisson blending in a continuous function space using INRs (Wu et al., 2024). An INR models a signal as
2
with 3. The blended signal is parameterized as another INR 4 and optimized to satisfy Poisson constraints continuously rather than on a fixed pixel grid.
The primary loss is the direct variational form,
5
combined with a global color-consistency term over the complement 6,
7
so that
8
The framework also gives an optional PDE-residual form,
9
but emphasizes the boundary-condition-free design based on global 0 (Wu et al., 2024).
This design is presented as a response to limitations of grid-based Poisson blending. The paper attributes distortions, artifacts, and color shifts to discretization and boundary handling in traditional methods, and argues that strict enforcement only on 1 makes solutions sensitive to mask shape and placement (Wu et al., 2024). In the INR setting, 2 and 3 are obtained by automatic differentiation at arbitrary coordinates, which avoids finite-difference staircasing and extends naturally to higher-dimensional signals. A plausible implication is that random Poisson blending becomes easier to define in continuous space, because randomness can be injected into spatial sampling and region geometry without first redesigning a grid solver.
5. Randomization mechanisms in Poisson-domain blending
Within the provided material, random Poisson blending is described most explicitly in the Neural Poisson Solver framework (Wu et al., 2024). The stochastic components are all external to the Poisson constraints themselves and concern the choice of region, guidance, and sampling.
| Component | Randomized mechanism | Source framing |
|---|---|---|
| Region 4 | Random masks, blob-like or irregular shapes, splines, random size, aspect, and placement; in 3D, random boxes or spheres | Randomly sample 5 |
| Guidance field 6 | Random weights 7, per-direction or per-channel mixtures, stronger-gradient selection | Guidance composition |
| Optimization samples | Random coordinate minibatches in 8 and 9; in NeRF, random camera poses | Stochastic sampling |
For 2D INR-based blending, the guidance field may be chosen as
0
The paper evaluates three deterministic guidance constructions that can also serve as ingredients in randomized pipelines: feature blending, where 1 is taken from the stronger gradient at each point,
2
feature overlay with 3, and feature smoothing with 4 (Wu et al., 2024).
The paper further states that random Poisson blending "simply introduces stochasticity in region selection, guidance composition, and sampling, while still solving the Poisson constraints" (Wu et al., 2024). In this sense, the adjective "random" does not denote a different PDE, but a randomized policy for instantiating and training the same Poisson-domain problem. This differs from the discussion in "Deep Image Blending," where randomized guidance, randomized boundary conditions, stochastic masking, or dropout in deep style features are presented only as speculative ways a random variant could be constructed and are explicitly not part of the published method (Zhang et al., 2019).
6. Two-dimensional and three-dimensional realizations
For 2D images in the INR formulation, the inputs are a target INR 5, a source INR 6, a blending region 7, and a balance parameter 8 (Wu et al., 2024). The blending INR may be initialized as 9 or as a trainable MLP initialized near 0. The reported 2D backbone is DINER, using hash indexing plus an MLP to capture higher-frequency detail. Optimization uses Adam with cosine annealing on a single NVIDIA RTX 3090 GPU, with blending time of approximately 50–100 seconds per blend (Wu et al., 2024).
The optimization loop samples coordinates in 1 for gradient-domain terms and coordinates in 2 for global color consistency. The reported total objective in the paper focuses on
3
with 4 when the optional boundary and PDE residual terms are omitted (Wu et al., 2024). The parameter 5 controls gradient preservation versus edge smoothness: smaller 6 preserves detail inside 7 at the risk of edge color mismatch, while larger 8 improves edge transitions with slight detail smoothing.
For 3D scenes, the same idea is adapted to NeRFs with 5D input (Wu et al., 2024). The source, target, and blending models are denoted 9, 0, and 1, and the blending region becomes a random 3D ROI 2. To save memory, optimization is restricted to points within 3, and density is set to zero outside 4 during training-time rendering:
5
In practice, the paper blends density and color inside 6 via
7
and
8
with 9 and 0 (Wu et al., 2024). Training uses random camera poses and 1 rays per pose on a single RTX 3090, takes several hours, and produces final renders at 2 due to memory and time limits.
7. Empirical behavior, comparisons, and limitations
The 2019 deep image method evaluates against copy-and-paste, Poisson Blending, Poisson Blending + Style Transfer, Style Transfer + Poisson Blending, Deep Image Harmonization, and GP-GAN (Zhang et al., 2019). The reported qualitative findings are consistent across the provided summary: copy-and-paste produces obvious boundary artifacts; Poisson Blending smooths boundaries but exhibits inconsistent style and texture together with color seep; Poisson Blending + Style Transfer yields more style consistency but unpleasant illumination and color during the Poisson step; Style Transfer + Poisson Blending sacrifices source content and structure; Deep Image Harmonization improves illumination but fails to hide the boundary and needs precise foreground; GP-GAN is supervised and shows poor generalization on the reported test cases (Zhang et al., 2019). In a user study with 30 participants and 20 tasks, the method is preferred in 9/10 real-world tasks and 8/10 painting tasks, corresponding to 80–90% preference in those cases (Zhang et al., 2019).
The Neural Poisson Solver reports average pixel-wise errors for gradient-domain fidelity and color smoothness, measured as 3 over pixels, and states that across multiple scenes it reduces Poisson-PDE-related errors by 4 to 5 compared to discrete PIE (Wu et al., 2024). Qualitatively, the classical discrete method is reported to suffer from color shifts and residual artifacts, whereas the continuous solver preserves global colors and blends details seamlessly. In 3D NeRF blending, the demonstrations include heterogeneous blending such as text in ice or water and large-scale blending such as a chessboard encased in ice, with the Neural Poisson Solver producing coherent blends from multiple viewpoints relative to direct ROI replacement (Wu et al., 2024).
The limitations are also distinct. For deep image blending, the paper does not enumerate failure modes explicitly; the provided summary states that heavy texture or style mismatch and extreme lighting inconsistency may require careful tuning of 6, 7, and 8, and runtime can be several minutes per image depending on L-BFGS convergence (Zhang et al., 2019). For the Neural Poisson Solver, sharp-edged masks may reveal the mask through unnatural transitions, 5D blending requires three NeRF models of identical size and joint ray tracing, GPU memory use is high, training is slow, render resolution is limited by memory and time, and extreme color or semantic mismatch remains challenging (Wu et al., 2024).
A recurrent misconception is that any Poisson-based compositor with random initialization is therefore a random Poisson method. The literature summarized here does not support that equivalence. The differentiable method in "Deep Image Blending" is deterministic in its Poisson loss and uses randomness only for initialization (Zhang et al., 2019). By contrast, the INR-based account defines random Poisson blending through stochastic region selection, guidance mixing, and sampling while maintaining the original Poisson-domain objective (Wu et al., 2024).