I suspect a good metric to use here is how valuable you perceive your collaboration time to be. i.e. if all your collaboration time was highly valuable and productive, you wouldn’t feel a need to change your balance.
Thus, I’d suggest looking for ways to increase the value of collaboration time. I wonder if your issue stems from simply being more productive/experienced than your peers, which could give you the sense that collaboration slows you down.
And I did. And it was hard as hell. But I graduated and for the first time I really felt a sense of personal accomplishment. I hadn't finished college because someone told me I was supposed to, I did it because I wanted to.
Once I left college and I got to work full-time in my field of choice this lesson paid dividends. When I have a problem I really enjoy trying to solve, the hours can melt away. When I have a problem I really don't want to solve, I can still sit down and force my way through it. And don't get me wrong, my brain still fights against me in those moments ("Hey guy, go check Hacker News or Reddit!"). But most of the time I am able to recognize when it is happening and reign it in as necessary.
Gains in focus time (for me, anyway) are incremental, so it’s not like you wake up one day and can focus for 12 hours straight. Accept that it will be a slow road, and just keep trying to stay focused longer, whenever you sit down to work.
I’ve struggled at times though to figure out how to balance the need for off the cuff collaboration with teammates with the productivity that comes with isolation. I settled for what I estimate as a 40% loss at my last gig because it helped boost my teams’ overall productivity and improved the quality of our product. Having thought about it recently, I believe my ideal would be some kind of on/off cycle. Say, two days a week either remote or “quiet time” at the office, and three days anything goes.