We investigate dynamical analogues of the L²-Betti numbers for modules over integral group ring of a discrete sofic group. In particular, we use them to introduce some invariants for algebraic actions. As an application, we give a dynamical characterization of Lueck's dimension-flatness.