Considering the current challenge that in the surface defect detection of automobile lightweight components (mainly high-strength steel), complex defect types, large size differences lead to low accuracy, and complex models are difficult to meet real-time deployment requirements, the lightweight algorithm GSR-YOLOv11n of improved YOLOv11n is proposed. First, replace the original backbone network with lightweight GhostHGNetV2 to reduce complexity and improve reasoning speed; secondly, propose the C3k2_SCAA module to refine the neck architecture and boost the ability to capture features of small-scale defects (such as microcracks and fine scratches) of automobile lightweight components, and improve the detection. Accuracy; Finally, build a cross-scale fusion mechanism in the Neck network, combined with SNI interpolation and GSConvE convolutional balance performance and efficiency. Experiments demonstrate that when compared to YOLOv11n, the algorithm improves detection accuracy by 4.3% on the high-strength steel defect scenario of automobiles based on the NEU-DET data set, and the parameter volume and calculation volume are lowered by 28.5% and 12% respectively, which realises lightweight deployment and performance optimisation, and improves the quality of automobile lightweight manufacturing. Control provides a reliable solution.