AI pipeline optimization