Lurker News
I built AutoThink, a technique that makes local LLMs reason more efficiently by adaptively allocating computational resources based on query complexity.

The core idea: instead of giving every query the same "thinking time," classify queries as HIGH or LOW complexity and allocate thinking tokens accordingly. Complex reasoning gets 70-90% of tokens, simple queries get 20-40%.
I also implemented steering vectors derived from Pivotal Token Search (originally from Microsoft's Phi-4 paper) that guide the model's reasoning patterns during generation. These vectors encourage behaviors like numerical accuracy, self-correction, and thorough exploration.
Results on DeepSeek-R1-Distill-Qwen-1.5B:
- GPQA-Diamond: 31.06% vs 21.72% baseline (+43% relative improvement)
- MMLU-Pro: 26.38% vs 25.58% baseline
- Uses fewer tokens than baseline approaches
Works with any local reasoning model - DeepSeek, Qwen, custom fine-tuned models. No API dependencies.
The technique builds on two things I developed: an adaptive classification framework that can learn new complexity categories without retraining, and an open source implementation of Pivotal Token Search.
Technical paper: https://papers.ssrn.com/sol3/papers.cfm?abstract_id=5253327
Code and examples: https://github.com/codelion/optillm/tree/main/optillm/autoth...
PTS implementation: https://github.com/codelion/pts
I'm curious about your thoughts on adaptive resource allocation for AI reasoning. Have you tried similar approaches with your local models?

Comments (68) 23 threads

Earlier comments
shah_akshat#
Surprised this didn't exist. Great work @codelion
SamScout#
Great food for thought! We will discuss this approach as we find our evolving AI-crawler should ideally be able to recognize when a site we visit needs more vs. less queries.

For context, we're samaritanscout.org a search engine that is attempting to provide a comprehensive view into all local volunteering opportunities posted on a range of nonprofit websites.

casenmgreen3 replies#
It seems to me inadvisable to say "think" and "reason", because those words have particular meanings, and those particular meanings are not in use by LLMs.

They are a computing method, where we can choose to use more or less run time (and so processor time), to generate results.

falcor84#
The ship has sailed, just like "computers" once referred to a human profession and now referred to machines.
dgb23#
My worldview is materialist and deterministic in principle. But day to day I'm an existentialist with a touch of spiritualism.

To me, a fairly pragmatic way of characterizing these tools day to day is to anthropomorphize them. One benefit of this heuristic: they simulate conversation and it's much easier to use them with a conversational flow. Another one is to create an approximation of a character, which makes it easier to build a useful intuition for what they can and cannot do.
Obviously these kinds of heuristics do break down. But it's obvious enough when they do so one can switch into a more precise and analytical mode of thinking.

dymk#
When you “ping” and IP address, are you bouncing sound waves off of the metal hull of the other computer? No, but the word is used anyways, as it’s a useful metaphor for what’s really going on.
codelion1 reply#
Hey, yes the reported results do not restrict any time limit or token limit for the benchmarks. We run our baseline with the same config 0.6 temp and max_token 32k but we set a timeout after 600 secs. Otherwise it would take forever to benchmark with the resources we had. I have a note in the actual paper on that in the implementation details section.
lostmsu1 reply#
GPQA-Diamond is 200 questions. Any GPU since 2019 with 12GB of VRAM should be able to run tens if not hundreds of queries for a 1.5B model in parallel.
codelion#
If we try to benchmark GPQA-Diamond with DeepSeek-R1 in the suggested configuration of 0.6 temp and 32k max_tokens and say if every instance takes the maximum tokens it will require 6.4 M tokens. Which without batching on a single H100 at 80 tok/s will take 23 hrs to run. To run with 32k context length on a single H100 a 1.5B model will require ~15-20 GB VRAM so you cannot run 10s or 100s of queries in parallel.

MMLU-PRO is 12,000 instances. To avoid this we set a 600 seconds timeout for each instance to run.

Load more comments