Upload reports/blog_post.md
Browse files- reports/blog_post.md +57 -0
reports/blog_post.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Oracle-Credit-Compute: Making Agents Pay for Compute
|
| 2 |
+
|
| 3 |
+
Modern AI agents waste compute. Every tool call, retrieval, debate turn, and verifier pass consumes tokens and GPU time — often without improving the final answer. What if agents had to *earn* the right to use more compute?
|
| 4 |
+
|
| 5 |
+
## The OCC Idea
|
| 6 |
+
|
| 7 |
+
**Oracle-Credit-Compute (OCC)** is a minimal open-source framework that treats compute as a budgeted resource. Agents earn non-transferable, decaying credits by producing verified marginal impact. A broker decides whether an agent gets another model call, retrieval attempt, or debate turn.
|
| 8 |
+
|
| 9 |
+
## Why This Matters
|
| 10 |
+
|
| 11 |
+
- **Test-time compute is expensive**: o1-style reasoning can use 100× more tokens than a direct answer.
|
| 12 |
+
- **Not all agents are equal**: Some agents are cheap but low-quality; others are expensive but reliable.
|
| 13 |
+
- **Agents can game the system**: Repeating low-value actions, hoarding credits, or exploiting weak judges.
|
| 14 |
+
|
| 15 |
+
## How It Works
|
| 16 |
+
|
| 17 |
+
1. **Impact Oracle** scores every action: Did this retrieval help? Did this code attempt pass hidden tests? Did this debate turn improve the decision?
|
| 18 |
+
2. **Credit Ledger** tracks earned/spent/decayed credits per agent, per capability, per task.
|
| 19 |
+
3. **Resource Broker** grants or denies rights based on credit balance, risk, and task urgency.
|
| 20 |
+
4. **GRPO Hook** converts oracle scores into reinforcement-learning rewards.
|
| 21 |
+
|
| 22 |
+
## Results
|
| 23 |
+
|
| 24 |
+
On synthetic code-generation benchmarks, OCC achieves **66.8% compute reduction** while improving accuracy (96.0% vs 94.0% baseline). The key insight: prefer cheap agents first, stop immediately when any agent succeeds, and escalate to expensive agents only when needed.
|
| 25 |
+
|
| 26 |
+
On retrieval QA, OCC shows lower confident-wrong rates and better abstention behavior, though full accuracy requires stronger evidence-quality modeling.
|
| 27 |
+
|
| 28 |
+
On multi-agent debate, OCC matches equal-turns accuracy with 12% less compute.
|
| 29 |
+
|
| 30 |
+
## Anti-Gaming
|
| 31 |
+
|
| 32 |
+
OCC includes built-in defenses:
|
| 33 |
+
- **Spam detection**: Repeated low-value actions trigger penalties
|
| 34 |
+
- **Hidden-test gaming**: Passing public tests but failing hidden tests is penalized
|
| 35 |
+
- **Credit hoarding**: Decay prevents accumulation without spending
|
| 36 |
+
- **Transfer blocking**: Credits cannot be laundered between agents
|
| 37 |
+
- **Confidence manipulation**: Overconfident wrong answers are penalized
|
| 38 |
+
|
| 39 |
+
## Try It
|
| 40 |
+
|
| 41 |
+
```bash
|
| 42 |
+
git clone https://huggingface.co/narcolepticchicken/occ-stack
|
| 43 |
+
pip install -r requirements.txt
|
| 44 |
+
python -m benchmarks.benchmark_code
|
| 45 |
+
python -m benchmarks.benchmark_retrieval_qa
|
| 46 |
+
python -m benchmarks.benchmark_debate
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
+
## What's Next
|
| 50 |
+
|
| 51 |
+
The framework is ready for real LLM integration. The next step: train a small model with OCC's cost-adjusted GRPO rewards on HumanEval+ or a math dataset, measuring actual GPU-seconds saved.
|
| 52 |
+
|
| 53 |
+
## Links
|
| 54 |
+
|
| 55 |
+
- Code: https://huggingface.co/narcolepticchicken/occ-stack
|
| 56 |
+
- Report: https://huggingface.co/narcolepticchicken/occ-stack/blob/main/reports/report.md
|
| 57 |
+
- Literature Review: https://huggingface.co/narcolepticchicken/occ-stack/blob/main/reports/literature_review.md
|