Dataset Viewer
The dataset could not be loaded because the splits use different data file formats, which is not supported. Read more about the splits configuration. Click for more details.
Couldn't infer the same data file format for all splits. Got {NamedSplit('train'): ('json', {}), NamedSplit('validation'): ('json', {}), NamedSplit('test'): ('harbor', {})}
Error code:   FileFormatMismatchBetweenSplitsError

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

Liar's Dice 2D5F OpenEnv environment

OpenEnv environment for the VRPO reproduction paper (2605.19235). It implements the scoped reproduction vehicle: two-player Liar's Dice, two dice per player, five faces, and the highest face wild.

Participant / Team: Papajams (solo · team size = 1)
Paper: GAE Falls Short in Imperfect-Information Self-Play Reinforcement Learning, arXiv 2605.19235
Environment status: OpenEnv 0.1.3; static manifest validation passes and the live Maritime deployment passes the six-check OpenEnv HTTP semantic probe.
Post-training audit verdict: the primary Qwen LoRA is supported as a compact held-out post-training artifact against the heuristic opponent, but its improvement does not transfer to the authors' stronger MARVEL checkpoint. That negative transfer is deliberate evidence, not a hidden caveat.

RL-environment requirement map

requirement where / status
task prompt task_prompt.md
train/held-out tasks tasks/*.jsonl, including random, heuristic, mixed and MARVEL-opponent splits
environment server/, game.py, client.py, models.py, openenv.yaml
Dockerfile server/Dockerfile
live server https://10e63038-5db9-418f-8aca-d498033ced9b.mtm.sh/
deterministic verifier evaluation/verify_episode_trace.py plus tasks/example_trace.json
exact evaluator evaluation/exact.py and evaluation/evaluate_tables.py
primary post-trained model Papajams/liarsdice-openenv-qwen35-lora
lightweight baseline model Papajams/liarsdice-openenv-linear-policy
strong-opponent reference Papajams/vrpo-liarsdice2d5f-checkpoint through training/marvel_opponent.py
base-vs-trained reward model card tables; 60 episodes/opponent cell
reward-hacking / overfitting check hidden-information input audit, deterministic replay, exact evaluator, and MARVEL opponent-transfer audit

The environment has two complementary parts:

  1. a lightweight OpenEnv/FastAPI game server for agent interaction and training;
  2. a self-contained exact exploitability evaluator for backend-shaped behavior tables, with no dependency on the authors' compiled nanopokerlib.

Game contract

  • reset(seed=...) starts a fresh episode. Starting player alternates across resets, matching the authors' training-core round-robin. Pass start_player=0 or start_player=1 to pin it.
  • The agent sees only the active viewer's private dice, the public bid history, the active player, and legal actions. Episode seeds are accepted by reset for reproducibility but are not exposed in observations or client-visible state, because seed visibility would leak hidden information in this deterministic implementation.
  • A bid is {action_type: "bid", quantity: q, face: f}. Bids must strictly improve lexicographically: higher quantity, or the same quantity with a higher face.
  • {action_type: "call"} ends the round. For a non-wild bid, dice equal to the bid face or the wild face count. For a wild-face bid, only wild dice count.
  • If the number of matching dice is at least the bid quantity, the bidder wins; otherwise the caller wins. Rewards are zero-sum and reported from player 0's perspective (+1 win, -1 loss) in the base reward channel.
  • Dice seeding is deterministic within this environment, but seed values are not claimed to be bit-compatible with the authors' C++ std::mt19937 rollout RNG.

Unlike the authors' auto-resetting training-core frame, terminal CALL returns done=True; call reset() explicitly for the next episode. This follows normal Gym/OpenEnv semantics.

Modes

self_play (default): the client controls whichever player is active and each observation exposes that active player's private dice. This is the appropriate self-play training interface.

adversarial: the client controls player 0 only. Player 1 is driven by a scripted opponent inside the environment. Supported opponents are random, first_bid_then_call, and heuristic. The deployment default is controlled by LIARSDICE_OPPONENT; a reset can also select it explicitly with reset(..., opponent="heuristic"). The heuristic opponent uses only its own private dice and public bid history: it calls implausible bids and otherwise prefers small raises supported by its own dice. Win rate against any scripted opponent is a benchmark metric, not exploitability evidence.

Exact exploitability grading

Exact evaluation lives in evaluation/exact.py. It builds a small C++ shared library with the system compiler and calls it through ctypes; no pybind11, CMake, or authors' compilation is needed. The Docker image precompiles this library in a builder stage so exact evaluation is available inside the runtime image without shipping a compiler.

from liarsdice_openenv.evaluation.exact import exact_evaluate

print(exact_evaluate(faces=3))  # fast regression variant
print(exact_evaluate(faces=5))  # paper-scoped 2D5F uniform baseline

Passing no tables means the authors' all-zero/uniform-over-legal-actions convention. CLI form:

python -m liarsdice_openenv.evaluation.evaluate_tables --faces 3
python -m liarsdice_openenv.evaluation.evaluate_tables \
  --faces 5 --strategy0 strat0.npy --strategy1 strat1.npy --output exact.json

Validated regression on the smaller 2D3F variant, matched to the authors' supplementary fixture:

  • ev_player0 = 0.009259259259
  • exploitability_player0 = 0.741157855253
  • exploitability_player1 = 0.736834009802

Measured 2D5F uniform baseline on this implementation:

  • ev_player0 = -0.014
  • exploitability_player0 = 0.908314218741
  • exploitability_player1 = 0.872881042917
  • mean exact exploitability 0.890597630829
  • about 3.8 s and 465 MB peak RSS on an Apple Silicon MacBook

Behavior tables use the authors' backend conventions: sorted private-dice multisets, ascending bid-mask order, local available-action indexing, and call after the legal bid actions. A 2D5F table has shape (7,864,320, 25) per player. This is intentionally large because exact imperfect-information evaluation is large; use memory-mapped .npy files for trained policies. The exact evaluator assumes player 0 is the opening bidder, matching the authors' exact traverser; episode-level alternation is a training-core fairness mechanism and is separate from exact evaluation.

Live Maritime deployment

A public deployment is available at:

https://10e63038-5db9-418f-8aca-d498033ced9b.mtm.sh/

Validated on 2026-12-04 after source deployment 2d474732-0af2-4fef-9372-819d120e2db4 of commit b0fb19e: /health returns 200, the OpenEnv HTTP semantic validation passes all six checks, and a same-seed adversarial reset probe shows the new opponent implementations are live (random opened 2×2 while heuristic opened 1×3 for seed 1000 with player 1 forced to start). No episode_seed key appears anywhere in those probe responses. Raw evidence is in validation/live_maritime_20261204.json. Use /ws (or the typed OpenEnv client) for stateful rollouts: the plain HTTP /reset and /step routes are per-request OpenEnv invocation endpoints, not a shared episode store. Use a browser or curl user agent; Cloudflare may block bare Python HTTP clients. The service auto-sleeps when idle and wakes on traffic.

Task data and independent verifier

The dataset packaging adds a small explicit task split:

  • tasks/train.jsonl: 200 adversarial-mode training tasks, seeds 0–199;
  • tasks/heldout.jsonl: 20 disjoint adversarial-mode random-opponent held-out tasks, seeds 1000–1019;
  • tasks/train_curriculum.jsonl: 64 mixed training tasks, 32 random-opponent and 32 heuristic-opponent instances;
  • tasks/heldout_heuristic.jsonl: 20 disjoint adversarial-mode heuristic-opponent held-out tasks, seeds 1000–1019;
  • tasks/heldout_marvel.jsonl and tasks/heldout_marvel_argmax.jsonl: the same held-out seeds evaluated against the authors' MARVEL checkpoint in sampled or argmax mode;
  • tasks/train_opponent_mix.jsonl: 96-task training curriculum mixing random, heuristic, MARVEL-sampled and MARVEL-argmax opponents;
  • tasks/heldout_mix.jsonl: compact mixed-opponent in-training monitor;
  • task_prompt.md: the agent-facing task statement and constraints.

The MARVEL opponent is implemented in the training/evaluation-side bridge (training/marvel_opponent.py), not in the lightweight public server image. This keeps the server dependency-light while allowing rigorous strong-opponent evaluation of trained agents.

These tasks use adversarial mode so terminal reward is meaningful for a single player-0 policy. Self-play mode remains available for symmetric RL training.

evaluation/verify_episode_trace.py is a deterministic replay verifier for episode traces. It checks legality, terminality and claimed reward consistency without trusting the server that produced the trace. A passing example is in tasks/example_trace.json with expected output tasks/example_verdict.json. The exact exploitability evaluator remains the stronger anti-reward-hacking measurement for exported behavior tables.

Compute, duration and cost evidence

  • The lightweight linear-policy CPU baseline trained and evaluated in about 4.4 s on an Apple Silicon MacBook with no paid compute ($0.00 marginal cloud cost).
  • The first Qwen LoRA run completed 8 Tinker steps in about 3.05 min of measured step-loop time for an in-run token cost of $0.170989165.
  • The mixed-opponent remediation completed 12 Tinker steps in about 4.44 min of measured step-loop time for an in-run token cost of $0.252710643; the remote Modal opponent-ladder evaluation orchestration cost $0.00589364.
  • Earlier failed renderer/diagnostic Tinker sessions were billing-confirmed at $0.2493073. Some independent sampling rows lagged billing export when the cards were written, so these components should not be summed into a false exact all-in total.
  • The separate two-arm VRPO/IPPO reproduction in the parent Space cost $11.358455 on Modal, including crash/resume relaunches, with about 9.5 A10G GPU-hours implied by the A10G resource component.

Falsification and reward-hacking checks

This dataset is not a falsification entry for the paper: the scoped parent reproduction directionally supports the LiDi 2D5F row. The relevant falsification direction for that reproduction is that IPPO would be within about 1–2 SEM of VRPO or the VRPO reduction would be well below 15%; one seed cannot estimate that SEM band.

For the RL environment itself, reward hacking is checked rather than assumed away:

  1. observations omit episode seeds and opponent dice;
  2. terminal rewards are only environment outcomes (+1/-1), with invalid or unparseable actions terminating at -1;
  3. evaluation/verify_episode_trace.py independently replays terminal traces;
  4. exact exploitability evaluation is available for exported behavior tables;
  5. the opponent ladder exposes whether gains generalize. The first Qwen LoRA improved against the heuristic opponent but became worse against MARVEL; a mixed-opponent remediation improved the heuristic cell yet failed the pre-committed MARVEL-transfer promotion bar.

training/train_linear_policy.py is the CPU-only post-training harness used for the compliant lightweight model artifact. It trains a zero-initialised 13-feature linear softmax policy with REINFORCE on the packaged training tasks, evaluates the zero-initialised base policy and trained policy on the held-out tasks, and writes a deterministic replay verification example.

Hackathon award-entry status

As of 2026-12-04, the environment packaging exists as a public Hugging Face dataset:

https://huggingface.co/datasets/Papajams/liarsdice-openenv

It is tagged rl-environment and openenv and includes the task prompt, training/held-out task files, OpenEnv server/Dockerfile, deterministic episode replay verifier, and exact exploitability evaluator.

Three model artifacts are public:

  1. https://huggingface.co/Papajams/liarsdice-openenv-qwen35-lora — the main post-trained artifact: a Qwen/Qwen3.5-4B LoRA adapter trained with Tinker stable_reinforce on the mixed random/heuristic curriculum. In independent held-out evaluation (20 tasks × 3 stochastic rollouts per policy), mean reward against the heuristic opponent improved from -0.3333 for the base model to +0.1667 for the trained adapter (paired Δ +0.5000, bootstrap 95% CI [+0.2000, +0.8000]; win rate 33.3% → 58.3%). Against the random opponent the base was already strong and the difference was small and uncertain (0.6000 → 0.6333). The model card includes exact training configuration, token counts, cost, rollout summaries, reward-hacking checks, and per-episode rows.
  2. https://huggingface.co/Papajams/liarsdice-openenv-linear-policy — a small zero-initialised linear softmax policy post-trained on this OpenEnv implementation with REINFORCE. Its model card reports held-out mean reward improving from 0.335 (uniform base policy) to 0.965 over 20 held-out tasks × 20 stochastic rollouts. This remains useful as a tiny CPU-only baseline, but is superseded by the Qwen LoRA artifact as the primary post-trained model.
  3. https://huggingface.co/Papajams/vrpo-liarsdice2d5f-checkpoint — the authors' bespoke MARVEL/VRPO checkpoint preservation artifact. It is scientifically relevant but was trained through the authors' implementation, not this OpenEnv server, so it is not the strict compliance artifact.

The RL-environment entry is therefore substantially stronger than the initial lightweight entry: it now has a recognisable open-LLM LoRA artifact, a mixed opponent curriculum, opponent-dependent evaluation, and explicit uncertainty. It is still not evidence that deep VRPO itself was replicated, and it is not an exploitability result.

The MARVEL strong-opponent audit is now implemented. The pure-Python bridge matches the authors' official connector on 20 infosets with maximum action probability difference 1.54e-08. A fixed heuristic reference policy wins 82.5% against the random opponent but only 28.8% against MARVEL-argmax, confirming that the checkpoint is materially stronger than the scripted baselines. The first Qwen LoRA improved against the heuristic opponent but became worse against MARVEL, so the environment now provides a concrete opponent-overfitting/reward-generalization audit rather than only positive reward curves. A second mixed-opponent Tinker run was remotely evaluated on Modal across random, heuristic, MARVEL-sampled and MARVEL-argmax held-out tasks; it improved the heuristic cell but did not significantly improve MARVEL transfer, so it is documented as a negative remediation rather than promoted as the primary model. Raw artifacts are under training/out/opponent_ladder_mix_20261205/.

Client example

from liarsdice_openenv import LiarsDiceAction, LiarsDiceEnv

with LiarsDiceEnv(base_url="http://localhost:8000").sync() as client:
    result = client.reset(seed=7, start_player=0)
    while not result.done:
        action = result.observation.legal_actions[0]
        result = client.step(LiarsDiceAction(**action))
    print(result.reward, result.observation.terminal_info)

Run locally

In this repository, the environment directory is nested under the VRPO paper directory. From neurips/2605.19235-vrpo:

PYTHONPATH=. python3 -m unittest discover -s liarsdice_openenv/tests -v
PYTHONPATH=. python3 liarsdice_openenv/scripts/smoke_episode.py

As a standalone OpenEnv package:

pip install -e .
uvicorn liarsdice_openenv.server.app:app --host 0.0.0.0 --port 8000

Validation performed with OpenEnv 0.16.0:

openenv validate --level static --skip-build
openenv validate --url http://127.0.0.1:8123 --level semantic

Static validation passed static.manifest; local URL validation passed all six runtime/profile checks (openapi_version_available, health_endpoint, metadata_endpoint, schema_endpoint, mcp_endpoint, and mode_endpoint_consistency). After the 2026-12-04 no-seed redeploy, semantic validation against the live Maritime URL again returned verdict PASS. A 21-step terminal self-play episode and an adversarial-mode reset were also smoke-tested through the typed WebSocket client.

Files

  • game.py — pure-Python game rules, legal-action validation, seeds, payoffs
  • server/liarsdice_environment.py — OpenEnv reset/step/state wrapper
  • server/app.py — FastAPI application factory
  • client.py / models.py — typed OpenEnv client and schemas
  • evaluation/exact.py — exact exploitability evaluator wrapper/builder
  • evaluation/cpp/liarsdice_exact.cpp — exact game-tree evaluator source
  • evaluation/evaluate_tables.py — CLI for uniform or .npy behavior tables
  • training/train_linear_policy.py — CPU-only REINFORCE post-training/eval harness
  • validation/runtime.json — small OpenEnv runtime smoke plan
Downloads last month
75

Models trained or fine-tuned on Papajams/liarsdice-openenv

Spaces using Papajams/liarsdice-openenv 2