Milan have done a really good job by taking advantage of Juventus' bad form recently. They are at the second position now after this. I find their productivity quite decent this season compared to their nearest opponents like Juventus and Bologna. The main problem is more related to Milan's defending. They have conceded 33 goals in 29 games.

They can actually solve this problem by transferring better defenders this summer. They spent 100 million+ euros in total for transfers last summer if I'm not wrong. They should focus on their defense line more next time they make transfers. If they conceded much less goals than this now they could have been in the title race.
You can say yes and you can also say no, but it is true that Milan have been good at catching up with Juventus when Juventus have experienced a problem in their team that makes them unable to stay besrasing with Intermilan who are at the top of the table.
It is quite sad for Juventus and even though in the last match they could keep up with the attack from Inter Milan last week, it was good enough rather than getting defeated.
Milan are bad about their defense, but it seems like they haven't found a suitable candidate for a strong defense, but it's not a good thing to focus on defense, their central midfielders are also not good in my opinion, several times there is always a miss of communication and maybe need a central player in midfield so that it can connect between the back to the front line in building an effective and efficient attack.