Skip to content

Lift sparse population-density tail cases - #38

Closed
SonAIengine wants to merge 1 commit into
codex/bfcl-near-miss-ranking-liftfrom
codex/bfcl-tail-hardcase-lift
Closed

Lift sparse population-density tail cases#38
SonAIengine wants to merge 1 commit into
codex/bfcl-near-miss-ranking-liftfrom
codex/bfcl-tail-hardcase-lift

Conversation

@SonAIengine

@SonAIengine SonAIengine commented Jul 19, 2026

Copy link
Copy Markdown
Owner

Summary

  • add a narrow population-density fallback for sparse calculate_density operation names
  • cover the case where duplicate BFCL operation names leave the indexed description less specific than the expected tool use
  • update the research docs with the 0.26 deterministic retrieval gate status

Results

  • deterministic BFCL recall@5: 0.95000 -> 0.95200
  • deterministic BFCL all-tools@5: 0.928 -> 0.930
  • deterministic BFCL MRR: 0.8305 -> 0.8325
  • deterministic BFCL NDCG@5: 0.8509 -> 0.8529
  • hard-case count: 72 -> 70
  • expected_present_below_top_k issue count: 59 -> 57
  • case-level recall changes: improved 2, worsened 0
  • X2BEE scale acceptance: pass, 1084 unique tools, hit@3=1.00, selector exact@3=1.00, avg candidates=2.16, max candidates=7, avg latency=39.50ms

This reaches the 0.26 deterministic retrieval gates: recall@5 >= 0.95 and retrieval_miss <= 70.

Validation

  • poetry run ruff check .
  • poetry run ruff format --check .
  • poetry run pytest tests/ -q
  • ARTIFACT_DIR=/tmp/gtc-bfcl-tail-current make research-check-deterministic
  • REPORT=/tmp/gtc-bfcl-tail-current/bfcl-deterministic.json OUT_DIR=/tmp/gtc-bfcl-tail-hardcases FAILURE_CATEGORIES=retrieval_miss REPORT_TOP_KS=5 TOP_K=5 INSPECT_DEPTH=20 make bfcl-hard-cases
  • make xgen-scale-acceptance OUT=/tmp/gtc-bfcl-tail-x2bee-acceptance.json

@SonAIengine

Copy link
Copy Markdown
Owner Author

Closing this internal stacked PR as superseded by the current main branch. The branch is preserved for history.

@SonAIengine SonAIengine closed this Aug 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant