Dimensional reduction for the inverse problem of neural fi eld theory