It's my experience that caustic soda doesn't really do much to dissolve aluminium - but it will help to dissolve the aluminium oxide gunk that is probably doing the jamming.
My approach was to mix up some strong caustic solution, wedge open the seat tube as much as possible, then trickle some solution (from a syringe) down the crack between seat tube and seat pin. Go to work. On return, clamp seat pin stump in vice and swing on bike frame.
Repeat every day for two weeks - eventual success. It may have helped that mine was a fluted seatpost, so I could squirt stuff down the grooves. Then again, this allowed salty water to get down there in the first place and cause the corrosion...
If/when you get it out, bear in mind Dodgy's advice:
Ladies and Gentlemen of the class of '97, Grease your seatpost. If I could offer you only one tip for the future, greasing your seatpost would be it. The long term benefits of greasing your seatpost have been proved by scientists, whereas the rest of my advice has no basis more reliable than my own meandering experience....