Solar thermal energy collection technologies remain relatively underutilized despite the increasing global emphasis on renewable and environmentally friendly power sources. In this research, a graphene-based perovskite solar absorber (GbPSA) is designed and investigated for enhanced solar-to-thermal energy conversion. The design is also optimized with Artificial Intelligence algorithms. The proposed thermal absorber demonstrates strong absorption across multiple spectral regions, exhibiting absorptance values of 91.55% in the UV band, 88.37% within the visible region, and 76.59% in the infrared spectrum. The GbPSA achieves an average thermal absorptance of 78.84%, and a maximum absorptance of 97.71% at 340 nm, indicating excellent light-capturing efficiency. Under AM1.5 solar irradiation, the structure attains a thermal absorption efficiency of 90.57%, showcasing its suitability for real-world solar exposure. The machine learning optimization is showing 99% prediction accuracy with minimal error rate. The device features a compact configuration, where each unit cell measures 2500 nm in width and depth and 2550 nm in thickness, making it a thin and space-efficient absorber. The wide spectral response suggests that the absorber can effectively harness different forms of solar energy that reach Earth’s surface. Owing to its impressive energy conversion performance, the GbPSA offers significant potential for use in various solar thermal applications, particularly industrial heat generation and other energy-intensive processes.