Let $G$ be an infinite finitely generated group. Fix a finite generating set for $G$.
Define $\mathrm{len}_G:G\to\mathbb{Z}_{\geq 0}$ by sending $g$ to the minimum length of a word in the generators and their inverses equal to $g$.
Let $H\subset G$ is an infinite finitely generated subgroup. Fix a finite generating set for $H$.
Question. Under what conditions is there a computable function $m \colon \mathbb{Z}_{\geq 0}\to\mathbb{Z}_{\geq 0}$ such that for all $h\in H$ the inequality $$ \mathrm{len}_H(h)\leq m(\mathrm{len}_G(h)) $$ holds?