Manuscript Offprint

arXiv:2610.38939

Optimization-based lane-changing trajectory planning in mixed traffic with embedded input convex neural networks

Yuanxiang Yang, Yu Liu, Fabricio Oliveira, Yu Han, Claudio Roncoli

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Lane-changing (LC) maneuvers are highly challenging vehicle interactions, with substantial implications for traffic safety and efficiency. Developing effective LC strategies for connected and automated vehicles in mixed traffic is complicated by the uncertainty associated with surrounding-vehicle behavior and the computational burden of embedding realistic prediction models within optimization schemes. To capture these complex interactions while retaining tractability, this study proposes a data-driven optimization framework that embeds neural network (NN) surrogates for safety and lateral comfort within a Bézier-curve-based trajectory planner. Specifically, the safety cost during the LC process is quantified via a surrogate composed of an input convex recurrent neural network (ICRNN) encoding the planned trajectory, a fully input convex neural network (FICNN) embedding the LC duration, and a partially input convex neural network (PICNN) decoder fusing them with historical traffic states; separately, another FICNN surrogate approximates the optimal lateral comfort cost as a function of the LC duration. Both surrogates are embedded via linear programming (LP) formulations, avoiding the binary variables required by conventional mixed-integer programming (MIP) approaches for NN-embedded optimization. We further theoretically establish their exactness at optimality and extend the framework to problems with additional analytical objective terms and multiple surrogates. Experiments on a hybrid dataset combining real-world and simulated trajectories demonstrate that the proposed method achieves surrogate accuracy competitive with unconstrained baselines while substantially improving optimization efficiency over conventional MIPs. Closed-loop simulations further show that the proposed planners markedly reduce the weighted planning cost and consistently outperform baseline methods.

Keywords: Data-driven optimization, Lane-changing trajectory planning, Mixed traffic, Input convex neural networks, Surrogate modeling

*Corresponding Author Email addresses: yuanxiang.yang@aalto.fi (Yuanxiang Yang), yu.2.liu@aalto.fi (Yu Liu), fabol@dtu.dk

1. Introduction

The transition toward widespread vehicle automation holds significant potential to improve road safety, alleviate traffic congestion, and enhance overall transportation efficiency (Papamichail et al., 2019; Karimi et al., 2020). Realizing these benefits requires advanced control strategies capable of safely coordinating automated vehicles in complex environments. Among the different driving tasks, lane-changing (LC) trajectory planning stands as a cornerstone challenge, particularly in mixed traffic flow environments where connected automated vehicles (CAVs) co-exist with human-driven vehicles (HDVs). In these heterogeneous traffic systems, the inherent unpredictability of human behavior introduces significant stochasticity, demanding LC trajectory planning algorithms that are not only computationally efficient but also robust and safety-critical. Considerable research has been dedicated to addressing this challenge, leading to the development of diverse techniques, which can be categorized into graph-search-based, learning-based, and optimization-based approaches (Guo et al., 2023).

Graph search algorithms are highly practical in complex and unstructured environments, due to their interpretability, optimality guarantee, and robust collision avoidance capabilities. However, the stability and quality of the planned trajectory are sensitive to grid resolution, and the resulting trajectories may be geometrically non-smooth or dynamically infeasible. Consequently, graph search is often paired with trajectory optimization for real-time, dynamically feasible planning (Dolgov et al., 2010; Katrakazas et al., 2015).

Learning-based methods have recently attracted increasing attention for trajectory planning in mixed traffic flow, because of their ability to handle complex nonlinear dynamics, uncertain interactions, and diverse driving behaviors. Typical learning-based approaches include imitation learning (Le Mero et al., 2022), deep reinforcement learning (Aradi, 2022), and generative models (Zheng et al., 2025). Despite these advantages, learning-based methods lack interpretability and explicit theoretical guarantees, making it difficult to ensure that the generated trajectories always satisfy safety, feasibility, and traffic-rule constraints. Furthermore, they are highly data-intensive and struggle to generalize across varying environments, despite ongoing mitigation efforts (Li et al., 2026). Therefore, these limitations motivate the development of more structured and constraint-aware trajectory planning approaches.

Optimization-based methods formulate trajectory planning as a constrained optimization problem, in which the desired trajectory is obtained by minimizing a predefined objective function subject to a set of explicit constraints, such as vehicle dynamics, collision avoidance, and traffic rules. Compared with learning-based methods, their primary advantage lies in a clear mathematical structure, strong interpretability, and the ability to explicitly handle physical and safety constraints. However, optimization-based methods often face challenges in terms of computational

(Fabricio Oliveira), yuhan2@hkust-gz.edu.cn (Yu Han), claudio.roncoli@kuleuven.be (Claudio Roncoli) complexity and in adequately capturing inter-vehicle interactions (Teng et al., 2023). To model the interactions between the ego vehicle and surrounding vehicles, many game theory-based trajectory planning methods have been proposed (Wang et al., 2022; Yang et al., 2024, 2025). Game theory models are inherently capable of capturing interactive decision-making among traffic participants, which is particularly important in mixed traffic environments. Moreover, existing optimization-based approaches, including both model predictive control (Micheli et al., 2023) and game-theoretic methods (Ji et al., 2023), rely on simplified analytical safety indicators or rule-based interaction models derived from car-following principles. Although such simplifications ensure computational efficiency, they may lead to discrepancies between the predicted and actual safety costs under dynamic interactions. To address this gap, in this work we integrate a neural network (NN) model into an optimization-based trajectory planning framework. The proposed model captures interactions among vehicles and predicts potential safety costs, thereby enabling the planner to avoid overly simplified vehicle prediction models while preserving the feasibility of real-time computation.

The manner in which NN models are integrated into optimization depends critically on whether the decision variables of the optimization problem are included as input features to the trained model. To avoid ambiguity with control theory terminology, this work subsequently uses the term inputs to refer exclusively to the features fed into the network. When the model inputs are independent of the decision variables, the resulting approach follows the standard “predict-then-optimize” paradigm (Elmachtoub & Grigas, 2022), in which prediction and optimization are performed sequentially. This work instead considers the paradigm in which the model inputs include the decision variables, so that the prediction and the optimization become coupled. Such approaches are increasingly adopted in settings where first-principles models are either computationally expensive or insufficiently expressive, and have been applied in domains including engine design (Yang et al., 2022), energy systems (Chen et al., 2020; Murzakhanov et al., 2022; Wang et al., 2025), process systems engineering (Yang et al., 2021; Wang et al., 2024; Liu & Oliveira, 2025), and manufacturing systems (Dvorkin et al., 2023).

Surrogate models adopt simpler data-driven representations to approximate complex or computationally demanding relationships, rendering them easier to incorporate into optimization. Embedding such a trained NN into an optimization problem can be classified as black-box, gray-box, or white-box embedding, depending on the extent to which information about the NN model is exploited (Dowson et al., 2026). Black-box embedding typically relies solely on the forward pass of the surrogate model and does not require its architecture, weights, or gradients. The resulting problem is commonly solved using derivative-free optimization algorithms, such as Bayesian optimization, which are particularly suitable when the underlying mapping is difficult to express analytically or when evaluations involve computationally expensive simulations or experiments. Such methods impose no specific restrictions on the types of decision variables or on the continuity and differentiability of the surrogate model. However, because the internal structure of the surrogate is not explicitly exploited, they generally do not provide the same deterministic global optimality guarantees for the surrogate-based optimization problem as structure-exploiting mathematical programming formulations (Wang et al., 2023b). Gray-box embedding exploits accurate first- and second-order derivative information obtained through backpropagation and is therefore mainly applicable to continuous decision variables (Elorza Casas et al., 2025). This approach can handle large-scale and complex NN models (Lawryńczuk, 2022; Wang et al., 2025). However, the resulting optimization problem may converge to a local optimum and may be affected by vanishing or exploding gradients.

Distinct from both approaches, white-box embedding fully exploits the NN model architecture by explicitly representing the forward propagation process through additional constraints incorporated into the original optimization problem. This approach supports both continuous and discrete decision variables and can provide global optimality guarantees under suitable formulations. It also offers greater flexibility in the solution process because the embedded constraints are inherently supported by existing solvers. The dominant white-box embedding approach relies on NNs with Rectified Linear Unit (ReLU) activations (Huchette et al., 2026), whose piecewise-linear structure admits an exact 0–1 mixed-integer programming reformulation (Fischetti & Jo, 2018). Notably, the resulting MIP is NP-hard to solve, and becomes computationally intensive as the network grows. Although several acceleration techniques, including bound tightening, model compression, warm starts, and model regularization (Yang et al., 2022; Wang et al., 2023a; Kenefake et al., 2024; Fajemisin et al., 2024), have been proposed, the introduction of integer variables cannot be completely avoided. This computational limitation indicates that the MIP formulation may not satisfy the real-time requirements of the trajectory planning problem in this work.

To overcome the computational bottleneck introduced by integer variables and guarantee global optimality, the input convex neural network (ICNN) (Amos et al., 2017) and its capability to obtain an LP formulation offer an appealing alternative when the underlying phenomenon is approximately convex. In fact, an ICNN ensures convexity with respect to its inputs by imposing non-negativity constraints on specific weights and using convex, non-decreasing activation functions. The representation capability of ICNNs is theoretically guaranteed, in that any Lipschitz continuous convex function on a compact domain can be approximated by an ICNN (Chen et al., 2019). The efficiency and scalability of this specific LP reformulation substantially broaden the applicability of ICNN-based models (Dvorkin et al., 2023; Wu & Wang, 2024; Liu et al., 2026b). Moreover, the partially input convex neural network (PICNN) introduces auxiliary variables without imposing convexity constraints, allowing the model to capture more complex input interactions while preserving convexity with respect to the decision variables. The enhanced flexibility can lead to more accurate predictions and better downstream performance compared with the more generic ICNN models, as demonstrated by Lawryńczuk (2022). Given their competitive representational capacity and excellent solution efficiency when embedded into optimization problems, ICNN-based models are promising candidates for real-time trajectory planning.

Nevertheless, extending this promise to demanding tasks such as LC planning presents chal-lenges that remain unresolved. Existing studies typically employ a single ICNN class that suffices for the system mappings they approximate, leaving the capability of ICNN-based models in more complex settings unexamined. The safety cost in LC planning illustrates such complexity, as it depends jointly on static features and dynamic trajectory sequences, which no single ICNN architecture accommodates naturally. Moreover, while recurrent extensions of ICNNs have been developed for sequential data (Chen et al., 2019; Wang et al., 2025), their LP reformulation, along with that of surrogates composing multiple ICNN-class modules, has not been established. Bridging these gaps calls for a surrogate design that composes ICNN-class architectures to match the structure of the planning problem, together with a formal validation of the resulting LP reformulation. A preliminary version of this work (Yang et al., 2026) is extended here by theoretically establishing proofs about the validity of the proposed reformulation, presenting and comparing alternative surrogate architectures, and further strengthening the empirical evaluation using real-world trajectory data. Specifically, we make the following contributions:

  1. A data-driven, optimization-compatible framework is developed for LC trajectory planning in mixed traffic. The framework embeds NN surrogate models into an optimization-based trajectory planner to approximate computationally demanding terms. By leveraging ICNN-class models, the underlying computationally intractable trajectory planning problem is reformulated as a tractable convex optimization problem, without introducing additional binary variables.

  2. The exactness of the LP reformulation for ICNN-class models under minimization is formally established through both theoretical analysis and numerical validation. The results are further extended to objective functions containing additional analytical terms and to optimization problems involving multiple ICNN surrogates.

  3. Two architectural adaptations of ICNN-class models are proposed. A many-to-one input convex recurrent neural network (ICRNN), building on Chen et al. (2019), is tailored to sequence-to-scalar prediction with a streamlined structure. A PICNN variant replaces the multiplicative gating of the original architecture (Amos et al., 2017) with additive coupling and is empirically compared with the gated original.

  4. A structured safety surrogate is designed for optimization-based trajectory planning. The proposed model combines a PICNN with ICRNN and fully input convex neural network (FICNN) modules to integrate historical traffic information with planned trajectory features, and admits a valid LP reformulation, while maintaining competitive predictive accuracy and optimization tractability.

The remainder of this paper is organized as follows. Section 2 formulates the LC trajectory planning problem and identifies the two objective components intractable for real-time implementation.

Figure

Figure 1: Schematic diagram of LC trajectory planning in mixed traffic environment, reproduced from Yang et al. (2025).

Section 3 develops the ICNN-class surrogate-embedded optimization framework by establishing the exactness conditions for its epigraph reformulation and presenting the structured safety and lateral-comfort surrogates, as well as the resulting reformulated planning problem. Section 4 evaluates the proposed approach in terms of surrogate prediction accuracy, reformulation efficiency, and closed-loop planning performance. Section 5 summarizes the main findings and discusses directions for further research.

References (62)