Differential Geometric and Physical Invariants for Distinguishing AI-Generated and Real Images: A Comprehensive Mathematical Framework | Research Square window.SnipcartSettings = { analytics: { enabled: false } }; (function() { var accessVector = localStorage.getItem('access_vector') || ''; window.dataLayer = window.dataLayer || []; if (accessVector) { window.dataLayer.push({ user: { profile: { profileInfo: { snid: accessVector } } } }); } })(); (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-K279D39R'); Browse Preprints In Review Journals COVID-19 Preprints AJE Video Bytes Research Tools Research Promotion AJE Professional Editing AJE Rubriq About Preprint Platform In Review Editorial Policies Our Team Advisory Board Help Center Sign In Submit a Preprint Cite Share Download PDF Research Article Differential Geometric and Physical Invariants for Distinguishing AI-Generated and Real Images: A Comprehensive Mathematical Framework Amirali Ghajari This is a preprint; it has not been peer reviewed by a journal. https://doi.org/ 10.21203/rs.3.rs-8553608/v1 This work is licensed under a CC BY 4.0 License Status: Posted Version 1 posted You are reading this latest preprint version Abstract The proliferation of photorealistic AI-generated images poses existential challenges to digital forensics, journalism, and societal trust in visual media. Current detection methods predominantly deep learning approaches exhibit catastrophic failure when encountering novel generative architectures, with accuracy plummeting from 99% on training distributions to below 65% on unseen generators. This brittleness stems from reliance on learned statistical patterns rather than fundamental constraints imposed by physical reality. We present a radically different paradigm: a mathematically rigorous framework grounded in differential geometry, information theory, and physical optics that distinguishes real from synthetic images by testing violations of physical laws. Real photographs arise from a well-understood physical process 3D scene geometry projected through camera optics with quantum sensor noise—that imposes stringent mathematical structure on the resulting 2D intensity fields. AI synthesis, operating in pixel or latent space without explicit 3D geometric or physical rendering, systematically violates these constraints. We derive three fundamental invariants with complete mathematical proofs: (1) Gradient Covariance Anisotropy—physical surfaces project to highly oriented gradient fields with eigenvalue ratios λ₁/λ₂ ≫ 1, violated by localized convolutional synthesis; (2) Cross-Scale Consistency Gaussian smoothing preserves principal gradient directions across scales for real structures, violated by multi-resolution generative architectures; (3) Noise-Signal Decoupling—quantum sensor noise is statistically independent of scene geometry, violated by learned upsampling that couples residuals with gradients. Comprehensive experiments on 12,000 images spanning six state-of-the-art generators (StyleGAN2/3, Stable Diffusion, Midjourney, DALL-E 2, BigGAN) demonstrate 97.6% average accuracy with remarkable cross-generator stability (variance 0.9%), compared to 91.0% (variance 8.7%) for ResNet-50. Under severe JPEG compression (Q=50), our method maintains 94.8% accuracy while deep learning degrades to 65.7%—a 25.3% catastrophic drop versus our 2.8% graceful degradation. The framework requires zero training on target generators, executes in O(N log N) time (150ms for 1024² images on CPU), and provides interpretable spatial localization achieving 0.883 pixel-level AUROC on forensic benchmarks. Crucially, we prove that simultaneously satisfying all three invariants requires generative models to solve the inverse graphics problem—reconstructing 3D geometry, physical materials, lighting, and camera parameters from 2D training images—a computationally intractable barrier (NP-hard). This theoretical result establishes that our framework identifies fundamental limitations of current AI synthesis paradigms rather than exploitable artifacts, providing detection guarantees that transcend specific architectures. Full Text Additional Declarations No competing interests reported. Cite Share Download PDF Status: Posted Version 1 posted You are reading this latest preprint version Research Square lets you share your work early, gain feedback from the community, and start making changes to your manuscript prior to peer review in a journal. As a division of Research Square Company, we’re committed to making research communication faster, fairer, and more useful. We do this by developing innovative software and high quality services for the global research community. Our growing team is made up of researchers and industry professionals working together to solve the most critical problems facing scientific publishing. Also discoverable on Platform About Our Team In Review Editorial Policies Advisory Board Help Center Resources Author Services Accessibility API Access RSS feed Manage Cookie Preferences © Research Square 2026 | ISSN 2693-5015 (online) Privacy Policy Terms of Service Do Not Sell My Personal Information {"props":{"pageProps":{"initialData":{"identity":"rs-8553608","acceptedTermsAndConditions":true,"allowDirectSubmit":true,"archivedVersions":[],"articleType":"Research Article","associatedPublications":[],"authors":[{"id":578772594,"identity":"c2c311e3-137b-439e-970f-64a5373ddb76","order_by":0,"name":"Amirali Ghajari","email":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAAyAQMAAABI0h/eAAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAABNElEQVRIie2RMUvDQBSAXzi4LAddDwzJX7gQKAEH/4D/wKVdmuUKGR0kRgKdqqPEf9Epk0MgGBfdA3UoBDpIh0BBFIr4LgZckrgK5uM47h3v4713BzAw8CfRQgCfA+ASuJsnj1GK19zoV8SP4sBTPlEK668koFYU07A4VSF0KqPbbFG9Cxess2jjf9y72lXM9q/FhctAzx5WLQpfT6O7JTZmv+TCXm45IUfXybHMsTE2mxVtZVABppR4IgRLOaXGc+JIigpn4zbFQkU71IpX2YeUM8bl1pGf3YpAhagqFpfCwSqIJOV80a3YSjEER0v6jpFy7C4fk/kNZ7RjFnPtldruPDCt2EvsXRpcrvSo3Mu3wBzpWd46fgMTKVDRBLT+I9qT/v0OIZBNcybVb9kDAwMD/4ovL1VeH+/8phkAAAAASUVORK5CYII=","orcid":"","institution":"European University of Madrid","correspondingAuthor":true,"prefix":"","firstName":"Amirali","middleName":"","lastName":"Ghajari","suffix":""}],"badges":[],"createdAt":"2026-01-08 16:23:37","currentVersionCode":1,"declarations":"","doi":"10.21203/rs.3.rs-8553608/v1","doiUrl":"https://doi.org/10.21203/rs.3.rs-8553608/v1","draftVersion":[],"editorialEvents":[],"editorialNote":"","failedWorkflow":false,"files":[{"id":101398553,"identity":"c19b3628-9e02-4a99-816c-20a5f8fc73fd","added_by":"auto","created_at":"2026-01-29 09:42:17","extension":"pdf","order_by":1,"title":"","display":"","copyAsset":false,"role":"manuscript-pdf","size":2498142,"visible":true,"origin":"","legend":"","description":"","filename":"comprehensiveaidetectionpaper.pdf","url":"https://assets-eu.researchsquare.com/files/rs-8553608/v1_covered_35b340a1-3ada-48a4-80e7-0fe706daa30e.pdf"}],"financialInterests":"No competing interests reported.","formattedTitle":"Differential Geometric and Physical Invariants for Distinguishing AI-Generated and Real Images: A Comprehensive Mathematical Framework","fulltext":[],"fulltextSource":"","fullText":"","funders":[],"hasAdminPriorityOnWorkflow":false,"hasManuscriptDocX":false,"hasOptedInToPreprint":true,"hasPassedJournalQc":"","hasAnyPriority":true,"hideJournal":true,"highlight":"","institution":"","isAcceptedByJournal":false,"isAuthorSuppliedPdf":true,"isDeskRejected":"","isHiddenFromSearch":false,"isInQc":false,"isInWorkflow":false,"isPdf":true,"isPdfUpToDate":true,"isWithdrawnOrRetracted":false,"journal":{"display":true,"email":"
[email protected]","identity":"researchsquare","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":true,"externalIdentity":"","sideBox":"","snPcode":"","submissionUrl":"/submission","title":"Research Square","twitterHandle":"researchsquare","acdcEnabled":true,"dfaEnabled":false,"editorialSystem":"","reportingPortfolio":"","inReviewEnabled":false,"inReviewRevisionsEnabled":true},"keywords":"","lastPublishedDoi":"10.21203/rs.3.rs-8553608/v1","lastPublishedDoiUrl":"https://doi.org/10.21203/rs.3.rs-8553608/v1","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"},"manuscriptAbstract":"The proliferation of photorealistic AI-generated images poses existential challenges to digital forensics, journalism, and societal trust in visual media. Current detection methods predominantly deep learning approaches exhibit catastrophic failure when encountering novel generative architectures, with accuracy plummeting from 99% on training distributions to below 65% on unseen generators. This brittleness stems from reliance on learned statistical patterns rather than fundamental constraints imposed by physical reality.\nWe present a radically different paradigm: a mathematically rigorous framework grounded in differential geometry, information theory, and physical optics that distinguishes real from synthetic images by testing violations of physical laws. Real photographs arise from a well-understood physical process 3D scene geometry projected through camera optics with quantum sensor noise—that imposes stringent mathematical structure on the resulting 2D intensity fields. AI synthesis, operating in pixel or latent space without explicit 3D geometric or physical rendering, systematically violates these constraints.\nWe derive three fundamental invariants with complete mathematical proofs: (1) Gradient Covariance Anisotropy—physical surfaces project to highly oriented gradient fields with eigenvalue ratios λ₁/λ₂ ≫ 1, violated by localized convolutional synthesis; (2) Cross-Scale Consistency Gaussian smoothing preserves principal gradient directions across scales for real structures, violated by multi-resolution generative architectures; (3) Noise-Signal Decoupling—quantum sensor noise is statistically independent of scene geometry, violated by learned upsampling that couples residuals with gradients.\nComprehensive experiments on 12,000 images spanning six state-of-the-art generators (StyleGAN2/3, Stable Diffusion, Midjourney, DALL-E 2, BigGAN) demonstrate 97.6% average accuracy with remarkable cross-generator stability (variance 0.9%), compared to 91.0% (variance 8.7%) for ResNet-50. Under severe JPEG compression (Q=50), our method maintains 94.8% accuracy while deep learning degrades to 65.7%—a 25.3% catastrophic drop versus our 2.8% graceful degradation. The framework requires zero training on target generators, executes in O(N log N) time (150ms for 1024² images on CPU), and provides interpretable spatial localization achieving 0.883 pixel-level AUROC on forensic benchmarks.\nCrucially, we prove that simultaneously satisfying all three invariants requires generative models to solve the inverse graphics problem—reconstructing 3D geometry, physical materials, lighting, and camera parameters from 2D training images—a computationally intractable barrier (NP-hard). This theoretical result establishes that our framework identifies fundamental limitations of current AI synthesis paradigms rather than exploitable artifacts, providing detection guarantees that transcend specific architectures.","manuscriptTitle":"Differential Geometric and Physical Invariants for Distinguishing AI-Generated and Real Images: A Comprehensive Mathematical Framework","msid":"","msnumber":"","nonDraftVersions":[{"code":1,"date":"2026-01-29 05:58:27","doi":"10.21203/rs.3.rs-8553608/v1","editorialEvents":[{"type":"communityComments","content":0}],"status":"published","journal":{"display":true,"email":"
[email protected]","identity":"researchsquare","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":true,"externalIdentity":"","sideBox":"","snPcode":"","submissionUrl":"/submission","title":"Research Square","twitterHandle":"researchsquare","acdcEnabled":true,"dfaEnabled":false,"editorialSystem":"","reportingPortfolio":"","inReviewEnabled":false,"inReviewRevisionsEnabled":true}}],"origin":"","ownerIdentity":"53c11015-8ef9-4b9a-9832-0ff609aebd63","owner":[],"postedDate":"January 29th, 2026","published":true,"recentEditorialEvents":[],"rejectedJournal":[],"revision":"","amendment":"","status":"posted","subjectAreas":[],"tags":[],"updatedAt":"2026-01-29T05:58:27+00:00","versionOfRecord":[],"versionCreatedAt":"2026-01-29 05:58:27","video":"","vorDoi":"","vorDoiUrl":"","workflowStages":[]},"version":"v1","identity":"rs-8553608","journalConfig":"researchsquare"},"__N_SSP":true},"page":"/article/[identity]/[[...version]]","query":{"redirect":"/article/rs-8553608","identity":"rs-8553608","version":["v1"]},"buildId":"XKTyCvWXoU3ODBz1xrDgd","isFallback":false,"isExperimentalCompile":false,"dynamicIds":[84888],"gssp":true,"scriptLoader":[]}
Text is read by the "Ask this paper" AI Q&A widget below.
Extraction quality varies by source — PMC NXML preserves structure
cleanly, OA-HTML may include some navigation residue, and OA-PDF can
have broken hyphenation. The publisher copy
(via DOI)
is the canonical version.