Dwyer's filtration and topology of 4-manifolds