Preheat oven to 350°F. Spray a 9x13-inch baking dish with baking spray.
In a large bowl, whisk or beat together the yellow cake mix, oil, eggs, sour cream, vanilla, and almond extract until combined. Set aside.
1 yellow cake mix, 3/4 cup vegetable oil, 4 large eggs, 1 cup sour cream, 2 teaspoons vanilla extract, 1/2 teaspoon almond extract
In a separate bowl, stir the brown sugar, cinnamon, and pecans, if using, together.
1 cup light brown sugar, 2 teaspoons ground cinnamon, 1/2 cup chopped pecans
Pour about 1/2 of the cake batter into the prepared pan, then sprinkle evenly with the cinnamon sugar mixture. Pour the remaining cake batter on top, then use a knife to gently swirl the cinnamon sugar mixture through batter.
Bake for 35-40 minutes until a toothpick inserted into the cake comes out clean with just a few crumbs.