HN user

codelion

3,061 karma
Posts246
Comments157
View on HN
huggingface.co 2d ago

Neural Drive, a SuperTuxKart World Model that runs in the browser

codelion
1pts0
mlx-optiq.com 4d ago

Coding agent for local models on a Mac

codelion
1pts0
lambdasec.github.io 20d ago

Frame: Grounding LLM Vulnerability Detection with a Sound Separation-Logic Core

codelion
2pts0
mlx-optiq.com 1mo ago

Mlx-optiq: per-layer mixed-precision LLM quantization for Apple Silicon

codelion
2pts0
mlx-optiq.com 1mo ago

A 1B humanizer that matches human writing on an AI detector

codelion
3pts0
conjure.pages.dev 3mo ago

Zero-Dependency Programming

codelion
2pts0
huggingface.co 4mo ago

Scaling Pedagogical Pre-Training: From Optimal Mixing to 10B Tokens

codelion
2pts0
huggingface.co 5mo ago

From HashHop to Memory-Augmented Language Models

codelion
2pts0
huggingface.co 6mo ago

The Optimal Architecture for Small Language Models

codelion
1pts0
huggingface.co 7mo ago

Enhancing LLMs with LoRA – Standardized Recipes for Capability Enhancement

codelion
3pts0
algorithmicsuperintelligence.ai 7mo ago

OpenEvolve: Teaching LLMs to Discover Algorithms Through Evolution

codelion
53pts9
huggingface.co 7mo ago

Ellora: Enhancing LLMs with LoRA Standardized Recipes for Capability Enhancement

codelion
1pts0
huggingface.co 8mo ago

The 1B Token Challenge: Finding the Perfect Pre-Training Mix

codelion
6pts0
huggingface.co 8mo ago

The 1B Token Challenge: Finding the Perfect Pre-Training Mix

codelion
3pts0
huggingface.co 11mo ago

Pivotal Token Search (PTS): Targeting Critical Decision Points in LLM Training

codelion
2pts1
github.com 11mo ago

Internal Coherence Maximization(ICM): Label-Free Unsupervised Training Framework

codelion
1pts0
huggingface.co 11mo ago

Unsupervised Model Improvement via Internal Coherence Maximization

codelion
1pts0
news.ycombinator.com 12mo ago

Show HN: PTS Library – Analyze LLM reasoning through "thought anchors"

codelion
2pts0
huggingface.co 1y ago

Automated Discovery of High-Performance GPU Kernels with OpenEvolve

codelion
4pts0
huggingface.co 1y ago

Adaptive Classifier: Dynamic Text Classification with Continuous Learning

codelion
1pts0
news.ycombinator.com 1y ago

Show HN: DeepThink Plugin – Bring Gemini 2.5's parallel reasoning to open models

codelion
4pts0
arxiv.org 1y ago

Eliciting Fine-Tuned Transformer Capabilities via Inference-Time Techniques

codelion
1pts0
news.ycombinator.com 1y ago

Show HN: System Prompt Learning – LLMs Learn Problem-Solving from Experience

codelion
48pts13
news.ycombinator.com 1y ago

Show HN: AutoThink – Boosts local LLM performance with adaptive reasoning

codelion
397pts68
news.ycombinator.com 1y ago

Show HN: OpenEvolve – open-source implementation of DeepMind's AlphaEvolve

codelion
8pts3
github.com 1y ago

Pivotal Token Search (PTS): Identify critical decision points in LLM generations

codelion
1pts0
github.com 1y ago

Show HN: An adaptive classifier that detects hallucinations in LLM/RAG outputs

codelion
1pts1
news.ycombinator.com 1y ago

Show HN: OptiLLMBench – Test how inference optimization tricks scale up LLMs

codelion
2pts0
news.ycombinator.com 1y ago

Adaptive Classification for Automatic LLM Temperature Optimization

codelion
1pts0
news.ycombinator.com 1y ago

Show HN: A classifier that learns new categories without retraining from scratch

codelion
4pts1

You can run in two modes, by default you run in the inference mode without learning. So, the changes you made will be used. If you switch to learning mode then the strategies are updated/refined and merged based on a config that you can control.

# How often to perform maintenance operations (merge, prune)

MAINTENANCE_INTERVAL = 40

# Strategy selection thresholds

STRATEGY_CREATION_THRESHOLD = 0.7 # Higher threshold to avoid creating similar strategies

STRATEGY_MERGING_THRESHOLD = 0.6 # Lower threshold to merge more similar strategies

MIN_SUCCESS_RATE_FOR_INFERENCE = 0.4 # Minimum success rate for a strategy to be used during inference

The configs are all defined here - https://github.com/codelion/optillm/blob/main/optillm/plugin...

We have some examples in the plugin README: https://github.com/codelion/optillm/tree/main/optillm/plugin...

E.g. This was the strategy discovered by optiLLM for solving word problems:

*Refined Strategy for Solving Word Problems:*

1. *Understand:*\n * Read the problem carefully (multiple times).\n * Identify the question (what are you trying to find?).\n * List all given information (facts, numbers, units).\n * Clarify ambiguous terms/units.

2. *Organize Information & Identify Unknowns:*\n * Choose an organization method: (e.g., table, diagram, list, drawing).\n * Clearly identify the unknowns (what you need to solve for).

3. *Plan and Translate:*\n * Define all variables with units (e.g., `p = number of pennies`, `c = number of compartments`).\n * Identify relationships between knowns and unknowns.\n * Convert units if necessary.\n * Write equations or expressions, including units, that relate the knowns and unknowns.\n * Ensure units are consistent throughout the equations.\n * Outline the solution steps.

4. *Solve:*\n * Show work step-by-step.\n * Track units throughout calculations.\n * Calculate accurately.\n * Solve for the unknowns.\

5. *Evaluate and Verify:*\n * Check if the answer is reasonable.\n * Verify the answer.

6. *Summarize:*\n * State the answer with units

Full list of strategies discovered is available here -https://github.com/codelion/optillm/blob/main/optillm/plugin...

Thanks for checking this out! A few additional details that didn't fit in the main post:

The system maintains two separate limits: a storage limit (max 10 strategies per problem type in the database) and an inference limit (max 3 strategies applied per query). This keeps the database manageable while ensuring the system prompt doesn't get too long.

One interesting finding was that strategies only get used for inference once they have at least 5 attempts and a 40% success rate. This prevents the system from applying unproven strategies to new problems.

The approach works particularly well with reasoning models like DeepSeek-R1 and QwQ - the learned strategies seem to guide their thinking process effectively.

I'm especially curious about:

1. How this might work with different model families

2. Whether the community sees value in sharing strategy databases between users

3. Ideas for extending beyond text-based reasoning to multimodal problems

The plugin integrates with our broader optillm project which has other inference optimization techniques. You can combine SPL with methods like mixture-of-agents or MCTS using the "&" operator.

Next I'm thinking about meta-learning - having the system learn how to create better strategies more efficiently. Also exploring collaborative strategy sharing.

Would love to hear thoughts on the approach or if anyone has ideas for other problem domains where this might be useful!

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.

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.

The motivation for AutoThink came from watching how current reasoning models waste computation - they spend the same amount of "thinking time" on "what's 2+2?" as they do on complex mathematical proofs. This seemed obviously inefficient.

The breakthrough was combining two techniques I'd been working on separately: adaptive classification (which can learn new categories without retraining) and an open source implementation of Pivotal Token Search from Microsoft's Phi-4 paper. When I put them together with dynamic token budgeting, the performance gains were much better than expected.

What surprised me most was that the technique actually uses fewer tokens on average while improving performance. The adaptive allocation means simple queries finish faster, offsetting the extra computation on complex ones.

A few technical notes:

- The steering vectors are small (typically <1MB per pattern) and add minimal memory overhead

- Classification adds about 10ms latency, which is negligible

- Target layer selection matters - I found middle layers (15-20) work best for most models

I'd love feedback on:

- Have you tried similar adaptive approaches with your models?

- What other reasoning patterns would be useful to steer toward?

- Ideas for automatically detecting the optimal target layer?

Thanks for checking it out! Happy to answer any questions about the implementation or results.