Large-scale connected and automated vehicle (CAV) formation control requires timely command computation to maintain global formation coordination. However, classical optimization-based methods suffer from rapidly increasing computational complexity as the formation size increases, making them impractical for large-scale CAV formations. To address this challenge, we propose TOGIA, a task-oriented global-interaction-aware multi-agent reinforcement learning (MARL) framework built upon the centralized training and decentralized execution (CTDE) paradigm. We develop TOGIA-TD3 by extending twin delayed deep deterministic policy gradient (TD3) with a global critic in addition to the individual critic, enabling joint optimization of ego-level task objectives and global formation coordination objectives. The global critic captures pairwise interactions through variational inference for consequence-grounded interaction modeling, and further integrates these interactions through the graph attention mechanism to model global dependencies. A counterfactual baseline is further introduced to quantify the contribution of each CAV to the global objective, thereby guiding effective cooperative policy learning. Experiments show that TOGIA reduces computation time to the millisecond level with only minor degradation in formation performance, and real-world tests validate its practical applicability.