Skip to main content
QUICK REVIEW

[Paper Review] Lighting (In)consistency of Paint by Text

Hany Farid|arXiv (Cornell University)|Jul 27, 2022
Digital Media Forensic DetectionComputer Science10 citations
TL;DR

This paper investigates lighting consistency in DALL·E-2 generated images using spherical harmonic-based lighting models to assess forensic detectability. It finds that while global lighting is relatively consistent with real photos, local lighting within images shows significant inconsistencies—particularly in front/back lighting directions—suggesting physics-based analysis can distinguish synthetic from real images.

ABSTRACT

Whereas generative adversarial networks are capable of synthesizing highly realistic images of faces, cats, landscapes, or almost any other single category, paint-by-text synthesis engines can -- from a single text prompt -- synthesize realistic images of seemingly endless categories with arbitrary configurations and combinations. This powerful technology poses new challenges to the photo-forensic community. Motivated by the fact that paint by text is not based on explicit geometric or physical models, and the human visual system's general insensitivity to lighting inconsistencies, we provide an initial exploration of the lighting consistency of DALL-E-2 synthesized images to determine if physics-based forensic analyses will prove fruitful in detecting this new breed of synthetic media.

Motivation & Objective

  • To assess whether physics-based lighting analysis can detect synthetic images generated by DALL·E-2.
  • To investigate global lighting consistency between DALL·E-2 synthesized images and real photographs.
  • To evaluate local lighting consistency within individual DALL·E-2 generated images across multiple objects.
  • To determine if lighting inconsistencies in synthesized images can serve as forensic indicators.

Proposed method

  • Modeling image appearance using a spherical harmonic-based lighting representation under the Lambertian reflectance assumption.
  • Estimating lighting environments from 3D surface normals of unoccluded spheres in synthesized images.
  • Computing spherical harmonic coefficients (l_{0,0}, l_{1,*}, l_{2,*}) to represent ambient, directional, and higher-order lighting.
  • Comparing lighting coefficients across sphere pairs within the same image to assess local consistency.
  • Normalizing coefficients across images to compare global lighting consistency with real photographs.
  • Using R² correlation metrics to quantify consistency of lighting coefficients across sphere pairs.

Experimental results

Research questions

  • RQ1Is the global lighting environment in DALL·E-2 generated images consistent with that of real photographs?
  • RQ2Are lighting coefficients within a single DALL·E-2 generated image consistently estimated across multiple objects?
  • RQ3Do specific lighting components (e.g., front/back) show greater inconsistency than others in synthesized images?
  • RQ4Can lighting inconsistencies in DALL·E-2 outputs be quantified and used for forensic detection?
  • RQ5How do lighting variations in synthesized images compare to those in real images in terms of spherical harmonic coefficient correlation?

Key findings

  • Global lighting in DALL·E-2 images shows moderate consistency with real photographs, with an R² correlation of 0.80 for spherical harmonic coefficients across image pairs.
  • Within a single synthesized image, lighting consistency is weaker than across images, with R² values of 0.54 for zeroth-order, 0.69 for first-order, and 0.65 for second-order spherical harmonic coefficients.
  • The first-order term Y_{1,0} (front/back lighting) shows significantly lower correlation than other first-order terms, indicating notable inconsistency in front/back lighting direction.
  • The second-order term Y_{2,0} (related to lighting along the z-axis) also exhibits lower correlation than other second-order terms, suggesting a bias or inconsistency in vertical lighting perception.
  • The zeroth-order coefficient (ambient light) shows the weakest correlation (R² = 0.54), possibly due to variations in surface reflectance across spheres.
  • These findings indicate that while global lighting is plausible, local lighting inconsistencies—especially in front/back and vertical directions—can serve as forensic indicators of synthetic origin.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.