Reasoning Planning for Language Models
Bao Nguyen, Hieu Trung Nguyen, Ruifeng She, Xiaojin Fu, Viet Anh Nguyen
TL;DR
This work tackles the challenge of selecting the most effective reasoning method for a given query to balance accuracy and computational cost. It introduces EPIC, a contrastive learning framework that jointly learns method embeddings and a question-to-method mapping, guided by theoretical probabilistic bounds on aggregation strategies to regularize learning. EPIC demonstrates consistent improvements in accuracy-cost trade-offs on mathematical reasoning benchmarks, transfers across datasets and model scales, and competitive performance on code-generation tasks, all while reducing inference cost. These results highlight the value of principled method-selection in LLM reasoning and provide a practical pathway for adaptive, resource-aware deployments.
Abstract
Selecting an appropriate reasoning method for a given query remains a key challenge in language model generation. Existing approaches typically generate multiple candidate responses and use an aggregation strategy to select the output answer, often assuming that more candidate answers yield higher accuracy. We revisit this assumption through a rigorous theoretical analysis, deriving accuracy bounds for standard aggregation methods under fixed generation distributions and candidate sizes. Building on these insights, we introduce EPIC, an Ensemble Planning with Contrastive learning framework to learn a shared representation space that captures both model reasoning abilities and query-method compatibility. EPIC incorporates our probability bounds as a regularizer in a utility-driven optimization that balances accuracy and computational cost. Experiments on diverse mathematical reasoning tasks show that EPIC consistently selects optimal reasoning methods, improving accuracy while reducing computational overhead. Our code can be found at https://github.com/nguyenngocbaocmt02/EPIC.
