The 20-year-old full-back currently has 28 senior Reds appearances to his name after making a debut during the 2019-20 campaign.
And Williams' ability to earn the faith of Jürgen Klopp has been aided by repeatedly testing his skills against Mohamed Salah and co at the AXA Training Centre.
"For me when I signed my contract, the main thing was I needed to improve as a player," the Wales international told Liverpoolfc.com. "And when I'm coming up against Mo Salah and Sadio Mane every day in training, it's going to make me a better player.
"I feel like I've matured in my game, especially when you've got Salah and Mane running at you every day. It is hard but it's going to make me a better player and I feel like it definitely has helped me.
"Normally a day before a game we'll do like an 11v11 with the starting team and the team who's on the bench or the rest of the players.
"Obviously Salah and Mane are starting most games and to play against them near enough every day, it does feel great because it's going to help me as a player.
"I'm learning off them and it gives me a little battle with them, so I'm enjoying it."