Download README.md from sqlcf-lexsi/counterfactual-sql-demo: direct link, hf CLI and curl.
- Browser
- Download file 1.87 kB
-
https://huggingface.co/spaces/sqlcf-lexsi/counterfactual-sql-demo/resolve/main/README.md
- Command line
-
hf download hf://spaces/sqlcf-lexsi/counterfactual-sql-demo/README.md
-
curl -L -o README.md https://huggingface.co/spaces/sqlcf-lexsi/counterfactual-sql-demo/resolve/main/README.md
title: Counterfactual SQL Rewards
emoji: 馃М
colorFrom: indigo
colorTo: green
sdk: static
app_file: index.html
license: cc-by-nc-4.0
short_description: Check SQL on counterfactual DBs the agent never saw
tags:
- text-to-sql
- reward-hacking
- lexsi-hackathon
A SQL query can match the answer on the one database an agent explored and still be wrong. Pick a test question and a recorded run (Tiny Aya Global base, SFT, GRPO-B single-DB reward, GRPO-C counterfactual reward, or Command A), or type your own SQL, and see it checked on the original DB plus counterfactual DBs the agent never saw, with the score each reward function gives. Runs in your browser (Pyodide); the first load takes 20-60 s.
Lexsi Labs AI Safety & Alignment Hackathon, Track 3 (PS #6 data and database agents + #9 reward design and reward-hacking defences), team Teen_khapeetars: Shreshth Rai (lead, @hi-phi-r25i), Rishii Kumar Singh (@LogicPalette), Aksh Aggarwal (@AkshAgg).
Collections: models, data 路 Demo 路 Data 路 Adapters: SFT, GRPO-B, GRPO-C 路 Code 路 Write-up