It's not just Beijing. According to the polution ratings I follow, right now (it varies a lot during the day, it's 2AM here now) Beijing is ranked 16th among the ~50 cities that the government rates. The rating right now is also the same as the one posted by the US embassy here.
From what I understand, much of the pollution comes also from other industrial cities and accumulates in this general area of the country (someone that knows more about it please correct me if this is wrong).
The government seems to be taking some actions, but it is hard to know how hard they're tackling the problem.