Abstract
The advancements in the reasoning abilities of large language models (LLMs) have been almost exclusively based upon chain-of-thought, which improve performance but increase the amount of verbose tokens within each response. As a result, the increased output size produces both slower inference and increased memory usage. These two factors provide a substantial barrier to deployment in limited resource environments as those commonly found in edge computing and robotics. This paper provides an implementation of ”cognitive density” to help bridge the gap between reasoning complexity and computational resources. We applied group relative policy optimization (GRPO), a Reinforcement Learning method that eliminates the need for a memory-intensive value network, to align a 4 billion parameter small language model (SLM) to produce mathematically correct responses. The goal is to resolve complex problems while being constrained by generating less than 250 total tokens. By designing a constraint aware reward structure we incentivized the model to generate highly concise reasoning. Our research identifies significant shortcomings of the present architectures; when using a token limit of 250 tokens, a state of the art Instruct SLM is reduced to 76% accuracy whereas its Thinking version is catastrophically decreased to 10% accuracy. This is due to current reasoning models having structural dependence on output length to produce coherent logic. In contrast Our aligned model performed at nearly 87% accuracy while being similarly constrained. Additionally, these results also showed that training a model for dense thinking was computationally efficient and reached convergence in under 1 hour on one GPU.