Ultrashort pulses, characterized by their short pulse duration, diverse spectral content, and high peak power, are widely used in fields including laser processing, optical storage, biomedical sciences, and laser imaging. The complex, highly-nonlinear process of ultrashort pulse evolution within fiber lasers is influenced by numerous aspects such as dispersion, loss, gain, and nonlinear effects. Traditionally, the split-step Fourier transforms method is employed for simulating ultrashort pulses in fiber lasers, which involves traversing multiple parameters within the fiber to attain the pulse’s optimal state. The simulation is a significantly time-consuming process. Here, we use a neural network model to fit and predict the impact of multiple parameters on the pulse characteristics within fiber lasers, enabling parameter optimization through genetic algorithms to determine the optimal pulse duration, pulse energy, and peak power. Integrating artificial intelligence algorithms simplifies the acquisition of optimal pulse parameters and enhances our understanding of multiple parameters’ impact on the pulse characteristics. The investigation of ultrashort pulse optimization based on artificial intelligence holds immense potential for laser design.