Broadband absorption of sunlight is key for solar cell technologies, so metasurface-based structure has emerged as a promising technique for their efficiency improvement. [15][16][17] It is widely used in photothermal energy generation, [18,19] thermal emitters, [20] and detectors [21] to combine the metasurface-based PAs like a blackbody with the broadband absorption of sunlight. To realize the broadband absorption of sunlight, carbon-based surfaces, [22][23][24] Si-based surfaces, [25][26][27][28] and thin-film metallic structures [29,30] are demonstrated with low-surface absorptivity over the whole solar spectrum. For the carbon-based surfaces, they generally have broadband absorption, nonpolarized selection, and wide-angle insensitivity for solar spectrum. However, most carbon-based absorbers have large thickness of tens to hundreds of micrometers which is a challenge for device integration. Silicon-based surfaces have good performance photovoltaic characteristics. However, some Sibased light-trapping schemes [16,27,28] indicated that limitation of Lambertian expression [31] brings the absorption of silicon cells only in the range from 400 to 1100 nm. In addition, it still has challenge to use patterned metal materials that are unstable at the high temperature to achieve solar spectral absorption. It is promising to design the ultrathin absorbers that have broadband solar absorption while save enabling material saving and shorter deposition times. [32] Due to the high-temperature stability and metal-like optical properties in the visible and nearinfrared spectral regions, titanium nitride (TiN) is an ideal candidate for solar absorbing materials. [33,34] In some reports, [35][36][37] it has shown that Mie resonance by combining ultrathin TiN gratings with different refractive index materials achieves perfect absorption in the near-infrared spectral region. However, inverse design toward this kind of Mie resonance is rarely reported, which may provide novel approach to the study of TiN structure with multimode coupling for broadband absorption.In order to obtain a TiN structure with excellent absorption characteristics, it is necessary to introduce inverse design. As shown in Figure 1a, in the traditional design process, most researches obtain the initial structure through a priori method, including but not limited patterned structure (topological structure), multilayer structure, and stage structure, Broadband absorption of sunlight plays a crucial role in applying solar energy. However, despite being a decade-old technology, there are only a handful of simple metasurfaces designed by conventional methods. This work theoretically combines inverse design with broadband absorption of sunlight to optimize a metasurface that exhibits triple coupling mode resonance for maximizing solar spectral absorption. The metasurface consists of dual-layer titanium nitride (TiN) cylinder grating arrays, TiN dielectric layers, and silicon nitride layers. The simulation results reveal the high absorptivity of 93% in the range o...