Heat the oven to 400°F (200°C). Spray a muffin tin generously with nonstick spray or rub the insides of the spaces with oil to prevent sticking.
Wash the sweet potatoes. (You can peel them if you want, but they’ll have more texture if you leave the peels on.) Slice them into 1/16-inch rounds with a mandoline or sharp knife.
In a large saucepan, heat the butter until it melts. Move the pan off the heat and whisk in 2 tablespoons of brown sugar. (If you used unsalted butter, add ½ teaspoon of salt here.)
Add the sliced sweet potatoes to the melted butter mixture and stir gently until every slices is coated on both sides.
Stack the slices in the muffin cups, filling each a little over the top, because the potatoes shrink as they cook.
Spoon any remaining butter-sugar mixture over the tops of the stacks. Then top the stacks with the remaining 1 tablespoon of brown sugar.
Bake the sweet potatoes, uncovered, until a knife can easily pierce the center of the tallest stack, 25 to 35 minutes. (Note: The total cook time can vary a lot based on the thickness of slices and the type of sweet potato you’re using, so start testing at 25 minutes and keep checking every few minutes until they’re done.)
Cool in the pan for 3 to 5 minutes, then run a small knife or spoon around each stack and lift it out. Nudge any stacks that tipped back upright.
Top with the chopped pecans and serve warm.