Let p be a prime and let G be a finite p-group. We show that the isomorphism type of the maximal abelian direct factor of G, as well as the isomorphism type of the group algebra over $${{\mathbb {F}}}_p$$
F
p
of the non-abelian remaining direct factor, if existing, are determined by $${{\mathbb {F}}}_p G$$
F
p
G
, generalizing the main result in Margolis et al. (Abelian invariants and a reduction theorem for the modular isomorphism problem, Journal of Algebra 636, 533-559 (2023)) over the prime field. To do this, we address the problem of finding characteristic subgroups of G such that their relative augmentation ideals depend only on the k-algebra structure of kG, where k is any field of characteristic p, and relate it to the modular isomorphism problem, extending and reproving some known results.