Ni kurabete in Japanese: compared with
Put the benchmark before ni kurabete to say ‘compared with.’ See how it frames changes over time and how it differs from a direct yori comparison.

In short
Put your benchmark before に比べて: 去年に比べて means ‘compared with last year.’ Then state what’s different. Keep the same measure on both sides, even when the sentence only names it once.
Yellow the idea to rememberBlue Japanese to learn
Use に比べて to set the comparison up before you give the result. In 前の部屋に比べて、今の部屋は明るいです, the old room supplies the benchmark and the current room is the one you describe.
Choose a clear benchmark
去年に比べて、今年は雨の日が少ないです。
丁寧語 politeCompared with last year, there are fewer rainy days this year.
Both sides are the number of rainy days. The benchmark’s measure is understood from the rest of the sentence.
バスに比べて、電車は時間が読みやすいです。
丁寧語 politeCompared with the bus, the train is easier to plan around.
Here 時間が読みやすい means the timing is easier to predict.
引っ越す前に比べて、通勤にかかる時間が短くなりました。
丁寧語 politeMy commute is shorter now than it was before I moved.
引っ越す前 gives a point of reference. Use a noun or a phrase that names the earlier situation.
Ni kurabete, to kurabete and yori
と比べて and に比べて can both mean ‘compared with’: 先月と比べて and 先月に比べて both set up last month as the reference. より offers a shorter direct comparison, as in 先月より忙しいです (‘I’m busier than last month’). For the shorter pattern, see Japanese comparisons with yori.