A Theory for Length Generalization in Learning to Reason
<|reference_start|>A Theory for Length Generalization in Learning to Reason: Length generalization (LG) is a challenging problem in learning to reason. It refers to the phenomenon that when trained on reasoning problems of smaller lengths or sizes, the resulting model struggles with problems of larger sizes or lengths. Although LG has been studied by many researchers, the challenge remains. This paper proposes a theoretical study of LG for problems whose reasoning processes can be modeled as DAGs (directed acyclic graphs). The paper first identifies and proves the conditions under which LG can be achieved in learning to reason. It then designs problem representations based on the theory to learn to solve challenging reasoning problems like parity, addition, and multiplication, using a Transformer to achieve perfect LG.<|reference_end|>
@article{xiao2024a,
    title={A Theory for Length Generalization in Learning to Reason},
    author={Changnan Xiao and Bing Liu},
    journal={arXiv preprint arXiv:2404.00560},
    year={2024},
    archivePrefix={arXiv},
    eprint={2404.00560},
    primaryClass={cs.AI}
}