Increasing the rate of penetration (ROP) is an effective means to improve the drilling efficiency. At present, the efficiency and accuracy of intelligent prediction methods for the rate of penetration still need to be improved. To improve the efficiency and accuracy of rate of penetration prediction, this paper proposes a ROP prediction model based on Informer optimized by principal component analysis (PCA). We take the Taipei Basin block oilfield as an example. First, we use principal component analysis to extract data features, transforming the original data into low-dimensional feature data. Second, we use the PCA-optimized data to build an Informer model for predicting ROP. Finally, combined with actual data and using the recurrent neural network (RNN) and long short-term memory (LSTM) as baselines, we perform algorithm performance comparative analysis using root-mean-square error (RMSE), mean absolute error (MAE), and coefficient of determination (R2). The results show that the average MAE, RMSE, and R2 of the PCA-Informer model are 9.402, 0.172, and 0.858, respectively. Compared with other methods, it has a larger R2 and smaller RMSE and MAPE, indicating that this method significantly outperforms existing methods and provides a new solution to improve the rate of penetration in actual drilling operations.