Spaces:
Sleeping
Sleeping
Prajhan Claude Sonnet 4.6 commited on
Commit ·
8a2c433
1
Parent(s): 5eb6fbe
Remove ChatGPT-style phrasing from README
Browse filesReplace AI list setups, contrast structures, and hedging language with
direct first-person statements. Keeps the personal voice from the original.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
README.md
CHANGED
|
@@ -20,21 +20,15 @@ That gap is why this repo exists.
|
|
| 20 |
|
| 21 |
This project turns GEO auditing into an environment. An agent gets a page and a target query, inspects structured page signals, flags issues, submits a report, and gets scored against benchmark truth. The goal is not just to make GEO advice sound smart. The goal is to make GEO work measurable, testable, and eventually trainable.
|
| 22 |
|
| 23 |
-
## Why this is
|
| 24 |
|
| 25 |
-
Most SEO or GEO products help a human audit a page.
|
| 26 |
|
| 27 |
-
This project
|
| 28 |
|
| 29 |
-
That
|
| 30 |
|
| 31 |
-
|
| 32 |
-
- deterministic verifier and reward logic instead of subjective review
|
| 33 |
-
- benchmark tasks across three difficulty levels
|
| 34 |
-
- FastAPI, Docker, and Hugging Face deployment
|
| 35 |
-
- heuristic baseline, learned policy, and a working RL training loop
|
| 36 |
-
|
| 37 |
-
A tool that gives nice GEO suggestions is useful. An environment where agent behavior can be measured, compared, and improved is a different kind of asset.
|
| 38 |
|
| 39 |
## The environment loop
|
| 40 |
|
|
@@ -56,9 +50,9 @@ The reward is F1-style with a hard hallucination penalty.
|
|
| 56 |
reward = F1(flagged_types, truth_types) - (0.1 × false_positive_count)
|
| 57 |
```
|
| 58 |
|
| 59 |
-
False positives get penalized twice
|
| 60 |
|
| 61 |
-
A clean page that receives an empty report scores 1.0.
|
| 62 |
|
| 63 |
Positive findings are tracked separately at 15% weight, so a complete audit that catches both issues and strengths scores higher than one that only flags problems.
|
| 64 |
|
|
@@ -76,7 +70,7 @@ This gradient matters for training. Easy tasks give signal early. Hard tasks pre
|
|
| 76 |
|
| 77 |
## Reward hacking: how I tried to break it
|
| 78 |
|
| 79 |
-
|
| 80 |
|
| 81 |
**Flag nothing** — outputs `{"issues":[]}` everywhere. Scores 1.0 on clean pages, 0.0 on pages with real issues. Works if the benchmark is heavily skewed toward clean pages. Guardrail: the benchmark intentionally includes pages across all difficulty levels.
|
| 82 |
|
|
@@ -86,11 +80,11 @@ A deterministic reward is only as strong as its resistance to shortcuts. I tried
|
|
| 86 |
|
| 87 |
**Exploit the clean-page shortcut** — learn to output nothing on ambiguous pages. Guardrail: difficulty-balanced benchmark. Still a soft guardrail.
|
| 88 |
|
| 89 |
-
|
| 90 |
|
| 91 |
-
## The benchmark: 49
|
| 92 |
|
| 93 |
-
Synthetic benchmarks are easy to score well on
|
| 94 |
|
| 95 |
Each page was collected from the live web, checked against the issue taxonomy, and labeled by hand. The benchmark covers 15 easy, 17 medium, and 17 hard pages.
|
| 96 |
|
|
|
|
| 20 |
|
| 21 |
This project turns GEO auditing into an environment. An agent gets a page and a target query, inspects structured page signals, flags issues, submits a report, and gets scored against benchmark truth. The goal is not just to make GEO advice sound smart. The goal is to make GEO work measurable, testable, and eventually trainable.
|
| 22 |
|
| 23 |
+
## Why this is not just another GEO tool
|
| 24 |
|
| 25 |
+
Most SEO or GEO products help a human audit a page. There is a person in the loop. They read the output, decide what to do, and move on.
|
| 26 |
|
| 27 |
+
This project removes the human from that loop and asks a harder question: can the agent itself be evaluated, compared, and improved?
|
| 28 |
|
| 29 |
+
That requires something different from a text box with a submit button. It requires a structured action space, a deterministic verifier, benchmark tasks at real difficulty levels, and a reward signal that cannot be gamed by generating confident-sounding output.
|
| 30 |
|
| 31 |
+
None of that is free. That is why most tools do not have it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
## The environment loop
|
| 34 |
|
|
|
|
| 50 |
reward = F1(flagged_types, truth_types) - (0.1 × false_positive_count)
|
| 51 |
```
|
| 52 |
|
| 53 |
+
False positives get penalized twice — once through lower precision in the F1, and again through the explicit multiplier. Flagging everything does not work. I specifically designed it so that dumping every known issue type onto every page is a losing strategy.
|
| 54 |
|
| 55 |
+
A clean page that receives an empty report scores 1.0. Knowing when to say nothing is part of the task.
|
| 56 |
|
| 57 |
Positive findings are tracked separately at 15% weight, so a complete audit that catches both issues and strengths scores higher than one that only flags problems.
|
| 58 |
|
|
|
|
| 70 |
|
| 71 |
## Reward hacking: how I tried to break it
|
| 72 |
|
| 73 |
+
Before defending the reward to anyone else, I tried to break it myself.
|
| 74 |
|
| 75 |
**Flag nothing** — outputs `{"issues":[]}` everywhere. Scores 1.0 on clean pages, 0.0 on pages with real issues. Works if the benchmark is heavily skewed toward clean pages. Guardrail: the benchmark intentionally includes pages across all difficulty levels.
|
| 76 |
|
|
|
|
| 80 |
|
| 81 |
**Exploit the clean-page shortcut** — learn to output nothing on ambiguous pages. Guardrail: difficulty-balanced benchmark. Still a soft guardrail.
|
| 82 |
|
| 83 |
+
No single shallow strategy dominates. But I would not claim the reward is impossible to game. The benchmark is not adversarially constructed, and that is a real gap. The next version needs rotating eval splits, pages designed to fool shallow pattern-matching, and checks that verify the agent actually did the audit work before submitting a report.
|
| 84 |
|
| 85 |
+
## The benchmark: 49 real pages, manually reviewed
|
| 86 |
|
| 87 |
+
I did not want to only evaluate against synthetic data. Synthetic benchmarks are easy to score well on, and that would be cheating myself.
|
| 88 |
|
| 89 |
Each page was collected from the live web, checked against the issue taxonomy, and labeled by hand. The benchmark covers 15 easy, 17 medium, and 17 hard pages.
|
| 90 |
|