Release main-table weights and compact reproduction data
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- .gitattributes+4
- README.mdAdded+47
- appendix.pdfAdded+3
- experiment_data.tar.gzAdded+3
- main.pdfAdded+3
- paper_results/data/budget_diagnostics.jsonAdded+370
- paper_results/data/comparisons.jsonAdded
- paper_results/data/earlier_results.jsonAdded
- paper_results/data/joint_MiniCPM_comparison_20260910.jsonAdded+58
- paper_results/data/joint_Qwen3.8_comparison_20260910.jsonAdded+58
- paper_results/data/layout_verification.jsonAdded+29
- paper_results/data/main_table_cost_qwen_20260912/build_figures.pyAdded+101
- paper_results/data/main_table_cost_qwen_20260912/components/instancevg_router.jsonAdded+239
- paper_results/data/main_table_cost_qwen_20260912/components/instancevg_specialist.jsonAdded+254
- paper_results/data/main_table_cost_qwen_20260912/components/qwen_flops.jsonAdded+341
- paper_results/data/main_table_cost_qwen_20260912/components/qwen_gref_flops.jsonAdded+341
- paper_results/data/main_table_cost_qwen_20260912/components/qwen_gref_latency.jsonAdded+2446
- paper_results/data/main_table_cost_qwen_20260912/components/qwen_latency.jsonAdded
- paper_results/data/main_table_cost_qwen_20260912/components/yolo26x_router.jsonAdded+238
- paper_results/data/main_table_cost_qwen_20260912/components/yolo26x_specialist.jsonAdded+254
- paper_results/data/main_table_cost_qwen_20260912/cost_summary.jsonAdded+75
- paper_results/data/main_table_cost_qwen_20260912/fixed_budget_cost_performance.csvAdded+29
- paper_results/data/main_table_cost_qwen_20260912/full_cost_performance_curves.csvAdded+405
- paper_results/data/main_table_cost_qwen_20260912/main_table_results.jsonAdded
- paper_results/data/main_table_cost_qwen_20260912/reproducible/measure_flops.pyAdded+152
- paper_results/data/main_table_cost_qwen_20260912/reproducible/measure_large.pyAdded+209
- paper_results/data/main_table_cost_qwen_20260912/reproducible/measure_router.pyAdded+104
- paper_results/data/main_table_cost_qwen_20260912/reproducible/measure_specialist.pyAdded+258
- paper_results/data/main_table_cost_qwen_20260912/reproducible/prepare_output.pyAdded+19
- paper_results/data/main_table_cost_qwen_20260912/reproducible/read_main.pyAdded+10
- paper_results/data/main_table_cost_qwen_20260912/reproducible/setup_local.pyAdded+6
- paper_results/data/main_table_cost_qwen_20260912/reproducible/switch_qwen.pyAdded+23
- paper_results/data/main_table_cost_qwen_20260912/selected_points.csvAdded+5
- paper_results/data/main_table_cost_qwen_20260912/verify_and_report.pyAdded+57
- paper_results/data/main_table_cost_qwen_20260912/成本性能报告.mdAdded+50
- paper_results/data/method_improvement_spec.jsonAdded+114
- paper_results/data/operation_measurements.jsonAdded+129
- paper_results/data/results.jsonAdded
- paper_results/data/scaling_selected.jsonAdded+1250
- paper_results/data/shared_search.jsonAdded+720
- paper_results/data/table_audit.jsonAdded+443
- paper_results/figures/build_compact.pyAdded+111
- paper_results/figures/build_cost.pyAdded+84
- paper_results/figures/build_tables.pyAdded+123
- paper_results/figures/cost_includes.texAdded+14
- paper_results/figures/gains_compact.pdfAdded
- paper_results/figures/gains_compact.pngAdded
- paper_results/figures/joint_delta.pdfAdded
- paper_results/figures/joint_delta.pngAdded
- paper_results/figures/scaling_ranked.pdfAdded
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines3334353637383932 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textappendix.pdf filter=lfs diff=lfs merge=lfs -textmain.pdf filter=lfs diff=lfs merge=lfs -textpaper_results/figures/gains_compact.png filter=lfs diff=lfs merge=lfs -textpaper_results/figures/scaling_ranked.png filter=lfs diff=lfs merge=lfs -text
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647---language:- entags:- computer-vision- model-routing- reproducibility---
# ModelCollaboration: trained weights and paper results
Code: https://github.com/nohi191212/ModelCollaboration
## Contents
- `weights.tar`: 16 main-table router checkpoints and configurations, training-set normalization statistics, the final 8M distilled image/text encoders, and the trained ConstructionSite YOLO26x and RT-DETR-X specialists. Detector extraction configurations record the checkpoint source and inference settings. RT-DETR uses FP32 inference in the recorded experiment.- `experiment_data.tar.gz`: per-example validation/test learned scores and task outcomes for all 16 pairs, sample identifiers, selected validation thresholds, complete learned curves and the selection record.- `paper_results/`: source data and scripts for paper tables and figures. `data/results.json` includes confidence and learned curves, fixed selected points and outcome decompositions. `data/main_table_cost_qwen_20260912/` contains the final Qwen cost curves and component measurements. Earlier ablations are explicitly separate from the main setting.- `main.pdf` and `appendix.pdf`: the paper and supplementary material accompanying this release.
## Recompute the reported routing results
Download this repository, then extract the two archives into its root:
```bashtar -xf weights.tartar -xzf experiment_data.tar.gz```
From the code repository, run:
```bashpip install numpypython scripts/replay_paper_results.py --artifacts /path/to/download --output replayed_main.csv```
This checks all saved learned validation/test curve points against the per-example outcomes, repeats validation-only operating-point selection, and exports the selected results. It does not execute the specialist or VLM. ConstructionSite uses event macro-F1; other tasks use their saved correctness indicators.
To redraw the paper tables and outcome/budget figure, install matplotlib and run `paper_results/figures/build_tables.py` and `paper_results/figures/build_compact.py`. The source tables in `paper_results/tables/` retain the final typeset captions and labels. Cost data for the final figure are under `paper_results/data/main_table_cost_qwen_20260912/`; costs are assembled from measured components rather than a new timing run during replay.
## Running the models again
The weights archive contains `main/runs/<run>/best.pt`, its `config.json` and normalization arrays; `encoders/8M/epoch_300.pt`, tokenizer and encoder configuration; and `specialists/<expert>/best.pt` with extraction settings. Match the 16 run names to `configs/main/` in the code repository. Preserve the frozen validation thresholds when evaluating test samples.
Original dataset images, upstream VLM weights and full feature caches are external. Obtain upstream resources from the code repository's `docs/DOWNLOADS.md`. The full prepared feature cache is several GB and is excluded to keep non-weight experiment data below 100 MB. Running from original images requires preparing those features and predictions in the documented layout; the compact result replay above is the supported route for checking the published numbers without large-model inference. The release does not claim a one-command end-to-end reproduction from raw images.
The original source datasets and upstream model terms continue to apply. This model card does not grant a new license for third-party datasets or detector architectures.123version https://git-lfs.github.com/spec/v1oid sha256:f1f37970088137fb21832d56d5b793365463a54a291b05bca237aab50cf9a0efsize 2430363123version https://git-lfs.github.com/spec/v1oid sha256:7ee5a0063cae30a79812aff05d9302196687411c0441040252a375f3f6e2a5fasize 2457041123version https://git-lfs.github.com/spec/v1oid sha256:ac6d6f4cb7eb00f64e8e05789465e01aa865a1745dbcfb91dd0debb2344bf857size 577296123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370[
{
"key": [
"cub",
"cub",
"MiniCPM"
],
"areas": {
"confidence": {
"validation_fixed_A25": 0.9058333333333334,
"test_fixed_A25": 0.6472903003106663,
"test_ranked_A25_diagnostic": 0.7895926820849155,
"selected_validation_actual_calls": 0.01,
"selected_test_actual_calls": 0.113565757680359
},
"learned": {
"validation_fixed_A25": 0.9621666666666666,
"test_fixed_A25": 0.7763203313772868,
"test_ranked_A25_diagnostic": 0.7967552640662755,
"selected_validation_actual_calls": 0.01,
"selected_test_actual_calls": 0.028822920262340353
}
}
},
{
"key": [
"cub",
"cub",
"Qwen3.8"
],
"areas": {
"confidence": {
"validation_fixed_A25": 0.9171666666666667,
"test_fixed_A25": 0.7316189161201243,
"test_ranked_A25_diagnostic": 0.8101484294097343,
"selected_validation_actual_calls": 0.01,
"selected_test_actual_calls": 0.113565757680359
},
"learned": {
"validation_fixed_A25": 0.9705833333333334,
"test_fixed_A25": 0.8053158439765276,
"test_ranked_A25_diagnostic": 0.806368657231619,
"selected_validation_actual_calls": 0.01,
"selected_test_actual_calls": 0.014325163962720055
}
}
},
{
"key": [
"cub",
"glsim",
"MiniCPM"
],
"areas": {
"confidence": {
"validation_fixed_A25": 0.9005000000000001,
"test_fixed_A25": 0.7253365550569555,
"test_ranked_A25_diagnostic": 0.8519848118743528,
"selected_validation_actual_calls": 0.01,
"selected_test_actual_calls": 0.08698653779772178
},
"learned": {
"validation_fixed_A25": 0.97075,
"test_fixed_A25": 0.8740248532965137,
"test_ranked_A25_diagnostic": 0.8809112875388333,
"selected_validation_actual_calls": 0.03,
"selected_test_actual_calls": 0.04487400759406282
}
}
},
{
"key": [
"cub",
"glsim",
"Qwen3.8"
],
"areas": {
"confidence": {
"validation_fixed_A25": 0.9213333333333334,
"test_fixed_A25": 0.7860545391784605,
"test_ranked_A25_diagnostic": 0.8691232309285468,
"selected_validation_actual_calls": 0.01,
"selected_test_actual_calls": 0.08698653779772178
},
"learned": {
"validation_fixed_A25": 0.9757500000000001,
"test_fixed_A25": 0.8918536416983087,
"test_ranked_A25_diagnostic": 0.8935623058336211,
"selected_validation_actual_calls": 0.01,
"selected_test_actual_calls": 0.016568864342423197
}
}
},
{
"key": [
"grefcoco",
"groundingdino",
"MiniCPM"
],
"areas": {
"confidence": {
"validation_fixed_A25": 0.5566729917773561,
"test_fixed_A25": 0.27538212857669514,
"test_ranked_A25_diagnostic": 0.2786603522105323,
"selected_validation_actual_calls": 0.9899501019045611,
"selected_test_actual_calls": 0.9873805405098829
},
"learned": {
"validation_fixed_A25": 0.6255183076814955,
"test_fixed_A25": 0.33085386949493806,
"test_ranked_A25_diagnostic": 0.3352494115645294,
"selected_validation_actual_calls": 0.339939560053412,
"selected_test_actual_calls": 0.43518702322547714
}
}
},
{
"key": [
"grefcoco",
"groundingdino",
"Qwen3.8"
],
"areas": {
"confidence": {
"validation_fixed_A25": 0.5648886077728582,
"test_fixed_A25": 0.28625187873975555,
"test_ranked_A25_diagnostic": 0.29324220854720245,
"selected_validation_actual_calls": 0.9899501019045611,
"selected_test_actual_calls": 0.9873805405098829
},
"learned": {
"validation_fixed_A25": 0.669126431934781,
"test_fixed_A25": 0.3549726342058248,
"test_ranked_A25_diagnostic": 0.37351898590590704,
"selected_validation_actual_calls": 0.4199873497786211,
"selected_test_actual_calls": 0.5745682443354224
}
}
},
{
"key": [
"grefcoco",
"instancevg",
"MiniCPM"
],
"areas": {
"confidence": {
"validation_fixed_A25": 0.7465176751704266,
"test_fixed_A25": 0.6639253608598248,
"test_ranked_A25_diagnostic": 0.6590023537418825,
"selected_validation_actual_calls": 0.6499402628434886,
"selected_test_actual_calls": 0.5209426310864078
},
"learned": {
"validation_fixed_A25": 0.7607140347178298,
"test_fixed_A25": 0.6759152652922327,
"test_ranked_A25_diagnostic": 0.6777273629583416,
"selected_validation_actual_calls": 0.22995291306486754,
"selected_test_actual_calls": 0.30904914499617164
}
}
},
{
"key": [
"grefcoco",
"instancevg",
"Qwen3.8"
],
"areas": {
"confidence": {
"validation_fixed_A25": 0.7477616136060159,
"test_fixed_A25": 0.6640728242066756,
"test_ranked_A25_diagnostic": 0.6611405722712191,
"selected_validation_actual_calls": 0.7099585353854804,
"selected_test_actual_calls": 0.6838612710206166
},
"learned": {
"validation_fixed_A25": 0.7778129172816081,
"test_fixed_A25": 0.7280974392422653,
"test_ranked_A25_diagnostic": 0.7136828970875989,
"selected_validation_actual_calls": 0.5599831330381615,
"selected_test_actual_calls": 0.5355755324277571
}
}
},
{
"key": [
"nlvr2",
"nlvr2",
"MiniCPM"
],
"areas": {
"confidence": {
"validation_fixed_A25": 0.8284302492122602,
"test_fixed_A25": 0.833902561526871,
"test_ranked_A25_diagnostic": 0.835882901628758,
"selected_validation_actual_calls": 0.8587797192781438,
"selected_test_actual_calls": 0.8580038745784602
},
"learned": {
"validation_fixed_A25": 0.8359782297336007,
"test_fixed_A25": 0.8425629618999785,
"test_ranked_A25_diagnostic": 0.8414221137978044,
"selected_validation_actual_calls": 0.8498997421942137,
"selected_test_actual_calls": 0.8465953935567195
}
}
},
{
"key": [
"nlvr2",
"nlvr2",
"Qwen3.8"
],
"areas": {
"confidence": {
"validation_fixed_A25": 0.831280435405328,
"test_fixed_A25": 0.8343976465523427,
"test_ranked_A25_diagnostic": 0.8361340317141422,
"selected_validation_actual_calls": 0.8587797192781438,
"selected_test_actual_calls": 0.8580038745784602
},
"learned": {
"validation_fixed_A25": 0.8402320252076769,
"test_fixed_A25": 0.8436320585491857,
"test_ranked_A25_diagnostic": 0.8425342613187918,
"selected_validation_actual_calls": 0.7699799484388428,
"selected_test_actual_calls": 0.7665925234986009
}
}
},
{
"key": [
"nlvr2",
"vilt",
"MiniCPM"
],
"areas": {
"confidence": {
"validation_fixed_A25": 0.7926095674591808,
"test_fixed_A25": 0.7987371744277822,
"test_ranked_A25_diagnostic": 0.8005237856066586,
"selected_validation_actual_calls": 0.9598968776854769,
"selected_test_actual_calls": 0.9593169261677549
},
"learned": {
"validation_fixed_A25": 0.793425952449155,
"test_fixed_A25": 0.8005094353160652,
"test_ranked_A25_diagnostic": 0.8015211308028988,
"selected_validation_actual_calls": 0.9899742194213692,
"selected_test_actual_calls": 0.9896677907727631
}
}
},
{
"key": [
"nlvr2",
"vilt",
"Qwen3.8"
],
"areas": {
"confidence": {
"validation_fixed_A25": 0.7940561443712404,
"test_fixed_A25": 0.7988735021884195,
"test_ranked_A25_diagnostic": 0.8006242376408124,
"selected_validation_actual_calls": 0.9598968776854769,
"selected_test_actual_calls": 0.9593169261677549
},
"learned": {
"validation_fixed_A25": 0.7963477513606417,
"test_fixed_A25": 0.802590227452106,
"test_ranked_A25_diagnostic": 0.8037526009901701,
"selected_validation_actual_calls": 0.9498710971068461,
"selected_test_actual_calls": 0.9485542082227165
}
}
},
{
"key": [
"construction",
"yolo26x",
"MiniCPM"
],
"areas": {
"confidence": {
"validation_fixed_A25": 0.17451640525159154,
"test_fixed_A25": 0.17697501725814352,
"test_ranked_A25_diagnostic": 0.1716572124279524,
"selected_validation_actual_calls": 0.9386590584878745,
"selected_test_actual_calls": 0.9254327563249002
},
"learned": {
"validation_fixed_A25": 0.22914536623152232,
"test_fixed_A25": 0.21733392403576846,
"test_ranked_A25_diagnostic": 0.21579610594149268,
"selected_validation_actual_calls": 0.4893009985734665,
"selected_test_actual_calls": 0.47203728362183756
}
}
},
{
"key": [
"construction",
"yolo26x",
"Qwen3.8"
],
"areas": {
"confidence": {
"validation_fixed_A25": 0.17942553980644182,
"test_fixed_A25": 0.18055274894913714,
"test_ranked_A25_diagnostic": 0.1793307821359281,
"selected_validation_actual_calls": 0.9286733238231099,
"selected_test_actual_calls": 0.9221038615179761
},
"learned": {
"validation_fixed_A25": 0.23466194499464404,
"test_fixed_A25": 0.21316340540985348,
"test_ranked_A25_diagnostic": 0.213003148312119,
"selected_validation_actual_calls": 0.4992867332382311,
"selected_test_actual_calls": 0.4876830892143808
}
}
},
{
"key": [
"construction",
"rtdetr_x_fp32",
"MiniCPM"
],
"areas": {
"confidence": {
"validation_fixed_A25": 0.08994758708890332,
"test_fixed_A25": 0.08325267500178911,
"test_ranked_A25_diagnostic": 0.08357421552875581,
"selected_validation_actual_calls": 0.978601997146933,
"selected_test_actual_calls": 0.9790279627163782
},
"learned": {
"validation_fixed_A25": 0.11165309347543784,
"test_fixed_A25": 0.09726595269708746,
"test_ranked_A25_diagnostic": 0.09795552217467457,
"selected_validation_actual_calls": 0.7788873038516405,
"selected_test_actual_calls": 0.7882822902796272
}
}
},
{
"key": [
"construction",
"rtdetr_x_fp32",
"Qwen3.8"
],
"areas": {
"confidence": {
"validation_fixed_A25": 0.10053453664183931,
"test_fixed_A25": 0.08910633276678806,
"test_ranked_A25_diagnostic": 0.08907503728424503,
"selected_validation_actual_calls": 0.9885877318116976,
"selected_test_actual_calls": 0.9860186418109188
},
"learned": {
"validation_fixed_A25": 0.13205087205171664,
"test_fixed_A25": 0.10226629753438624,
"test_ranked_A25_diagnostic": 0.10459671104829708,
"selected_validation_actual_calls": 0.8288159771754636,
"selected_test_actual_calls": 0.831225033288948
}
}
}
]12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758[ { "expert": "cub", "endpoint": "MiniCPM", "single_task_test_fixed25": 0.7119433897134967, "multi_task_test_fixed25": 0.7079737659647911, "delta_multi_minus_single": -0.003969623748705575 }, { "expert": "glsim", "endpoint": "MiniCPM", "single_task_test_fixed25": 0.759233690024163, "multi_task_test_fixed25": 0.7745944080082844, "delta_multi_minus_single": 0.01536071798412142 }, { "expert": "nlvr2", "endpoint": "MiniCPM", "single_task_test_fixed25": 0.8346846523642104, "multi_task_test_fixed25": 0.8309535768099304, "delta_multi_minus_single": -0.0037310755542799834 }, { "expert": "vilt", "endpoint": "MiniCPM", "single_task_test_fixed25": 0.8046925450240368, "multi_task_test_fixed25": 0.802611752887996, "delta_multi_minus_single": -0.002080792136040732 }, { "expert": "groundingdino", "endpoint": "MiniCPM", "single_task_test_fixed25": 0.3598105663159686, "multi_task_test_fixed25": 0.37004792558772653, "delta_multi_minus_single": 0.010237359271757951 }, { "expert": "instancevg", "endpoint": "MiniCPM", "single_task_test_fixed25": 0.6394237586138446, "multi_task_test_fixed25": 0.6243654822335025, "delta_multi_minus_single": -0.015058276380342073 }, { "expert": "yolo26x", "endpoint": "MiniCPM", "single_task_test_fixed25": 0.18032734231886507, "multi_task_test_fixed25": 0.1836164473038217, "delta_multi_minus_single": 0.003289104984956631 }, { "expert": "rtdetr_x_fp32", "endpoint": "MiniCPM", "single_task_test_fixed25": 0.10367040308754236, "multi_task_test_fixed25": 0.11260360812088349, "delta_multi_minus_single": 0.008933205033341135 }]12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758[ { "expert": "cub", "endpoint": "Qwen3.8", "single_task_test_fixed25": 0.7619951674145667, "multi_task_test_fixed25": 0.7782188470831896, "delta_multi_minus_single": 0.016223679668622815 }, { "expert": "glsim", "endpoint": "Qwen3.8", "single_task_test_fixed25": 0.8301691404901622, "multi_task_test_fixed25": 0.8448394891266828, "delta_multi_minus_single": 0.014670348636520614 }, { "expert": "nlvr2", "endpoint": "Qwen3.8", "single_task_test_fixed25": 0.8372677046710196, "multi_task_test_fixed25": 0.8337518834756403, "delta_multi_minus_single": -0.0035158211953792984 }, { "expert": "vilt", "endpoint": "Qwen3.8", "single_task_test_fixed25": 0.8045490421181029, "multi_task_test_fixed25": 0.8067733371600775, "delta_multi_minus_single": 0.0022242950419746332 }, { "expert": "groundingdino", "endpoint": "Qwen3.8", "single_task_test_fixed25": 0.4223974137197629, "multi_task_test_fixed25": 0.45991549215892014, "delta_multi_minus_single": 0.03751807843915722 }, { "expert": "instancevg", "endpoint": "Qwen3.8", "single_task_test_fixed25": 0.7224853245611548, "multi_task_test_fixed25": 0.7053001729858492, "delta_multi_minus_single": -0.017185151575305535 }, { "expert": "yolo26x", "endpoint": "Qwen3.8", "single_task_test_fixed25": 0.19009376433100783, "multi_task_test_fixed25": 0.19603467084956394, "delta_multi_minus_single": 0.0059409065185561105 }, { "expert": "rtdetr_x_fp32", "endpoint": "Qwen3.8", "single_task_test_fixed25": 0.10483176081963008, "multi_task_test_fixed25": 0.12038495915476813, "delta_multi_minus_single": 0.015553198335138047 }]1234567891011121314151617181920212223242526272829{
"old_distribution": {
"width_pt": 523.1995239257812,
"height_pt": 309.7997741699219,
"height_at_7_16_in": 4.239618504261674
},
"old_budget": {
"width_pt": 526.7994995117188,
"height_pt": 237.7997589111328,
"height_at_7_16_in": 3.2320575007794505
},
"combined": {
"width_pt": 515.52001953125,
"height_pt": 324.0,
"height_at_7_16_in": 4.499999829510743
},
"reduction_percent": 39.77255134624947,
"old_pages": 16,
"new_pages": 14,
"new_figure_and_section_pages": [
6,
7
],
"changed_sections": [
"sections\\appendix.tex",
"sections\\experiments.tex"
],
"figure1_identical": true
}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101"""Main-table curves plus fresh measured component costs; no threshold re-selection."""
from pathlib import Path
import csv
import json
import numpy as np
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from matplotlib.ticker import MaxNLocator,LogLocator,NullLocator
root=Path(__file__).resolve().parent
groups=json.loads((root/'main_table_results.json').read_text(encoding='utf-8'))['groups']
components={}
curves=[]
selected=[]
for g,tag in zip(groups,['qwen_gref','qwen']):
expert=g['key'][1]
spec=json.loads((root/f'components/{expert}_specialist.json').read_text())
router=json.loads((root/f'components/{expert}_router.json').read_text())
large=json.loads((root/f'components/{tag}_latency.json').read_text())
flops=json.loads((root/f'components/{tag}_flops.json').read_text())
assert spec['completed'] and router['status']==large['status']==flops['status']=='complete'
assert router['run']==g['run'] and router['selected_decisions_match_main']
assert abs(router['actual_call_fraction']-g['methods']['learned']['test_point']['actual_fraction'])<1e-12
key='|'.join(g['key'])
c={'specialist_gflops':spec['mean_counted_gflops_per_sample'],
'router_gflops':router['mean_gflops_per_input'],
'large_gflops':flops['mean_prefill_gflops_counted']+large['mean_completion_tokens']*flops['mean_decode_one_token_gflops_counted'],
'specialist_ms':spec['mean_end_to_end_latency_ms_per_sample'],
'router_ms':router['mean_latency_ms_per_input'],
'large_ms':large['mean_batch_wall_ms_per_sample'],
'large_samples':large['measured_count'], 'flops_probes':flops['sample_count'],
'specialist_samples':spec['sample_count'],'router_samples':router['sample_count'],'batch_size':large['batch_size']}
components[key]=c
for method in ['learned','confidence']:
for kind,points in [('curve',g['methods'][method]['test_curve']),('selected',[g['methods'][method]['test_point']])]:
for p in points:
rate=p['actual_fraction']
row={'pair':key,'method':method,'nominal_validation_budget':p['budget'],'actual_test_call_fraction':rate,
'test_metric':p['metric'],'estimated_gflops_per_input':c['specialist_gflops']+(c['router_gflops'] if method=='learned' else 0)+rate*c['large_gflops'],
'estimated_time_ms_per_input':c['specialist_ms']+(c['router_ms'] if method=='learned' else 0)+rate*c['large_ms']}
(curves if kind=='curve' else selected).append(row)
for name,rows in [('full_cost_performance_curves',curves),('selected_points',selected),('fixed_budget_cost_performance',[p for p in curves if p['nominal_validation_budget'] in [0,.05,.1,.25,.5,.75,1]])]:
with (root/(name+'.csv')).open('w',encoding='utf-8',newline='') as f:
writer=csv.DictWriter(f,fieldnames=list(rows[0]));writer.writeheader();writer.writerows(rows)
summary={'components':components,'selected_points':selected,'protocol':
{'method':'original main-table logit contrast; original checkpoints and validation thresholds; seed 42',
'large_timing':'64 measured examples; batch size one; same full task prompt; two separate warmup examples',
'cost':'serial component estimates, not a timed integrated service; includes active distilled encoders and routing head only for learned',
'flops':'multiply-add=2; supported operators; mean prefill (including visual embedding) plus average generated length times one-token decode probe',
'scope_limits':'mean call cost extrapolated across policies; no policy-specific input/output-length costs; specialist-feature extraction overhead is not separately measured; confidence threshold overhead not separately timed'}}
(root/'cost_summary.json').write_text(json.dumps(summary,indent=2),encoding='utf-8')
plt.rcParams.update({'font.family':'serif','font.serif':['Times New Roman'],'font.size':7,
'axes.labelsize':7,'xtick.labelsize':6.5,'ytick.labelsize':6.5,'legend.fontsize':7,
'pdf.fonttype':42,'ps.fonttype':42,'axes.spines.top':False,'axes.spines.right':False,
'axes.linewidth':.55,'mathtext.fontset':'stix'})
styles=[('learned','learned','#176f91','-'),('confidence','conf.','#c78324','--')]
keys=list(components)
def panel(ax,key,field):
for method,label,color,ls in styles:
pts=[p for p in curves if p['pair']==key and p['method']==method]
assert len(pts)==101
x=np.array([p[field] for p in pts]);y=np.array([p['test_metric']*100 for p in pts])
assert np.all(np.diff(x)>=-1e-7)
ax.plot(x,y,color=color,ls=ls,lw=1.05,label=label)
p=next(p for p in selected if p['pair']==key and p['method']==method)
ax.scatter(p[field],100*p['test_metric'],color=color,s=13,edgecolor='white',linewidth=.4,zorder=5)
ax.grid(axis='y',color='#dce1e4',lw=.4)
ax.tick_params(length=2.3,pad=1.5)
ax.yaxis.set_major_locator(MaxNLocator(nbins=3))
if 'gflops' in field:
ax.set_xscale('log');ax.xaxis.set_major_locator(LogLocator(base=10,numticks=4));ax.xaxis.set_minor_locator(NullLocator())
ax.set_xlabel('Est. GFLOPs/input',labelpad=1)
else:
ax.xaxis.set_major_locator(MaxNLocator(nbins=3));ax.set_xlabel('Est. time (ms/input)',labelpad=1)
ax.set_ylabel('Acc. (%)' if key.startswith('grefcoco') else 'Macro-F1 (%)',labelpad=1)
for field,stem in [('estimated_gflops_per_input','flops_performance'),('estimated_time_ms_per_input','latency_performance')]:
fig,axes=plt.subplots(1,2,figsize=(3.44,1.50))
fig.subplots_adjust(left=.115,right=.995,bottom=.31,top=.83,wspace=.43)
for ax,key,title in zip(axes,keys,['gRefCOCO / Q','Construction / Q']):
panel(ax,key,field)
ax.text(.5,1.10,title,transform=ax.transAxes,ha='center',fontsize=7)
h,l=axes[0].get_legend_handles_labels()
fig.legend(h,l,loc='lower center',bbox_to_anchor=(.53,-.025),ncol=2,frameon=False,handlelength=2.2,columnspacing=1.8)
fig.savefig(root/(stem+'.pdf'));fig.savefig(root/(stem+'.png'),dpi=400)
plt.close(fig)
fig,axes=plt.subplots(2,2,figsize=(3.44,2.05))
fig.subplots_adjust(left=.115,right=.995,bottom=.20,top=.89,wspace=.43,hspace=.64)
for col,key in enumerate(keys):
for row,field in enumerate(['estimated_gflops_per_input','estimated_time_ms_per_input']):
panel(axes[row,col],key,field)
axes[0,col].text(.5,1.14,'gRefCOCO / Q' if col==0 else 'Construction / Q',transform=axes[0,col].transAxes,ha='center',fontsize=7)
h,l=axes[0,0].get_legend_handles_labels()
fig.legend(h,l,loc='lower center',bbox_to_anchor=(.53,-.005),ncol=2,frameon=False,handlelength=2.2,columnspacing=1.8)
fig.savefig(root/'cost_compact.pdf');fig.savefig(root/'cost_compact.png',dpi=400)
plt.close(fig)
print(json.dumps(summary,indent=2))123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239{ "status": "complete", "run": "shared_12_instancevg_Qwen3.8", "config": { "fraction": 1.0, "seed": 42, "freeze_encoder": true, "fusion": "concat", "harm_cost": 1.0, "batch_size": 256, "weight_decay": 0.01, "max_epochs": 50, "patience": 8, "cpu_threads": 1, "student": "8M", "representation_dim": 128, "lr": 0.003, "target": "four_state", "strategy": "natural", "hidden_percent": 90, "expert": "instancevg", "task": "grefcoco", "endpoint": "Qwen3.8", "branches": [ "image", "text", "hidden", "confidence", "output" ], "hidden_layer": "joint_encoder__layer_11", "id": "shared_12_instancevg_Qwen3.8", "stage": "shared_mandatory_inputs" }, "checkpoint": "/mnt/HithinkOmniSSD/user_workspace/caisihang/research/ICASSP_ModelCollaboration/outputs/router_shared_image_hidden_20260910/runs/shared_12_instancevg_Qwen3.8/best.pt", "score": "logit_rescue-logit_harm", "test_rows_recomputed": 35263, "selected_decisions_match_main": true, "max_score_abs_difference": 0.0, "actual_call_fraction": 0.5355755324277571, "sample_count": 64, "sample_ids": [ "testB-5056-14012", "testB-31505-86708", "testA-57489-158264", "testA-38865-107108", "testB-47361-130361", "testA-5476-15123", "testA-71404-196892", "testA-61030-168115", "testB-35969-99063", "testB-1675-4724", "testA-30414-83641", "testB-47742-131425", "testB-77456-213280", "testA-59283-163253", "testA-57390-157996", "testA-77229-212665", "testA-6784-18703", "testB-11434-31542", "testB-11675-32181", "testB-73046-201304", "testA-28837-79356", "testA-4563-12619", "testB-30168-82996", "testB-92461-254721", "testA-58293-160462", "testA-13050-35910", "testA-39320-108309", "testB-36423-100313", "testA-43418-119528", "testB-23411-64351", "testB-77730-214031", "testA-7232-19907", "testA-17738-48695", "testA-44914-123593", "testB-92861-255854", "testA-69678-192132", "testA-68785-189658", "testB-62911-173380", "testB-19029-52242", "testA-66284-182759", "testB-19170-52626", "testB-8468-23291", "testB-72940-201009", "testB-74045-203983", "testB-93380-257275", "testB-49369-135990", "testA-58046-159759", "testA-57437-158132", "testA-5754-15895", "testA-85590-235577", "testA-92278-254227", "testB-80373-221257", "testA-80383-221294", "testB-71197-196311", "testB-48080-132352", "testB-18351-50380", "testB-1089-3077", "testB-92466-254737", "testB-53065-146099", "testB-42611-117349", "testA-57690-158796", "testA-65173-179681", "testB-90675-249707", "testB-74709-205815" ], "batch_size": 1, "latency_ms": [ 10.095497942529619, 10.442811995744705, 9.535272954963148, 8.56779795140028, 28.526668902486563, 14.110558084212244, 19.977235002443194, 21.489594015292823, 16.842726967297494, 12.316308100707829, 12.318658991716802, 13.136874069459736, 16.18148700799793, 11.749238008633256, 12.584974057972431, 12.680649990215898, 11.369985993951559, 14.251800021156669, 14.000480994582176, 12.42606493178755, 13.526970986276865, 11.346371960826218, 11.965820915065706, 13.418521964922547, 13.269996969029307, 13.868742040358484, 11.83428696822375, 13.831221032887697, 12.576585984788835, 12.408879934810102, 12.892312020994723, 15.224601957015693, 13.460875954478979, 11.89423305913806, 10.926949908025563, 157.88777999114245, 16.57543599139899, 29.21812597196549, 23.506848025135696, 13.830928015522659, 14.57549398764968, 13.596423901617527, 16.056897002272308, 12.610359000973403, 17.024922999553382, 12.336026062257588, 14.77054797578603, 13.220850960351527, 19.9308970477432, 16.4189770584926, 17.153396038338542, 31.296705012209713, 20.386314019560814, 14.672313001938164, 15.437994967214763, 10.980968945659697, 15.224996954202652, 12.009209021925926, 12.397779966704547, 13.347716070711613, 15.58609597850591, 17.80865201726556, 13.338097953237593, 13.845606008544564 ], "mean_latency_ms_per_input": 17.032772149832454, "head_mean_latency_ms": 0.6086819972842932, "gflops_per_input": [ 3.642171392, 3.642171392, 3.642171392, 3.642171392, 3.642171392, 3.642171392, 3.642171392, 3.642171392 ], "mean_gflops_per_input": 3.642171392, "operators": [ { "aten.convolution": 228802560, "aten.bmm": 691709440, "aten._scaled_dot_product_flash_attention": 236027904, "aten.addmm": 2485631488 }, { "aten.convolution": 228802560, "aten.bmm": 691709440, "aten._scaled_dot_product_flash_attention": 236027904, "aten.addmm": 2485631488 }, { "aten.convolution": 228802560, "aten.bmm": 691709440, "aten._scaled_dot_product_flash_attention": 236027904, "aten.addmm": 2485631488 }, { "aten.convolution": 228802560, "aten.bmm": 691709440, "aten._scaled_dot_product_flash_attention": 236027904, "aten.addmm": 2485631488 }, { "aten.convolution": 228802560, "aten.bmm": 691709440, "aten._scaled_dot_product_flash_attention": 236027904, "aten.addmm": 2485631488 }, { "aten.convolution": 228802560, "aten.bmm": 691709440, "aten._scaled_dot_product_flash_attention": 236027904, "aten.addmm": 2485631488 }, { "aten.convolution": 228802560, "aten.bmm": 691709440, "aten._scaled_dot_product_flash_attention": 236027904, "aten.addmm": 2485631488 }, { "aten.convolution": 228802560, "aten.bmm": 691709440, "aten._scaled_dot_product_flash_attention": 236027904, "aten.addmm": 2485631488 } ], "scope": "image loading, bilinear resize, tokenize when used, two image slots (including gray placeholder), active distilled encoders, feature assembly and original routing head; cached specialist features; supported FLOPs only"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254{ "component": "specialist", "expert": "instancevg", "task": "grefcoco", "device": "cuda:0", "checkpoint": "/mnt/HithinkOmniSSD/user_workspace/caisihang/research/ICASSP_ModelCollaboration/models/grefcoco/instancevg/InstanceVG-grefcoco.pth", "sample_count": 64, "batch_size": 1, "sample_ids": [ "testA-30844-84861", "testB-44353-122077", "testB-36889-101643", "testA-49055-135087", "testA-81245-223633", "testB-37669-103833", "testA-5038-13943", "testB-79646-219274", "testA-469-1309", "testB-46644-128438", "testA-24562-67515", "testA-47070-129599", "testA-54554-150141", "testB-12382-34099", "testB-23014-63279", "testB-79647-219275", "testB-69479-191564", "testA-15582-42797", "testB-56692-156000", "testB-42726-117660", "testA-80455-221494", "testB-33115-91174", "testA-62940-173455", "testB-31494-86670", "testA-54586-150233", "testA-81445-224177", "testB-8417-23141", "testA-24438-67190", "testA-59285-163255", "testA-73258-201893", "testB-945-2633", "testA-54307-149426", "testB-60557-166822", "testA-81622-224665", "testA-69466-191525", "testA-60731-167321", "testA-7857-21644", "testA-44142-121499", "testB-66162-182407", "testA-31764-87406", "testB-38637-106482", "testB-52921-145709", "testB-65796-181394", "testB-2936-8113", "testA-79438-218690", "testA-57397-158016", "testB-23920-65743", "testB-15419-42358", "testA-10078-27739", "testA-43890-120793", "testA-55116-151689", "testB-27487-75582", "testA-26856-73830", "testB-50845-140107", "testA-29199-80374", "testB-65935-181778", "testA-17736-48684", "testB-69477-191553", "testB-22290-61227", "testA-58476-160950", "testB-36265-99859", "testA-5734-15837", "testB-67952-187353", "testB-47054-129555" ], "model_load_seconds_excluded_from_latency": true, "forward_latency_ms_per_sample": [ 41.24195098876953, 41.74086380004883, 40.36540985107422, 44.46102523803711, 41.2421760559082, 40.76591873168945, 41.14704132080078, 40.88172912597656, 41.70716857910156, 41.191871643066406, 39.91231918334961, 39.29497528076172, 40.70723342895508, 38.920894622802734, 39.32780838012695, 38.89958572387695, 38.59721755981445, 38.47331237792969, 39.8744010925293, 39.87260818481445, 41.48284912109375, 40.55779266357422, 39.05420684814453, 39.052734375, 39.143775939941406, 39.82249450683594, 39.543006896972656, 39.368160247802734, 40.661216735839844, 39.092193603515625, 39.85852813720703, 40.33164978027344, 38.89593505859375, 39.29216003417969, 39.20943832397461, 40.946590423583984, 39.44643020629883, 40.220863342285156, 39.61030578613281, 39.639007568359375, 39.78163146972656, 39.223201751708984, 39.00921630859375, 38.99894332885742, 41.13721466064453, 39.94972610473633, 41.41766357421875, 39.28073501586914, 39.721214294433594, 39.24937438964844, 39.40460968017578, 41.30179214477539, 42.94054412841797, 41.5063362121582, 44.03267288208008, 44.55561447143555, 44.24995040893555, 44.87868881225586, 45.14652633666992, 44.85055923461914, 42.39228820800781, 41.121856689453125, 45.708351135253906, 41.8752326965332 ], "end_to_end_latency_ms_per_sample": [ 47.29630902875215, 46.27182998228818, 47.56885801907629, 45.48592597711831, 45.399176073260605, 46.442538034170866, 45.95420998521149, 46.45739798434079, 44.90085388533771, 43.80481690168381, 44.848884106613696, 43.67590101901442, 46.40063806436956, 44.26892101764679, 44.44277100265026, 44.71806308720261, 44.62323593907058, 44.6264409692958, 44.96095096692443, 44.103492982685566, 45.13338196557015, 44.1846780013293, 48.1606520479545, 46.43543600104749, 46.19023704435676, 45.247678994201124, 44.801001087762415, 45.467636082321405, 44.22409099061042, 44.7448689956218, 58.0457029864192, 46.10048606991768, 44.56539999227971, 44.47658592835069, 46.05250502936542, 44.743441976606846, 44.77924096863717, 43.877715012058616, 44.05005706939846, 42.87725198082626, 43.836933095008135, 45.634721987880766, 44.748114072717726, 46.21323198080063, 52.24333005025983, 48.90036000870168, 48.12136595137417, 47.65231907367706, 46.71858798246831, 48.516221111640334, 43.90157596208155, 46.83465394191444, 46.49809293914586, 42.6300170365721, 47.39421408157796, 48.35387098137289, 48.176085110753775, 48.29539393540472, 47.32040502130985, 46.35261802468449, 47.482443042099476, 47.437409055419266, 47.27676196489483, 48.198972013778985 ], "mean_forward_latency_ms_per_sample": 40.71232491731644, "median_forward_latency_ms_per_sample": 40.08529472351074, "mean_end_to_end_latency_ms_per_sample": 46.08042127620138, "median_end_to_end_latency_ms_per_sample": 45.79446598654613, "flop_profiles": [ { "batch_size": 1, "flops_counted": 7502680064, "gflops_counted_per_sample": 7.502680064, "operators": { "aten.bmm": 7500632064, "aten.baddbmm": 2048000 } }, { "batch_size": 1, "flops_counted": 7502680064, "gflops_counted_per_sample": 7.502680064, "operators": { "aten.bmm": 7500632064, "aten.baddbmm": 2048000 } }, { "batch_size": 1, "flops_counted": 7502680064, "gflops_counted_per_sample": 7.502680064, "operators": { "aten.bmm": 7500632064, "aten.baddbmm": 2048000 } }, { "batch_size": 1, "flops_counted": 7502680064, "gflops_counted_per_sample": 7.502680064, "operators": { "aten.bmm": 7500632064, "aten.baddbmm": 2048000 } } ], "mean_counted_gflops_per_sample": 7.502680064, "flops_scope": "GPU FlopCounterMode dense products, convolutions and supported attention; multiply-add counted as 2 FLOPs. Elementwise, normalization, custom ops and postprocessing may be missing.", "latency_scope": "A800 wall-clock CUDA forward latency and end-to-end latency including image read/preprocess, excluding model load; batch processing uses the recorded batch size.", "completed": true}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341{ "status": "complete", "model_kind": "Qwen3.8", "task": "construction", "model_path": "/mnt/HithinkOmniSSD/user_workspace/caisihang/checkpoints/Qwen3.8-27B-FP8", "sample_count": 8, "records": [ { "sample_id": "0000184", "prompt_tokens_in_reference_tensor": 1705, "input_shapes": { "input_ids": [ 1, 1705 ], "attention_mask": [ 1, 1705 ], "mm_token_type_ids": [ 1, 1705 ], "pixel_values": [ 3888, 1536 ], "image_grid_thw": [ 1, 3 ] }, "prefill_flops_counted": 90083398713024, "decode_one_token_flops_counted": 51922600128, "prefill_gflops_counted": 90083.398713024, "decode_one_token_gflops_counted": 51.922600128, "prefill_operators": { "aten.convolution": 20475543552, "aten.addmm": 3283626885120, "aten.bmm": 3741356981952, "aten.mm": 83037939302400 }, "decode_operators": { "aten.bmm": 670826688, "aten.mm": 51243909120, "aten.convolution": 7864320 } }, { "sample_id": "0001955", "prompt_tokens_in_reference_tensor": 1705, "input_shapes": { "input_ids": [ 1, 1705 ], "attention_mask": [ 1, 1705 ], "mm_token_type_ids": [ 1, 1705 ], "pixel_values": [ 3888, 1536 ], "image_grid_thw": [ 1, 3 ] }, "prefill_flops_counted": 90083398713024, "decode_one_token_flops_counted": 51922600128, "prefill_gflops_counted": 90083.398713024, "decode_one_token_gflops_counted": 51.922600128, "prefill_operators": { "aten.convolution": 20475543552, "aten.addmm": 3283626885120, "aten.bmm": 3741356981952, "aten.mm": 83037939302400 }, "decode_operators": { "aten.bmm": 670826688, "aten.mm": 51243909120, "aten.convolution": 7864320 } }, { "sample_id": "0000840", "prompt_tokens_in_reference_tensor": 1705, "input_shapes": { "input_ids": [ 1, 1705 ], "attention_mask": [ 1, 1705 ], "mm_token_type_ids": [ 1, 1705 ], "pixel_values": [ 3888, 1536 ], "image_grid_thw": [ 1, 3 ] }, "prefill_flops_counted": 90083398713024, "decode_one_token_flops_counted": 51922600128, "prefill_gflops_counted": 90083.398713024, "decode_one_token_gflops_counted": 51.922600128, "prefill_operators": { "aten.convolution": 20475543552, "aten.addmm": 3283626885120, "aten.bmm": 3741356981952, "aten.mm": 83037939302400 }, "decode_operators": { "aten.bmm": 670826688, "aten.mm": 51243909120, "aten.convolution": 7864320 } }, { "sample_id": "0003887", "prompt_tokens_in_reference_tensor": 1705, "input_shapes": { "input_ids": [ 1, 1705 ], "attention_mask": [ 1, 1705 ], "mm_token_type_ids": [ 1, 1705 ], "pixel_values": [ 3888, 1536 ], "image_grid_thw": [ 1, 3 ] }, "prefill_flops_counted": 90083398713024, "decode_one_token_flops_counted": 51922600128, "prefill_gflops_counted": 90083.398713024, "decode_one_token_gflops_counted": 51.922600128, "prefill_operators": { "aten.convolution": 20475543552, "aten.addmm": 3283626885120, "aten.bmm": 3741356981952, "aten.mm": 83037939302400 }, "decode_operators": { "aten.bmm": 670826688, "aten.mm": 51243909120, "aten.convolution": 7864320 } }, { "sample_id": "0003433", "prompt_tokens_in_reference_tensor": 1705, "input_shapes": { "input_ids": [ 1, 1705 ], "attention_mask": [ 1, 1705 ], "mm_token_type_ids": [ 1, 1705 ], "pixel_values": [ 3888, 1536 ], "image_grid_thw": [ 1, 3 ] }, "prefill_flops_counted": 90083398713024, "decode_one_token_flops_counted": 51922600128, "prefill_gflops_counted": 90083.398713024, "decode_one_token_gflops_counted": 51.922600128, "prefill_operators": { "aten.convolution": 20475543552, "aten.addmm": 3283626885120, "aten.bmm": 3741356981952, "aten.mm": 83037939302400 }, "decode_operators": { "aten.bmm": 670826688, "aten.mm": 51243909120, "aten.convolution": 7864320 } }, { "sample_id": "0001613", "prompt_tokens_in_reference_tensor": 1705, "input_shapes": { "input_ids": [ 1, 1705 ], "attention_mask": [ 1, 1705 ], "mm_token_type_ids": [ 1, 1705 ], "pixel_values": [ 3888, 1536 ], "image_grid_thw": [ 1, 3 ] }, "prefill_flops_counted": 90083398713024, "decode_one_token_flops_counted": 51922600128, "prefill_gflops_counted": 90083.398713024, "decode_one_token_gflops_counted": 51.922600128, "prefill_operators": { "aten.convolution": 20475543552, "aten.addmm": 3283626885120, "aten.bmm": 3741356981952, "aten.mm": 83037939302400 }, "decode_operators": { "aten.bmm": 670826688, "aten.mm": 51243909120, "aten.convolution": 7864320 } }, { "sample_id": "0002591", "prompt_tokens_in_reference_tensor": 1705, "input_shapes": { "input_ids": [ 1, 1705 ], "attention_mask": [ 1, 1705 ], "mm_token_type_ids": [ 1, 1705 ], "pixel_values": [ 3888, 1536 ], "image_grid_thw": [ 1, 3 ] }, "prefill_flops_counted": 90083398713024, "decode_one_token_flops_counted": 51922600128, "prefill_gflops_counted": 90083.398713024, "decode_one_token_gflops_counted": 51.922600128, "prefill_operators": { "aten.convolution": 20475543552, "aten.addmm": 3283626885120, "aten.bmm": 3741356981952, "aten.mm": 83037939302400 }, "decode_operators": { "aten.bmm": 670826688, "aten.mm": 51243909120, "aten.convolution": 7864320 } }, { "sample_id": "0003105", "prompt_tokens_in_reference_tensor": 1705, "input_shapes": { "input_ids": [ 1, 1705 ], "attention_mask": [ 1, 1705 ], "mm_token_type_ids": [ 1, 1705 ], "pixel_values": [ 3888, 1536 ], "image_grid_thw": [ 1, 3 ] }, "prefill_flops_counted": 90083398713024, "decode_one_token_flops_counted": 51922600128, "prefill_gflops_counted": 90083.398713024, "decode_one_token_gflops_counted": 51.922600128, "prefill_operators": { "aten.convolution": 20475543552, "aten.addmm": 3283626885120, "aten.bmm": 3741356981952, "aten.mm": 83037939302400 }, "decode_operators": { "aten.bmm": 670826688, "aten.mm": 51243909120, "aten.convolution": 7864320 } } ], "mean_prefill_gflops_counted": 90083.398713024, "mean_decode_one_token_gflops_counted": 51.922600128, "scope": "HF reference execution on the A800 with real task inputs; dense products/convolutions/supported attention counted with multiply-add=2 FLOPs. vLLM custom kernels, elementwise/normalization/nonlinearities and other unsupported operations are not complete.", "answer_generation": "not performed; one known-token decode probe only"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341{ "status": "complete", "model_kind": "Qwen3.8", "task": "grefcoco", "model_path": "/mnt/HithinkOmniSSD/user_workspace/caisihang/checkpoints/Qwen3.8-27B-FP8", "sample_count": 8, "records": [ { "sample_id": "testA-5038-13945", "prompt_tokens_in_reference_tensor": 608, "input_shapes": { "input_ids": [ 1, 608 ], "attention_mask": [ 1, 608 ], "mm_token_type_ids": [ 1, 608 ], "pixel_values": [ 1200, 1536 ], "image_grid_thw": [ 1, 3 ] }, "prefill_flops_counted": 31223201515520, "decode_one_token_flops_counted": 51491242176, "prefill_gflops_counted": 31223.20151552, "decode_one_token_gflops_counted": 51.491242176, "prefill_operators": { "aten.convolution": 6649282560, "aten.addmm": 1013465088000, "aten.bmm": 590268057600, "aten.mm": 29612819087360 }, "decode_operators": { "aten.bmm": 239468736, "aten.mm": 51243909120, "aten.convolution": 7864320 } }, { "sample_id": "testA-73305-202014", "prompt_tokens_in_reference_tensor": 608, "input_shapes": { "input_ids": [ 1, 608 ], "attention_mask": [ 1, 608 ], "mm_token_type_ids": [ 1, 608 ], "pixel_values": [ 1200, 1536 ], "image_grid_thw": [ 1, 3 ] }, "prefill_flops_counted": 31223201515520, "decode_one_token_flops_counted": 51491242176, "prefill_gflops_counted": 31223.20151552, "decode_one_token_gflops_counted": 51.491242176, "prefill_operators": { "aten.convolution": 6649282560, "aten.addmm": 1013465088000, "aten.bmm": 590268057600, "aten.mm": 29612819087360 }, "decode_operators": { "aten.bmm": 239468736, "aten.mm": 51243909120, "aten.convolution": 7864320 } }, { "sample_id": "testA-26952-74099", "prompt_tokens_in_reference_tensor": 562, "input_shapes": { "input_ids": [ 1, 562 ], "attention_mask": [ 1, 562 ], "mm_token_type_ids": [ 1, 562 ], "pixel_values": [ 1040, 1536 ], "image_grid_thw": [ 1, 3 ] }, "prefill_flops_counted": 28754745861504, "decode_one_token_flops_counted": 51473154240, "prefill_gflops_counted": 28754.745861504, "decode_one_token_gflops_counted": 51.47315424, "prefill_operators": { "aten.convolution": 5902172160, "aten.addmm": 878336409600, "aten.bmm": 497939359104, "aten.mm": 27372567920640 }, "decode_operators": { "aten.bmm": 221380800, "aten.mm": 51243909120, "aten.convolution": 7864320 } }, { "sample_id": "testB-53254-146620", "prompt_tokens_in_reference_tensor": 560, "input_shapes": { "input_ids": [ 1, 560 ], "attention_mask": [ 1, 560 ], "mm_token_type_ids": [ 1, 560 ], "pixel_values": [ 1040, 1536 ], "image_grid_thw": [ 1, 3 ] }, "prefill_flops_counted": 28656453395456, "decode_one_token_flops_counted": 51472367808, "prefill_gflops_counted": 28656.453395456, "decode_one_token_gflops_counted": 51.472367808, "prefill_operators": { "aten.convolution": 5894307840, "aten.addmm": 878336409600, "aten.bmm": 497056982016, "aten.mm": 27275165696000 }, "decode_operators": { "aten.bmm": 220594368, "aten.mm": 51243909120, "aten.convolution": 7864320 } }, { "sample_id": "testB-37889-104439", "prompt_tokens_in_reference_tensor": 687, "input_shapes": { "input_ids": [ 1, 687 ], "attention_mask": [ 1, 687 ], "mm_token_type_ids": [ 1, 687 ], "pixel_values": [ 1520, 1536 ], "image_grid_thw": [ 1, 3 ] }, "prefill_flops_counted": 35517384622912, "decode_one_token_flops_counted": 51522306240, "prefill_gflops_counted": 35517.384622912, "decode_one_token_gflops_counted": 51.52230624, "prefill_operators": { "aten.convolution": 8092385280, "aten.addmm": 1283722444800, "aten.bmm": 765362832192, "aten.mm": 33460206960640 }, "decode_operators": { "aten.bmm": 270532800, "aten.mm": 51243909120, "aten.convolution": 7864320 } }, { "sample_id": "testA-58523-161084", "prompt_tokens_in_reference_tensor": 500, "input_shapes": { "input_ids": [ 1, 500 ], "attention_mask": [ 1, 500 ], "mm_token_type_ids": [ 1, 500 ], "pixel_values": [ 768, 1536 ], "image_grid_thw": [ 1, 3 ] }, "prefill_flops_counted": 25390700918528, "decode_one_token_flops_counted": 51448774848, "prefill_gflops_counted": 25390.700918528, "decode_one_token_gflops_counted": 51.448774848, "prefill_operators": { "aten.convolution": 4695785472, "aten.addmm": 648617656320, "aten.bmm": 384288519936, "aten.mm": 24353098956800 }, "decode_operators": { "aten.bmm": 197001408, "aten.mm": 51243909120, "aten.convolution": 7864320 } }, { "sample_id": "testB-3419-9449", "prompt_tokens_in_reference_tensor": 568, "input_shapes": { "input_ids": [ 1, 568 ], "attention_mask": [ 1, 568 ], "mm_token_type_ids": [ 1, 568 ], "pixel_values": [ 1040, 1536 ], "image_grid_thw": [ 1, 3 ] }, "prefill_flops_counted": 29049642134016, "decode_one_token_flops_counted": 51475513536, "prefill_gflops_counted": 29049.642134016, "decode_one_token_gflops_counted": 51.475513536, "prefill_operators": { "aten.convolution": 5925765120, "aten.addmm": 878336409600, "aten.bmm": 500605364736, "aten.mm": 27664774594560 }, "decode_operators": { "aten.bmm": 223740096, "aten.mm": 51243909120, "aten.convolution": 7864320 } }, { "sample_id": "testB-24035-66084", "prompt_tokens_in_reference_tensor": 561, "input_shapes": { "input_ids": [ 1, 561 ], "attention_mask": [ 1, 561 ], "mm_token_type_ids": [ 1, 561 ], "pixel_values": [ 1040, 1536 ], "image_grid_thw": [ 1, 3 ] }, "prefill_flops_counted": 28705599235264, "decode_one_token_flops_counted": 51472761024, "prefill_gflops_counted": 28705.599235264, "decode_one_token_gflops_counted": 51.472761024, "prefill_operators": { "aten.convolution": 5898240000, "aten.addmm": 878336409600, "aten.bmm": 497497777344, "aten.mm": 27323866808320 }, "decode_operators": { "aten.bmm": 220987584, "aten.mm": 51243909120, "aten.convolution": 7864320 } } ], "mean_prefill_gflops_counted": 29815.11614984, "mean_decode_one_token_gflops_counted": 51.480920256000005, "scope": "HF reference execution on the A800 with real task inputs; dense products/convolutions/supported attention counted with multiply-add=2 FLOPs. vLLM custom kernels, elementwise/normalization/nonlinearities and other unsupported operations are not complete.", "answer_generation": "not performed; one known-token decode probe only"}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446{ "status": "complete", "model_kind": "Qwen3.8", "task": "grefcoco", "expert": "instancevg", "model_path": "/mnt/HithinkOmniSSD/user_workspace/caisihang/checkpoints/Qwen3.8-27B-FP8", "device": "cuda:0", "gpu_memory_utilization": 0.85, "sample_count_requested": 66, "warmup_count": 2, "measured_count": 64, "batch_size": 1, "sample_ids": [ "testA-29199-80373", "testB-44351-122075", "testA-91850-253019", "testB-36888-101641", "testA-54586-150233", "testB-79644-219272", "testB-65935-181776", "testA-81622-224664", "testA-10078-27739", "testA-15582-42797", "testA-5038-13943", "testA-30844-84861", "testB-15419-42356", "testB-27486-75580", "testB-945-2632", "testA-24438-67190", "testB-66161-182405", "testB-42726-117659", "testB-69439-191450", "testA-54307-149426", "testB-37669-103831", "testB-50844-140105", "testA-79438-218690", "testA-62940-173454", "testA-81245-223632", "testA-47070-129599", "testB-12381-34098", "testA-44142-121498", "testA-73258-201893", "testB-46644-128436", "testA-43889-120792", "testB-36082-99363", "testB-33108-91152", "testA-26856-73830", "testA-81271-223709", "testA-54554-150141", "testB-38636-106481", "testA-5734-15837", "testB-67558-186325", "testB-47053-129554", "testA-93064-256422", "testB-60557-166821", "testA-55116-151688", "testB-65796-181392", "testB-23014-63278", "testA-24562-67515", "testA-17736-48684", "testA-58475-160949", "testA-80455-221493", "testA-31763-87405", "testB-23920-65742", "testA-469-1309", "testB-56691-155998", "testB-31493-86668", "testA-59284-163254", "testA-57397-158015", "testB-2935-8111", "testB-22290-61226", "testB-8416-23140", "testA-60731-167320", "testA-49055-135086", "testA-7857-21644", "testB-79645-219273", "testB-52921-145707", "testB-69479-191562", "testA-69466-191524" ], "batches": [ { "sample_ids": [ "testA-91850-253019" ], "batch_size": 1, "generation_latency_seconds": 3.147620694944635, "batch_wall_latency_seconds": 3.1645371050108224, "amortized_generation_ms_per_sample": 3147.620694944635, "amortized_batch_wall_ms_per_sample": 3164.5371050108224, "outputs": [ { "raw_response": "{\"objects\": [{\"bbox_2d\": [496, 292, 713, 655], \"score\": 0.9}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 496, 292, 713, 655 ], "score": 0.9 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 39, "prompt_tokens": 570 } ] }, { "sample_ids": [ "testB-36888-101641" ], "batch_size": 1, "generation_latency_seconds": 4.945294587058015, "batch_wall_latency_seconds": 4.966181440046057, "amortized_generation_ms_per_sample": 4945.294587058015, "amortized_batch_wall_ms_per_sample": 4966.181440046057, "outputs": [ { "raw_response": "{\"objects\":[{\"bbox_2d\":[21,567,693,915],\"score\":0.95},{\"bbox_2d\":[381,233,959,885],\"score\":0.95}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 21, 567, 693, 915 ], "score": 0.95 }, { "bbox_2d": [ 381, 233, 959, 885 ], "score": 0.95 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 60, "prompt_tokens": 608 } ] }, { "sample_ids": [ "testA-54586-150233" ], "batch_size": 1, "generation_latency_seconds": 3.2111774859949946, "batch_wall_latency_seconds": 3.2314598000375554, "amortized_generation_ms_per_sample": 3211.1774859949946, "amortized_batch_wall_ms_per_sample": 3231.4598000375554, "outputs": [ { "raw_response": "{\"objects\": [{\"bbox_2d\": [693, 438, 983, 813], \"score\": 0.95}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 693, 438, 983, 813 ], "score": 0.95 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 40, "prompt_tokens": 707 } ] }, { "sample_ids": [ "testB-79644-219272" ], "batch_size": 1, "generation_latency_seconds": 33.390286731068045, "batch_wall_latency_seconds": 33.40712711191736, "amortized_generation_ms_per_sample": 33390.286731068045, "amortized_batch_wall_ms_per_sample": 33407.12711191736, "outputs": [ { "raw_response": "{\"objects\": [{\"bbox_2d\": [121, 581, 170, 764], \"score\": 0.9}, {\"bbox_2d\": [173, 595, 259, 837], \"score\": 0.9}, {\"bbox_2d\": [265, 581, 315, 806], \"score\": 0.9}, {\"bbox_2d\": [310, 571, 351, 764], \"score\": 0.9}, {\"bbox_2d\": [338, 581, 387, 764], \"score\": 0.9}, {\"bbox_2d\": [449, 575, 492, 756], \"score\": 0.9}, {\"bbox_2d\": [475, 604, 542, 806], \"score\": 0.9}, {\"bbox_2d\": [668, 575, 743, 818], \"score\": 0.9}, {\"bbox_2d\": [740, 571, 783, 775], \"score\": 0.9}, {\"bbox_2d\": [771, 571, 814, 787], \"score\": 0.9}, {\"bbox_2d\": [822, 587, 851, 764], \"score\": 0.9}, {\"bbox_2d\": [847, 591, 921, 903], \"score\": 0.9}, {\"bbox_2d\": [902, 604, 959, 795], \"score\": 0.9}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 121, 581, 170, 764 ], "score": 0.9 }, { "bbox_2d": [ 173, 595, 259, 837 ], "score": 0.9 }, { "bbox_2d": [ 265, 581, 315, 806 ], "score": 0.9 }, { "bbox_2d": [ 310, 571, 351, 764 ], "score": 0.9 }, { "bbox_2d": [ 338, 581, 387, 764 ], "score": 0.9 }, { "bbox_2d": [ 449, 575, 492, 756 ], "score": 0.9 }, { "bbox_2d": [ 475, 604, 542, 806 ], "score": 0.9 }, { "bbox_2d": [ 668, 575, 743, 818 ], "score": 0.9 }, { "bbox_2d": [ 740, 571, 783, 775 ], "score": 0.9 }, { "bbox_2d": [ 771, 571, 814, 787 ], "score": 0.9 }, { "bbox_2d": [ 822, 587, 851, 764 ], "score": 0.9 }, { "bbox_2d": [ 847, 591, 921, 903 ], "score": 0.9 }, { "bbox_2d": [ 902, 604, 959, 795 ], "score": 0.9 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 447, "prompt_tokens": 600 } ] }, { "sample_ids": [ "testB-65935-181776" ], "batch_size": 1, "generation_latency_seconds": 4.57236669503618, "batch_wall_latency_seconds": 4.583186280098744, "amortized_generation_ms_per_sample": 4572.36669503618, "amortized_batch_wall_ms_per_sample": 4583.186280098744, "outputs": [ { "raw_response": "{\"objects\":[{\"bbox_2d\":[347,333,951,761],\"score\":0.95},{\"bbox_2d\":[246,421,777,987],\"score\":0.95}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 347, 333, 951, 761 ], "score": 0.95 }, { "bbox_2d": [ 246, 421, 777, 987 ], "score": 0.95 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 61, "prompt_tokens": 564 } ] }, { "sample_ids": [ "testA-81622-224664" ], "batch_size": 1, "generation_latency_seconds": 0.6317770309979096, "batch_wall_latency_seconds": 0.6445289449766278, "amortized_generation_ms_per_sample": 631.7770309979096, "amortized_batch_wall_ms_per_sample": 644.5289449766278, "outputs": [ { "raw_response": "{\"objects\": []}", "valid_prediction": { "objects": [] }, "error": null, "finish_reason": "stop", "completion_tokens": 6, "prompt_tokens": 564 } ] }, { "sample_ids": [ "testA-10078-27739" ], "batch_size": 1, "generation_latency_seconds": 2.393106485949829, "batch_wall_latency_seconds": 2.4061070699244738, "amortized_generation_ms_per_sample": 2393.106485949829, "amortized_batch_wall_ms_per_sample": 2406.1070699244738, "outputs": [ { "raw_response": "{\"objects\":[{\"bbox_2d\":[283,97,775,810],\"score\":0.95}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 283, 97, 775, 810 ], "score": 0.95 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 32, "prompt_tokens": 564 } ] }, { "sample_ids": [ "testA-15582-42797" ], "batch_size": 1, "generation_latency_seconds": 7.63340066303499, "batch_wall_latency_seconds": 7.651124170981348, "amortized_generation_ms_per_sample": 7633.40066303499, "amortized_batch_wall_ms_per_sample": 7651.124170981348, "outputs": [ { "raw_response": "{\"objects\": [{\"bbox_2d\": [85, 297, 446, 999], \"score\": 0.9}, {\"bbox_2d\": [315, 413, 542, 999], \"score\": 0.9}, {\"bbox_2d\": [542, 476, 642, 876], \"score\": 0.9}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 85, 297, 446, 999 ], "score": 0.9 }, { "bbox_2d": [ 315, 413, 542, 999 ], "score": 0.9 }, { "bbox_2d": [ 542, 476, 642, 876 ], "score": 0.9 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 106, "prompt_tokens": 619 } ] }, { "sample_ids": [ "testA-5038-13943" ], "batch_size": 1, "generation_latency_seconds": 3.06427818199154, "batch_wall_latency_seconds": 3.0877813909901306, "amortized_generation_ms_per_sample": 3064.27818199154, "amortized_batch_wall_ms_per_sample": 3087.7813909901306, "outputs": [ { "raw_response": "{\"objects\": [{\"bbox_2d\": [521, 246, 793, 999], \"score\": 0.95}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 521, 246, 793, 999 ], "score": 0.95 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 40, "prompt_tokens": 604 } ] }, { "sample_ids": [ "testA-30844-84861" ], "batch_size": 1, "generation_latency_seconds": 2.516077253036201, "batch_wall_latency_seconds": 2.5232016970403492, "amortized_generation_ms_per_sample": 2516.077253036201, "amortized_batch_wall_ms_per_sample": 2523.2016970403492, "outputs": [ { "raw_response": "{\"objects\":[{\"bbox_2d\":[508,536,807,722],\"score\":0.9}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 508, 536, 807, 722 ], "score": 0.9 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 32, "prompt_tokens": 623 } ] }, { "sample_ids": [ "testB-15419-42356" ], "batch_size": 1, "generation_latency_seconds": 2.673266503959894, "batch_wall_latency_seconds": 2.6889539459953085, "amortized_generation_ms_per_sample": 2673.266503959894, "amortized_batch_wall_ms_per_sample": 2688.9539459953085, "outputs": [ { "raw_response": "{\"objects\":[{\"bbox_2d\":[107,722,587,999],\"score\":0.9}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 107, 722, 587, 999 ], "score": 0.9 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 32, "prompt_tokens": 566 } ] }, { "sample_ids": [ "testB-27486-75580" ], "batch_size": 1, "generation_latency_seconds": 4.617897133924998, "batch_wall_latency_seconds": 4.632912510889582, "amortized_generation_ms_per_sample": 4617.897133924998, "amortized_batch_wall_ms_per_sample": 4632.912510889582, "outputs": [ { "raw_response": "{\"objects\":[{\"bbox_2d\":[542,393,999,999],\"score\":0.95},{\"bbox_2d\":[646,271,911,471],\"score\":0.95}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 542, 393, 999, 999 ], "score": 0.95 }, { "bbox_2d": [ 646, 271, 911, 471 ], "score": 0.95 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 61, "prompt_tokens": 670 } ] }, { "sample_ids": [ "testB-945-2632" ], "batch_size": 1, "generation_latency_seconds": 12.483138478011824, "batch_wall_latency_seconds": 12.503725816030055, "amortized_generation_ms_per_sample": 12483.138478011824, "amortized_batch_wall_ms_per_sample": 12503.725816030055, "outputs": [ { "raw_response": "{\"objects\": [{\"bbox_2d\": [213, 692, 283, 983], \"score\": 0.9}, {\"bbox_2d\": [321, 661, 415, 973], \"score\": 0.9}, {\"bbox_2d\": [473, 661, 555, 966], \"score\": 0.9}, {\"bbox_2d\": [638, 626, 713, 973], \"score\": 0.9}, {\"bbox_2d\": [775, 638, 871, 988], \"score\": 0.9}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 213, 692, 283, 983 ], "score": 0.9 }, { "bbox_2d": [ 321, 661, 415, 973 ], "score": 0.9 }, { "bbox_2d": [ 473, 661, 555, 966 ], "score": 0.9 }, { "bbox_2d": [ 638, 626, 713, 973 ], "score": 0.9 }, { "bbox_2d": [ 775, 638, 871, 988 ], "score": 0.9 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 175, "prompt_tokens": 670 } ] }, { "sample_ids": [ "testA-24438-67190" ], "batch_size": 1, "generation_latency_seconds": 4.798777529038489, "batch_wall_latency_seconds": 4.815012337057851, "amortized_generation_ms_per_sample": 4798.777529038489, "amortized_batch_wall_ms_per_sample": 4815.012337057851, "outputs": [ { "raw_response": "{\"objects\":[{\"bbox_2d\":[731,375,999,999],\"score\":0.95},{\"bbox_2d\":[305,247,585,928],\"score\":0.95}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 731, 375, 999, 999 ], "score": 0.95 }, { "bbox_2d": [ 305, 247, 585, 928 ], "score": 0.95 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 61, "prompt_tokens": 605 } ] }, { "sample_ids": [ "testB-66161-182405" ], "batch_size": 1, "generation_latency_seconds": 2.5812068269588053, "batch_wall_latency_seconds": 2.593027200899087, "amortized_generation_ms_per_sample": 2581.2068269588053, "amortized_batch_wall_ms_per_sample": 2593.027200899087, "outputs": [ { "raw_response": "{\"objects\":[{\"bbox_2d\":[103,193,755,713],\"score\":0.95}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 103, 193, 755, 713 ], "score": 0.95 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 33, "prompt_tokens": 563 } ] }, { "sample_ids": [ "testB-42726-117659" ], "batch_size": 1, "generation_latency_seconds": 3.0745598620269448, "batch_wall_latency_seconds": 3.0872938209213316, "amortized_generation_ms_per_sample": 3074.5598620269448, "amortized_batch_wall_ms_per_sample": 3087.2938209213316, "outputs": [ { "raw_response": "{\"objects\": [{\"bbox_2d\": [743, 458, 999, 878], \"score\": 0.95}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 743, 458, 999, 878 ], "score": 0.95 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 40, "prompt_tokens": 604 } ] }, { "sample_ids": [ "testB-69439-191450" ], "batch_size": 1, "generation_latency_seconds": 0.5888717719353735, "batch_wall_latency_seconds": 0.5951321049360558, "amortized_generation_ms_per_sample": 588.8717719353735, "amortized_batch_wall_ms_per_sample": 595.1321049360558, "outputs": [ { "raw_response": "{\"objects\": []}", "valid_prediction": { "objects": [] }, "error": null, "finish_reason": "stop", "completion_tokens": 6, "prompt_tokens": 492 } ] }, { "sample_ids": [ "testA-54307-149426" ], "batch_size": 1, "generation_latency_seconds": 4.398384497035295, "batch_wall_latency_seconds": 4.4204836380667984, "amortized_generation_ms_per_sample": 4398.384497035295, "amortized_batch_wall_ms_per_sample": 4420.483638066798, "outputs": [ { "raw_response": "{\"objects\":[{\"bbox_2d\":[542,48,838,923],\"score\":0.95},{\"bbox_2d\":[177,0,567,477],\"score\":0.95}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 542, 48, 838, 923 ], "score": 0.95 }, { "bbox_2d": [ 177, 0, 567, 477 ], "score": 0.95 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 58, "prompt_tokens": 564 } ] }, { "sample_ids": [ "testB-37669-103831" ], "batch_size": 1, "generation_latency_seconds": 0.6747266949387267, "batch_wall_latency_seconds": 0.699499664013274, "amortized_generation_ms_per_sample": 674.7266949387267, "amortized_batch_wall_ms_per_sample": 699.499664013274, "outputs": [ { "raw_response": "{\"objects\": []}", "valid_prediction": { "objects": [] }, "error": null, "finish_reason": "stop", "completion_tokens": 6, "prompt_tokens": 648 } ] }, { "sample_ids": [ "testB-50844-140105" ], "batch_size": 1, "generation_latency_seconds": 0.652067915070802, "batch_wall_latency_seconds": 0.6656363360816613, "amortized_generation_ms_per_sample": 652.067915070802, "amortized_batch_wall_ms_per_sample": 665.6363360816613, "outputs": [ { "raw_response": "{\"objects\": []}", "valid_prediction": { "objects": [] }, "error": null, "finish_reason": "stop", "completion_tokens": 6, "prompt_tokens": 561 } ] }, { "sample_ids": [ "testA-79438-218690" ], "batch_size": 1, "generation_latency_seconds": 3.1018499380443245, "batch_wall_latency_seconds": 3.1217426829971373, "amortized_generation_ms_per_sample": 3101.8499380443245, "amortized_batch_wall_ms_per_sample": 3121.7426829971373, "outputs": [ { "raw_response": "{\"objects\": [{\"bbox_2d\": [255, 173, 536, 923], \"score\": 0.95}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 255, 173, 536, 923 ], "score": 0.95 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 40, "prompt_tokens": 562 } ] }, { "sample_ids": [ "testA-62940-173454" ], "batch_size": 1, "generation_latency_seconds": 3.057670062989928, "batch_wall_latency_seconds": 3.073035439942032, "amortized_generation_ms_per_sample": 3057.670062989928, "amortized_batch_wall_ms_per_sample": 3073.035439942032, "outputs": [ { "raw_response": "{\"objects\": [{\"bbox_2d\": [626, 266, 751, 693], \"score\": 0.9}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 626, 266, 751, 693 ], "score": 0.9 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 39, "prompt_tokens": 605 } ] }, { "sample_ids": [ "testA-81245-223632" ], "batch_size": 1, "generation_latency_seconds": 10.252644294989295, "batch_wall_latency_seconds": 10.266198730911128, "amortized_generation_ms_per_sample": 10252.644294989295, "amortized_batch_wall_ms_per_sample": 10266.198730911128, "outputs": [ { "raw_response": "{\"objects\": [{\"bbox_2d\": [584, 117, 783, 882], \"score\": 0.9}, {\"bbox_2d\": [707, 131, 792, 761], \"score\": 0.9}, {\"bbox_2d\": [798, 105, 915, 655], \"score\": 0.9}, {\"bbox_2d\": [533, 178, 655, 705], \"score\": 0.9}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 584, 117, 783, 882 ], "score": 0.9 }, { "bbox_2d": [ 707, 131, 792, 761 ], "score": 0.9 }, { "bbox_2d": [ 798, 105, 915, 655 ], "score": 0.9 }, { "bbox_2d": [ 533, 178, 655, 705 ], "score": 0.9 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 141, "prompt_tokens": 570 } ] }, { "sample_ids": [ "testA-47070-129599" ], "batch_size": 1, "generation_latency_seconds": 0.6474383240565658, "batch_wall_latency_seconds": 0.6609540630597621, "amortized_generation_ms_per_sample": 647.4383240565658, "amortized_batch_wall_ms_per_sample": 660.9540630597621, "outputs": [ { "raw_response": "{\"objects\": []}", "valid_prediction": { "objects": [] }, "error": null, "finish_reason": "stop", "completion_tokens": 6, "prompt_tokens": 560 } ] }, { "sample_ids": [ "testB-12381-34098" ], "batch_size": 1, "generation_latency_seconds": 6.267876331927255, "batch_wall_latency_seconds": 6.293664561933838, "amortized_generation_ms_per_sample": 6267.876331927255, "amortized_batch_wall_ms_per_sample": 6293.664561933838, "outputs": [ { "raw_response": "{\"objects\":[{\"bbox_2d\":[458,242,771,473],\"score\":0.9},{\"bbox_2d\":[298,343,826,817],\"score\":0.9},{\"bbox_2d\":[305,466,793,840],\"score\":0.9}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 458, 242, 771, 473 ], "score": 0.9 }, { "bbox_2d": [ 298, 343, 826, 817 ], "score": 0.9 }, { "bbox_2d": [ 305, 466, 793, 840 ], "score": 0.9 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 86, "prompt_tokens": 574 } ] }, { "sample_ids": [ "testA-44142-121498" ], "batch_size": 1, "generation_latency_seconds": 5.1425224100239575, "batch_wall_latency_seconds": 5.153767512994818, "amortized_generation_ms_per_sample": 5142.5224100239575, "amortized_batch_wall_ms_per_sample": 5153.767512994818, "outputs": [ { "raw_response": "{\"objects\": [{\"bbox_2d\": [0, 95, 585, 987], \"score\": 0.9}, {\"bbox_2d\": [567, 126, 999, 987], \"score\": 0.9}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 0, 95, 585, 987 ], "score": 0.9 }, { "bbox_2d": [ 567, 126, 999, 987 ], "score": 0.9 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 70, "prompt_tokens": 563 } ] }, { "sample_ids": [ "testA-73258-201893" ], "batch_size": 1, "generation_latency_seconds": 2.4450040519004688, "batch_wall_latency_seconds": 2.4576197939459234, "amortized_generation_ms_per_sample": 2445.0040519004688, "amortized_batch_wall_ms_per_sample": 2457.6197939459234, "outputs": [ { "raw_response": "{\"objects\":[{\"bbox_2d\":[401,274,999,987],\"score\":0.9}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 401, 274, 999, 987 ], "score": 0.9 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 32, "prompt_tokens": 606 } ] }, { "sample_ids": [ "testB-46644-128436" ], "batch_size": 1, "generation_latency_seconds": 4.464105351013131, "batch_wall_latency_seconds": 4.473494493984617, "amortized_generation_ms_per_sample": 4464.105351013131, "amortized_batch_wall_ms_per_sample": 4473.494493984617, "outputs": [ { "raw_response": "{\"objects\":[{\"bbox_2d\":[10,183,537,826],\"score\":0.95},{\"bbox_2d\":[483,0,999,743],\"score\":0.95}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 10, 183, 537, 826 ], "score": 0.95 }, { "bbox_2d": [ 483, 0, 999, 743 ], "score": 0.95 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 58, "prompt_tokens": 497 } ] }, { "sample_ids": [ "testA-43889-120792" ], "batch_size": 1, "generation_latency_seconds": 3.0225026920670643, "batch_wall_latency_seconds": 3.039261986967176, "amortized_generation_ms_per_sample": 3022.5026920670643, "amortized_batch_wall_ms_per_sample": 3039.261986967176, "outputs": [ { "raw_response": "{\"objects\": [{\"bbox_2d\": [305, 303, 475, 882], \"score\": 0.9}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 305, 303, 475, 882 ], "score": 0.9 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 39, "prompt_tokens": 571 } ] }, { "sample_ids": [ "testB-36082-99363" ], "batch_size": 1, "generation_latency_seconds": 4.3171981680206954, "batch_wall_latency_seconds": 4.324737289105542, "amortized_generation_ms_per_sample": 4317.198168020695, "amortized_batch_wall_ms_per_sample": 4324.737289105542, "outputs": [ { "raw_response": "{\"objects\":[{\"bbox_2d\":[0,107,417,876],\"score\":0.95},{\"bbox_2d\":[442,0,999,986],\"score\":0.95}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 0, 107, 417, 876 ], "score": 0.95 }, { "bbox_2d": [ 442, 0, 999, 986 ], "score": 0.95 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 57, "prompt_tokens": 412 } ] }, { "sample_ids": [ "testB-33108-91152" ], "batch_size": 1, "generation_latency_seconds": 2.9848218420520425, "batch_wall_latency_seconds": 2.9953485280275345, "amortized_generation_ms_per_sample": 2984.8218420520425, "amortized_batch_wall_ms_per_sample": 2995.3485280275345, "outputs": [ { "raw_response": "{\"objects\": [{\"bbox_2d\": [58, 201, 385, 458], \"score\": 0.95}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 58, 201, 385, 458 ], "score": 0.95 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 39, "prompt_tokens": 602 } ] }, { "sample_ids": [ "testA-26856-73830" ], "batch_size": 1, "generation_latency_seconds": 3.0266257260227576, "batch_wall_latency_seconds": 3.0415181359276175, "amortized_generation_ms_per_sample": 3026.6257260227576, "amortized_batch_wall_ms_per_sample": 3041.5181359276175, "outputs": [ { "raw_response": "{\"objects\": [{\"bbox_2d\": [576, 343, 783, 713], \"score\": 0.95}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 576, 343, 783, 713 ], "score": 0.95 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 40, "prompt_tokens": 562 } ] }, { "sample_ids": [ "testA-81271-223709" ], "batch_size": 1, "generation_latency_seconds": 0.6367205450078472, "batch_wall_latency_seconds": 0.6504157679155469, "amortized_generation_ms_per_sample": 636.7205450078472, "amortized_batch_wall_ms_per_sample": 650.4157679155469, "outputs": [ { "raw_response": "{\"objects\": []}", "valid_prediction": { "objects": [] }, "error": null, "finish_reason": "stop", "completion_tokens": 6, "prompt_tokens": 560 } ] }, { "sample_ids": [ "testA-54554-150141" ], "batch_size": 1, "generation_latency_seconds": 11.380541390972212, "batch_wall_latency_seconds": 11.400562496040948, "amortized_generation_ms_per_sample": 11380.541390972212, "amortized_batch_wall_ms_per_sample": 11400.562496040948, "outputs": [ { "raw_response": "{\"objects\":[{\"bbox_2d\":[27,0,121,243],\"score\":0.9},{\"bbox_2d\":[62,0,185,258],\"score\":0.9},{\"bbox_2d\":[142,0,222,255],\"score\":0.9},{\"bbox_2d\":[185,0,283,261],\"score\":0.9},{\"bbox_2d\":[277,312,597,826],\"score\":0.9},{\"bbox_2d\":[655,500,951,871],\"score\":0.9}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 27, 0, 121, 243 ], "score": 0.9 }, { "bbox_2d": [ 62, 0, 185, 258 ], "score": 0.9 }, { "bbox_2d": [ 142, 0, 222, 255 ], "score": 0.9 }, { "bbox_2d": [ 185, 0, 283, 261 ], "score": 0.9 }, { "bbox_2d": [ 277, 312, 597, 826 ], "score": 0.9 }, { "bbox_2d": [ 655, 500, 951, 871 ], "score": 0.9 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 157, "prompt_tokens": 610 } ] }, { "sample_ids": [ "testB-38636-106481" ], "batch_size": 1, "generation_latency_seconds": 4.233924768050201, "batch_wall_latency_seconds": 4.251373155973852, "amortized_generation_ms_per_sample": 4233.924768050201, "amortized_batch_wall_ms_per_sample": 4251.373155973852, "outputs": [ { "raw_response": "{\"objects\":[{\"bbox_2d\":[494,177,881,985],\"score\":0.95},{\"bbox_2d\":[0,42,307,722],\"score\":0.95}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 494, 177, 881, 985 ], "score": 0.95 }, { "bbox_2d": [ 0, 42, 307, 722 ], "score": 0.95 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 58, "prompt_tokens": 469 } ] }, { "sample_ids": [ "testA-5734-15837" ], "batch_size": 1, "generation_latency_seconds": 0.6504808579338714, "batch_wall_latency_seconds": 0.6668235529214144, "amortized_generation_ms_per_sample": 650.4808579338714, "amortized_batch_wall_ms_per_sample": 666.8235529214144, "outputs": [ { "raw_response": "{\"objects\": []}", "valid_prediction": { "objects": [] }, "error": null, "finish_reason": "stop", "completion_tokens": 6, "prompt_tokens": 565 } ] }, { "sample_ids": [ "testB-67558-186325" ], "batch_size": 1, "generation_latency_seconds": 0.6280788460280746, "batch_wall_latency_seconds": 0.6436845100251958, "amortized_generation_ms_per_sample": 628.0788460280746, "amortized_batch_wall_ms_per_sample": 643.6845100251958, "outputs": [ { "raw_response": "{\"objects\": []}", "valid_prediction": { "objects": [] }, "error": null, "finish_reason": "stop", "completion_tokens": 6, "prompt_tokens": 600 } ] }, { "sample_ids": [ "testB-47053-129554" ], "batch_size": 1, "generation_latency_seconds": 4.556327463011257, "batch_wall_latency_seconds": 4.573514219024219, "amortized_generation_ms_per_sample": 4556.327463011257, "amortized_batch_wall_ms_per_sample": 4573.514219024219, "outputs": [ { "raw_response": "{\"objects\":[{\"bbox_2d\":[438,321,871,542],\"score\":0.95},{\"bbox_2d\":[438,452,851,863],\"score\":0.95}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 438, 321, 871, 542 ], "score": 0.95 }, { "bbox_2d": [ 438, 452, 851, 863 ], "score": 0.95 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 61, "prompt_tokens": 604 } ] }, { "sample_ids": [ "testA-93064-256422" ], "batch_size": 1, "generation_latency_seconds": 2.830894450074993, "batch_wall_latency_seconds": 2.8475917810574174, "amortized_generation_ms_per_sample": 2830.894450074993, "amortized_batch_wall_ms_per_sample": 2847.5917810574174, "outputs": [ { "raw_response": "{\"objects\": [{\"bbox_2d\": [0, 226, 173, 755], \"score\": 0.9}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 0, 226, 173, 755 ], "score": 0.9 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 37, "prompt_tokens": 549 } ] }, { "sample_ids": [ "testB-60557-166821" ], "batch_size": 1, "generation_latency_seconds": 5.58066594589036, "batch_wall_latency_seconds": 5.594979963963851, "amortized_generation_ms_per_sample": 5580.66594589036, "amortized_batch_wall_ms_per_sample": 5594.979963963851, "outputs": [ { "raw_response": "{\"objects\": [{\"bbox_2d\": [857, 442, 875, 477], \"score\": 0.9}, {\"bbox_2d\": [347, 442, 365, 477], \"score\": 0.9}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 857, 442, 875, 477 ], "score": 0.9 }, { "bbox_2d": [ 347, 442, 365, 477 ], "score": 0.9 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 73, "prompt_tokens": 500 } ] }, { "sample_ids": [ "testA-55116-151688" ], "batch_size": 1, "generation_latency_seconds": 0.6620599570451304, "batch_wall_latency_seconds": 0.6773106920300052, "amortized_generation_ms_per_sample": 662.0599570451304, "amortized_batch_wall_ms_per_sample": 677.3106920300052, "outputs": [ { "raw_response": "{\"objects\": []}", "valid_prediction": { "objects": [] }, "error": null, "finish_reason": "stop", "completion_tokens": 6, "prompt_tokens": 600 } ] }, { "sample_ids": [ "testB-65796-181392" ], "batch_size": 1, "generation_latency_seconds": 0.6342472250107676, "batch_wall_latency_seconds": 0.6483092680573463, "amortized_generation_ms_per_sample": 634.2472250107676, "amortized_batch_wall_ms_per_sample": 648.3092680573463, "outputs": [ { "raw_response": "{\"objects\": []}", "valid_prediction": { "objects": [] }, "error": null, "finish_reason": "stop", "completion_tokens": 6, "prompt_tokens": 581 } ] }, { "sample_ids": [ "testB-23014-63278" ], "batch_size": 1, "generation_latency_seconds": 2.7931598050054163, "batch_wall_latency_seconds": 2.8087078949902207, "amortized_generation_ms_per_sample": 2793.1598050054163, "amortized_batch_wall_ms_per_sample": 2808.7078949902207, "outputs": [ { "raw_response": "{\"objects\":[{\"bbox_2d\":[33, 303, 466, 761],\"score\":0.95}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 33, 303, 466, 761 ], "score": 0.95 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 35, "prompt_tokens": 563 } ] }, { "sample_ids": [ "testA-24562-67515" ], "batch_size": 1, "generation_latency_seconds": 0.6919117919169366, "batch_wall_latency_seconds": 0.7147108289645985, "amortized_generation_ms_per_sample": 691.9117919169366, "amortized_batch_wall_ms_per_sample": 714.7108289645985, "outputs": [ { "raw_response": "{\"objects\": []}", "valid_prediction": { "objects": [] }, "error": null, "finish_reason": "stop", "completion_tokens": 6, "prompt_tokens": 606 } ] }, { "sample_ids": [ "testA-17736-48684" ], "batch_size": 1, "generation_latency_seconds": 3.0041811569826677, "batch_wall_latency_seconds": 3.0170002209488302, "amortized_generation_ms_per_sample": 3004.1811569826677, "amortized_batch_wall_ms_per_sample": 3017.0002209488302, "outputs": [ { "raw_response": "{\"objects\": [{\"bbox_2d\": [508, 426, 765, 983], \"score\": 0.9}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 508, 426, 765, 983 ], "score": 0.9 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 39, "prompt_tokens": 605 } ] }, { "sample_ids": [ "testA-58475-160949" ], "batch_size": 1, "generation_latency_seconds": 2.428418811992742, "batch_wall_latency_seconds": 2.442452701041475, "amortized_generation_ms_per_sample": 2428.418811992742, "amortized_batch_wall_ms_per_sample": 2442.452701041475, "outputs": [ { "raw_response": "{\"objects\":[{\"bbox_2d\":[46,36,576,999],\"score\":0.95}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 46, 36, 576, 999 ], "score": 0.95 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 31, "prompt_tokens": 564 } ] }, { "sample_ids": [ "testA-80455-221493" ], "batch_size": 1, "generation_latency_seconds": 2.4254801200004295, "batch_wall_latency_seconds": 2.4414882709970698, "amortized_generation_ms_per_sample": 2425.4801200004295, "amortized_batch_wall_ms_per_sample": 2441.48827099707, "outputs": [ { "raw_response": "{\"objects\":[{\"bbox_2d\":[0,483,581,938],\"score\":0.95}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 0, 483, 581, 938 ], "score": 0.95 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 31, "prompt_tokens": 541 } ] }, { "sample_ids": [ "testA-31763-87405" ], "batch_size": 1, "generation_latency_seconds": 7.767380379955284, "batch_wall_latency_seconds": 7.780358829069883, "amortized_generation_ms_per_sample": 7767.380379955284, "amortized_batch_wall_ms_per_sample": 7780.358829069883, "outputs": [ { "raw_response": "{\"objects\": [{\"bbox_2d\": [626, 737, 652, 821], \"score\": 0.9}, {\"bbox_2d\": [426, 913, 452, 972], \"score\": 0.9}, {\"bbox_2d\": [356, 852, 378, 936], \"score\": 0.9}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 626, 737, 652, 821 ], "score": 0.9 }, { "bbox_2d": [ 426, 913, 452, 972 ], "score": 0.9 }, { "bbox_2d": [ 356, 852, 378, 936 ], "score": 0.9 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 107, "prompt_tokens": 445 } ] }, { "sample_ids": [ "testB-23920-65742" ], "batch_size": 1, "generation_latency_seconds": 2.9294577399268746, "batch_wall_latency_seconds": 2.9447807769756764, "amortized_generation_ms_per_sample": 2929.4577399268746, "amortized_batch_wall_ms_per_sample": 2944.7807769756764, "outputs": [ { "raw_response": "{\"objects\": [{\"bbox_2d\": [537, 417, 999, 993], \"score\": 0.9}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 537, 417, 999, 993 ], "score": 0.9 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 39, "prompt_tokens": 568 } ] }, { "sample_ids": [ "testA-469-1309" ], "batch_size": 1, "generation_latency_seconds": 0.6524032501038164, "batch_wall_latency_seconds": 0.6627495769644156, "amortized_generation_ms_per_sample": 652.4032501038164, "amortized_batch_wall_ms_per_sample": 662.7495769644156, "outputs": [ { "raw_response": "{\"objects\": []}", "valid_prediction": { "objects": [] }, "error": null, "finish_reason": "stop", "completion_tokens": 6, "prompt_tokens": 621 } ] }, { "sample_ids": [ "testB-56691-155998" ], "batch_size": 1, "generation_latency_seconds": 0.655415665009059, "batch_wall_latency_seconds": 0.67216857499443, "amortized_generation_ms_per_sample": 655.415665009059, "amortized_batch_wall_ms_per_sample": 672.16857499443, "outputs": [ { "raw_response": "{\"objects\": []}", "valid_prediction": { "objects": [] }, "error": null, "finish_reason": "stop", "completion_tokens": 6, "prompt_tokens": 563 } ] }, { "sample_ids": [ "testB-31493-86668" ], "batch_size": 1, "generation_latency_seconds": 4.518256991053931, "batch_wall_latency_seconds": 4.5385722850915045, "amortized_generation_ms_per_sample": 4518.256991053931, "amortized_batch_wall_ms_per_sample": 4538.572285091504, "outputs": [ { "raw_response": "{\"objects\":[{\"bbox_2d\":[537,426,747,765],\"score\":0.95},{\"bbox_2d\":[152,426,466,462],\"score\":0.95}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 537, 426, 747, 765 ], "score": 0.95 }, { "bbox_2d": [ 152, 426, 466, 462 ], "score": 0.95 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 61, "prompt_tokens": 614 } ] }, { "sample_ids": [ "testA-59284-163254" ], "batch_size": 1, "generation_latency_seconds": 5.580998525954783, "batch_wall_latency_seconds": 5.5959404041059315, "amortized_generation_ms_per_sample": 5580.998525954783, "amortized_batch_wall_ms_per_sample": 5595.9404041059315, "outputs": [ { "raw_response": "{\"objects\": [{\"bbox_2d\": [501, 381, 696, 999], \"score\": 0.9}, {\"bbox_2d\": [561, 300, 814, 426], \"score\": 0.9}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 501, 381, 696, 999 ], "score": 0.9 }, { "bbox_2d": [ 561, 300, 814, 426 ], "score": 0.9 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 73, "prompt_tokens": 623 } ] }, { "sample_ids": [ "testA-57397-158015" ], "batch_size": 1, "generation_latency_seconds": 0.6980972309829667, "batch_wall_latency_seconds": 0.709314426057972, "amortized_generation_ms_per_sample": 698.0972309829667, "amortized_batch_wall_ms_per_sample": 709.314426057972, "outputs": [ { "raw_response": "{\"objects\": []}", "valid_prediction": { "objects": [] }, "error": null, "finish_reason": "stop", "completion_tokens": 6, "prompt_tokens": 602 } ] }, { "sample_ids": [ "testB-2935-8111" ], "batch_size": 1, "generation_latency_seconds": 4.602234860998578, "batch_wall_latency_seconds": 4.6172516259830445, "amortized_generation_ms_per_sample": 4602.234860998578, "amortized_batch_wall_ms_per_sample": 4617.2516259830445, "outputs": [ { "raw_response": "{\"objects\":[{\"bbox_2d\":[371,91,707,431],\"score\":0.95},{\"bbox_2d\":[585,181,999,705],\"score\":0.95}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 371, 91, 707, 431 ], "score": 0.95 }, { "bbox_2d": [ 585, 181, 999, 705 ], "score": 0.95 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 60, "prompt_tokens": 570 } ] }, { "sample_ids": [ "testB-22290-61226" ], "batch_size": 1, "generation_latency_seconds": 0.6584999479819089, "batch_wall_latency_seconds": 0.6694054200779647, "amortized_generation_ms_per_sample": 658.4999479819089, "amortized_batch_wall_ms_per_sample": 669.4054200779647, "outputs": [ { "raw_response": "{\"objects\": []}", "valid_prediction": { "objects": [] }, "error": null, "finish_reason": "stop", "completion_tokens": 6, "prompt_tokens": 586 } ] }, { "sample_ids": [ "testB-8416-23140" ], "batch_size": 1, "generation_latency_seconds": 6.426246937015094, "batch_wall_latency_seconds": 6.434293171972968, "amortized_generation_ms_per_sample": 6426.246937015094, "amortized_batch_wall_ms_per_sample": 6434.293171972968, "outputs": [ { "raw_response": "{\"objects\":[{\"bbox_2d\":[0,292,295,642],\"score\":0.95},{\"bbox_2d\":[234,252,581,727],\"score\":0.95},{\"bbox_2d\":[722,183,959,808],\"score\":0.95}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 0, 292, 295, 642 ], "score": 0.95 }, { "bbox_2d": [ 234, 252, 581, 727 ], "score": 0.95 }, { "bbox_2d": [ 722, 183, 959, 808 ], "score": 0.95 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 87, "prompt_tokens": 563 } ] }, { "sample_ids": [ "testA-60731-167320" ], "batch_size": 1, "generation_latency_seconds": 5.329908382031135, "batch_wall_latency_seconds": 5.342693028971553, "amortized_generation_ms_per_sample": 5329.908382031135, "amortized_batch_wall_ms_per_sample": 5342.693028971553, "outputs": [ { "raw_response": "{\"objects\": [{\"bbox_2d\": [0, 81, 446, 987], \"score\": 0.9}, {\"bbox_2d\": [483, 0, 792, 201], \"score\": 0.9}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 0, 81, 446, 987 ], "score": 0.9 }, { "bbox_2d": [ 483, 0, 792, 201 ], "score": 0.9 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 68, "prompt_tokens": 606 } ] }, { "sample_ids": [ "testA-49055-135086" ], "batch_size": 1, "generation_latency_seconds": 4.7276995739666745, "batch_wall_latency_seconds": 4.746967880986631, "amortized_generation_ms_per_sample": 4727.6995739666745, "amortized_batch_wall_ms_per_sample": 4746.967880986631, "outputs": [ { "raw_response": "{\"objects\":[{\"bbox_2d\":[615,242,851,999],\"score\":0.95},{\"bbox_2d\":[137,142,326,999],\"score\":0.95}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 615, 242, 851, 999 ], "score": 0.95 }, { "bbox_2d": [ 137, 142, 326, 999 ], "score": 0.95 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 61, "prompt_tokens": 566 } ] }, { "sample_ids": [ "testA-7857-21644" ], "batch_size": 1, "generation_latency_seconds": 2.446160126943141, "batch_wall_latency_seconds": 2.4602624271064997, "amortized_generation_ms_per_sample": 2446.160126943141, "amortized_batch_wall_ms_per_sample": 2460.2624271064997, "outputs": [ { "raw_response": "{\"objects\":[{\"bbox_2d\":[668,36,999,999],\"score\":0.95}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 668, 36, 999, 999 ], "score": 0.95 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 32, "prompt_tokens": 607 } ] }, { "sample_ids": [ "testB-79645-219273" ], "batch_size": 1, "generation_latency_seconds": 15.058248669025488, "batch_wall_latency_seconds": 15.065027808072045, "amortized_generation_ms_per_sample": 15058.248669025488, "amortized_batch_wall_ms_per_sample": 15065.027808072045, "outputs": [ { "raw_response": "{\"objects\": [{\"bbox_2d\": [542, 417, 798, 722], \"score\": 0.9}, {\"bbox_2d\": [295, 421, 552, 715], \"score\": 0.9}, {\"bbox_2d\": [147, 452, 310, 665], \"score\": 0.9}, {\"bbox_2d\": [55, 476, 115, 645], \"score\": 0.9}, {\"bbox_2d\": [0, 448, 62, 677], \"score\": 0.9}, {\"bbox_2d\": [113, 478, 162, 595], \"score\": 0.9}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 542, 417, 798, 722 ], "score": 0.9 }, { "bbox_2d": [ 295, 421, 552, 715 ], "score": 0.9 }, { "bbox_2d": [ 147, 452, 310, 665 ], "score": 0.9 }, { "bbox_2d": [ 55, 476, 115, 645 ], "score": 0.9 }, { "bbox_2d": [ 0, 448, 62, 677 ], "score": 0.9 }, { "bbox_2d": [ 113, 478, 162, 595 ], "score": 0.9 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 205, "prompt_tokens": 601 } ] }, { "sample_ids": [ "testB-52921-145707" ], "batch_size": 1, "generation_latency_seconds": 0.65654409409035, "batch_wall_latency_seconds": 0.6844046280020848, "amortized_generation_ms_per_sample": 656.54409409035, "amortized_batch_wall_ms_per_sample": 684.4046280020848, "outputs": [ { "raw_response": "{\"objects\": []}", "valid_prediction": { "objects": [] }, "error": null, "finish_reason": "stop", "completion_tokens": 6, "prompt_tokens": 571 } ] }, { "sample_ids": [ "testB-69479-191562" ], "batch_size": 1, "generation_latency_seconds": 2.294087173999287, "batch_wall_latency_seconds": 2.3162708869203925, "amortized_generation_ms_per_sample": 2294.087173999287, "amortized_batch_wall_ms_per_sample": 2316.2708869203925, "outputs": [ { "raw_response": "{\"objects\":[{\"bbox_2d\":[0,31,972,999],\"score\":0.95}]}", "valid_prediction": { "objects": [ { "bbox_2d": [ 0, 31, 972, 999 ], "score": 0.95 } ] }, "error": null, "finish_reason": "stop", "completion_tokens": 30, "prompt_tokens": 561 } ] }, { "sample_ids": [ "testA-69466-191524" ], "batch_size": 1, "generation_latency_seconds": 0.6702312079723924, "batch_wall_latency_seconds": 0.683375352062285, "amortized_generation_ms_per_sample": 670.2312079723924, "amortized_batch_wall_ms_per_sample": 683.375352062285, "outputs": [ { "raw_response": "{\"objects\": []}", "valid_prediction": { "objects": [] }, "error": null, "finish_reason": "stop", "completion_tokens": 6, "prompt_tokens": 602 } ] } ], "mean_generation_ms_per_sample": 4056.054782922729, "median_generation_ms_per_sample": 3024.564209044911, "mean_batch_wall_ms_per_sample": 4071.4221567668574, "median_batch_wall_ms_per_sample": 3040.390061447397, "mean_prompt_tokens": 578.6875, "mean_completion_tokens": 53.203125, "latency_scope": "A800 vLLM-0.18.0 native generation latency with the frozen task prompt and structured-output schema; model loading and warmup excluded. Batch wall time includes the real request/image preparation path.", "flops_scope": "This file measures latency only. Counted FLOPs are measured separately by the HF reference probe and are not claimed to be complete vLLM kernel FLOPs."}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238{ "status": "complete", "run": "shared_12_yolo26x_Qwen3.8", "config": { "fraction": 1.0, "seed": 42, "freeze_encoder": true, "fusion": "concat", "harm_cost": 1.0, "batch_size": 256, "weight_decay": 0.01, "max_epochs": 50, "patience": 8, "cpu_threads": 1, "student": "8M", "representation_dim": 128, "lr": 0.003, "target": "four_state", "strategy": "natural", "hidden_percent": 90, "expert": "yolo26x", "task": "construction", "endpoint": "Qwen3.8", "branches": [ "image", "hidden", "confidence", "output" ], "hidden_layer": "feature_blocks__layer_16", "id": "shared_12_yolo26x_Qwen3.8", "stage": "shared_mandatory_inputs" }, "checkpoint": "/mnt/HithinkOmniSSD/user_workspace/caisihang/research/ICASSP_ModelCollaboration/outputs/router_shared_image_hidden_20260910/runs/shared_12_yolo26x_Qwen3.8/best.pt", "score": "logit_rescue-logit_harm", "test_rows_recomputed": 3004, "selected_decisions_match_main": true, "max_score_abs_difference": 0.0, "actual_call_fraction": 0.4876830892143808, "sample_count": 64, "sample_ids": [ "0002628", "0003242", "0001568", "0001119", "0003648", "0000187", "0001891", "0001689", "0003372", "0002549", "0000915", "0003633", "0004424", "0001627", "0001562", "0002018", "0000254", "0002719", "0002730", "0004413", "0000891", "0000150", "0003223", "0004731", "0001587", "0000483", "0001116", "0003376", "0001225", "0003082", "0004447", "0000283", "0000563", "0001254", "0004759", "0001868", "0001860", "0004087", "0002962", "0001802", "0002973", "0002648", "0004350", "0004377", "0004809", "0003694", "0001572", "0001550", "0000213", "0002266", "0002445", "0004513", "0002124", "0004391", "0003679", "0002902", "0002508", "0004767", "0003840", "0003498", "0001579", "0001748", "0004706", "0004387" ], "batch_size": 1, "latency_ms": [ 17.35539303626865, 13.579263002611697, 15.319477999582887, 14.879688038490713, 24.25052202306688, 20.667891018092632, 20.015343907289207, 19.221558002755046, 20.937222987413406, 26.26270893961191, 17.899635946378112, 16.57471200451255, 18.844021018594503, 21.3212959934026, 19.545868039131165, 64.57463896367699, 20.962884067557752, 24.004184058867395, 20.19065897911787, 18.50342599209398, 19.576229038648307, 25.253725005313754, 21.430211956612766, 25.169604923576117, 17.8982320940122, 21.415626979433, 22.9903319850564, 229.59673800505698, 19.89229000173509, 18.98771501146257, 18.157949903979897, 22.423187969252467, 19.864327972754836, 21.502194926142693, 18.544791964814067, 50.5554600385949, 20.046600024215877, 16.299219918437302, 18.668118049390614, 24.017272982746363, 24.73958197515458, 18.68593308608979, 20.250934991054237, 23.676551994867623, 23.003229987807572, 24.6098650386557, 21.308812079951167, 17.95686304103583, 18.23423698078841, 14.343310962431133, 25.8766250917688, 18.20633898023516, 30.77617404051125, 19.3530690157786, 15.836970997042954, 19.045730936340988, 16.162591986358166, 25.458221905864775, 18.277363968081772, 52.543785073794425, 22.9536690749228, 17.81571004539728, 18.550690030679107, 21.854626946151257 ], "mean_latency_ms_per_input": 25.261267359383055, "head_mean_latency_ms": 0.486134999897331, "gflops_per_input": [ 3.183754752, 3.183754752, 3.183754752, 3.183754752, 3.183754752, 3.183754752, 3.183754752, 3.183754752 ], "mean_gflops_per_input": 3.183754752, "operators": [ { "aten.convolution": 228802560, "aten.bmm": 679257600, "aten._scaled_dot_product_flash_attention": 236027904, "aten.addmm": 2039666688 }, { "aten.convolution": 228802560, "aten.bmm": 679257600, "aten._scaled_dot_product_flash_attention": 236027904, "aten.addmm": 2039666688 }, { "aten.convolution": 228802560, "aten.bmm": 679257600, "aten._scaled_dot_product_flash_attention": 236027904, "aten.addmm": 2039666688 }, { "aten.convolution": 228802560, "aten.bmm": 679257600, "aten._scaled_dot_product_flash_attention": 236027904, "aten.addmm": 2039666688 }, { "aten.convolution": 228802560, "aten.bmm": 679257600, "aten._scaled_dot_product_flash_attention": 236027904, "aten.addmm": 2039666688 }, { "aten.convolution": 228802560, "aten.bmm": 679257600, "aten._scaled_dot_product_flash_attention": 236027904, "aten.addmm": 2039666688 }, { "aten.convolution": 228802560, "aten.bmm": 679257600, "aten._scaled_dot_product_flash_attention": 236027904, "aten.addmm": 2039666688 }, { "aten.convolution": 228802560, "aten.bmm": 679257600, "aten._scaled_dot_product_flash_attention": 236027904, "aten.addmm": 2039666688 } ], "scope": "image loading, bilinear resize, tokenize when used, two image slots (including gray placeholder), active distilled encoders, feature assembly and original routing head; cached specialist features; supported FLOPs only"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254{ "component": "specialist", "expert": "yolo26x", "task": "construction", "device": "cuda:0", "checkpoint": "/mnt/HithinkOmniSSD/user_workspace/caisihang/research/ICASSP_ModelCollaboration/models/construction/yolo26x.pt", "sample_count": 64, "batch_size": 1, "sample_ids": [ "0000944", "0003511", "0003365", "0001351", "0002149", "0003368", "0000176", "0004487", "0000013", "0003583", "0000758", "0001291", "0001451", "0002755", "0003088", "0004538", "0004324", "0000516", "0003893", "0003475", "0002137", "0003272", "0001711", "0003262", "0001470", "0002145", "0002662", "0000756", "0001631", "0001924", "0002496", "0001443", "0004053", "0002168", "0001881", "0001666", "0000304", "0001252", "0004844", "0000949", "0003430", "0003807", "0004199", "0002538", "0002091", "0001569", "0003048", "0002854", "0000380", "0001234", "0001484", "0003180", "0000824", "0003784", "0000894", "0004168", "0000564", "0004296", "0003054", "0001583", "0003386", "0000205", "0004214", "0003625" ], "model_load_seconds_excluded_from_latency": true, "forward_latency_ms_per_sample": [ 41.741790771484375, 51.50377655029297, 78.82457733154297, 87.29910278320312, 49.47385787963867, 49.40816116333008, 168.38259887695312, 42.57542419433594, 40.342529296875, 54.95475387573242, 48.86323165893555, 40.684993743896484, 282.5484619140625, 47.938270568847656, 45.019649505615234, 268.04327392578125, 51.39228820800781, 41.36457443237305, 54.01919937133789, 43.2599983215332, 47.13923263549805, 41.1484489440918, 35.99542236328125, 80.46995544433594, 83.43251037597656, 48.88550567626953, 171.4989776611328, 58.917728424072266, 46.90486526489258, 56.416385650634766, 44.49577713012695, 49.42009735107422, 43.6354866027832, 55.22761535644531, 48.02000045776367, 39.44412612915039, 30.26905632019043, 492.74456787109375, 45.74156951904297, 39.223392486572266, 50.18822479248047, 43.890113830566406, 51.966495513916016, 47.814815521240234, 54.13961410522461, 39.215328216552734, 56.004703521728516, 39.528831481933594, 396.5307312011719, 83.4832992553711, 50.0503044128418, 153.1714630126953, 61.07219314575195, 52.57244873046875, 42.75983810424805, 38.4617919921875, 44.08700942993164, 53.36006546020508, 45.519649505615234, 290.8823547363281, 48.10774230957031, 53.34476852416992, 51.016319274902344, 42.9719352722168 ], "end_to_end_latency_ms_per_sample": [ 35.17372906208038, 48.07086195796728, 46.07532289810479, 45.34715902991593, 46.541396994143724, 45.594630064442754, 45.38595397025347, 39.57494895439595, 39.812199072912335, 51.36631103232503, 42.81833197455853, 33.49219704978168, 37.3103239107877, 38.96563302259892, 40.327758993953466, 44.32409000582993, 43.25311293359846, 33.99710892699659, 49.12354901898652, 45.043769059702754, 47.554407035931945, 37.903546006418765, 32.56980108562857, 35.192839917726815, 39.34567596297711, 46.67255701497197, 49.70169102307409, 52.48237494379282, 43.415413005277514, 48.36420400533825, 48.96194895263761, 51.6092429170385, 37.311508087441325, 50.858690054155886, 43.94579504150897, 36.09434806276113, 26.66287892498076, 41.9749760767445, 34.900374012067914, 39.04577391222119, 51.60050210542977, 46.00996105000377, 53.40714694466442, 51.78673507180065, 54.96632098220289, 46.47863702848554, 47.48446703888476, 36.593522992916405, 37.32479899190366, 26.43477905075997, 39.97986298054457, 55.87899999227375, 40.821335976943374, 45.88699492160231, 40.707007981836796, 34.627774031832814, 43.4188200160861, 49.56604307517409, 39.82124803587794, 249.81214595027268, 38.2277499884367, 48.29735495150089, 47.6501100929454, 40.76927900314331 ], "mean_forward_latency_ms_per_sample": 78.70017620921135, "median_forward_latency_ms_per_sample": 49.41412925720215, "mean_end_to_end_latency_ms_per_sample": 46.30809425361804, "median_end_to_end_latency_ms_per_sample": 43.68230752879754, "flop_profiles": [ { "batch_size": 1, "flops_counted": 116518072320, "gflops_counted_per_sample": 116.51807232, "operators": { "aten.convolution": 116319006720, "aten.bmm": 199065600 } }, { "batch_size": 1, "flops_counted": 145709798400, "gflops_counted_per_sample": 145.7097984, "operators": { "aten.convolution": 145398758400, "aten.bmm": 311040000 } }, { "batch_size": 1, "flops_counted": 145709798400, "gflops_counted_per_sample": 145.7097984, "operators": { "aten.convolution": 145398758400, "aten.bmm": 311040000 } }, { "batch_size": 1, "flops_counted": 135976458240, "gflops_counted_per_sample": 135.97645824, "operators": { "aten.convolution": 135705507840, "aten.bmm": 270950400 } } ], "mean_counted_gflops_per_sample": 135.97853184000002, "flops_scope": "GPU FlopCounterMode around the real Ultralytics predict path; multiply-add counted as 2 FLOPs. Elementwise, postprocessing and unsupported custom ops may be missing.", "latency_scope": "A800 wall-clock latency for real Ultralytics prediction including image loading/preprocess, forward and result postprocessing, excluding model load; batch processing uses the recorded batch size.", "completed": true}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475{
"components": {
"grefcoco|instancevg|Qwen3.8": {
"specialist_gflops": 7.502680064,
"router_gflops": 3.642171392,
"large_gflops": 32554.061985335,
"specialist_ms": 46.08042127620138,
"router_ms": 17.032772149832454,
"large_ms": 4071.4221567668574,
"large_samples": 64,
"flops_probes": 8,
"specialist_samples": 64,
"router_samples": 64,
"batch_size": 1
},
"construction|yolo26x|Qwen3.8": {
"specialist_gflops": 135.97853184000002,
"router_gflops": 3.183754752,
"large_gflops": 96874.712551641,
"specialist_ms": 46.30809425361804,
"router_ms": 25.261267359383055,
"large_ms": 9822.475872695577,
"large_samples": 64,
"flops_probes": 8,
"specialist_samples": 64,
"router_samples": 64,
"batch_size": 1
}
},
"selected_points": [
{
"pair": "grefcoco|instancevg|Qwen3.8",
"method": "learned",
"nominal_validation_budget": 0.56,
"actual_test_call_fraction": 0.5355755324277571,
"test_metric": 0.7528287440093016,
"estimated_gflops_per_input": 17446.303931938,
"estimated_time_ms_per_input": 2243.6672827746106
},
{
"pair": "grefcoco|instancevg|Qwen3.8",
"method": "confidence",
"nominal_validation_budget": 0.71,
"actual_test_call_fraction": 0.6838612710206166,
"test_metric": 0.7243286163967898,
"estimated_gflops_per_input": 22269.96488623913,
"estimated_time_ms_per_input": 2830.3683522642846
},
{
"pair": "construction|yolo26x|Qwen3.8",
"method": "learned",
"nominal_validation_budget": 0.5,
"actual_test_call_fraction": 0.4876830892143808,
"test_metric": 0.29875800068449215,
"estimated_gflops_per_input": 47383.321370531434,
"estimated_time_ms_per_input": 4861.824738942901
},
{
"pair": "construction|yolo26x|Qwen3.8",
"method": "confidence",
"nominal_validation_budget": 0.93,
"actual_test_call_fraction": 0.9221038615179761,
"test_metric": 0.2597490004762105,
"estimated_gflops_per_input": 89464.5250591521,
"estimated_time_ms_per_input": 9103.651026133362
}
],
"protocol": {
"method": "original main-table logit contrast; original checkpoints and validation thresholds; seed 42",
"large_timing": "64 measured examples; batch size one; same full task prompt; two separate warmup examples",
"cost": "serial component estimates, not a timed integrated service; includes active distilled encoders and routing head only for learned",
"flops": "multiply-add=2; supported operators; mean prefill (including visual embedding) plus average generated length times one-token decode probe",
"scope_limits": "mean call cost extrapolated across policies; no policy-specific input/output-length costs; specialist-feature extraction overhead is not separately measured; confidence threshold overhead not separately timed"
}
}1234567891011121314151617181920212223242526272829pair,method,nominal_validation_budget,actual_test_call_fraction,test_metric,estimated_gflops_per_input,estimated_time_ms_per_input
grefcoco|instancevg|Qwen3.8,learned,0.0,0.0,0.6695119530385957,11.144851456,63.11319342603383
grefcoco|instancevg|Qwen3.8,learned,0.05,0.11998411933187761,0.7164449990074583,3917.1153094417755,551.619195333999
grefcoco|instancevg|Qwen3.8,learned,0.1,0.16822164875365114,0.7290077418257097,5487.442832257611,748.0145414095009
grefcoco|instancevg|Qwen3.8,learned,0.25,0.30176105266142983,0.748092901908516,9834.692864556126,1291.7098292810697
grefcoco|instancevg|Qwen3.8,learned,0.5,0.487451436349715,0.7535093440716899,15879.6691252252,2047.733771728093
grefcoco|instancevg|Qwen3.8,learned,0.75,0.6870657629810283,0.7512973938689278,22377.92628754188,2860.4479639829183
grefcoco|instancevg|Qwen3.8,learned,1.0,1.0,0.7447182599325072,32565.206836791,4134.535350192891
grefcoco|instancevg|Qwen3.8,confidence,0.0,0.0,0.6695119530385957,7.502680064,46.08042127620138
grefcoco|instancevg|Qwen3.8,confidence,0.05,0.012534384482318578,0.6666194027734452,415.54780944942013,97.11319197894791
grefcoco|instancevg|Qwen3.8,confidence,0.1,0.0345971698380739,0.6647761109378102,1133.7810914898203,186.94010511636148
grefcoco|instancevg|Qwen3.8,confidence,0.25,0.12477667810452883,0.6594731021183677,4069.490393403024,554.0989531587461
grefcoco|instancevg|Qwen3.8,confidence,0.5,0.2345234381646485,0.662762669086578,7642.1932230898465,1000.9243437008932
grefcoco|instancevg|Qwen3.8,confidence,0.75,0.7478093185491875,0.7311629753566061,24351.733589325377,3090.727849854088
grefcoco|instancevg|Qwen3.8,confidence,1.0,1.0,0.7447182599325072,32561.564665399,4117.502578043059
construction|yolo26x|Qwen3.8,learned,0.0,0.0,0.18129624718318377,139.16228659200002,71.56936161300109
construction|yolo26x|Qwen3.8,learned,0.05,0.045938748335552594,0.19531128485766117,4589.465326580834,522.8016087608005
construction|yolo26x|Qwen3.8,learned,0.1,0.09920106524633822,0.20211074868345033,9749.236967147599,1045.9694315408578
construction|yolo26x|Qwen3.8,learned,0.25,0.25432756324900135,0.2504846177578749,24777.071870298303,2569.695715387775
construction|yolo26x|Qwen3.8,learned,0.5,0.4876830892143808,0.29875800068449215,47383.321370531434,4861.824738942901
construction|yolo26x|Qwen3.8,learned,0.75,0.7709720372836218,0.28730364578560735,74826.85678379593,7644.4235963543315
construction|yolo26x|Qwen3.8,learned,1.0,1.0,0.27001009067886245,97013.87483823301,9894.045234308578
construction|yolo26x|Qwen3.8,confidence,0.0,0.0,0.18129624718318377,135.97853184000002,46.30809425361804
construction|yolo26x|Qwen3.8,confidence,0.05,0.0,0.18129624718318377,135.97853184000002,46.30809425361804
construction|yolo26x|Qwen3.8,confidence,0.1,0.0,0.18129624718318377,135.97853184000002,46.30809425361804
construction|yolo26x|Qwen3.8,confidence,0.25,0.24800266311584554,0.18026802885144627,24161.165233228996,2482.3082690732604
construction|yolo26x|Qwen3.8,confidence,0.5,0.5013315579227696,0.18015785955296285,48702.32909867467,4970.625226170908
construction|yolo26x|Qwen3.8,confidence,0.75,0.7486684420772304,0.22103445955201576,72663.01865455658,7400.0858032057995
construction|yolo26x|Qwen3.8,confidence,1.0,1.0,0.27001009067886245,97010.691083481,9868.783966949195123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405pair,method,nominal_validation_budget,actual_test_call_fraction,test_metric,estimated_gflops_per_input,estimated_time_ms_per_input
grefcoco|instancevg|Qwen3.8,learned,0.0,0.0,0.6695119530385957,11.144851456,63.11319342603383
grefcoco|instancevg|Qwen3.8,learned,0.01,0.04701812097666109,0.6878314380512152,1541.775676164205,254.54381293995635
grefcoco|instancevg|Qwen3.8,learned,0.02,0.06706746448118424,0.6980404389870403,2194.4632473757256,336.17315431290154
grefcoco|instancevg|Qwen3.8,learned,0.03,0.08720188299350594,0.7065195814309616,2849.9203556645225,418.1488719575849
grefcoco|instancevg|Qwen3.8,learned,0.04,0.1055780846779911,0.712389756969061,3448.14036435627,492.9661466530142
grefcoco|instancevg|Qwen3.8,learned,0.05,0.11998411933187761,0.7164449990074583,3917.1153094417755,551.619195333999
grefcoco|instancevg|Qwen3.8,learned,0.06,0.13243342880639764,0.7199047159912656,4322.390901749918,602.3055897650073
grefcoco|instancevg|Qwen3.8,learned,0.07,0.14235884638289426,0.7222017412018262,4645.503560765523,642.7161548011189
grefcoco|instancevg|Qwen3.8,learned,0.08,0.1511215721861441,0.7239032413577972,4930.765879725012,678.392910790143
grefcoco|instancevg|Qwen3.8,learned,0.09,0.15957235629413266,0.7263136999120892,5205.873229401156,712.7996204494608
grefcoco|instancevg|Qwen3.8,learned,0.1,0.16822164875365114,0.7290077418257097,5487.442832257611,748.0145414095009
grefcoco|instancevg|Qwen3.8,learned,0.11,0.17695601622096815,0.7316450670674645,5771.781972191343,783.575838641279
grefcoco|instancevg|Qwen3.8,learned,0.12,0.18855457561750277,0.7345943340044806,6149.362193726721,830.7984703549065
grefcoco|instancevg|Qwen3.8,learned,0.13,0.19751580977228256,0.7366361341916456,6441.086765866523,867.2834376446528
grefcoco|instancevg|Qwen3.8,learned,0.14,0.20664719394265946,0.7385361426991465,6738.350412160879,904.4611574778754
grefcoco|instancevg|Qwen3.8,learned,0.15,0.2172532115815444,0.7402376428551173,7083.619367794696,947.6427326878917
grefcoco|instancevg|Qwen3.8,learned,0.16,0.22717862915804102,0.7420242180188866,7406.7320268103,988.0532977240033
grefcoco|instancevg|Qwen3.8,learned,0.17,0.2361398633128208,0.7436122848311261,7698.4565989501025,1024.5382650137497
grefcoco|instancevg|Qwen3.8,learned,0.18,0.24362646399909255,0.7448033349403057,7942.175861750445,1055.0193769267023
grefcoco|instancevg|Qwen3.8,learned,0.19,0.2507727646541701,0.7456540850182911,8174.816976241679,1084.1149837527025
grefcoco|instancevg|Qwen3.8,learned,0.2,0.25942205711368854,0.7459943850494853,8456.386579098133,1119.3299047127425
grefcoco|instancevg|Qwen3.8,learned,0.21,0.2690922496667896,0.746419760088478,8771.19062688191,1158.7013409336398
grefcoco|instancevg|Qwen3.8,learned,0.22,0.2781385588293679,0.7467600601196722,9065.684736098987,1195.5326844951244
grefcoco|instancevg|Qwen3.8,learned,0.23,0.2868445679607521,0.7473555851742619,9349.100697006961,1230.9785229696565
grefcoco|instancevg|Qwen3.8,learned,0.24,0.29430281031109096,0.7480645435725831,9591.896780781542,1261.344176125363
grefcoco|instancevg|Qwen3.8,learned,0.25,0.30176105266142983,0.748092901908516,9834.692864556126,1291.7098292810697
grefcoco|instancevg|Qwen3.8,learned,0.26,0.30995661174602274,0.7486033519553073,10101.491603000439,1325.0774101251732
grefcoco|instancevg|Qwen3.8,learned,0.27,0.3175850041119587,0.7494541020332927,10349.826760929574,1356.135815824356
grefcoco|instancevg|Qwen3.8,learned,0.28,0.3262342965714772,0.7501630604316138,10631.396363786029,1391.350736784396
grefcoco|instancevg|Qwen3.8,learned,0.29,0.3324731304767036,0.7505600771346738,10834.49574945298,1416.7516633785233
grefcoco|instancevg|Qwen3.8,learned,0.3,0.3399313728270425,0.7509570938377336,11077.291833227562,1447.11731653423
grefcoco|instancevg|Qwen3.8,learned,0.31,0.34824036525536683,0.7511839605251964,11347.783287774913,1480.9467324073175
grefcoco|instancevg|Qwen3.8,learned,0.32,0.3557553242775714,0.751269035532995,11592.425729601013,1511.5433030775164
grefcoco|instancevg|Qwen3.8,learned,0.33,0.3627598332529847,0.7511272438533307,11820.450948963453,1540.0616161172863
grefcoco|instancevg|Qwen3.8,learned,0.34,0.37013300059552506,0.7512123188611293,12060.47749566076,1570.080893001255
grefcoco|instancevg|Qwen3.8,learned,0.35,0.3783569180160508,0.751439185548592,12328.199413130831,1603.5639326026044
grefcoco|instancevg|Qwen3.8,learned,0.36,0.3854748603351955,0.7517511272438533,12559.917348596306,1632.5440806713586
grefcoco|instancevg|Qwen3.8,learned,0.37,0.39279131100587017,0.752176502282846,12798.097537242094,1662.3324400408353
grefcoco|instancevg|Qwen3.8,learned,0.38,0.40013612001247767,0.7522332189547117,13037.200904913643,1692.2362581675577
grefcoco|instancevg|Qwen3.8,learned,0.39,0.406573462269234,0.7525735189859059,13246.762543760904,1718.445396062407
grefcoco|instancevg|Qwen3.8,learned,0.4,0.4153929047443496,0.7528003856733687,13533.871220771913,1754.3530695659233
grefcoco|instancevg|Qwen3.8,learned,0.41,0.42151830530584466,0.75311232736863,13733.27789033583,1779.2921611310667
grefcoco|instancevg|Qwen3.8,learned,0.42,0.42920341434364634,0.7535093440716899,13983.459406316484,1810.5814843447415
grefcoco|instancevg|Qwen3.8,learned,0.43,0.4367750900377166,0.7537362107591526,14229.948206194102,1841.4089725294323
grefcoco|instancevg|Qwen3.8,learned,0.44,0.4450273657941752,0.753679494087287,14498.593302689931,1875.0074708880277
grefcoco|instancevg|Qwen3.8,learned,0.45,0.45143634971499874,0.7537929274310183,14707.231762511437,1901.1011500256313
grefcoco|instancevg|Qwen3.8,learned,0.46,0.4578736919717551,0.7536227774154213,14916.7934013587,1927.3102879204807
grefcoco|instancevg|Qwen3.8,learned,0.47,0.4659274593766838,0.7537929274310183,15178.976244674219,1960.100574978354
grefcoco|instancevg|Qwen3.8,learned,0.48,0.4741797351331424,0.7538780024388169,15447.621341170048,1993.6990733369496
grefcoco|instancevg|Qwen3.8,learned,0.49,0.4806454357258316,0.7537362107591526,15658.106159043073,2020.0236699890452
grefcoco|instancevg|Qwen3.8,learned,0.5,0.487451436349715,0.7535093440716899,15879.6691252252,2047.733771728093
grefcoco|instancevg|Qwen3.8,learned,0.51,0.49482460369225534,0.7537645690950855,16119.695671922505,2077.7530486120613
grefcoco|instancevg|Qwen3.8,learned,0.52,0.501573887644273,0.7535660607435556,16339.412280053117,2105.232232836617
grefcoco|instancevg|Qwen3.8,learned,0.53,0.5105351217990528,0.7532257607123614,16631.136852192918,2141.7172001263634
grefcoco|instancevg|Qwen3.8,learned,0.54,0.519241130930437,0.7530556106967643,16914.552813100894,2177.163038600896
grefcoco|instancevg|Qwen3.8,learned,0.55,0.5268128066245072,0.7528571023452344,17161.041612978508,2207.9905267855866
grefcoco|instancevg|Qwen3.8,learned,0.56,0.5355755324277571,0.7528287440093016,17446.303931938,2243.6672827746106
grefcoco|instancevg|Qwen3.8,learned,0.57,0.5419561580126478,0.753282477384227,17654.019212733747,2269.645503154968
grefcoco|instancevg|Qwen3.8,learned,0.58,0.5495845503785838,0.7528287440093016,17902.35437066288,2300.703908854151
grefcoco|instancevg|Qwen3.8,learned,0.59,0.5562771176587358,0.7527153106655702,18120.224620741974,2327.952175564215
grefcoco|instancevg|Qwen3.8,learned,0.6,0.564047301704336,0.7526585939937045,18373.175673799906,2359.587875049628
grefcoco|instancevg|Qwen3.8,learned,0.61,0.5725831608201231,0.7528287440093016,18651.052560553326,2394.3409609806836
grefcoco|instancevg|Qwen3.8,learned,0.62,0.5818846950060971,0.7528571023452344,18953.855281002234,2432.2114333573827
grefcoco|instancevg|Qwen3.8,learned,0.63,0.5903638374500184,0.7528571023452344,19229.885809704134,2466.7336017739462
grefcoco|instancevg|Qwen3.8,learned,0.64,0.5973683464254318,0.7526869523296373,19457.911029066578,2495.2519148137167
grefcoco|instancevg|Qwen3.8,learned,0.65,0.6042594220571137,0.7526018773218388,19682.24353232598,2523.3083928245023
grefcoco|instancevg|Qwen3.8,learned,0.66,0.6122848311261095,0.752545160649973,19943.503196615744,2555.9832211251296
grefcoco|instancevg|Qwen3.8,learned,0.67,0.6198848651561126,0.7522048606187789,20190.91517551912,2586.9261680670666
grefcoco|instancevg|Qwen3.8,learned,0.68,0.6280520659047727,0.752176502282846,20456.790734937673,2620.178290153924
grefcoco|instancevg|Qwen3.8,learned,0.69,0.6363894166690298,0.7522048606187789,20728.20536851078,2654.1231647842574
grefcoco|instancevg|Qwen3.8,learned,0.7,0.6444999007458242,0.7521197856109804,20992.234569877815,2687.144369356623
grefcoco|instancevg|Qwen3.8,learned,0.71,0.6527521765022829,0.7519212772594505,21260.87966637365,2720.742867715219
grefcoco|instancevg|Qwen3.8,learned,0.72,0.6601253438448231,0.7518362022516518,21500.906213070954,2750.7621445991867
grefcoco|instancevg|Qwen3.8,learned,0.73,0.6697955363979242,0.7518362022516518,21815.71026085473,2790.1335808200847
grefcoco|instancevg|Qwen3.8,learned,0.74,0.6775373621075915,0.7518645605875848,22067.7381348869,2821.6538215482515
grefcoco|instancevg|Qwen3.8,learned,0.75,0.6870657629810283,0.7512973938689278,22377.92628754188,2860.4479639829183
grefcoco|instancevg|Qwen3.8,learned,0.76,0.6956299804327482,0.7514108272126592,22656.726353321057,2895.31650867122
grefcoco|instancevg|Qwen3.8,learned,0.77,0.7044494229078637,0.7514959022204577,22943.835030332066,2931.224182174736
grefcoco|instancevg|Qwen3.8,learned,0.78,0.7129852820236509,0.7510705271814649,23221.711917085486,2965.9772681057925
grefcoco|instancevg|Qwen3.8,learned,0.79,0.7243853330686555,0.7506735104784051,23592.82988544055,3012.3916885186977
grefcoco|instancevg|Qwen3.8,learned,0.8,0.7337152255905623,0.7507302271502708,23896.555784915217,3050.3776196526424
grefcoco|instancevg|Qwen3.8,learned,0.81,0.744377959901313,0.7505033604628081,24243.671098600553,3093.7901123771508
grefcoco|instancevg|Qwen3.8,learned,0.82,0.7522048606187789,0.7503048521112781,24498.46850971,3125.656729377056
grefcoco|instancevg|Qwen3.8,learned,0.83,0.7607123613986331,0.7503332104472109,24775.42221743766,3160.2943565508654
grefcoco|instancevg|Qwen3.8,learned,0.84,0.770779570654794,0.749964552080084,25103.15077158206,3201.2822153732072
grefcoco|instancevg|Qwen3.8,learned,0.85,0.7827467884184556,0.749964552080084,25492.7323204523,3250.005810931033
grefcoco|instancevg|Qwen3.8,learned,0.86,0.793466239401072,0.7498511187363526,25841.693992189157,3293.649221170034
grefcoco|instancevg|Qwen3.8,learned,0.87,0.8059439072115249,0.7499361937441511,26247.89276352306,3344.451074358288
grefcoco|instancevg|Qwen3.8,learned,0.88,0.8164932081785441,0.7497093270566884,26591.315361105357,3387.4017320538123
grefcoco|instancevg|Qwen3.8,learned,0.89,0.8270425091455633,0.7494257436973598,26934.737958687656,3430.3523897493365
grefcoco|instancevg|Qwen3.8,learned,0.9,0.8367410600345971,0.749397385361427,27250.46518549719,3469.83928472748
grefcoco|instancevg|Qwen3.8,learned,0.91,0.8491903695091172,0.74883021864277,27655.740777805335,3520.5256791584884
grefcoco|instancevg|Qwen3.8,learned,0.92,0.8618098289992343,0.7487167852990386,28066.55544426803,3571.904826132973
grefcoco|instancevg|Qwen3.8,learned,0.93,0.8745710801690156,0.7486884269631058,28481.98600585952,3623.8612668936876
grefcoco|instancevg|Qwen3.8,learned,0.94,0.8879845730652526,0.7486884269631058,28918.649685043467,3678.4732590710614
grefcoco|instancevg|Qwen3.8,learned,0.95,0.9000085075007799,0.7484332019397102,29310.07759196523,3727.4277721433796
grefcoco|instancevg|Qwen3.8,learned,0.96,0.9125996086549641,0.7477809602132547,29719.969079402166,3778.691460360618
grefcoco|instancevg|Qwen3.8,learned,0.97,0.9269489266369849,0.7476391685335905,30187.09766643615,3837.11359152711
grefcoco|instancevg|Qwen3.8,learned,0.98,0.9459773700479256,0.7472988685023962,30806.550792720354,3914.5864176391988
grefcoco|instancevg|Qwen3.8,learned,0.99,0.9658282052009188,0.7472421518305306,31452.77611075156,3995.4075477114216
grefcoco|instancevg|Qwen3.8,learned,1.0,1.0,0.7447182599325072,32565.206836791,4134.535350192891
grefcoco|instancevg|Qwen3.8,confidence,0.0,0.0,0.6695119530385957,7.502680064,46.08042127620138
grefcoco|instancevg|Qwen3.8,confidence,0.01,0.002467175226157729,0.6686895612965431,87.81925530502161,56.12533315660624
grefcoco|instancevg|Qwen3.8,confidence,0.02,0.004849275444516916,0.6680373195700876,165.3662934687666,65.823868765273
grefcoco|instancevg|Qwen3.8,confidence,0.03,0.007600034030003119,0.6675835861951621,254.9146589673769,77.02336821813819
grefcoco|instancevg|Qwen3.8,confidence,0.04,0.009811984232765221,0.6671014944843037,326.9226229765687,86.02915128332876
grefcoco|instancevg|Qwen3.8,confidence,0.05,0.012534384482318578,0.6666194027734452,415.54780944942013,97.11319197894791
grefcoco|instancevg|Qwen3.8,confidence,0.06,0.01607917647392451,0.6662223860703854,530.9451876692788,111.54553663470202
grefcoco|instancevg|Qwen3.8,confidence,0.07,0.019709043473328986,0.6658253693673255,649.112102966414,126.32425756219423
grefcoco|instancevg|Qwen3.8,confidence,0.08,0.02353741882426339,0.6655985026798628,773.7412714438613,141.91118979040866
grefcoco|instancevg|Qwen3.8,confidence,0.09,0.028868785979638715,0.6651164109690043,947.2989282865286,163.61743615266283
grefcoco|instancevg|Qwen3.8,confidence,0.1,0.0345971698380739,0.6647761109378102,1133.7810914898203,186.94010511636148
grefcoco|instancevg|Qwen3.8,confidence,0.11,0.03981510364971783,0.664435810906616,1303.6460322294522,208.18451644963153
grefcoco|instancevg|Qwen3.8,confidence,0.12,0.045855429203414344,0.664067152539489,1500.2831647160913,232.77723174303654
grefcoco|instancevg|Qwen3.8,confidence,0.13,0.05317187987408899,0.6637552108442276,1738.4633533618796,262.565591112513
grefcoco|instancevg|Qwen3.8,confidence,0.14,0.05960922213084536,0.6636134191645634,1948.0249922091427,288.77472900736245
grefcoco|instancevg|Qwen3.8,confidence,0.15,0.0675211978561098,0.6632164024615036,2205.591940395867,320.98772227900565
grefcoco|instancevg|Qwen3.8,confidence,0.16,0.07551824858917279,0.6626208774069138,2465.928425659868,353.54709182238696
grefcoco|instancevg|Qwen3.8,confidence,0.17,0.08212574086152624,0.6622522190397867,2681.0291386616846,380.44898226071257
grefcoco|instancevg|Qwen3.8,confidence,0.18,0.08856308311828262,0.6619969940163911,2890.590777508948,406.6581201555621
grefcoco|instancevg|Qwen3.8,confidence,0.19,0.09480191702350906,0.6615149023055327,3093.6901631758988,432.0590467496893
grefcoco|instancevg|Qwen3.8,confidence,0.2,0.10007656750701868,0.6612596772821371,3265.4014619670484,453.5343755974514
grefcoco|instancevg|Qwen3.8,confidence,0.21,0.10554972634205825,0.6608343022431443,3443.575013938511,475.81791574593575
grefcoco|instancevg|Qwen3.8,confidence,0.22,0.11005870175538099,0.6605507188838159,3590.3604790341706,494.17585814805494
grefcoco|instancevg|Qwen3.8,confidence,0.23,0.11527663556702493,0.6600969855088903,3760.2254197738025,515.420269481325
grefcoco|instancevg|Qwen3.8,confidence,0.24,0.12029606102713893,0.6598417604854947,3923.6281073331224,535.8564695138729
grefcoco|instancevg|Qwen3.8,confidence,0.25,0.12477667810452883,0.6594731021183677,4069.490393403024,554.0989531587461
grefcoco|instancevg|Qwen3.8,confidence,0.26,0.12914386183818732,0.6590193687434421,4211.659963369889,571.879601774635
grefcoco|instancevg|Qwen3.8,confidence,0.27,0.1322916371267334,0.658679068712248,4314.132835229124,584.6955238289447
grefcoco|instancevg|Qwen3.8,confidence,0.28,0.13626180415733205,0.6582820520091881,4443.377898835366,600.8597498433894
grefcoco|instancevg|Qwen3.8,confidence,0.29,0.14023197118793068,0.657743243626464,4572.622962441607,617.0239758578339
grefcoco|instancevg|Qwen3.8,confidence,0.3,0.14326631313274538,0.657374585259337,4671.403118197806,629.3780628831595
grefcoco|instancevg|Qwen3.8,confidence,0.31,0.14766185520233674,0.6569775685562771,4814.495867190431,647.2741702562946
grefcoco|instancevg|Qwen3.8,confidence,0.32,0.15066783881121856,0.6567507018688143,4912.352843920871,659.512798524374
grefcoco|instancevg|Qwen3.8,confidence,0.33,0.15452457249808582,0.6565238351813516,5037.905191424078,675.2151895098345
grefcoco|instancevg|Qwen3.8,confidence,0.34,0.15806936448969175,0.6564104018376201,5153.302569643936,689.6475341655887
grefcoco|instancevg|Qwen3.8,confidence,0.35,0.16201117318435754,0.6562686101579559,5281.6244542244185,705.6963014227872
grefcoco|instancevg|Qwen3.8,confidence,0.36,0.1657544735274934,0.6558999517908289,5403.484085624589,720.9368573792635
grefcoco|instancevg|Qwen3.8,confidence,0.37,0.17012165726115192,0.6558715934548961,5545.653655591455,738.7175059951526
grefcoco|instancevg|Qwen3.8,confidence,0.38,0.17536794940872868,0.6555596517596347,5716.441775356846,760.0773760856687
grefcoco|instancevg|Qwen3.8,confidence,0.39,0.17965005813458867,0.6553044267362391,5855.841808246436,777.5116484298197
grefcoco|instancevg|Qwen3.8,confidence,0.4,0.18401724186824717,0.6552193517284406,5998.011378213301,795.2922970457087
grefcoco|instancevg|Qwen3.8,confidence,0.41,0.18858293395343562,0.6552760684003063,6146.643201360479,813.88115696232
grefcoco|instancevg|Qwen3.8,confidence,0.42,0.19238295096843716,0.6554745767518362,6270.349190812167,829.3526304332884
grefcoco|instancevg|Qwen3.8,confidence,0.43,0.19689192638175992,0.655502935087769,6417.134655907828,847.7105728354077
grefcoco|instancevg|Qwen3.8,confidence,0.44,0.20182627683407536,0.6555880100955676,6577.76780638987,867.8003965962173
grefcoco|instancevg|Qwen3.8,confidence,0.45,0.20718600232538353,0.6559283101267618,6752.248642258297,889.6221017157176
grefcoco|instancevg|Qwen3.8,confidence,0.46,0.21189348609023623,0.656070101806426,6905.49636053427,908.7882554185591
grefcoco|instancevg|Qwen3.8,confidence,0.47,0.217139778237813,0.6567790602047472,7076.28448029966,930.148125509075
grefcoco|instancevg|Qwen3.8,confidence,0.48,0.22198905368232993,0.6584238436888523,7234.148093704427,949.8915729981468
grefcoco|instancevg|Qwen3.8,confidence,0.49,0.22763236253296656,0.6604372855400845,7417.860719830442,972.8678656901072
grefcoco|instancevg|Qwen3.8,confidence,0.5,0.2345234381646485,0.662762669086578,7642.1932230898465,1000.9243437008932
grefcoco|instancevg|Qwen3.8,confidence,0.51,0.24382497235062248,0.6654567110001985,7944.995943538756,1038.7948160775923
grefcoco|instancevg|Qwen3.8,confidence,0.52,0.252644414825738,0.6678955278904234,8232.104620549764,1074.7024895811082
grefcoco|instancevg|Qwen3.8,confidence,0.53,0.26401610753480986,0.6703627031165811,8602.299409879071,1121.0014512367675
grefcoco|instancevg|Qwen3.8,confidence,0.54,0.2760116836344043,0.6731134617020673,8992.804137775072,1169.8405055518392
grefcoco|instancevg|Qwen3.8,confidence,0.55,0.2893401015228426,0.6758358619516207,9426.69827988174,1224.1061214574747
grefcoco|instancevg|Qwen3.8,confidence,0.56,0.3036043444970649,0.679295578935428,9891.057329838453,1282.1818763522294
grefcoco|instancevg|Qwen3.8,confidence,0.57,0.3175850041119587,0.6822448458724442,10346.184589537575,1339.1030436745236
grefcoco|instancevg|Qwen3.8,confidence,0.58,0.33462836400760004,0.6853926211609903,10901.015184018655,1408.4937567793893
grefcoco|instancevg|Qwen3.8,confidence,0.59,0.35637920766809406,0.6889090548166633,11609.09349677571,1497.0506235870967
grefcoco|instancevg|Qwen3.8,confidence,0.6,0.37968975980489467,0.6922553384567394,12367.9466559495,1591.9577220433357
grefcoco|instancevg|Qwen3.8,confidence,0.61,0.4046450954258004,0.6949493803703599,13180.344198617304,1693.5614284198446
grefcoco|instancevg|Qwen3.8,confidence,0.62,0.43141536454640844,0.6983807390182344,14051.825198933677,1802.5544952600997
grefcoco|instancevg|Qwen3.8,confidence,0.63,0.4610214672603012,0.7015568726427134,15015.624101825935,1923.093437824958
grefcoco|instancevg|Qwen3.8,confidence,0.64,0.4916484700677764,0.7053285313217821,16012.657449645512,2047.7888956506733
grefcoco|instancevg|Qwen3.8,confidence,0.65,0.5209426310864078,0.7086180982899923,16966.301383254424,2167.0577918858253
grefcoco|instancevg|Qwen3.8,confidence,0.66,0.5529308340186598,0.71148229021921,18007.64732431043,2297.2952700593505
grefcoco|instancevg|Qwen3.8,confidence,0.67,0.5888041289737118,0.7155091739216742,19175.4687918954,2443.350597975582
grefcoco|instancevg|Qwen3.8,confidence,0.68,0.6175027649377535,0.7182882908430933,20109.725965963375,2560.1948603085675
grefcoco|instancevg|Qwen3.8,confidence,0.69,0.6421461588633979,0.7211241244363781,20911.968539347832,2660.52852035537
grefcoco|instancevg|Qwen3.8,confidence,0.7,0.665910444375124,0.7233077163032073,21685.59256293376,2757.282958927545
grefcoco|instancevg|Qwen3.8,confidence,0.71,0.6838612710206166,0.7243286163967898,22269.96488623913,2830.3683522642846
grefcoco|instancevg|Qwen3.8,confidence,0.72,0.7029464311034228,0.7260017582168279,22891.264370574845,2908.072095890864
grefcoco|instancevg|Qwen3.8,confidence,0.73,0.7180614241556306,0.7278450500524629,23383.318791304326,2969.611613503
grefcoco|instancevg|Qwen3.8,confidence,0.74,0.7352465757309361,0.7297450585599637,23942.7652809142,3039.579620394096
grefcoco|instancevg|Qwen3.8,confidence,0.75,0.7478093185491875,0.7311629753566061,24351.733589325377,3090.727849854088
grefcoco|instancevg|Qwen3.8,confidence,0.76,0.759804894648782,0.7328928338485098,24742.238317221378,3139.5669041691604
grefcoco|instancevg|Qwen3.8,confidence,0.77,0.7729064458497575,0.7342540339732865,25168.74702712198,3192.9088500168273
grefcoco|instancevg|Qwen3.8,confidence,0.78,0.7855259053398747,0.735274934066869,25579.561693584674,3244.287996991312
grefcoco|instancevg|Qwen3.8,confidence,0.79,0.7964722230099538,0.7362958341604514,25935.908797527598,3288.855077288281
grefcoco|instancevg|Qwen3.8,confidence,0.8,0.8082125740861527,0.7377704676289595,26318.104914191772,3336.6550027881385
grefcoco|instancevg|Qwen3.8,confidence,0.81,0.8197544168108215,0.738422709355415,26693.838777675628,3383.6467169872735
grefcoco|instancevg|Qwen3.8,confidence,0.82,0.8333380597226555,0.7389048010662734,27136.04153101413,3438.9514617081236
grefcoco|instancevg|Qwen3.8,confidence,0.83,0.8426112355726966,0.7398689844879902,27437.921072437275,3476.7064753275763
grefcoco|instancevg|Qwen3.8,confidence,0.84,0.8529903865241187,0.7403227178629158,27775.804595865022,3518.964380479624
grefcoco|instancevg|Qwen3.8,confidence,0.85,0.8635396874911381,0.7406913762300428,28119.227193447325,3561.9150381751488
grefcoco|instancevg|Qwen3.8,confidence,0.86,0.8710262881774098,0.7413152596205654,28362.946456247664,3592.3961500881014
grefcoco|instancevg|Qwen3.8,confidence,0.87,0.8809517057539064,0.7422227263704165,28686.05911526327,3632.8067151242126
grefcoco|instancevg|Qwen3.8,confidence,0.88,0.8913024983693957,0.7430167597765364,29023.019459665255,3674.9491615190145
grefcoco|instancevg|Qwen3.8,confidence,0.89,0.900915974250631,0.743442134815529,29335.977149397513,3714.0896802254197
grefcoco|instancevg|Qwen3.8,confidence,0.9,0.910954825170859,0.7443212432294473,29662.782524516155,3754.9620802905156
grefcoco|instancevg|Qwen3.8,confidence,0.91,0.921901142840938,0.7448033349403057,30019.129628459075,3799.529160587484
grefcoco|instancevg|Qwen3.8,confidence,0.92,0.9303235686129938,0.7450018432918356,30293.31379910946,3833.820411489556
grefcoco|instancevg|Qwen3.8,confidence,0.93,0.9393698777755721,0.7448884099481042,30587.80790832654,3870.6517550510403
grefcoco|instancevg|Qwen3.8,confidence,0.94,0.9490117119927403,0.7448884099481042,30901.688777084553,3909.907732514692
grefcoco|instancevg|Qwen3.8,confidence,0.95,0.9587953378895726,0.7449734849559028,31220.185540971364,3949.7410037645727
grefcoco|instancevg|Qwen3.8,confidence,0.96,0.9673595553412926,0.7452570683152313,31498.985606750543,3984.609548452875
grefcoco|instancevg|Qwen3.8,confidence,0.97,0.9746192893401016,0.745313784987097,31735.319437344813,4014.1669903078596
grefcoco|instancevg|Qwen3.8,confidence,0.98,0.9830984317840229,0.7450585599637013,32011.349966046713,4048.689158724423
grefcoco|instancevg|Qwen3.8,confidence,0.99,0.9908118991577575,0.7448884099481042,32262.45466105313,4080.0939406953444
grefcoco|instancevg|Qwen3.8,confidence,1.0,1.0,0.7447182599325072,32561.564665399,4117.502578043059
construction|yolo26x|Qwen3.8,learned,0.0,0.0,0.18129624718318377,139.16228659200002,71.56936161300109
construction|yolo26x|Qwen3.8,learned,0.01,0.013648468708388815,0.18693471712069915,1461.3537694872334,205.6311162003908
construction|yolo26x|Qwen3.8,learned,0.02,0.019640479360852198,0.18781313491575913,2041.8280790509946,264.48749626314725
construction|yolo26x|Qwen3.8,learned,0.03,0.031291611185086554,0.1913128749335621,3170.5281254249744,378.9304574962848
construction|yolo26x|Qwen3.8,learned,0.04,0.04061251664447404,0.19266008228682668,4073.4881625241583,470.48482648279486
construction|yolo26x|Qwen3.8,learned,0.05,0.045938748335552594,0.19531128485766117,4589.465326580834,522.8016087608005
construction|yolo26x|Qwen3.8,learned,0.06,0.0559254327563249,0.19800731707634547,5556.922509187103,620.8955755320613
construction|yolo26x|Qwen3.8,learned,0.07,0.07456724367509987,0.19763843353437874,7362.842583385471,804.0043135050814
construction|yolo26x|Qwen3.8,learned,0.08,0.08688415446071904,0.1974112776278713,8556.039775266534,924.9868725229696
construction|yolo26x|Qwen3.8,learned,0.09,0.09587217043941411,0.20030220967092682,9426.751239612175,1013.2714426171043
construction|yolo26x|Qwen3.8,learned,0.1,0.09920106524633822,0.20211074868345033,9749.236967147599,1045.9694315408578
construction|yolo26x|Qwen3.8,learned,0.11,0.11284953395472704,0.20834032699131655,11071.428450042833,1180.0311861282478
construction|yolo26x|Qwen3.8,learned,0.12,0.12350199733688415,0.21121674052765757,12103.382778156185,1284.664750684259
construction|yolo26x|Qwen3.8,learned,0.13,0.13315579227696406,0.21276215593410724,13038.591388008912,1379.4889185631446
construction|yolo26x|Qwen3.8,learned,0.14,0.14347536617842876,0.21511521078428622,14038.297143368722,1480.8526842267806
construction|yolo26x|Qwen3.8,learned,0.15,0.15246338215712382,0.21738179676765032,14909.008607714362,1569.1372543209152
construction|yolo26x|Qwen3.8,learned,0.16,0.1604527296937417,0.22260454951009195,15682.974353799378,1647.612427737924
construction|yolo26x|Qwen3.8,learned,0.17,0.1780958721704394,0.22627631882842034,17392.148709737117,1820.9117690338178
construction|yolo26x|Qwen3.8,learned,0.18,0.18442077230359522,0.2270967395967396,18004.871592054424,1883.0379479889498
construction|yolo26x|Qwen3.8,learned,0.19,0.2000665778961385,0.23397114982462924,19520.55451147091,2036.7184959305916
construction|yolo26x|Qwen3.8,learned,0.2,0.20439414114513982,0.23512276426997616,19939.78595726696,2079.2258815314713
construction|yolo26x|Qwen3.8,learned,0.21,0.21937416777629826,0.24202469545559713,21390.97173117636,2226.3668316883623
construction|yolo26x|Qwen3.8,learned,0.22,0.22769640479360853,0.24353835097564847,22197.18605001492,2308.1118039977464
construction|yolo26x|Qwen3.8,learned,0.23,0.23601864181091878,0.2454657390209296,23003.400368853476,2389.8567763071305
construction|yolo26x|Qwen3.8,learned,0.24,0.24533954727030627,0.2483414219175777,23906.36040595266,2481.4111452936404
construction|yolo26x|Qwen3.8,learned,0.25,0.25432756324900135,0.2504846177578749,24777.071870298303,2569.695715387775
construction|yolo26x|Qwen3.8,learned,0.26,0.2636484687083888,0.252142216376585,25680.031907397482,2661.250084374285
construction|yolo26x|Qwen3.8,learned,0.27,0.275965379494008,0.25276746625574176,26873.22909927855,2782.2326433921735
construction|yolo26x|Qwen3.8,learned,0.28,0.29427430093209056,0.25702642690899347,28646.900600723373,2962.071582472818
construction|yolo26x|Qwen3.8,learned,0.29,0.31091877496671105,0.26183035419940204,30259.32923840049,3125.561527091586
construction|yolo26x|Qwen3.8,learned,0.3,0.322237017310253,0.2672887365132105,31355.780712020925,3236.734689432348
construction|yolo26x|Qwen3.8,learned,0.31,0.33388814913448733,0.27039536303602457,32484.480758394904,3351.1776506654855
construction|yolo26x|Qwen3.8,learned,0.32,0.34354194407456723,0.2713201570387918,33419.68936824763,3446.001818544371
construction|yolo26x|Qwen3.8,learned,0.33,0.3492010652463382,0.2722481828097158,33967.91510505785,3501.588399714752
construction|yolo26x|Qwen3.8,learned,0.34,0.3545272969374168,0.274417471554269,34483.89226911453,3553.905181992758
construction|yolo26x|Qwen3.8,learned,0.35,0.3648468708388815,0.2782223498666452,35483.59802447434,3655.268947656394
construction|yolo26x|Qwen3.8,learned,0.36,0.37217043941411454,0.2795152621397537,36193.06662505227,3727.204523288652
construction|yolo26x|Qwen3.8,learned,0.37,0.37683089214380827,0.28090947933574756,36644.54664360186,3772.981707781907
construction|yolo26x|Qwen3.8,learned,0.38,0.3854860186418109,0.28295009794869297,37483.00953519396,3857.9964789836663
construction|yolo26x|Qwen3.8,learned,0.39,0.39980026631158455,0.28644294895435674,38869.69816359627,3998.5978313558066
construction|yolo26x|Qwen3.8,learned,0.4,0.4054593874833555,0.2862200047733393,39417.923900406495,4054.1844125261878
construction|yolo26x|Qwen3.8,learned,0.41,0.4104527296937417,0.28760386086589435,39901.65249170963,4103.231395911818
construction|yolo26x|Qwen3.8,learned,0.42,0.4181091877496671,0.2930744270093899,40643.3696650411,4178.436770436451
construction|yolo26x|Qwen3.8,learned,0.43,0.42809587217043943,0.2961685540536353,41610.82684764737,4276.530737207712
construction|yolo26x|Qwen3.8,learned,0.44,0.4370838881491345,0.2977058723546182,42481.53831199301,4364.8153073018475
construction|yolo26x|Qwen3.8,learned,0.45,0.44673768308921435,0.2999402430635043,43416.74692184573,4459.639475180732
construction|yolo26x|Qwen3.8,learned,0.46,0.45206391478029295,0.2993046120720782,43932.72408590242,4511.956257458738
construction|yolo26x|Qwen3.8,learned,0.47,0.45872170439414117,0.2998310238962732,44577.69554097326,4577.352235306245
construction|yolo26x|Qwen3.8,learned,0.48,0.4673768308921438,0.30393211265289466,45416.15843256536,4662.367006508005
construction|yolo26x|Qwen3.8,learned,0.49,0.47503328894806923,0.30350001249166053,46157.87560589683,4737.572381032637
construction|yolo26x|Qwen3.8,learned,0.5,0.4876830892143808,0.29875800068449215,47383.321370531434,4861.824738942901
construction|yolo26x|Qwen3.8,learned,0.51,0.5046604527296937,0.29989697064322696,49027.99858096209,5028.5844824540445
construction|yolo26x|Qwen3.8,learned,0.52,0.5206391478029294,0.297424793956044,50575.93007313212,5185.534829288062
construction|yolo26x|Qwen3.8,learned,0.53,0.5249667110519307,0.297424793956044,50995.161518928166,5228.042214888941
construction|yolo26x|Qwen3.8,learned,0.54,0.5436085219707057,0.2978194775414123,52801.08159312654,5411.150952861962
construction|yolo26x|Qwen3.8,learned,0.55,0.5529294274300932,0.29630990060928936,53704.04163022572,5502.705321848472
construction|yolo26x|Qwen3.8,learned,0.56,0.5612516644474035,0.29578344205458756,54510.25594906428,5584.450294157856
construction|yolo26x|Qwen3.8,learned,0.57,0.5692410119840213,0.2950949302773625,55284.221695149296,5662.925467574864
construction|yolo26x|Qwen3.8,learned,0.58,0.5902130492676432,0.2947373376338526,57315.88177862246,5868.922797794512
construction|yolo26x|Qwen3.8,learned,0.59,0.6021970705725699,0.29722091277674884,58476.830397749975,5986.635557920024
construction|yolo26x|Qwen3.8,learned,0.6,0.6208388814913449,0.29665021956289706,60282.750471948355,6169.744295893045
construction|yolo26x|Qwen3.8,learned,0.61,0.6288282290279628,0.295988506182091,61056.71621803337,6248.219469310054
construction|yolo26x|Qwen3.8,learned,0.62,0.6421438082556591,0.2939669175161438,62346.65912817505,6379.011425005067
construction|yolo26x|Qwen3.8,learned,0.63,0.6491344873501997,0.29277362668991463,63023.87915599944,6447.67720174495
construction|yolo26x|Qwen3.8,learned,0.64,0.6571238348868176,0.2930821542583563,63797.84490208446,6526.152375161959
construction|yolo26x|Qwen3.8,learned,0.65,0.6677762982689747,0.2892305220657417,64829.79923019781,6630.78593971797
construction|yolo26x|Qwen3.8,learned,0.66,0.6744340878828229,0.2915915088317972,65474.77068526865,6696.181917565477
construction|yolo26x|Qwen3.8,learned,0.67,0.6854194407456724,0.2936540392680743,66538.97358613556,6804.085281013864
construction|yolo26x|Qwen3.8,learned,0.68,0.7047270306258322,0.29632332439424064,68409.390805841,6993.733616771635
construction|yolo26x|Qwen3.8,learned,0.69,0.7157123834886817,0.2937246709263134,69473.5937067079,7101.6369802200215
construction|yolo26x|Qwen3.8,learned,0.7,0.7253661784287616,0.2952254059747369,70408.80231656063,7196.461148098907
construction|yolo26x|Qwen3.8,learned,0.71,0.7283621837549934,0.2945683782087344,70699.03947134252,7225.889338130286
construction|yolo26x|Qwen3.8,learned,0.72,0.741011984021305,0.29252963134197957,71924.48523597712,7350.1416960405495
construction|yolo26x|Qwen3.8,learned,0.73,0.7526631158455392,0.2900395106945919,73053.1852823511,7464.584657273686
construction|yolo26x|Qwen3.8,learned,0.74,0.7616511318242344,0.2887744568626224,73923.89674669674,7552.869227367822
construction|yolo26x|Qwen3.8,learned,0.75,0.7709720372836218,0.28730364578560735,74826.85678379593,7644.4235963543315
construction|yolo26x|Qwen3.8,learned,0.76,0.7749667110519307,0.2858070539975931,75213.83965683842,7683.661183062835
construction|yolo26x|Qwen3.8,learned,0.77,0.7792942743009321,0.28488735368132817,75633.07110263448,7726.168568663716
construction|yolo26x|Qwen3.8,learned,0.78,0.7846205059920106,0.2830658409372236,76149.04826669116,7778.485350941721
construction|yolo26x|Qwen3.8,learned,0.79,0.7972703062583223,0.2809995077380739,77374.49403132577,7902.737708851985
construction|yolo26x|Qwen3.8,learned,0.8,0.8129161118508655,0.28013559922601305,78890.17695074226,8056.418256793627
construction|yolo26x|Qwen3.8,learned,0.81,0.8199067909454061,0.27814841049220523,79567.39697856663,8125.084033533509
construction|yolo26x|Qwen3.8,learned,0.82,0.831225033288948,0.2772348763322643,80663.84845218707,8236.25719587427
construction|yolo26x|Qwen3.8,learned,0.83,0.84254327563249,0.27700595116508253,81760.29992580751,8347.430358215033
construction|yolo26x|Qwen3.8,learned,0.84,0.857190412782956,0.2763733409861609,83179.23712696337,8491.301509479548
construction|yolo26x|Qwen3.8,learned,0.85,0.8618508655126498,0.2761345157638265,83630.71714551296,8537.078693972804
construction|yolo26x|Qwen3.8,learned,0.86,0.87017310252996,0.2761345157638265,84436.93146435152,8618.823666282187
construction|yolo26x|Qwen3.8,learned,0.87,0.8848202396804261,0.27546832609774896,85855.86866550738,8762.694817546704
construction|yolo26x|Qwen3.8,learned,0.88,0.8984687083888149,0.27423981143437465,87178.06014840261,8896.756572134092
construction|yolo26x|Qwen3.8,learned,0.89,0.9087882822902796,0.2736575311942959,88177.76590376243,8998.12033779773
construction|yolo26x|Qwen3.8,learned,0.9,0.9161118508655126,0.272975172975173,88887.23450434035,9070.055913429987
construction|yolo26x|Qwen3.8,learned,0.91,0.9217709720372836,0.2727190231806067,89435.46024115058,9125.64249460037
construction|yolo26x|Qwen3.8,learned,0.92,0.9264314247669774,0.27264729817760425,89886.94025970016,9171.419679093624
construction|yolo26x|Qwen3.8,learned,0.93,0.933422103861518,0.2741441928343702,90564.16028752456,9240.085455833507
construction|yolo26x|Qwen3.8,learned,0.94,0.9417443408788282,0.2733716828250215,91370.37460636311,9321.83042814289
construction|yolo26x|Qwen3.8,learned,0.95,0.9530625832223701,0.2727312493845365,92466.82607998354,9433.003590483651
construction|yolo26x|Qwen3.8,learned,0.96,0.9613848202396804,0.27223682114986464,93273.04039882211,9514.748562793036
construction|yolo26x|Qwen3.8,learned,0.97,0.9673768308921438,0.27453093162048386,93853.51470838586,9573.604942855793
construction|yolo26x|Qwen3.8,learned,0.98,0.9760319573901465,0.2737331615154065,94691.97759997797,9658.619714057553
construction|yolo26x|Qwen3.8,learned,0.99,0.9890146471371505,0.2725383412883413,95949.67193736612,9786.141870860192
construction|yolo26x|Qwen3.8,learned,1.0,1.0,0.27001009067886245,97013.87483823301,9894.045234308578
construction|yolo26x|Qwen3.8,confidence,0.0,0.0,0.18129624718318377,135.97853184000002,46.30809425361804
construction|yolo26x|Qwen3.8,confidence,0.01,0.0,0.18129624718318377,135.97853184000002,46.30809425361804
construction|yolo26x|Qwen3.8,confidence,0.02,0.0,0.18129624718318377,135.97853184000002,46.30809425361804
construction|yolo26x|Qwen3.8,confidence,0.03,0.0,0.18129624718318377,135.97853184000002,46.30809425361804
construction|yolo26x|Qwen3.8,confidence,0.04,0.0,0.18129624718318377,135.97853184000002,46.30809425361804
construction|yolo26x|Qwen3.8,confidence,0.05,0.0,0.18129624718318377,135.97853184000002,46.30809425361804
construction|yolo26x|Qwen3.8,confidence,0.06,0.0,0.18129624718318377,135.97853184000002,46.30809425361804
construction|yolo26x|Qwen3.8,confidence,0.07,0.0,0.18129624718318377,135.97853184000002,46.30809425361804
construction|yolo26x|Qwen3.8,confidence,0.08,0.0,0.18129624718318377,135.97853184000002,46.30809425361804
construction|yolo26x|Qwen3.8,confidence,0.09,0.0,0.18129624718318377,135.97853184000002,46.30809425361804
construction|yolo26x|Qwen3.8,confidence,0.1,0.0,0.18129624718318377,135.97853184000002,46.30809425361804
construction|yolo26x|Qwen3.8,confidence,0.11,0.0,0.18129624718318377,135.97853184000002,46.30809425361804
construction|yolo26x|Qwen3.8,confidence,0.12,0.0,0.18129624718318377,135.97853184000002,46.30809425361804
construction|yolo26x|Qwen3.8,confidence,0.13,0.0,0.18129624718318377,135.97853184000002,46.30809425361804
construction|yolo26x|Qwen3.8,confidence,0.14,0.0,0.18129624718318377,135.97853184000002,46.30809425361804
construction|yolo26x|Qwen3.8,confidence,0.15,0.0,0.18129624718318377,135.97853184000002,46.30809425361804
construction|yolo26x|Qwen3.8,confidence,0.16,0.0,0.18129624718318377,135.97853184000002,46.30809425361804
construction|yolo26x|Qwen3.8,confidence,0.17,0.0,0.18129624718318377,135.97853184000002,46.30809425361804
construction|yolo26x|Qwen3.8,confidence,0.18,0.0,0.18129624718318377,135.97853184000002,46.30809425361804
construction|yolo26x|Qwen3.8,confidence,0.19,0.17942743009320905,0.1784481207469488,17517.959245999285,1808.7296972439362
construction|yolo26x|Qwen3.8,confidence,0.2,0.19340878828229027,0.1780928651788194,18872.39930164806,1946.0612507237013
construction|yolo26x|Qwen3.8,confidence,0.21,0.20306258322237017,0.17829989216687975,19807.60791150079,2040.8854186025867
construction|yolo26x|Qwen3.8,confidence,0.22,0.20838881491344874,0.1779854683890517,20323.585075557465,2093.2022008805925
construction|yolo26x|Qwen3.8,confidence,0.23,0.21537949400798934,0.17917657728013692,21000.805103381852,2161.867977620475
construction|yolo26x|Qwen3.8,confidence,0.24,0.23135818908122505,0.17803687432776102,22548.736595551884,2318.8183244544925
construction|yolo26x|Qwen3.8,confidence,0.25,0.24800266311584554,0.18026802885144627,24161.165233228996,2482.3082690732604
construction|yolo26x|Qwen3.8,confidence,0.26,0.2589880159786951,0.18119827871024874,25225.368134095894,2590.211632521647
construction|yolo26x|Qwen3.8,confidence,0.27,0.27430093209054596,0.17963665085316138,26708.802480758837,2740.6223815709136
construction|yolo26x|Qwen3.8,confidence,0.28,0.281624500665779,0.17924095839307458,27418.271081336767,2812.5579572031716
construction|yolo26x|Qwen3.8,confidence,0.29,0.28761651131824234,0.1789157174618718,27998.745390900527,2871.4143372659278
construction|yolo26x|Qwen3.8,confidence,0.3,0.2969374167776298,0.1787206845800119,28901.70542799971,2962.9687062524376
construction|yolo26x|Qwen3.8,confidence,0.31,0.30459387483355527,0.17813242189706796,29643.422601331185,3038.174080777071
construction|yolo26x|Qwen3.8,confidence,0.32,0.3129161118508655,0.17772000842137498,30449.636920169738,3119.919053086455
construction|yolo26x|Qwen3.8,confidence,0.33,0.31990679094540614,0.17791259734473341,31126.85694799413,3188.5848298263377
construction|yolo26x|Qwen3.8,confidence,0.34,0.3322237017310253,0.1789653934599337,32320.05413987519,3309.5673888442257
construction|yolo26x|Qwen3.8,confidence,0.35,0.34054593874833555,0.18042682200794885,33126.268458713756,3391.31236115361
construction|yolo26x|Qwen3.8,confidence,0.36,0.3488681757656458,0.17962877325912951,33932.48277755231,3473.057333462994
construction|yolo26x|Qwen3.8,confidence,0.37,0.3581890812250333,0.18158304685510065,34835.44281465149,3564.611702449504
construction|yolo26x|Qwen3.8,confidence,0.38,0.37017310252996005,0.18069239723097547,35996.39143377901,3682.3244625750167
construction|yolo26x|Qwen3.8,confidence,0.39,0.37683089214380827,0.1812845803851709,36641.362888849864,3747.720440422524
construction|yolo26x|Qwen3.8,confidence,0.4,0.38348868175765644,0.1824781664689562,37286.3343439207,3813.116418270031
construction|yolo26x|Qwen3.8,confidence,0.41,0.4021304926764314,0.18220594501399923,39092.254418119075,3996.225156243051
construction|yolo26x|Qwen3.8,confidence,0.42,0.41311584553928093,0.18162498930772586,40156.457318985966,4104.128519691438
construction|yolo26x|Qwen3.8,confidence,0.43,0.42676431424766975,0.18066434967152634,41478.6488018812,4238.190274278827
construction|yolo26x|Qwen3.8,confidence,0.44,0.4324234354194407,0.1803913789289444,42026.874538691416,4293.776855449209
construction|yolo26x|Qwen3.8,confidence,0.45,0.44107856191744343,0.17959468902865128,42865.33743028352,4378.791626650968
construction|yolo26x|Qwen3.8,confidence,0.46,0.45772303595206393,0.17863383514615866,44477.766067960634,4542.281571269737
construction|yolo26x|Qwen3.8,confidence,0.47,0.4717043941411451,0.17957308538379646,45832.20612360941,4679.6131247495005
construction|yolo26x|Qwen3.8,confidence,0.48,0.4826897470039947,0.17910245145856155,46896.40902447631,4787.516488197888
construction|yolo26x|Qwen3.8,confidence,0.49,0.4896804260985353,0.17871833907402393,47573.62905230069,4856.182264937771
construction|yolo26x|Qwen3.8,confidence,0.5,0.5013315579227696,0.18015785955296285,48702.32909867467,4970.625226170908
construction|yolo26x|Qwen3.8,confidence,0.51,0.5116511318242344,0.1810878167493375,49702.034854034486,5071.988991834544
construction|yolo26x|Qwen3.8,confidence,0.52,0.5183089214380826,0.18177962418520882,50347.00630910533,5137.384969682052
construction|yolo26x|Qwen3.8,confidence,0.53,0.5252996005326231,0.18246323539519374,51024.226336929714,5206.050746421934
construction|yolo26x|Qwen3.8,confidence,0.54,0.5396138482023968,0.1839876166906015,52410.914965332035,5346.652098794074
construction|yolo26x|Qwen3.8,confidence,0.55,0.5452729693741678,0.1846674213907964,52959.14070214226,5402.2386799644555
construction|yolo26x|Qwen3.8,confidence,0.56,0.559254327563249,0.18676294233791663,54313.58075779103,5539.57023344422
construction|yolo26x|Qwen3.8,confidence,0.57,0.572237017310253,0.18938663221175195,55571.275095179175,5667.092390246859
construction|yolo26x|Qwen3.8,confidence,0.58,0.5862183754993342,0.1909571002676625,56925.71515082795,5804.423943726624
construction|yolo26x|Qwen3.8,confidence,0.59,0.5998668442077231,0.1934300101790686,58247.90663372319,5938.485698314014
construction|yolo26x|Qwen3.8,confidence,0.6,0.6191744340878829,0.1973701682130997,60118.32385342864,6128.134034071785
construction|yolo26x|Qwen3.8,confidence,0.61,0.6264980026631158,0.1986727924998457,60827.792454006565,6200.069609704043
construction|yolo26x|Qwen3.8,confidence,0.62,0.6384820239680427,0.20186289191698192,61988.74107313409,6317.782369829556
construction|yolo26x|Qwen3.8,confidence,0.63,0.6461384820239681,0.20246031058520178,62730.45824646557,6392.987744354189
construction|yolo26x|Qwen3.8,confidence,0.64,0.653462050599201,0.20349944137622245,63439.92684704349,6464.923319986447
construction|yolo26x|Qwen3.8,confidence,0.65,0.6597869507323568,0.20442990090722246,64052.64972936079,6527.049498941578
construction|yolo26x|Qwen3.8,confidence,0.66,0.6661118508655126,0.2044993942500819,64665.372611678096,6589.17567789671
construction|yolo26x|Qwen3.8,confidence,0.67,0.6734354194407457,0.2064379542733177,65374.84121225603,6661.1112535289685
construction|yolo26x|Qwen3.8,confidence,0.68,0.6820905459387483,0.2065831206227621,66213.30410384812,6746.126024730727
construction|yolo26x|Qwen3.8,confidence,0.69,0.6927430093209055,0.20802802394105854,67245.25843196148,6850.759589286739
construction|yolo26x|Qwen3.8,confidence,0.7,0.7090545938748336,0.21169680596278434,68825.43849688505,7010.979735013132
construction|yolo26x|Qwen3.8,confidence,0.71,0.7170439414114514,0.2139280527103987,69599.40424297006,7089.454908430141
construction|yolo26x|Qwen3.8,confidence,0.72,0.7243675099866844,0.2146900231025185,70308.87284354799,7161.390484062398
construction|yolo26x|Qwen3.8,confidence,0.73,0.7330226364846871,0.21653561577692484,71147.33573514009,7246.405255264158
construction|yolo26x|Qwen3.8,confidence,0.74,0.7363515312916112,0.21721689648133474,71469.82146267552,7279.1032441879115
construction|yolo26x|Qwen3.8,confidence,0.75,0.7486684420772304,0.22103445955201576,72663.01865455658,7400.0858032057995
construction|yolo26x|Qwen3.8,confidence,0.76,0.757323568575233,0.22340134248367294,73501.48154614867,7485.100574407558
construction|yolo26x|Qwen3.8,confidence,0.77,0.7639813581890812,0.2269322568854726,74146.45300121952,7550.496552255066
construction|yolo26x|Qwen3.8,confidence,0.78,0.7733022636484687,0.22757452798038888,75049.4130383187,7642.050921241575
construction|yolo26x|Qwen3.8,confidence,0.79,0.784953395472703,0.227821050912831,76178.11308469268,7756.493882474713
construction|yolo26x|Qwen3.8,confidence,0.8,0.7939414114513982,0.22991865671924006,77048.82454903833,7844.7784525688485
construction|yolo26x|Qwen3.8,confidence,0.81,0.8039280958721704,0.23486191981046528,78016.28173164459,7942.8724193401085
construction|yolo26x|Qwen3.8,confidence,0.82,0.8122503328894807,0.23803916047544685,78822.49605048315,8024.617391649493
construction|yolo26x|Qwen3.8,confidence,0.83,0.8215712383488681,0.24022947987632814,79725.45608758234,8116.171760636003
construction|yolo26x|Qwen3.8,confidence,0.84,0.8388814913448736,0.24528627405740036,81402.38187076653,8286.201303039523
construction|yolo26x|Qwen3.8,confidence,0.85,0.8535286284953395,0.249537136326177,82821.3190719224,8430.072454304036
construction|yolo26x|Qwen3.8,confidence,0.86,0.8638482023968043,0.25211074301800224,83821.0248272822,8531.436219967674
construction|yolo26x|Qwen3.8,confidence,0.87,0.8745006657789614,0.2540042317315216,84852.97915539556,8636.069784523685
construction|yolo26x|Qwen3.8,confidence,0.88,0.8764980026631158,0.2540996517958595,85046.4705919168,8655.688577877936
construction|yolo26x|Qwen3.8,confidence,0.89,0.8841544607190412,0.25436194678023316,85788.18776524828,8730.89395240257
construction|yolo26x|Qwen3.8,confidence,0.9,0.8891478029294274,0.2534339447803836,86271.91635655142,8779.9409357882
construction|yolo26x|Qwen3.8,confidence,0.91,0.8981358189081226,0.2563240880787248,87142.62782089706,8868.225505882336
construction|yolo26x|Qwen3.8,confidence,0.92,0.9054593874833555,0.25551845731687656,87852.09642147498,8940.161081514594
construction|yolo26x|Qwen3.8,confidence,0.93,0.9221038615179761,0.2597490004762105,89464.5250591521,9103.651026133362
construction|yolo26x|Qwen3.8,confidence,0.94,0.9254327563249002,0.26306323674307786,89787.01078668753,9136.349015057116
construction|yolo26x|Qwen3.8,confidence,0.95,0.9364181091877497,0.26218185491449153,90851.21368755442,9244.252378505502
construction|yolo26x|Qwen3.8,confidence,0.96,0.953728362183755,0.26357052137555514,92528.13947073862,9414.281920909021
construction|yolo26x|Qwen3.8,confidence,0.97,0.96271637816245,0.26400290307863034,93398.85093508427,9502.566491003154
construction|yolo26x|Qwen3.8,confidence,0.98,0.9700399467376831,0.2647475724296899,94108.3195356622,9574.502066635414
construction|yolo26x|Qwen3.8,confidence,0.99,0.987017310252996,0.2649306125590882,95752.99674609285,9741.261810146556
construction|yolo26x|Qwen3.8,confidence,1.0,1.0,0.27001009067886245,97010.691083481,9868.783966949195123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152#!/usr/bin/env python3from __future__ import annotations
import argparseimport jsonimport refrom pathlib import Path
import numpy as npimport torchfrom PIL import Imagefrom torch.utils.flop_counter import FlopCounterMode
def count(call): with torch.inference_mode(), FlopCounterMode(display=False) as counter: value = call() torch.cuda.synchronize() counts = counter.get_flop_counts().get('Global', {}) return int(counter.get_total_flops()), value, {str(k): int(v) for k, v in counts.items()}
def make_text(root: Path, model_kind: str, task: str, row: dict, processor): prompt = (root / 'outputs/large_model_labels_all_20260909/prompts' / task / f'{model_kind}.txt').read_text(encoding='utf-8').strip() if task == 'grefcoco': prompt = prompt.replace('{expression}', row['expression']) if model_kind == 'Qwen3.8': content = [{'type': 'image'}, {'type': 'text', 'text': '\n'}, {'type': 'text', 'text': prompt}] return processor.apply_chat_template([{'role': 'user', 'content': content}], tokenize=False, add_generation_prompt=True) message = '(<image>./</image>)\n' + prompt return processor.tokenizer.apply_chat_template([{'role': 'user', 'content': message}], tokenize=False, add_generation_prompt=True, enable_thinking=False)
def prepare(root: Path, model_kind: str, task: str, row: dict, processor): image = Image.open(row['image_path']).convert('RGB') text = make_text(root, model_kind, task, row, processor) if model_kind == 'Qwen3.8': data = processor(text=[text], images=[image], return_tensors='pt', size={'shortest_edge': 65536, 'longest_edge': 1003520}) else: data = processor([text], [[image]], return_tensors='pt', max_length=16384) image.close() return data
def main(): parser = argparse.ArgumentParser() parser.add_argument('--root', type=Path, required=True) parser.add_argument('--model-kind', choices=['Qwen3.8', 'MiniCPM'], required=True) parser.add_argument('--task', choices=['grefcoco', 'construction'], required=True) parser.add_argument('--output', type=Path, required=True) parser.add_argument('--samples', type=int, default=4) args = parser.parse_args() if args.output.exists(): raise FileExistsError(args.output) expert = 'instancevg' if args.task == 'grefcoco' else 'yolo26x' rows = [json.loads(line) for line in (args.root / f'outputs/router_full_20260910/data/{expert}/test/records.jsonl').open(encoding='utf-8')] if args.samples > len(rows): raise ValueError('sample count exceeds test rows') selected_indices = np.random.default_rng(20260911).choice(len(rows), args.samples, replace=False) selected = [rows[int(index)] for index in selected_indices] checkpoint_root = args.root.parents[1] / 'checkpoints' if not checkpoint_root.exists(): checkpoint_root = args.root / 'checkpoints' model_path = checkpoint_root / ('Qwen3.8-27B-FP8' if args.model_kind == 'Qwen3.8' else 'MiniCPM-V-4_5') from transformers import AutoProcessor processor = AutoProcessor.from_pretrained(model_path, trust_remote_code=True, local_files_only=True) if args.model_kind == 'Qwen3.8': from transformers import FineGrainedFP8Config, Qwen3_5ForConditionalGeneration import transformers.models.qwen3_5.modeling_qwen3_5 as implementation implementation.causal_conv1d_fn = None implementation.causal_conv1d_update = None implementation.chunk_gated_delta_rule = None implementation.fused_recurrent_gated_delta_rule = None implementation.FusedRMSNormGated = None implementation.is_fast_path_available = False model = Qwen3_5ForConditionalGeneration.from_pretrained( model_path, local_files_only=True, dtype=torch.bfloat16, device_map={'': 'cuda:0'}, attn_implementation='eager', quantization_config=FineGrainedFP8Config(dequantize=False), ) else: model = processor # replaced below to keep imports local to the selected environment from transformers import AutoModel from transformers.modeling_utils import PreTrainedModel if not hasattr(PreTrainedModel, 'all_tied_weights_keys'): def get_tied_weights(self): return getattr(self, '_all_tied_weights_keys', getattr(self, '_tied_weights_keys', {}) or {}) def set_tied_weights(self, value): self._all_tied_weights_keys = value PreTrainedModel.all_tied_weights_keys = property(get_tied_weights, set_tied_weights) model = AutoModel.from_pretrained( model_path, trust_remote_code=True, local_files_only=True, torch_dtype=torch.bfloat16, device_map={'': 'cuda:0'}, attn_implementation='eager', ) torch.set_num_threads(4) torch.backends.mha.set_fastpath_enabled(False) model.eval().requires_grad_(False) records = [] for row in selected: data = prepare(args.root, args.model_kind, args.task, row, processor).to('cuda') prompt_tokens = int(data['input_ids'].shape[-1]) if args.model_kind == 'MiniCPM': vision_flops, embedding_result, vision_ops = count(lambda: model.get_vllm_embedding(data)) embeddings, _ = embedding_result prefill_flops, prefill_output, prefill_ops = count(lambda: model.llm(inputs_embeds=embeddings, attention_mask=data['attention_mask'], use_cache=True, logits_to_keep=1)) prefill_flops += vision_flops prefill_ops.update({'vision:'+k:v for k,v in vision_ops.items()}) length = int(data['input_ids'].shape[-1]) known_token = data['input_ids'][:, -1:] kwargs = { 'input_ids': known_token, 'past_key_values': prefill_output.past_key_values, 'attention_mask': torch.ones((1, length + 1), device='cuda', dtype=torch.long), 'use_cache': True, 'logits_to_keep': 1, } decode_flops, _, decode_ops = count(lambda: model.llm(**kwargs)) else: prefill_flops, prefill_output, prefill_ops = count(lambda: model(**data, use_cache=True, logits_to_keep=1)) length = int(data['input_ids'].shape[-1]) known_token = data['input_ids'][:, -1:] kwargs = { 'input_ids': known_token, 'past_key_values': prefill_output.past_key_values, 'attention_mask': torch.ones((1, length + 1), device='cuda', dtype=torch.long), 'use_cache': True, 'logits_to_keep': 1, 'cache_position': torch.tensor([length], device='cuda'), } kwargs.pop('attention_mask') decode_flops, _, decode_ops = count(lambda: model(**kwargs)) records.append({ 'sample_id': row['sample_id'], 'prompt_tokens_in_reference_tensor': prompt_tokens, 'input_shapes': {key: list(value.shape) for key, value in data.items() if hasattr(value, 'shape')}, 'prefill_flops_counted': prefill_flops, 'decode_one_token_flops_counted': decode_flops, 'prefill_gflops_counted': prefill_flops / 1e9, 'decode_one_token_gflops_counted': decode_flops / 1e9, 'prefill_operators': prefill_ops, 'decode_operators': decode_ops, }) args.output.parent.mkdir(parents=True, exist_ok=True) args.output.write_text(json.dumps({'status': 'running', 'model_kind': args.model_kind, 'task': args.task, 'records': records}, ensure_ascii=False, indent=2), encoding='utf-8') print(json.dumps({'completed': len(records), 'sample_id': row['sample_id'], 'prefill_gflops': prefill_flops / 1e9, 'decode_gflops': decode_flops / 1e9}), flush=True) args.output.write_text(json.dumps({ 'status': 'complete', 'model_kind': args.model_kind, 'task': args.task, 'model_path': str(model_path), 'sample_count': len(records), 'records': records, 'mean_prefill_gflops_counted': float(np.mean([row['prefill_gflops_counted'] for row in records])), 'mean_decode_one_token_gflops_counted': float(np.mean([row['decode_one_token_gflops_counted'] for row in records])), 'scope': 'HF reference execution on the A800 with real task inputs; dense products/convolutions/supported attention counted with multiply-add=2 FLOPs. vLLM custom kernels, elementwise/normalization/nonlinearities and other unsupported operations are not complete.', 'answer_generation': 'not performed; one known-token decode probe only', }, ensure_ascii=False, indent=2), encoding='utf-8')
if __name__ == '__main__': main()123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209#!/usr/bin/env python3from __future__ import annotations
import argparseimport jsonimport timefrom pathlib import Path
import numpy as npimport jsonschemafrom PIL import Imagefrom vllm import LLM, SamplingParamsfrom vllm.sampling_params import StructuredOutputsParams
EVENTS = [ 'rule_1_ppe_violation', 'rule_2_fall_protection_violation', 'rule_3_unprotected_edge_violation', 'rule_4_excavator_proximity_violation',]
def gref_schema(): return { 'type': 'object', 'properties': { 'objects': { 'type': 'array', 'maxItems': 18, 'items': { 'type': 'object', 'properties': { 'bbox_2d': {'type': 'array', 'items': {'type': 'number', 'minimum': 0, 'maximum': 1000}, 'minItems': 4, 'maxItems': 4}, 'score': {'type': 'number', 'minimum': 0, 'maximum': 1}, }, 'required': ['bbox_2d', 'score'], 'additionalProperties': False, }, }, }, 'required': ['objects'], 'additionalProperties': False, }
def construction_schema(): box = {'type': 'array', 'items': {'type': 'integer', 'minimum': 0, 'maximum': 1000}, 'minItems': 4, 'maxItems': 4} max_boxes = [13, 6, 3, 2] events = {} for event, limit in zip(EVENTS, max_boxes): events[event] = { 'type': 'object', 'properties': { 'present': {'type': 'boolean'}, 'reason': {'type': ['string', 'null']}, 'boxes': {'type': 'array', 'items': box, 'maxItems': limit}, }, 'required': ['present', 'reason', 'boxes'], 'additionalProperties': False, } return {'type': 'object', 'properties': {'events': {'type': 'object', 'properties': events, 'required': EVENTS, 'additionalProperties': False}}, 'required': ['events'], 'additionalProperties': False}
def make_prompt(root: Path, model_kind: str, task: str, row: dict, processor_or_tokenizer): prompt = (root / 'outputs/large_model_labels_all_20260909/prompts' / task / f'{model_kind}.txt').read_text(encoding='utf-8').strip() if task == 'grefcoco': prompt = prompt.replace('{expression}', row['expression']) if model_kind == 'Qwen3.8': converted = [{'type': 'image'}] converted.append({'type': 'text', 'text': '\n'}) converted.append({'type': 'text', 'text': prompt}) messages = [{'role': 'user', 'content': converted}] return processor_or_tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True) message = '(<image>./</image>)\n' + prompt return processor_or_tokenizer.apply_chat_template([{'role': 'user', 'content': message}], tokenize=False, add_generation_prompt=True, enable_thinking=False)
def main(): parser = argparse.ArgumentParser() parser.add_argument('--root', type=Path, required=True) parser.add_argument('--model-kind', choices=['Qwen3.8', 'MiniCPM'], required=True) parser.add_argument('--task', choices=['grefcoco', 'construction'], required=True) parser.add_argument('--output', type=Path, required=True) parser.add_argument('--samples', type=int, default=32) parser.add_argument('--batch-size', type=int, default=8) parser.add_argument('--gpu-memory-utilization', type=float, default=0.90) parser.add_argument('--max-model-len', type=int, default=16384) args = parser.parse_args() if args.output.exists(): raise FileExistsError(args.output) if args.samples < 3 or args.batch_size < 1: raise ValueError('samples must include warmup rows and batch size must be positive') expert = 'instancevg' if args.task == 'grefcoco' else 'yolo26x' rows = [json.loads(line) for line in (args.root / f'outputs/router_full_20260910/data/{expert}/test/records.jsonl').open(encoding='utf-8')] if args.samples > len(rows): raise ValueError(f'samples {args.samples} exceeds {len(rows)}') selected_indices = np.random.default_rng(20260911).choice(len(rows), args.samples, replace=False) selected = [rows[int(index)] for index in selected_indices] checkpoint_root = args.root.parents[1] / 'checkpoints' if not checkpoint_root.exists(): checkpoint_root = args.root / 'checkpoints' model_path = checkpoint_root / ('Qwen3.8-27B-FP8' if args.model_kind == 'Qwen3.8' else 'MiniCPM-V-4_5') if args.model_kind == 'Qwen3.8': from transformers import AutoProcessor processor = AutoProcessor.from_pretrained(model_path, trust_remote_code=True, local_files_only=True) model_kwargs = {'mm_processor_kwargs': {'size': {'shortest_edge': 65536, 'longest_edge': 1003520}}} else: from transformers import AutoTokenizer processor = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True, local_files_only=True) model_kwargs = {} model = LLM(model=str(model_path), trust_remote_code=True, tensor_parallel_size=1, max_model_len=args.max_model_len, limit_mm_per_prompt={'image': 1}, max_num_seqs=args.batch_size, gpu_memory_utilization=args.gpu_memory_utilization, enforce_eager=True, **model_kwargs) schema = gref_schema() if args.task == 'grefcoco' else construction_schema() sampling = SamplingParams(temperature=0, max_tokens=512 if args.task == 'grefcoco' else 768, structured_outputs=StructuredOutputsParams(json=schema, disable_additional_properties=True))
def generate(batch_rows): images = [] requests = [] for row in batch_rows: required = {'sample_id', 'image_path'} if args.task == 'grefcoco': required.add('expression') missing = required - row.keys() if missing: raise ValueError(f'missing fields {sorted(missing)} for {row["sample_id"]}') image = Image.open(row['image_path']).convert('RGB') images.append(image) requests.append({'prompt': make_prompt(args.root, args.model_kind, args.task, row, processor), 'multi_modal_data': {'image': image}}) started = time.perf_counter() generated = model.generate(requests, sampling, use_tqdm=False) elapsed = time.perf_counter() - started for image in images: image.close() if len(generated) != len(batch_rows): raise ValueError('vLLM returned an unexpected number of results') return elapsed, generated
warmup_count = min(2, len(selected) - 1) for row in selected[:warmup_count]: generate([row]) measured = selected[warmup_count:] batches = [] for start in range(0, len(measured), args.batch_size): batch_rows = measured[start:start + args.batch_size] batch_started = time.perf_counter() elapsed, generated = generate(batch_rows) wall = time.perf_counter() - batch_started output_records = [] for result in generated: raw = result.outputs[0].text error = None try: parsed = json.loads(raw) jsonschema.validate(parsed, schema) boxes = [o['bbox_2d'] for o in parsed['objects']] if args.task == 'grefcoco' else [b for e in parsed['events'].values() for b in e['boxes']] if any(b[0] >= b[2] or b[1] >= b[3] for b in boxes): raise ValueError('non-positive box size') except (json.JSONDecodeError, jsonschema.ValidationError, ValueError) as exc: parsed = None error = str(exc) output_records.append({'raw_response':raw,'valid_prediction':parsed,'error':error, 'finish_reason':result.outputs[0].finish_reason,'completion_tokens':len(result.outputs[0].token_ids), 'prompt_tokens':len(result.prompt_token_ids)}) item = { 'sample_ids': [row['sample_id'] for row in batch_rows], 'batch_size': len(batch_rows), 'generation_latency_seconds': elapsed, 'batch_wall_latency_seconds': wall, 'amortized_generation_ms_per_sample': elapsed * 1000 / len(batch_rows), 'amortized_batch_wall_ms_per_sample': wall * 1000 / len(batch_rows), 'outputs': [ { 'finish_reason': result.outputs[0].finish_reason, 'stop_reason': result.outputs[0].stop_reason, 'prompt_tokens': len(result.prompt_token_ids) if result.prompt_token_ids is not None else None, 'completion_tokens': len(result.outputs[0].token_ids), 'text_characters': len(result.outputs[0].text), } for result in generated ], } batches.append(item) item['outputs'] = output_records args.output.parent.mkdir(parents=True, exist_ok=True) args.output.write_text(json.dumps({ 'status': 'running', 'model_kind': args.model_kind, 'task': args.task, 'model_path': str(model_path), 'sample_count_requested': args.samples, 'warmup_count': warmup_count, 'batch_size': args.batch_size, 'sample_ids': [row['sample_id'] for row in selected], 'batches': batches, }, ensure_ascii=False, indent=2), encoding='utf-8') print(json.dumps({'completed_samples': sum(item['batch_size'] for item in batches), 'total_measured': len(measured), 'batch_latency_seconds': elapsed}), flush=True) all_ms = [x['amortized_generation_ms_per_sample'] for x in batches] all_wall_ms = [x['amortized_batch_wall_ms_per_sample'] for x in batches] output = { 'status': 'complete', 'model_kind': args.model_kind, 'task': args.task, 'expert': expert, 'model_path': str(model_path), 'device': 'cuda:0', 'gpu_memory_utilization': args.gpu_memory_utilization, 'sample_count_requested': args.samples, 'warmup_count': warmup_count, 'measured_count': len(measured), 'batch_size': args.batch_size, 'sample_ids': [row['sample_id'] for row in selected], 'batches': batches, 'mean_generation_ms_per_sample': float(np.mean(all_ms)), 'median_generation_ms_per_sample': float(np.median(all_ms)), 'mean_batch_wall_ms_per_sample': sum(b['batch_wall_latency_seconds'] for b in batches)*1000/len(measured), 'median_batch_wall_ms_per_sample': float(np.median(all_wall_ms)), 'mean_prompt_tokens': float(np.mean([x['prompt_tokens'] for batch in batches for x in batch['outputs'] if x['prompt_tokens'] is not None])), 'mean_completion_tokens': float(np.mean([x['completion_tokens'] for batch in batches for x in batch['outputs']])), 'latency_scope': 'A800 vLLM-0.18.0 native generation latency with the frozen task prompt and structured-output schema; model loading and warmup excluded. Batch wall time includes the real request/image preparation path.', 'flops_scope': 'This file measures latency only. Counted FLOPs are measured separately by the HF reference probe and are not claimed to be complete vLLM kernel FLOPs.', } args.output.write_text(json.dumps(output, ensure_ascii=False, indent=2), encoding='utf-8') print(json.dumps({'status': 'complete', 'mean_generation_ms_per_sample': output['mean_generation_ms_per_sample'], 'mean_completion_tokens': output['mean_completion_tokens']}), flush=True)
if __name__ == '__main__': main()123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104from pathlib import Pathimport argparseimport jsonimport sysimport timeimport numpy as npimport torchfrom PIL import Imagefrom torch.utils.flop_counter import FlopCounterMode
p=argparse.ArgumentParser()p.add_argument('--root',type=Path,required=True)p.add_argument('--expert',required=True)p.add_argument('--endpoint',required=True)p.add_argument('--output',type=Path,required=True)a=p.parse_args()sys.path.insert(0,str(a.root/'code'))from routing import train_router_formal as formalfrom routing.router import prepare_images,load_distilled_routerfrom siglip_distillation.mini_siglip import MiniSiglipfrom tokenizers import Tokenizertorch.set_num_threads(4)torch.backends.cuda.matmul.allow_tf32=Falsetorch.backends.mha.set_fastpath_enabled(False)work=a.root/'outputs/router_shared_image_hidden_20260910'run=f'shared_12_{a.expert}_{a.endpoint}'dest=work/'runs'/runcfg=json.loads((dest/'config.json').read_text())assert cfg['seed']==42 and cfg['student']=='8M' and cfg['target']=='four_state'records,data=formal.load_data(cfg,'test',torch.device('cuda'))for key in ['hidden','confidence']: norm=np.load(dest/(key+'_normalization.npz')) data[key]=(data[key]-torch.from_numpy(norm['mean']).cuda())/torch.from_numpy(norm['std']).cuda()model=formal.FeatureRouter(cfg,data['hidden'].shape[1],data['confidence'].shape[1],data['output'].shape[1]).cuda()ckpt=torch.load(dest/'best.pt',map_location='cuda',weights_only=True)model.load_state_dict(ckpt['state_dict'],strict=True)model.eval().requires_grad_(False)with torch.inference_mode(): raw=torch.cat([model(data,torch.arange(i,min(i+8192,len(records)),device='cuda')).cpu() for i in range(0,len(records),8192)]).numpy()scores=raw[:,1]-raw[:,2]saved=np.load(work/'test_evaluation'/run/'paired_test_arrays.npz')['scores']reference=json.loads((work/'test_results.json').read_text())ref=next(g for g in reference['groups'] if g['id']==run)point=ref['best_test_point']threshold=point['threshold']mask=scores>=threshold if point['operator']=='ge' else scores>thresholdsaved_mask=saved>=threshold if point['operator']=='ge' else saved>thresholdassert np.array_equal(mask,saved_mask), 'Recomputed selected decisions differ from main-table archive'indices=np.random.default_rng(20260912).choice(len(records),64,replace=False)encoder_dir=a.root/'outputs/mini_siglip_strict_20260910_300ep/8M'checkpoint=torch.load(encoder_dir/'epoch_300.pt',map_location='cpu',weights_only=True)encoder=MiniSiglip(**checkpoint['model_config']).cuda()encoder.load_state_dict(checkpoint['model'],strict=True)encoder.eval().requires_grad_(False)tokenizer=Tokenizer.from_file(str(encoder_dir/'student_tokenizer.json'))
def prepare(i): with Image.open(records[i]['image_path']) as im: pixels,valid=prepare_images([[im]]) pixels=pixels.flatten(0,1).cuda() tokens=torch.tensor([tokenizer.encode(records[i]['expression']).ids],device='cuda') if 'text' in cfg['branches'] else None return pixels,valid.cuda(),tokens
def forward(i,prepared): pixels,valid,tokens=prepared with torch.autocast('cuda',dtype=torch.bfloat16): image=encoder.encode_image(pixels).to(torch.float16).float().reshape(1,2,768) text=encoder.encode_text(tokens).to(torch.float16).float() if tokens is not None else None row={k:v[i:i+1] for k,v in data.items()} row['image']=image;row['valid']=valid if text is not None:row['text']=text return model(row,torch.zeros(1,device='cuda',dtype=torch.long))
times=[];head_times=[];flops=[];ops=[]with torch.inference_mode(): for i in indices[:4]: forward(int(i),prepare(int(i))) torch.cuda.synchronize() for i in indices: i=int(i) started=time.perf_counter() forward(i,prepare(i)) torch.cuda.synchronize() times.append((time.perf_counter()-started)*1000) start=torch.cuda.Event(enable_timing=True);end=torch.cuda.Event(enable_timing=True) idx=torch.tensor([i],device='cuda') start.record();model(data,idx);end.record();torch.cuda.synchronize() head_times.append(start.elapsed_time(end)) for i in indices[:8]: prepared=prepare(int(i)) with FlopCounterMode(display=False) as counter: forward(int(i),prepared) flops.append(counter.get_total_flops()/1e9) ops.append({str(k):int(v) for k,v in counter.get_flop_counts().get('Global',{}).items()})report={'status':'complete','run':run,'config':cfg,'checkpoint':str(dest/'best.pt'), 'score':'logit_rescue-logit_harm','test_rows_recomputed':len(records),'selected_decisions_match_main':True, 'max_score_abs_difference':float(np.max(np.abs(saved-scores))),'actual_call_fraction':float(mask.mean()), 'sample_count':len(indices),'sample_ids':[records[int(i)]['sample_id'] for i in indices], 'batch_size':1,'latency_ms':times,'mean_latency_ms_per_input':float(np.mean(times)), 'head_mean_latency_ms':float(np.mean(head_times)), 'gflops_per_input':flops,'mean_gflops_per_input':float(np.mean(flops)), 'operators':ops,'scope':'image loading, bilinear resize, tokenize when used, two image slots (including gray placeholder), active distilled encoders, feature assembly and original routing head; cached specialist features; supported FLOPs only'}a.output.parent.mkdir(parents=True,exist_ok=True)a.output.write_text(json.dumps(report,indent=2),encoding='utf-8')print(json.dumps({k:v for k,v in report.items() if k in ['run','actual_call_fraction','selected_decisions_match_main','mean_latency_ms_per_input','mean_gflops_per_input']},indent=2))123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258#!/usr/bin/env python3from __future__ import annotations
import argparseimport importlib.utilimport jsonimport sysimport timefrom pathlib import Path
import numpy as npimport torchfrom torch.utils.flop_counter import FlopCounterMode
def timed_cuda(call): start = torch.cuda.Event(enable_timing=True) end = torch.cuda.Event(enable_timing=True) start.record() value = call() end.record() torch.cuda.synchronize() return float(start.elapsed_time(end)), value
def count_flops(call): with torch.inference_mode(), FlopCounterMode(display=False) as counter: value = call() torch.cuda.synchronize() global_counts = counter.get_flop_counts().get('Global', {}) return int(counter.get_total_flops()), value, {str(k): int(v) for k, v in global_counts.items()}
def instancevg_measure(root: Path, output: Path, samples: int, batch_size: int, device: str) -> None: import mmcv from mmcv import Config from transformers import XLMRobertaTokenizer from instancevg.models import build_model from instancevg.datasets.pipelines.transforms import Normalize, Resize
torch.set_num_threads(4) torch.backends.cuda.matmul.allow_tf32 = False torch.backends.cudnn.allow_tf32 = False cfg = Config.fromfile(str(root / 'code/third_party/InstanceVG/configs/gres/InstanceVG-grefcoco.py')) cfg.model.vis_enc.pretrain = None cfg.model.process_visual = False model = build_model(cfg.model) checkpoint_path = root / 'models/grefcoco/instancevg/InstanceVG-grefcoco.pth' checkpoint = torch.load(checkpoint_path, map_location='cpu') state = checkpoint['state_dict'] if all(key.startswith('module.') for key in state): state = {key[7:]: value for key, value in state.items()} model.load_state_dict(state, strict=True) del state, checkpoint model.eval().to(device).requires_grad_(False) tokenizer_path = root / 'models/nlvr2/Raghavan--beit3_base_patch16_224_nlvr2/sentencepiece.bpe.model' tokenizer = XLMRobertaTokenizer(str(tokenizer_path)) resize = Resize(img_scale=(320, 320), keep_ratio=False) normalize = Normalize(mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375]) rows = [json.loads(line) for line in (root / 'outputs/router_full_20260910/data/instancevg/test/records.jsonl').open(encoding='utf-8')] if samples > len(rows): raise ValueError(f'samples {samples} exceeds {len(rows)}') indices = np.random.default_rng(20260911).choice(len(rows), samples, replace=False) chosen = [rows[int(index)] for index in indices]
def prepare(batch_rows): images, metas, tokens, masks = [], [], [], [] for row in batch_rows: image = mmcv.imread(row['image_path']) if image.shape[:2] != (row['height'], row['width']): raise ValueError(f'image shape mismatch for {row["sample_id"]}') expression = row['expression'] expression = __import__('re').sub(r"([.,'!?\"()*#:;])", '', expression.lower()).replace('-', ' ').replace('/', ' ') token_ids = tokenizer.convert_tokens_to_ids(tokenizer.tokenize(expression)) if not token_ids: raise ValueError(f'empty token sequence for {row["sample_id"]}') token_ids = [tokenizer.bos_token_id] + token_ids[:48] + [tokenizer.eos_token_id] if len(token_ids) > 50: raise ValueError(f'token sequence exceeds fixed length for {row["sample_id"]}') masks.append([0] * len(token_ids) + [1] * (50 - len(token_ids))) tokens.append(token_ids + [tokenizer.pad_token_id] * (50 - len(token_ids))) data = dict(img=image, filename=row['image_path'], img_shape=image.shape, ori_shape=image.shape, expression=expression, empty=None, with_bbox=False, with_mask=False) data = normalize(resize(data)) images.append(torch.from_numpy(np.ascontiguousarray(data['img'].transpose(2, 0, 1)))) metas.append({key: data[key] for key in ['filename', 'expression', 'ori_shape', 'img_shape', 'pad_shape', 'scale_factor', 'empty']}) image_tensor = torch.stack(images).to(device) token_tensor = torch.tensor(tokens, device=device) mask_tensor = torch.tensor(masks, device=device)
def forward(): return model(img=image_tensor, ref_expr_inds=token_tensor, text_attention_mask=mask_tensor, img_metas=metas, return_loss=False, rescale=True, with_bbox=True, with_mask=False)
return forward
batches = [chosen[start:start + batch_size] for start in range(0, len(chosen), batch_size)] prepared = [prepare(batch) for batch in batches] for forward in prepared[:2]: forward() torch.cuda.synchronize() forward_ms = [] end_to_end_ms = [] for batch in batches: forward = prepare(batch) elapsed, _ = timed_cuda(forward) forward_ms.append(elapsed / len(batch)) started = time.perf_counter() forward = prepare(batch) forward() torch.cuda.synchronize() end_to_end_ms.append((time.perf_counter() - started) * 1000 / len(batch)) flop_rows = [] for batch in batches[:min(4, len(batches))]: forward = prepare(batch) total, _, operators = count_flops(forward) flop_rows.append({'batch_size': len(batch), 'flops_counted': total, 'gflops_counted_per_sample': total / len(batch) / 1e9, 'operators': operators}) output.write_text(json.dumps({ 'component': 'specialist', 'expert': 'instancevg', 'task': 'grefcoco', 'device': device, 'checkpoint': str(checkpoint_path), 'sample_count': len(chosen), 'batch_size': batch_size, 'sample_ids': [row['sample_id'] for row in chosen], 'model_load_seconds_excluded_from_latency': True, 'forward_latency_ms_per_sample': forward_ms, 'end_to_end_latency_ms_per_sample': end_to_end_ms, 'mean_forward_latency_ms_per_sample': float(np.mean(forward_ms)), 'median_forward_latency_ms_per_sample': float(np.median(forward_ms)), 'mean_end_to_end_latency_ms_per_sample': float(np.mean(end_to_end_ms)), 'median_end_to_end_latency_ms_per_sample': float(np.median(end_to_end_ms)), 'flop_profiles': flop_rows, 'mean_counted_gflops_per_sample': float(np.mean([row['gflops_counted_per_sample'] for row in flop_rows])), 'flops_scope': 'GPU FlopCounterMode dense products, convolutions and supported attention; multiply-add counted as 2 FLOPs. Elementwise, normalization, custom ops and postprocessing may be missing.', 'latency_scope': 'A800 wall-clock CUDA forward latency and end-to-end latency including image read/preprocess, excluding model load; batch processing uses the recorded batch size.', 'completed': True, }, ensure_ascii=False, indent=2))
def yolo_measure(root: Path, output: Path, samples: int, batch_size: int, device: str) -> None: from ultralytics import YOLO
torch.set_num_threads(4) torch.backends.cuda.matmul.allow_tf32 = False torch.backends.cudnn.allow_tf32 = False checkpoint_path = root / 'models/construction/yolo26x.pt' model = YOLO(str(checkpoint_path)) rows = [json.loads(line) for line in (root / 'outputs/router_full_20260910/data/yolo26x/test/records.jsonl').open(encoding='utf-8')] if samples > len(rows): raise ValueError(f'samples {samples} exceeds {len(rows)}') indices = np.random.default_rng(20260911).choice(len(rows), samples, replace=False) chosen = [rows[int(index)] for index in indices] batches = [chosen[start:start + batch_size] for start in range(0, len(chosen), batch_size)]
def predict(batch_rows): return model.predict(source=[row['image_path'] for row in batch_rows], imgsz=640, batch=len(batch_rows), device=device, half=False, conf=0.001, iou=0.7, max_det=300, save=False, verbose=False)
for batch in batches[:2]: predict(batch) torch.cuda.synchronize() forward_ms, end_to_end_ms = [], [] for batch in batches: elapsed, _ = timed_cuda(lambda batch=batch: predict(batch)) forward_ms.append(elapsed / len(batch)) started = time.perf_counter() predict(batch) torch.cuda.synchronize() end_to_end_ms.append((time.perf_counter() - started) * 1000 / len(batch)) flop_rows = [] for batch in batches[:min(4, len(batches))]: total, _, operators = count_flops(lambda batch=batch: predict(batch)) flop_rows.append({'batch_size': len(batch), 'flops_counted': total, 'gflops_counted_per_sample': total / len(batch) / 1e9, 'operators': operators}) output.write_text(json.dumps({ 'component': 'specialist', 'expert': 'yolo26x', 'task': 'construction', 'device': device, 'checkpoint': str(checkpoint_path), 'sample_count': len(chosen), 'batch_size': batch_size, 'sample_ids': [row['sample_id'] for row in chosen], 'model_load_seconds_excluded_from_latency': True, 'forward_latency_ms_per_sample': forward_ms, 'end_to_end_latency_ms_per_sample': end_to_end_ms, 'mean_forward_latency_ms_per_sample': float(np.mean(forward_ms)), 'median_forward_latency_ms_per_sample': float(np.median(forward_ms)), 'mean_end_to_end_latency_ms_per_sample': float(np.mean(end_to_end_ms)), 'median_end_to_end_latency_ms_per_sample': float(np.median(end_to_end_ms)), 'flop_profiles': flop_rows, 'mean_counted_gflops_per_sample': float(np.mean([row['gflops_counted_per_sample'] for row in flop_rows])), 'flops_scope': 'GPU FlopCounterMode around the real Ultralytics predict path; multiply-add counted as 2 FLOPs. Elementwise, postprocessing and unsupported custom ops may be missing.', 'latency_scope': 'A800 wall-clock latency for real Ultralytics prediction including image loading/preprocess, forward and result postprocessing, excluding model load; batch processing uses the recorded batch size.', 'completed': True, }, ensure_ascii=False, indent=2))
def router_measure(root: Path, output: Path, expert: str, endpoint: str, condition: str, seed: int, samples: int, batch_size: int, device: str) -> None: work = root / 'outputs/router_method_improvement_20260911_r1/reproducible' sys.path.insert(0, str(work)) common = __import__('method_improvement_common') spec = json.loads((root / 'outputs/router_method_improvement_20260911_r1/method_improvement_spec.json').read_text(encoding='utf-8')) trajectory_id = f'{expert}_{endpoint}_seed{seed}' cfg = common.make_config(spec, expert, endpoint, seed, trajectory_id) rows, data = common.load_split(root, spec, cfg, 'test', device) checkpoint_path = root / f'outputs/router_method_improvement_20260911_r1/conditions/{condition}_{expert}_{endpoint}_seed{seed}/best.pt' checkpoint = torch.load(checkpoint_path, map_location=device, weights_only=True) model = common.FeatureRouter(cfg, data['hidden'].shape[1], data['confidence'].shape[1], data['output'].shape[1]).to(device) model.load_state_dict(checkpoint['state_dict'], strict=True) model.eval().requires_grad_(False) if samples > len(rows): raise ValueError(f'samples {samples} exceeds {len(rows)}') indices = np.random.default_rng(20260911).choice(len(rows), samples, replace=False) chunks = [torch.as_tensor(indices[start:start + batch_size], device=device, dtype=torch.long) for start in range(0, samples, batch_size)] for index in chunks[:2]: model(data, index) torch.cuda.synchronize() latency = [] for index in chunks: elapsed, _ = timed_cuda(lambda index=index: model(data, index)) latency.append(elapsed / len(index)) index = chunks[0] total, _, operators = count_flops(lambda: model(data, index)) output.write_text(json.dumps({ 'component': 'router', 'expert': expert, 'task': cfg['task'], 'endpoint': endpoint, 'condition': condition, 'seed': seed, 'device': device, 'checkpoint': str(checkpoint_path), 'sample_count': samples, 'batch_size': batch_size, 'row_count_loaded': len(rows), 'mean_latency_ms_per_sample': float(np.mean(latency)), 'median_latency_ms_per_sample': float(np.median(latency)), 'latency_ms_per_sample': latency, 'flops_counted_per_batch': total, 'gflops_counted_per_sample': total / len(index) / 1e9, 'operators': operators, 'flops_scope': 'GPU FlopCounterMode for the router forward; multiply-add counted as 2 FLOPs.', 'latency_scope': 'A800 CUDA forward latency on cached router features, excluding feature loading and model load.', 'completed': True, }, ensure_ascii=False, indent=2))
def main() -> None: parser = argparse.ArgumentParser() parser.add_argument('--root', type=Path, required=True) parser.add_argument('--output', type=Path, required=True) parser.add_argument('--component', choices=['specialist', 'router'], required=True) parser.add_argument('--expert', choices=['instancevg', 'yolo26x'], required=True) parser.add_argument('--endpoint', choices=['MiniCPM', 'Qwen3.8']) parser.add_argument('--condition', default='both') parser.add_argument('--seed', type=int, default=42) parser.add_argument('--samples', type=int, default=64) parser.add_argument('--batch-size', type=int, default=8) parser.add_argument('--device', default='cuda:0') args = parser.parse_args() if args.output.exists(): raise FileExistsError(args.output) args.output.parent.mkdir(parents=True, exist_ok=True) if not torch.cuda.is_available(): raise RuntimeError('CUDA is unavailable') if args.component == 'specialist' and args.expert == 'instancevg': instancevg_measure(args.root, args.output, args.samples, args.batch_size, args.device) elif args.component == 'specialist': yolo_measure(args.root, args.output, args.samples, args.batch_size, args.device) else: if args.endpoint is None: raise ValueError('--endpoint is required for router') router_measure(args.root, args.output, args.expert, args.endpoint, args.condition, args.seed, args.samples, args.batch_size, args.device)
if __name__ == '__main__': main()12345678910111213141516171819from pathlib import Pathimport jsonimport shutilroot=Path(__file__).resolve().parents[2]out=root/'dse_results/main_table_cost_20260912'out.mkdir(exist_ok=True)(out/'components').mkdir(exist_ok=True)source=root/'paper_materials/draft_20260912_revision19/data/results.json'data=json.loads(source.read_text(encoding='utf-8'))groups=[g for g in data['groups'] if g['key'] in [['grefcoco','instancevg','MiniCPM'],['construction','yolo26x','Qwen3.8']]]assert len(groups)==2(out/'main_table_results.json').write_text(json.dumps({'source':str(source),'protocol':data['protocol'],'groups':groups},indent=2),encoding='utf-8')scripts=out/'reproducible'scripts.mkdir(exist_ok=True)for p in Path(__file__).resolve().parent.glob('*.py'): shutil.copy2(p,scripts/p.name)for p in Path(__file__).resolve().parent.glob('*.sh'): shutil.copy2(p,scripts/p.name)print(out)12345678910from pathlib import Pathimport jsonroot=Path(__file__).resolve().parents[2]data=json.loads((root/'paper_materials/draft_20260912_revision19/data/results.json').read_text(encoding='utf-8'))print('TOP',list(data))for g in data['groups']: if g['key'] in [['grefcoco','instancevg','MiniCPM'],['construction','yolo26x','Qwen3.8']]: print(json.dumps({k:v for k,v in g.items() if k!='methods'},ensure_ascii=False)[:6000]) for m,v in g['methods'].items(): print(m, {k:v1 for k,v1 in v.items() if 'curve' not in k})123456from pathlib import Pathimport shutilroot=Path(__file__).resolve().parents[2]dest=Path(__file__).resolve().parentfor source,target in [('measure_large_vllm_runtime_20260911.py','measure_large.py'),('measure_large_flops_reference_20260911.py','measure_flops.py'),('measure_expert_router_runtime_20260911.py','measure_specialist.py')]: shutil.copy2(root/'tmp'/source,dest/target)1234567891011121314151617181920212223from pathlib import Pathimport jsonimport shutilroot=Path(__file__).resolve().parents[2]old=root/'dse_results/main_table_cost_20260912'out=root/'dse_results/main_table_cost_qwen_20260912'out.mkdir(exist_ok=True)(out/'components').mkdir(exist_ok=True)(out/'reproducible').mkdir(exist_ok=True)(out/'logs').mkdir(exist_ok=True)source=root/'paper_materials/draft_20260912_revision19/data/results.json'data=json.loads(source.read_text(encoding='utf-8'))groups=[next(g for g in data['groups'] if g['key']==key) for key in [['grefcoco','instancevg','Qwen3.8'],['construction','yolo26x','Qwen3.8']]](out/'main_table_results.json').write_text(json.dumps({'source':str(source),'protocol':data['protocol'],'groups':groups},indent=2),encoding='utf-8')for name in ['instancevg_specialist.json','yolo26x_specialist.json','yolo26x_router.json','qwen_latency.json','qwen_flops.json']: shutil.copy2(old/'components'/name,out/'components'/name)for name in ['build_figures.py','verify_and_report.py','latex_includes.tex']: text=(old/name).read_text(encoding='utf-8').replace("['minicpm','qwen']","['qwen_gref','qwen']").replace('gRefCOCO / M','gRefCOCO / Q').replace('InstanceVG--MiniCPM','InstanceVG--Qwen').replace('main_table_cost_20260912','main_table_cost_qwen_20260912') (out/name).write_text(text,encoding='utf-8')for p in (old/'reproducible').iterdir(): if p.is_file(): shutil.copy2(p,out/'reproducible'/p.name)for g in groups: print(g['key'],g['run'],{m:g['methods'][m]['test_point'] for m in ['learned','confidence']})12345pair,method,nominal_validation_budget,actual_test_call_fraction,test_metric,estimated_gflops_per_input,estimated_time_ms_per_input
grefcoco|instancevg|Qwen3.8,learned,0.56,0.5355755324277571,0.7528287440093016,17446.303931938,2243.6672827746106
grefcoco|instancevg|Qwen3.8,confidence,0.71,0.6838612710206166,0.7243286163967898,22269.96488623913,2830.3683522642846
construction|yolo26x|Qwen3.8,learned,0.5,0.4876830892143808,0.29875800068449215,47383.321370531434,4861.824738942901
construction|yolo26x|Qwen3.8,confidence,0.93,0.9221038615179761,0.2597490004762105,89464.5250591521,9103.651026133362123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657from pathlib import Path
import csv
import json
import fitz
root = Path(__file__).resolve().parent
summary = json.loads((root/'cost_summary.json').read_text())
groups = json.loads((root/'main_table_results.json').read_text())['groups']
rows = list(csv.DictReader((root/'full_cost_performance_curves.csv').open()))
assert len(rows) == 404
lines = ['# 主表方法:成本—性能曲线', '', '## 1 做了什么', '',
'- 使用主表原检查点、种子42及原验证集阈值;未重新训练,也未改用后续改进方法。',
'- gRefCOCO 改为 InstanceVG + Qwen,重新测量该任务上的 Qwen 成本及对应路由器;Construction 和 InstanceVG 专家复用上一轮同口径实测。', '- 在 A800 的0、1号卡测量;每个大模型预热2张、正式测量64张,每次1张。专家和路由部分各测64张。', '- 重算原路由头,并核对全测试集的选定阈值调用决定与主表完全一致。性能数值沿用主表固定的预测记录。',
'- 只画学习路由与置信度路由;共404个曲线点。另提供单栏四面板紧凑版。', '',
'## 2 为什么做', '', '让成本曲线与主实验比较同一个方法,避免混入后续改进结果;补计蒸馏编码器及路由头开销。', '',
'## 3 做完有什么效果', '', '| 数据集 | 方法 | 测试性能(%) | 调用率(%) | 估算GFLOPs/输入 | 估算毫秒/输入 |',
'|---|---|---:|---:|---:|---:|']
comparisons = []
for group in groups:
key = '|'.join(group['key'])
chosen = {p['method']:p for p in summary['selected_points'] if p['pair']==key}
for method,label in [('learned','学习路由'),('confidence','置信度路由')]:
p = chosen[method]
original = group['methods'][method]['test_point']
assert p['test_metric'] == original['metric']
assert p['actual_test_call_fraction'] == original['actual_fraction']
lines.append(f"| {group['key'][0]} | {label} | {100*p['test_metric']:.2f} | {100*p['actual_test_call_fraction']:.2f} | {p['estimated_gflops_per_input']:,.1f} | {p['estimated_time_ms_per_input']:,.1f} |")
a,b = chosen['learned'],chosen['confidence']
comparisons.append(f"{group['key'][0]}:相对置信度路由,性能提高 {100*(a['test_metric']-b['test_metric']):.2f} 个百分点,估算 FLOPs 减少 {100*(1-a['estimated_gflops_per_input']/b['estimated_gflops_per_input']):.1f}%,估算耗时减少 {100*(1-a['estimated_time_ms_per_input']/b['estimated_time_ms_per_input']):.1f}%。")
for comparison in comparisons:
lines += ['', comparison]
lines += ['']
lines += ['### 数值口径', '',
'- 每个曲线点使用验证集确定的阈值,横轴按该阈值在测试集上的实际调用率计算;圆点对应主表选定点,没有按测试集重新选点。',
'- 置信度路由成本 = 专家成本 + 实际调用率 × 大模型平均成本。学习路由再加编码器和路由头成本。',
'- 耗时为分项实测后相加的串行估算,并非各策略整套系统的直接端到端计时。加载模型和预热不计入。',
'- FLOPs 按乘加计2次统计支持的算子;大模型用8个输入估计预填充成本(含视觉编码),再加平均输出长度乘单词元解码成本。专家统计4个输入,编码器与路由头统计8个输入。',
'- 各策略共用大模型平均单次成本,尚未测量所选样本的长度差异对成本的影响;专家隐藏特征来自缓存,其额外提取开销未单独测量。置信度阈值判断开销未单独计时。',
'- 本轮单张测量与上一轮批量测量口径不同,绝对耗时不宜直接比较。', '',
'- YOLO 使用权重记录的依赖版本8.3.222,安装在任务临时目录;结束时0、1号卡显存均为0,未操作2、3号卡服务。', '',
'## 4 对应文件在哪', '',
'- `cost_compact.pdf`:推荐插入正文的单栏四面板图,宽3.44英寸、高2.05英寸。',
'- `flops_performance.pdf`、`latency_performance.pdf`:两张独立双面板图。',
'- `full_cost_performance_curves.csv`:全部404个点;`selected_points.csv`:主表4个运行点。',
'- `components/`:8份实测记录,含原始回答、错误记录及路由核验。',
'- `build_figures.py`:绘图及成本计算;`reproducible/`:远端测量脚本;`latex_includes.tex`:插入代码及图注。',
'- 远端结果:`/mnt/HithinkOmniSSD/user_workspace/caisihang/research/ICASSP_ModelCollaboration/outputs/main_table_cost_qwen_20260912`。', '',
'### 检查记录', '', '已核对404个曲线点、4个主表运行点、两组全测试集调用决定及单位。PDF文字为嵌入字体,另渲染检查排版。']
(root/'成本性能报告.md').write_text('\n'.join(lines)+'\n',encoding='utf-8')
for stem in ['cost_compact','flops_performance','latency_performance']:
doc = fitz.open(root/(stem+'.pdf'))
assert len(doc)==1
assert all(font[1] != 'n/a' for font in doc[0].get_fonts())
doc[0].get_pixmap(matrix=fitz.Matrix(4,4)).save(root/(stem+'_verified.png'))
print('\n'.join(lines))1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950# 主表方法:成本—性能曲线
## 1 做了什么
- 使用主表原检查点、种子42及原验证集阈值;未重新训练,也未改用后续改进方法。
- gRefCOCO 改为 InstanceVG + Qwen,重新测量该任务上的 Qwen 成本及对应路由器;Construction 和 InstanceVG 专家复用上一轮同口径实测。
- 在 A800 的0、1号卡测量;每个大模型预热2张、正式测量64张,每次1张。专家和路由部分各测64张。
- 重算原路由头,并核对全测试集的选定阈值调用决定与主表完全一致。性能数值沿用主表固定的预测记录。
- 只画学习路由与置信度路由;共404个曲线点。另提供单栏四面板紧凑版。
## 2 为什么做
让成本曲线与主实验比较同一个方法,避免混入后续改进结果;补计蒸馏编码器及路由头开销。
## 3 做完有什么效果
| 数据集 | 方法 | 测试性能(%) | 调用率(%) | 估算GFLOPs/输入 | 估算毫秒/输入 |
|---|---|---:|---:|---:|---:|
| grefcoco | 学习路由 | 75.28 | 53.56 | 17,446.3 | 2,243.7 |
| grefcoco | 置信度路由 | 72.43 | 68.39 | 22,270.0 | 2,830.4 |
| construction | 学习路由 | 29.88 | 48.77 | 47,383.3 | 4,861.8 |
| construction | 置信度路由 | 25.97 | 92.21 | 89,464.5 | 9,103.7 |
grefcoco:相对置信度路由,性能提高 2.85 个百分点,估算 FLOPs 减少 21.7%,估算耗时减少 20.7%。
construction:相对置信度路由,性能提高 3.90 个百分点,估算 FLOPs 减少 47.0%,估算耗时减少 46.6%。
### 数值口径
- 每个曲线点使用验证集确定的阈值,横轴按该阈值在测试集上的实际调用率计算;圆点对应主表选定点,没有按测试集重新选点。
- 置信度路由成本 = 专家成本 + 实际调用率 × 大模型平均成本。学习路由再加编码器和路由头成本。
- 耗时为分项实测后相加的串行估算,并非各策略整套系统的直接端到端计时。加载模型和预热不计入。
- FLOPs 按乘加计2次统计支持的算子;大模型用8个输入估计预填充成本(含视觉编码),再加平均输出长度乘单词元解码成本。专家统计4个输入,编码器与路由头统计8个输入。
- 各策略共用大模型平均单次成本,尚未测量所选样本的长度差异对成本的影响;专家隐藏特征来自缓存,其额外提取开销未单独测量。置信度阈值判断开销未单独计时。
- 本轮单张测量与上一轮批量测量口径不同,绝对耗时不宜直接比较。
- YOLO 使用权重记录的依赖版本8.3.222,安装在任务临时目录;结束时0、1号卡显存均为0,未操作2、3号卡服务。
## 4 对应文件在哪
- `cost_compact.pdf`:推荐插入正文的单栏四面板图,宽3.44英寸、高2.05英寸。
- `flops_performance.pdf`、`latency_performance.pdf`:两张独立双面板图。
- `full_cost_performance_curves.csv`:全部404个点;`selected_points.csv`:主表4个运行点。
- `components/`:8份实测记录,含原始回答、错误记录及路由核验。
- `build_figures.py`:绘图及成本计算;`reproducible/`:远端测量脚本;`latex_includes.tex`:插入代码及图注。
- 远端结果:`/mnt/HithinkOmniSSD/user_workspace/caisihang/research/ICASSP_ModelCollaboration/outputs/main_table_cost_qwen_20260912`。
### 检查记录
已核对404个曲线点、4个主表运行点、两组全测试集调用决定及单位。PDF文字为嵌入字体,另渲染检查排版。123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114{ "name": "router_method_improvement_20260911", "remote_root": "/mnt/HithinkOmniSSD/user_workspace/caisihang/research/ICASSP_ModelCollaboration", "remote_work": "outputs/router_method_improvement_20260911", "data_work": "outputs/router_full_20260910", "student": "8M", "student_checkpoint": "outputs/mini_siglip_strict_20260910_300ep/8M/epoch_300.pt", "fixed": { "fraction": 1.0, "freeze_encoder": true, "fusion": "concat", "harm_cost": 1.0, "batch_size": 256, "weight_decay": 0.01, "max_epochs": 50, "patience": 8, "representation_dim": 128, "lr": 0.003, "target": "four_state", "strategy": "natural", "hidden_percent": 90, "cpu_threads": 1 }, "seeds": [42, 43, 44], "experts": { "cub": { "task": "cub", "hidden_layer": "residual_blocks__layer_15", "hidden_depth": 16, "branches": ["image", "hidden", "confidence", "output"], "confidence_column": "max_probability", "confidence_valid_column": "max_probability_valid", "expected_rows": {"train": 4792, "val": 1200, "test": 5794} }, "glsim": { "task": "cub", "hidden_layer": "global_local_encoder__layer_11", "hidden_depth": 12, "branches": ["image", "hidden", "confidence", "output"], "confidence_column": "max_probability", "confidence_valid_column": "max_probability_valid", "expected_rows": {"train": 4792, "val": 1200, "test": 5794} }, "groundingdino": { "task": "grefcoco", "hidden_layer": "multimodal_encoder__layer_06", "hidden_depth": 6, "branches": ["image", "text", "hidden", "confidence", "output"], "confidence_column": "max_score", "confidence_valid_column": "max_score_valid", "expected_rows": {"train": 209344, "val": 14229, "test": 35263} }, "instancevg": { "task": "grefcoco", "hidden_layer": "joint_encoder__layer_11", "hidden_depth": 12, "branches": ["image", "text", "hidden", "confidence", "output"], "confidence_column": "max_score", "confidence_valid_column": "max_score_valid", "expected_rows": {"train": 209344, "val": 14229, "test": 35263} }, "nlvr2": { "task": "nlvr2", "hidden_layer": "multimodal_encoder__layer_11", "hidden_depth": 12, "branches": ["image", "text", "hidden", "confidence", "output"], "confidence_column": "max_probability", "confidence_valid_column": "max_probability_valid", "expected_rows": {"train": 85042, "val": 6982, "test": 13937} }, "vilt": { "task": "nlvr2", "hidden_layer": "ordered_image_text__layer_11", "hidden_depth": 12, "branches": ["image", "text", "hidden", "confidence", "output"], "confidence_column": "max_probability", "confidence_valid_column": "max_probability_valid", "expected_rows": {"train": 85042, "val": 6982, "test": 13937} }, "yolo26x": { "task": "construction", "hidden_layer": "feature_blocks__layer_16", "hidden_depth": 17, "branches": ["image", "hidden", "confidence", "output"], "confidence_column": "max_score", "confidence_valid_column": "max_score_valid", "expected_rows": {"train": 6308, "val": 701, "test": 3004} }, "rtdetr_x_fp32": { "task": "construction", "hidden_layer": "query_decoder__layer_06", "hidden_depth": 6, "branches": ["image", "hidden", "confidence", "output"], "confidence_column": "max_score", "confidence_valid_column": "max_score_valid", "expected_rows": {"train": 6308, "val": 701, "test": 3004} } }, "conditions": [ {"name": "original", "selection_mode": "a25", "score_mode": "s_log"}, {"name": "score_gain", "selection_mode": "a25", "score_mode": "s_gain"}, {"name": "checkpoint_perf", "selection_mode": "max_task_performance", "score_mode": "s_log"}, {"name": "both", "selection_mode": "max_task_performance", "score_mode": "s_gain"} ], "score_only_control": {"name": "score_only_gain", "source_condition": "original", "score_mode": "s_gain"}, "budgets": { "a25": [0.0, 0.05, 0.10, 0.15, 0.20, 0.25], "historical_threshold": [0.01, 0.02, 0.03, 0.04, 0.05, 0.06, 0.07, 0.08, 0.09, 0.10, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.17, 0.18, 0.19, 0.20, 0.21, 0.22, 0.23, 0.24, 0.25, 0.26, 0.27, 0.28, 0.29, 0.30, 0.31, 0.32, 0.33, 0.34, 0.35, 0.36, 0.37, 0.38, 0.39, 0.40, 0.41, 0.42, 0.43, 0.44, 0.45, 0.46, 0.47, 0.48, 0.49, 0.50, 0.51, 0.52, 0.53, 0.54, 0.55, 0.56, 0.57, 0.58, 0.59, 0.60, 0.61, 0.62, 0.63, 0.64, 0.65, 0.66, 0.67, 0.68, 0.69, 0.70, 0.71, 0.72, 0.73, 0.74, 0.75, 0.76, 0.77, 0.78, 0.79, 0.80, 0.81, 0.82, 0.83, 0.84, 0.85, 0.86, 0.87, 0.88, 0.89, 0.90, 0.91, 0.92, 0.93, 0.94, 0.95, 0.96, 0.97, 0.98, 0.99], "endpoint": [0.0, 0.01, 0.02, 0.03, 0.04, 0.05, 0.06, 0.07, 0.08, 0.09, 0.10, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.17, 0.18, 0.19, 0.20, 0.21, 0.22, 0.23, 0.24, 0.25, 0.26, 0.27, 0.28, 0.29, 0.30, 0.31, 0.32, 0.33, 0.34, 0.35, 0.36, 0.37, 0.38, 0.39, 0.40, 0.41, 0.42, 0.43, 0.44, 0.45, 0.46, 0.47, 0.48, 0.49, 0.50, 0.51, 0.52, 0.53, 0.54, 0.55, 0.56, 0.57, 0.58, 0.59, 0.60, 0.61, 0.62, 0.63, 0.64, 0.65, 0.66, 0.67, 0.68, 0.69, 0.70, 0.71, 0.72, 0.73, 0.74, 0.75, 0.76, 0.77, 0.78, 0.79, 0.80, 0.81, 0.82, 0.83, 0.84, 0.85, 0.86, 0.87, 0.88, 0.89, 0.90, 0.91, 0.92, 0.93, 0.94, 0.95, 0.96, 0.97, 0.98, 0.99, 1.0], "batch_diagnostic": [0.0, 0.05, 0.10, 0.15, 0.20, 0.25, 0.50, 0.75, 1.0] }, "fusion_alphas": [0.0, 0.25, 0.5, 0.75, 1.0], "tie_epsilon": 1e-12}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129{ "small_models": [ { "model": "ResNet", "expert": "cub", "samples": 32, "mean_gflops_counted": 8.175091712, "min_gflops_counted": 8.175091712, "max_gflops_counted": 8.175091712, "operator_inventory_source": "cub_operator_check.json", "operator_check_samples": 1, "uncovered_spatial_sampling_seen": false }, { "model": "YOLO26x", "expert": "yolo26x", "samples": 32, "mean_gflops_counted": 143.2219032, "min_gflops_counted": 116.2238976, "max_gflops_counted": 193.92768, "operator_inventory_source": "yolo26x_operator_check.json", "operator_check_samples": 1, "uncovered_spatial_sampling_seen": false }, { "model": "RT-DETR-X", "expert": "rtdetr_x_fp32", "samples": 32, "mean_gflops_counted": 224.6444544, "min_gflops_counted": 224.6444544, "max_gflops_counted": 224.6444544, "operator_inventory_source": "rtdetr_x_fp32_operator_check.json", "operator_check_samples": 1, "uncovered_spatial_sampling_seen": true }, { "model": "ViLT", "expert": "vilt", "samples": 32, "mean_gflops_counted": 84.895706112, "min_gflops_counted": 57.611655168, "max_gflops_counted": 120.690972672, "operator_inventory_source": "vilt_operator_check.json", "operator_check_samples": 1, "uncovered_spatial_sampling_seen": false }, { "model": "GroundingDINO", "expert": "groundingdino", "samples": 32, "mean_gflops_counted": 668.259162288, "min_gflops_counted": 499.212779776, "max_gflops_counted": 820.17636864, "operator_inventory_source": "groundingdino_operator_check.json", "operator_check_samples": 1, "uncovered_spatial_sampling_seen": true }, { "model": "BEiT3", "expert": "nlvr2", "samples": 32, "mean_gflops_counted": 76.799401728, "min_gflops_counted": 73.586743296, "max_gflops_counted": 83.259561984, "operator_inventory_source": "nlvr2_operator_check.json", "operator_check_samples": 1, "uncovered_spatial_sampling_seen": false }, { "model": "GLSim", "expert": "glsim", "samples": 32, "mean_gflops_counted": 70.280871936, "min_gflops_counted": 70.280871936, "max_gflops_counted": 70.280871936, "operator_inventory_source": "glsim_ops.json", "operator_check_samples": 32, "uncovered_spatial_sampling_seen": false } ], "large_input_cases": 16, "large_input_check_complete": true, "large_model_probes": [ { "model": "MiniCPM", "sample_id": "cub-test-00517", "task": "cub", "prompt_tokens": 1996, "prefill_gflops_counted": 33243.606087168, "one_known_token_gflops_counted": 16.31253312 }, { "model": "Qwen3.8", "sample_id": "cub-test-00517", "task": "cub", "prompt_tokens": 4864, "prefill_gflops_counted": 249018.23668224, "one_known_token_gflops_counted": 53.164769472 } ], "large_gpu_probe_status": { "stage": "finished", "occupancy_original_pid": 157057, "stopped_process_ids": [ 157068, 157342, 157343, 157587, 157588, 157589, 157590, 157057 ], "started_at": 1789028871.3039298, "measurement_exit_code": 0, "occupancy_restored": true, "measurement_pid": 159330, "occupancy_new_pid": 159642, "finished_at": 1789029043.4601417 }, "whole_system_flops_complete": false, "missing_components": [ "InstanceVG", "full generation and all-task large-model coverage", "uncovered operations", "per-example routing alignment", "95%/99% resampling intervals" ]}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250[
{
"key": [
"cub",
"cub",
"MiniCPM"
],
"rows": [
{
"id": "formal_0185",
"tag": "baseline_25pct",
"task": "cub",
"expert": "cub",
"endpoint": "MiniCPM",
"fraction": 0.25,
"student": "4M",
"branches": "output",
"fusion": "concat",
"target": "gain",
"strategy": "natural",
"representation_dim": 512,
"hidden_layer": "residual_blocks__layer_16",
"fixed25_metric": 0.7849499482222989,
"fixed25_actual_fraction": 0.2587159130134622,
"fixed25_rescue": 31,
"fixed25_harm": 201,
"rank25_metric": 0.7884017949603037,
"validation_selection": 0.9741666666666666,
"best_epoch": 12,
"seconds": 5.802937984466553
},
{
"id": "formal_0186",
"tag": "baseline_50pct",
"task": "cub",
"expert": "cub",
"endpoint": "MiniCPM",
"fraction": 0.5,
"student": "4M",
"branches": "output",
"fusion": "concat",
"target": "gain",
"strategy": "natural",
"representation_dim": 512,
"hidden_layer": "residual_blocks__layer_16",
"fixed25_metric": 0.7904729030031067,
"fixed25_actual_fraction": 0.2549188816016569,
"fixed25_rescue": 38,
"fixed25_harm": 176,
"rank25_metric": 0.7930617880566103,
"validation_selection": 0.9731666666666667,
"best_epoch": 7,
"seconds": 7.1614015102386475
},
{
"id": "formal_0001",
"tag": "baseline_100pct",
"task": "cub",
"expert": "cub",
"endpoint": "MiniCPM",
"fraction": 1.0,
"student": "4M",
"branches": "output",
"fusion": "concat",
"target": "gain",
"strategy": "natural",
"representation_dim": 512,
"hidden_layer": "residual_blocks__layer_16",
"fixed25_metric": 0.787193648602002,
"fixed25_actual_fraction": 0.2557818432861581,
"fixed25_rescue": 33,
"fixed25_harm": 190,
"rank25_metric": 0.7913358646876079,
"validation_selection": 0.9744166666666666,
"best_epoch": 7,
"seconds": 2.9200518131256104
}
]
},
{
"key": [
"cub",
"cub",
"Qwen3.8"
],
"rows": [
{
"id": "formal_0187",
"tag": "baseline_25pct",
"task": "cub",
"expert": "cub",
"endpoint": "Qwen3.8",
"fraction": 0.25,
"student": "4M",
"branches": "output+confidence",
"fusion": "concat",
"target": "four_state",
"strategy": "natural",
"representation_dim": 512,
"hidden_layer": "residual_blocks__layer_16",
"fixed25_metric": 0.6874352778736624,
"fixed25_actual_fraction": 0.6039005868139454,
"fixed25_rescue": 358,
"fixed25_harm": 1093,
"rank25_metric": 0.8060062133241284,
"validation_selection": 0.9316666666666666,
"best_epoch": 5,
"seconds": 4.623678922653198
},
{
"id": "formal_0188",
"tag": "baseline_50pct",
"task": "cub",
"expert": "cub",
"endpoint": "Qwen3.8",
"fraction": 0.5,
"student": "4M",
"branches": "output+confidence",
"fusion": "concat",
"target": "four_state",
"strategy": "natural",
"representation_dim": 512,
"hidden_layer": "residual_blocks__layer_16",
"fixed25_metric": 0.694338971349672,
"fixed25_actual_fraction": 0.5997583707283397,
"fixed25_rescue": 357,
"fixed25_harm": 1052,
"rank25_metric": 0.8096306523990335,
"validation_selection": 0.9334166666666667,
"best_epoch": 3,
"seconds": 4.7386627197265625
},
{
"id": "formal_0009",
"tag": "baseline_100pct",
"task": "cub",
"expert": "cub",
"endpoint": "Qwen3.8",
"fraction": 1.0,
"student": "4M",
"branches": "output+confidence",
"fusion": "concat",
"target": "four_state",
"strategy": "natural",
"representation_dim": 512,
"hidden_layer": "residual_blocks__layer_16",
"fixed25_metric": 0.6829478771142561,
"fixed25_actual_fraction": 0.6049361408353469,
"fixed25_rescue": 358,
"fixed25_harm": 1119,
"rank25_metric": 0.8091128753883328,
"validation_selection": 0.928,
"best_epoch": 1,
"seconds": 2.053396463394165
}
]
},
{
"key": [
"cub",
"glsim",
"MiniCPM"
],
"rows": [
{
"id": "formal_0189",
"tag": "baseline_25pct",
"task": "cub",
"expert": "glsim",
"endpoint": "MiniCPM",
"fraction": 0.25,
"student": "4M",
"branches": "output",
"fusion": "concat",
"target": "gain",
"strategy": "natural",
"representation_dim": 512,
"hidden_layer": "aggregator__layer_01",
"fixed25_metric": 0.8674490852606145,
"fixed25_actual_fraction": 0.24818778046254747,
"fixed25_rescue": 11,
"fixed25_harm": 209,
"rank25_metric": 0.8674490852606145,
"validation_selection": 0.9786666666666667,
"best_epoch": 12,
"seconds": 6.889333963394165
},
{
"id": "formal_0190",
"tag": "baseline_50pct",
"task": "cub",
"expert": "glsim",
"endpoint": "MiniCPM",
"fraction": 0.5,
"student": "4M",
"branches": "output",
"fusion": "concat",
"target": "gain",
"strategy": "natural",
"representation_dim": 512,
"hidden_layer": "aggregator__layer_01",
"fixed25_metric": 0.870037970314118,
"fixed25_actual_fraction": 0.24991370383154987,
"fixed25_rescue": 13,
"fixed25_harm": 196,
"rank25_metric": 0.870037970314118,
"validation_selection": 0.9773333333333334,
"best_epoch": 6,
"seconds": 5.409059524536133
},
{
"id": "formal_0019",
"tag": "baseline_100pct",
"task": "cub",
"expert": "glsim",
"endpoint": "MiniCPM",
"fraction": 1.0,
"student": "4M",
"branches": "output",
"fusion": "concat",
"target": "gain",
"strategy": "natural",
"representation_dim": 512,
"hidden_layer": "aggregator__layer_01",
"fixed25_metric": 0.8658957542285123,
"fixed25_actual_fraction": 0.25509147393855713,
"fixed25_rescue": 13,
"fixed25_harm": 220,
"rank25_metric": 0.8679668622713151,
"validation_selection": 0.9788333333333333,
"best_epoch": 9,
"seconds": 7.6912243366241455
}
]
},
{
"key": [
"cub",
"glsim",
"Qwen3.8"
],
"rows": [
{
"id": "formal_0191",
"tag": "baseline_25pct",
"task": "cub",
"expert": "glsim",
"endpoint": "Qwen3.8",
"fraction": 0.25,
"student": "4M",
"branches": "image+text+hidden",
"fusion": "concat",
"target": "four_state",
"strategy": "natural",
"representation_dim": 512,
"hidden_layer": "global_local_encoder__layer_12",
"fixed25_metric": 0.8797031411805316,
"fixed25_actual_fraction": 0.23662409389023129,
"fixed25_rescue": 18,
"fixed25_harm": 145,
"rank25_metric": 0.8776320331377286,
"validation_selection": 0.98025,
"best_epoch": 18,
"seconds": 7.610384702682495
},
{
"id": "formal_0192",
"tag": "baseline_50pct",
"task": "cub",
"expert": "glsim",
"endpoint": "Qwen3.8",
"fraction": 0.5,
"student": "4M",
"branches": "image+text+hidden",
"fusion": "concat",
"target": "four_state",
"strategy": "natural",
"representation_dim": 512,
"hidden_layer": "global_local_encoder__layer_12",
"fixed25_metric": 0.876423886779427,
"fixed25_actual_fraction": 0.24525371073524335,
"fixed25_rescue": 8,
"fixed25_harm": 154,
"rank25_metric": 0.8762512944425268,
"validation_selection": 0.981,
"best_epoch": 25,
"seconds": 10.510464906692505
},
{
"id": "formal_0027",
"tag": "baseline_100pct",
"task": "cub",
"expert": "glsim",
"endpoint": "Qwen3.8",
"fraction": 1.0,
"student": "4M",
"branches": "image+text+hidden",
"fusion": "concat",
"target": "four_state",
"strategy": "natural",
"representation_dim": 512,
"hidden_layer": "global_local_encoder__layer_12",
"fixed25_metric": 0.8684846392820159,
"fixed25_actual_fraction": 0.2507766655160511,
"fixed25_rescue": 17,
"fixed25_harm": 209,
"rank25_metric": 0.8684846392820159,
"validation_selection": 0.97525,
"best_epoch": 1,
"seconds": 3.935011863708496
}
]
},
{
"key": [
"grefcoco",
"groundingdino",
"MiniCPM"
],
"rows": [
{
"id": "formal_0193",
"tag": "baseline_25pct",
"task": "grefcoco",
"expert": "groundingdino",
"endpoint": "MiniCPM",
"fraction": 0.25,
"student": "4M",
"branches": "image+text+hidden+confidence",
"fusion": "attention",
"target": "error",
"strategy": "weighted",
"representation_dim": 512,
"hidden_layer": "text_encoder__layer_09",
"fixed25_metric": 0.38158976831239544,
"fixed25_actual_fraction": 0.24836230609987806,
"fixed25_rescue": 4083,
"fixed25_harm": 38,
"rank25_metric": 0.38201514335138814,
"validation_selection": 0.6237472766884531,
"best_epoch": 1,
"seconds": 28.353870153427124
},
{
"id": "formal_0194",
"tag": "baseline_50pct",
"task": "grefcoco",
"expert": "groundingdino",
"endpoint": "MiniCPM",
"fraction": 0.5,
"student": "4M",
"branches": "image+text+hidden+confidence",
"fusion": "attention",
"target": "error",
"strategy": "weighted",
"representation_dim": 512,
"hidden_layer": "text_encoder__layer_09",
"fixed25_metric": 0.3658792502055979,
"fixed25_actual_fraction": 0.22034427019822478,
"fixed25_rescue": 3503,
"fixed25_harm": 12,
"rank25_metric": 0.3758330261180274,
"validation_selection": 0.6238526951999438,
"best_epoch": 2,
"seconds": 56.78019833564758
},
{
"id": "formal_0042",
"tag": "baseline_100pct",
"task": "grefcoco",
"expert": "groundingdino",
"endpoint": "MiniCPM",
"fraction": 1.0,
"student": "4M",
"branches": "image+text+hidden+confidence",
"fusion": "attention",
"target": "error",
"strategy": "weighted",
"representation_dim": 512,
"hidden_layer": "text_encoder__layer_09",
"fixed25_metric": 0.3693106088534725,
"fixed25_actual_fraction": 0.22853982928281769,
"fixed25_rescue": 3642,
"fixed25_harm": 30,
"rank25_metric": 0.3758330261180274,
"validation_selection": 0.6221730269168599,
"best_epoch": 9,
"seconds": 476.6986792087555
}
]
},
{
"key": [
"grefcoco",
"groundingdino",
"Qwen3.8"
],
"rows": [
{
"id": "formal_0195",
"tag": "baseline_25pct",
"task": "grefcoco",
"expert": "groundingdino",
"endpoint": "Qwen3.8",
"fraction": 0.25,
"student": "4M",
"branches": "image+text+hidden+confidence",
"fusion": "concat",
"target": "error",
"strategy": "weighted",
"representation_dim": 512,
"hidden_layer": "text_encoder__layer_09",
"fixed25_metric": 0.4562572668235828,
"fixed25_actual_fraction": 0.24856081445140799,
"fixed25_rescue": 6732,
"fixed25_harm": 54,
"rank25_metric": 0.45705130022970253,
"validation_selection": 0.6656265373532926,
"best_epoch": 1,
"seconds": 18.048375368118286
},
{
"id": "formal_0196",
"tag": "baseline_50pct",
"task": "grefcoco",
"expert": "groundingdino",
"endpoint": "Qwen3.8",
"fraction": 0.5,
"student": "4M",
"branches": "image+text+hidden+confidence",
"fusion": "concat",
"target": "error",
"strategy": "weighted",
"representation_dim": 512,
"hidden_layer": "text_encoder__layer_09",
"fixed25_metric": 0.434648214842753,
"fixed25_actual_fraction": 0.22008904517482913,
"fixed25_rescue": 5930,
"fixed25_harm": 14,
"rank25_metric": 0.4536766582536937,
"validation_selection": 0.6660130718954248,
"best_epoch": 2,
"seconds": 33.53883171081543
},
{
"id": "formal_0057",
"tag": "baseline_100pct",
"task": "grefcoco",
"expert": "groundingdino",
"endpoint": "Qwen3.8",
"fraction": 1.0,
"student": "4M",
"branches": "image+text+hidden+confidence",
"fusion": "concat",
"target": "error",
"strategy": "weighted",
"representation_dim": 512,
"hidden_layer": "text_encoder__layer_09",
"fixed25_metric": 0.43033774778096023,
"fixed25_actual_fraction": 0.2126591611604231,
"fixed25_rescue": 5784,
"fixed25_harm": 20,
"rank25_metric": 0.4544139749879477,
"validation_selection": 0.6650924168950734,
"best_epoch": 5,
"seconds": 281.1101198196411
}
]
},
{
"key": [
"grefcoco",
"instancevg",
"MiniCPM"
],
"rows": [
{
"id": "formal_0197",
"tag": "baseline_25pct",
"task": "grefcoco",
"expert": "instancevg",
"endpoint": "MiniCPM",
"fraction": 0.25,
"student": "4M",
"branches": "hidden",
"fusion": "concat",
"target": "gain",
"strategy": "weighted",
"representation_dim": 512,
"hidden_layer": "query_generation__layer_01",
"fixed25_metric": 0.6523268014632901,
"fixed25_actual_fraction": 0.3479284235601055,
"fixed25_rescue": 1394,
"fixed25_harm": 2000,
"rank25_metric": 0.6652582026486685,
"validation_selection": 0.753925082577834,
"best_epoch": 13,
"seconds": 28.585034132003784
},
{
"id": "formal_0198",
"tag": "baseline_50pct",
"task": "grefcoco",
"expert": "instancevg",
"endpoint": "MiniCPM",
"fraction": 0.5,
"student": "4M",
"branches": "hidden",
"fusion": "concat",
"target": "gain",
"strategy": "weighted",
"representation_dim": 512,
"hidden_layer": "query_generation__layer_01",
"fixed25_metric": 0.6567223435328815,
"fixed25_actual_fraction": 0.3123670703003148,
"fixed25_rescue": 1366,
"fixed25_harm": 1817,
"rank25_metric": 0.662762669086578,
"validation_selection": 0.7576779815868999,
"best_epoch": 13,
"seconds": 44.9037389755249
},
{
"id": "formal_0072",
"tag": "baseline_100pct",
"task": "grefcoco",
"expert": "instancevg",
"endpoint": "MiniCPM",
"fraction": 1.0,
"student": "4M",
"branches": "hidden",
"fusion": "concat",
"target": "gain",
"strategy": "weighted",
"representation_dim": 512,
"hidden_layer": "query_generation__layer_01",
"fixed25_metric": 0.654765618353515,
"fixed25_actual_fraction": 0.33953435612398264,
"fixed25_rescue": 1510,
"fixed25_harm": 2030,
"rank25_metric": 0.6655985026798628,
"validation_selection": 0.7589219200224893,
"best_epoch": 3,
"seconds": 163.15981340408325
}
]
},
{
"key": [
"grefcoco",
"instancevg",
"Qwen3.8"
],
"rows": [
{
"id": "formal_0199",
"tag": "baseline_25pct",
"task": "grefcoco",
"expert": "instancevg",
"endpoint": "Qwen3.8",
"fraction": 0.25,
"student": "4M",
"branches": "output",
"fusion": "concat",
"target": "gain",
"strategy": "natural",
"representation_dim": 512,
"hidden_layer": "lateral_features__layer_01",
"fixed25_metric": 0.7098375067351048,
"fixed25_actual_fraction": 0.10637211808411083,
"fixed25_rescue": 1492,
"fixed25_harm": 70,
"rank25_metric": 0.7019538893457732,
"validation_selection": 0.7565746011666316,
"best_epoch": 1,
"seconds": 14.837297677993774
},
{
"id": "formal_0200",
"tag": "baseline_50pct",
"task": "grefcoco",
"expert": "instancevg",
"endpoint": "Qwen3.8",
"fraction": 0.5,
"student": "4M",
"branches": "output",
"fusion": "concat",
"target": "gain",
"strategy": "natural",
"representation_dim": 512,
"hidden_layer": "lateral_features__layer_01",
"fixed25_metric": 0.7416555596517597,
"fixed25_actual_fraction": 0.4823752942177353,
"fixed25_rescue": 3418,
"fixed25_harm": 874,
"rank25_metric": 0.7207838244051838,
"validation_selection": 0.8144985592803429,
"best_epoch": 1,
"seconds": 21.554462432861328
},
{
"id": "formal_0083",
"tag": "baseline_100pct",
"task": "grefcoco",
"expert": "instancevg",
"endpoint": "Qwen3.8",
"fraction": 1.0,
"student": "4M",
"branches": "output",
"fusion": "concat",
"target": "gain",
"strategy": "natural",
"representation_dim": 512,
"hidden_layer": "lateral_features__layer_01",
"fixed25_metric": 0.7090151149930523,
"fixed25_actual_fraction": 0.12330204463602076,
"fixed25_rescue": 1514,
"fixed25_harm": 121,
"rank25_metric": 0.7021523976973031,
"validation_selection": 0.7565746011666316,
"best_epoch": 1,
"seconds": 121.36263680458069
}
]
},
{
"key": [
"nlvr2",
"nlvr2",
"MiniCPM"
],
"rows": [
{
"id": "formal_0201",
"tag": "baseline_25pct",
"task": "nlvr2",
"expert": "nlvr2",
"endpoint": "MiniCPM",
"fraction": 0.25,
"student": "4M",
"branches": "hidden+confidence",
"fusion": "concat",
"target": "gain",
"strategy": "natural",
"representation_dim": 512,
"hidden_layer": "multimodal_encoder__layer_12",
"fixed25_metric": 0.863815742268781,
"fixed25_actual_fraction": 0.253928392049939,
"fixed25_rescue": 1100,
"fixed25_harm": 211,
"rank25_metric": 0.8630264762861448,
"validation_selection": 0.8331853337152678,
"best_epoch": 2,
"seconds": 11.065314054489136
},
{
"id": "formal_0202",
"tag": "baseline_50pct",
"task": "nlvr2",
"expert": "nlvr2",
"endpoint": "MiniCPM",
"fraction": 0.5,
"student": "4M",
"branches": "hidden+confidence",
"fusion": "concat",
"target": "gain",
"strategy": "natural",
"representation_dim": 512,
"hidden_layer": "multimodal_encoder__layer_12",
"fixed25_metric": 0.868336083805697,
"fixed25_actual_fraction": 0.24388318863456984,
"fixed25_rescue": 1152,
"fixed25_harm": 200,
"rank25_metric": 0.8689818468823993,
"validation_selection": 0.8330850759094816,
"best_epoch": 3,
"seconds": 16.297266960144043
},
{
"id": "formal_0091",
"tag": "baseline_100pct",
"task": "nlvr2",
"expert": "nlvr2",
"endpoint": "MiniCPM",
"fraction": 1.0,
"student": "4M",
"branches": "hidden+confidence",
"fusion": "concat",
"target": "gain",
"strategy": "natural",
"representation_dim": 512,
"hidden_layer": "multimodal_encoder__layer_12",
"fixed25_metric": 0.8707756332065725,
"fixed25_actual_fraction": 0.26117528879959817,
"fixed25_rescue": 1197,
"fixed25_harm": 211,
"rank25_metric": 0.8689100954294324,
"validation_selection": 0.8335577198510455,
"best_epoch": 6,
"seconds": 82.51407408714294
}
]
},
{
"key": [
"nlvr2",
"nlvr2",
"Qwen3.8"
],
"rows": [
{
"id": "formal_0203",
"tag": "baseline_25pct",
"task": "nlvr2",
"expert": "nlvr2",
"endpoint": "Qwen3.8",
"fraction": 0.25,
"student": "4M",
"branches": "output+confidence",
"fusion": "concat",
"target": "gain",
"strategy": "weighted",
"representation_dim": 512,
"hidden_layer": "multimodal_encoder__layer_10",
"fixed25_metric": 0.8717801535481093,
"fixed25_actual_fraction": 0.25299562316136903,
"fixed25_rescue": 1180,
"fixed25_harm": 180,
"rank25_metric": 0.8714213962832748,
"validation_selection": 0.8382268690919508,
"best_epoch": 3,
"seconds": 12.40796971321106
},
{
"id": "formal_0204",
"tag": "baseline_50pct",
"task": "nlvr2",
"expert": "nlvr2",
"endpoint": "Qwen3.8",
"fraction": 0.5,
"student": "4M",
"branches": "output+confidence",
"fusion": "concat",
"target": "gain",
"strategy": "weighted",
"representation_dim": 512,
"hidden_layer": "multimodal_encoder__layer_10",
"fixed25_metric": 0.872067159359977,
"fixed25_actual_fraction": 0.25407189495587285,
"fixed25_rescue": 1178,
"fixed25_harm": 174,
"rank25_metric": 0.8703451244887709,
"validation_selection": 0.8385276425093097,
"best_epoch": 11,
"seconds": 27.56421136856079
},
{
"id": "formal_0104",
"tag": "baseline_100pct",
"task": "nlvr2",
"expert": "nlvr2",
"endpoint": "Qwen3.8",
"fraction": 1.0,
"student": "4M",
"branches": "output+confidence",
"fusion": "concat",
"target": "gain",
"strategy": "weighted",
"representation_dim": 512,
"hidden_layer": "multimodal_encoder__layer_10",
"fixed25_metric": 0.8709191361125063,
"fixed25_actual_fraction": 0.25400014350290595,
"fixed25_rescue": 1153,
"fixed25_harm": 165,
"rank25_metric": 0.8695558585061347,
"validation_selection": 0.8383414494414207,
"best_epoch": 7,
"seconds": 91.79227209091187
}
]
},
{
"key": [
"nlvr2",
"vilt",
"MiniCPM"
],
"rows": [
{
"id": "formal_0209",
"tag": "baseline_25pct",
"task": "nlvr2",
"expert": "vilt",
"endpoint": "MiniCPM",
"fraction": 0.25,
"student": "8M",
"branches": "image+text+hidden+confidence",
"fusion": "attention",
"target": "four_state",
"strategy": "natural",
"representation_dim": 512,
"hidden_layer": "ordered_image_text__layer_12",
"fixed25_metric": 0.8323886058692689,
"fixed25_actual_fraction": 0.24072612470402527,
"fixed25_rescue": 1189,
"fixed25_harm": 239,
"rank25_metric": 0.8343258950993757,
"validation_selection": 0.7950730449727872,
"best_epoch": 4,
"seconds": 18.022375106811523
},
{
"id": "formal_0210",
"tag": "baseline_50pct",
"task": "nlvr2",
"expert": "vilt",
"endpoint": "MiniCPM",
"fraction": 0.5,
"student": "8M",
"branches": "image+text+hidden+confidence",
"fusion": "attention",
"target": "four_state",
"strategy": "natural",
"representation_dim": 512,
"hidden_layer": "ordered_image_text__layer_12",
"fixed25_metric": 0.8337518834756403,
"fixed25_actual_fraction": 0.24704025256511444,
"fixed25_rescue": 1213,
"fixed25_harm": 244,
"rank25_metric": 0.8344693980053096,
"validation_selection": 0.7959610426811802,
"best_epoch": 8,
"seconds": 38.606887102127075
},
{
"id": "formal_0139",
"tag": "baseline_100pct",
"task": "nlvr2",
"expert": "vilt",
"endpoint": "MiniCPM",
"fraction": 1.0,
"student": "8M",
"branches": "image+text+hidden+confidence",
"fusion": "attention",
"target": "four_state",
"strategy": "natural",
"representation_dim": 512,
"hidden_layer": "ordered_image_text__layer_12",
"fixed25_metric": 0.8327473631341035,
"fixed25_actual_fraction": 0.24208940231039677,
"fixed25_rescue": 1196,
"fixed25_harm": 241,
"rank25_metric": 0.8346846523642104,
"validation_selection": 0.7952162704096247,
"best_epoch": 3,
"seconds": 136.20692539215088
}
]
},
{
"key": [
"nlvr2",
"vilt",
"Qwen3.8"
],
"rows": [
{
"id": "formal_0211",
"tag": "baseline_25pct",
"task": "nlvr2",
"expert": "vilt",
"endpoint": "Qwen3.8",
"fraction": 0.25,
"student": "2M",
"branches": "image+text+hidden+confidence",
"fusion": "concat",
"target": "gain",
"strategy": "weighted",
"representation_dim": 512,
"hidden_layer": "ordered_image_text__layer_10",
"fixed25_metric": 0.8336083805697065,
"fixed25_actual_fraction": 0.24431369735237138,
"fixed25_rescue": 1234,
"fixed25_harm": 267,
"rank25_metric": 0.8346846523642104,
"validation_selection": 0.7945717559438557,
"best_epoch": 2,
"seconds": 12.189603567123413
},
{
"id": "formal_0212",
"tag": "baseline_50pct",
"task": "nlvr2",
"expert": "vilt",
"endpoint": "Qwen3.8",
"fraction": 0.5,
"student": "2M",
"branches": "image+text+hidden+confidence",
"fusion": "concat",
"target": "gain",
"strategy": "weighted",
"representation_dim": 512,
"hidden_layer": "ordered_image_text__layer_10",
"fixed25_metric": 0.8308818253569635,
"fixed25_actual_fraction": 0.2361340317141422,
"fixed25_rescue": 1178,
"fixed25_harm": 249,
"rank25_metric": 0.834110640740475,
"validation_selection": 0.7955027212832999,
"best_epoch": 3,
"seconds": 18.873005151748657
},
{
"id": "formal_0154",
"tag": "baseline_100pct",
"task": "nlvr2",
"expert": "vilt",
"endpoint": "Qwen3.8",
"fraction": 1.0,
"student": "2M",
"branches": "image+text+hidden+confidence",
"fusion": "concat",
"target": "gain",
"strategy": "weighted",
"representation_dim": 512,
"hidden_layer": "ordered_image_text__layer_10",
"fixed25_metric": 0.8329626174930043,
"fixed25_actual_fraction": 0.24094137906292604,
"fixed25_rescue": 1225,
"fixed25_harm": 267,
"rank25_metric": 0.8348281552701442,
"validation_selection": 0.7948438842738471,
"best_epoch": 2,
"seconds": 78.18392181396484
}
]
},
{
"key": [
"construction",
"yolo26x",
"MiniCPM"
],
"rows": [
{
"id": "formal_0213",
"tag": "baseline_25pct",
"task": "construction",
"expert": "yolo26x",
"endpoint": "MiniCPM",
"fraction": 0.25,
"student": "4M",
"branches": "output",
"fusion": "concat",
"target": "gain",
"strategy": "weighted",
"representation_dim": 512,
"hidden_layer": "feature_blocks__layer_14",
"fixed25_metric": 0.2225771535665814,
"fixed25_actual_fraction": 0.18342210386151797,
"fixed25_rescue": 608,
"fixed25_harm": 265,
"rank25_metric": 0.22250151381741792,
"validation_selection": 0.245059255252362,
"best_epoch": 2,
"seconds": 2.557858467102051
},
{
"id": "formal_0214",
"tag": "baseline_50pct",
"task": "construction",
"expert": "yolo26x",
"endpoint": "MiniCPM",
"fraction": 0.5,
"student": "4M",
"branches": "output",
"fusion": "concat",
"target": "gain",
"strategy": "weighted",
"representation_dim": 512,
"hidden_layer": "feature_blocks__layer_14",
"fixed25_metric": 0.2225771535665814,
"fixed25_actual_fraction": 0.18342210386151797,
"fixed25_rescue": 608,
"fixed25_harm": 265,
"rank25_metric": 0.22250151381741792,
"validation_selection": 0.2411747600492345,
"best_epoch": 1,
"seconds": 3.123697280883789
},
{
"id": "formal_0169",
"tag": "baseline_100pct",
"task": "construction",
"expert": "yolo26x",
"endpoint": "MiniCPM",
"fraction": 1.0,
"student": "4M",
"branches": "output",
"fusion": "concat",
"target": "gain",
"strategy": "weighted",
"representation_dim": 512,
"hidden_layer": "feature_blocks__layer_14",
"fixed25_metric": 0.22276943862299337,
"fixed25_actual_fraction": 0.18874833555259654,
"fixed25_rescue": 614,
"fixed25_harm": 271,
"rank25_metric": 0.22272342953859628,
"validation_selection": 0.23173775721145673,
"best_epoch": 4,
"seconds": 9.216264009475708
}
]
},
{
"key": [
"construction",
"yolo26x",
"Qwen3.8"
],
"rows": [
{
"id": "formal_0215",
"tag": "baseline_25pct",
"task": "construction",
"expert": "yolo26x",
"endpoint": "Qwen3.8",
"fraction": 0.25,
"student": "4M",
"branches": "output",
"fusion": "concat",
"target": "gain",
"strategy": "weighted",
"representation_dim": 512,
"hidden_layer": "feature_blocks__layer_14",
"fixed25_metric": 0.2503793990148833,
"fixed25_actual_fraction": 0.18342210386151797,
"fixed25_rescue": 653,
"fixed25_harm": 116,
"rank25_metric": 0.26327645391521537,
"validation_selection": 0.2490976644605033,
"best_epoch": 7,
"seconds": 3.354280948638916
},
{
"id": "formal_0216",
"tag": "baseline_50pct",
"task": "construction",
"expert": "yolo26x",
"endpoint": "Qwen3.8",
"fraction": 0.5,
"student": "4M",
"branches": "output",
"fusion": "concat",
"target": "gain",
"strategy": "weighted",
"representation_dim": 512,
"hidden_layer": "feature_blocks__layer_14",
"fixed25_metric": 0.2503793990148833,
"fixed25_actual_fraction": 0.18342210386151797,
"fixed25_rescue": 653,
"fixed25_harm": 116,
"rank25_metric": 0.26327645391521537,
"validation_selection": 0.2490976644605033,
"best_epoch": 14,
"seconds": 4.801910877227783
},
{
"id": "formal_0177",
"tag": "baseline_100pct",
"task": "construction",
"expert": "yolo26x",
"endpoint": "Qwen3.8",
"fraction": 1.0,
"student": "4M",
"branches": "output",
"fusion": "concat",
"target": "gain",
"strategy": "weighted",
"representation_dim": 512,
"hidden_layer": "feature_blocks__layer_14",
"fixed25_metric": 0.2503793990148833,
"fixed25_actual_fraction": 0.18342210386151797,
"fixed25_rescue": 653,
"fixed25_harm": 116,
"rank25_metric": 0.26327645391521537,
"validation_selection": 0.24929743985848513,
"best_epoch": 13,
"seconds": 11.173577785491943
}
]
},
{
"key": [
"construction",
"rtdetr_x_fp32",
"MiniCPM"
],
"rows": [
{
"id": "formal_0205",
"tag": "baseline_25pct",
"task": "construction",
"expert": "rtdetr_x_fp32",
"endpoint": "MiniCPM",
"fraction": 0.25,
"student": "4M",
"branches": "image+text+hidden+confidence",
"fusion": "concat",
"target": "gain",
"strategy": "weighted",
"representation_dim": 512,
"hidden_layer": "query_decoder__layer_04",
"fixed25_metric": 0.12161748372078302,
"fixed25_actual_fraction": 0.26897470039946736,
"fixed25_rescue": 1103,
"fixed25_harm": 518,
"rank25_metric": 0.12103479129839005,
"validation_selection": 0.13942018347651794,
"best_epoch": 1,
"seconds": 3.9248127937316895
},
{
"id": "formal_0206",
"tag": "baseline_50pct",
"task": "construction",
"expert": "rtdetr_x_fp32",
"endpoint": "MiniCPM",
"fraction": 0.5,
"student": "4M",
"branches": "image+text+hidden+confidence",
"fusion": "concat",
"target": "gain",
"strategy": "weighted",
"representation_dim": 512,
"hidden_layer": "query_decoder__layer_04",
"fixed25_metric": 0.11138731664705415,
"fixed25_actual_fraction": 0.25798934753661784,
"fixed25_rescue": 1337,
"fixed25_harm": 464,
"rank25_metric": 0.11157434949576527,
"validation_selection": 0.10286119045745137,
"best_epoch": 3,
"seconds": 5.573187828063965
},
{
"id": "formal_0114",
"tag": "baseline_100pct",
"task": "construction",
"expert": "rtdetr_x_fp32",
"endpoint": "MiniCPM",
"fraction": 1.0,
"student": "4M",
"branches": "image+text+hidden+confidence",
"fusion": "concat",
"target": "gain",
"strategy": "weighted",
"representation_dim": 512,
"hidden_layer": "query_decoder__layer_04",
"fixed25_metric": 0.11409050364241882,
"fixed25_actual_fraction": 0.2333555259653795,
"fixed25_rescue": 1155,
"fixed25_harm": 428,
"rank25_metric": 0.1142018021781044,
"validation_selection": 0.09196748903785351,
"best_epoch": 1,
"seconds": 7.1226747035980225
}
]
},
{
"key": [
"construction",
"rtdetr_x_fp32",
"Qwen3.8"
],
"rows": [
{
"id": "formal_0207",
"tag": "baseline_25pct",
"task": "construction",
"expert": "rtdetr_x_fp32",
"endpoint": "Qwen3.8",
"fraction": 0.25,
"student": "4M",
"branches": "hidden",
"fusion": "concat",
"target": "error",
"strategy": "balanced",
"representation_dim": 512,
"hidden_layer": "feature_blocks__layer_11",
"fixed25_metric": 0.14471609214350373,
"fixed25_actual_fraction": 0.2892809587217044,
"fixed25_rescue": 1383,
"fixed25_harm": 258,
"rank25_metric": 0.14346432207238047,
"validation_selection": 0.16233096000534752,
"best_epoch": 17,
"seconds": 8.028136253356934
},
{
"id": "formal_0208",
"tag": "baseline_50pct",
"task": "construction",
"expert": "rtdetr_x_fp32",
"endpoint": "Qwen3.8",
"fraction": 0.5,
"student": "4M",
"branches": "hidden",
"fusion": "concat",
"target": "error",
"strategy": "balanced",
"representation_dim": 512,
"hidden_layer": "feature_blocks__layer_11",
"fixed25_metric": 0.1499641421353766,
"fixed25_actual_fraction": 0.26797603195739017,
"fixed25_rescue": 1348,
"fixed25_harm": 225,
"rank25_metric": 0.14991013725904712,
"validation_selection": 0.14960536227871302,
"best_epoch": 14,
"seconds": 7.761091709136963
},
{
"id": "formal_0129",
"tag": "baseline_100pct",
"task": "construction",
"expert": "rtdetr_x_fp32",
"endpoint": "Qwen3.8",
"fraction": 1.0,
"student": "4M",
"branches": "hidden",
"fusion": "concat",
"target": "error",
"strategy": "balanced",
"representation_dim": 512,
"hidden_layer": "feature_blocks__layer_11",
"fixed25_metric": 0.1498069310931111,
"fixed25_actual_fraction": 0.2539946737683089,
"fixed25_rescue": 1284,
"fixed25_harm": 203,
"rank25_metric": 0.15030144907600507,
"validation_selection": 0.14151521056562297,
"best_epoch": 16,
"seconds": 13.48578929901123
}
]
}
]123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720{ "status": "search_complete", "started_at": 1789041525.1799183, "completed_stages": [ "hidden_percent", "student", "representation_dim", "lr", "target", "strategy" ], "selected": "shared_12", "candidates": [ { "id": "shared_00", "settings": { "student": "4M", "representation_dim": 512, "lr": 0.001, "target": "four_state", "strategy": "natural", "hidden_percent": 90 }, "runs": [ "shared_00_cub_MiniCPM", "shared_00_cub_Qwen3.8", "shared_00_glsim_MiniCPM", "shared_00_glsim_Qwen3.8", "shared_00_groundingdino_MiniCPM", "shared_00_groundingdino_Qwen3.8", "shared_00_instancevg_MiniCPM", "shared_00_instancevg_Qwen3.8", "shared_00_nlvr2_MiniCPM", "shared_00_nlvr2_Qwen3.8", "shared_00_vilt_MiniCPM", "shared_00_vilt_Qwen3.8", "shared_00_yolo26x_MiniCPM", "shared_00_yolo26x_Qwen3.8", "shared_00_rtdetr_x_fp32_MiniCPM", "shared_00_rtdetr_x_fp32_Qwen3.8" ], "status": "complete", "task_means": { "cub": 0.9498541666666667, "grefcoco": 0.7090097687820648, "nlvr2": 0.8164207963334288, "construction": 0.175986962717605 }, "validation_mean": 0.6628179236249413, "mean_active_parameters": 4881924.0, "mean_fit_seconds": 37.63353890167855 }, { "id": "shared_01", "settings": { "student": "4M", "representation_dim": 512, "lr": 0.001, "target": "four_state", "strategy": "natural", "hidden_percent": 30 }, "runs": [ "shared_01_cub_MiniCPM", "shared_01_cub_Qwen3.8", "shared_01_glsim_MiniCPM", "shared_01_glsim_Qwen3.8", "shared_01_groundingdino_MiniCPM", "shared_01_groundingdino_Qwen3.8", "shared_01_instancevg_MiniCPM", "shared_01_instancevg_Qwen3.8", "shared_01_nlvr2_MiniCPM", "shared_01_nlvr2_Qwen3.8", "shared_01_vilt_MiniCPM", "shared_01_vilt_Qwen3.8", "shared_01_yolo26x_MiniCPM", "shared_01_yolo26x_Qwen3.8", "shared_01_rtdetr_x_fp32_MiniCPM", "shared_01_rtdetr_x_fp32_Qwen3.8" ], "status": "complete", "task_means": { "cub": 0.9346041666666667, "grefcoco": 0.7090431513107035, "nlvr2": 0.8157691205958177, "construction": 0.18298715773892013 }, "validation_mean": 0.660600899078027, "mean_active_parameters": 4783620.0, "mean_fit_seconds": 39.49221354418114 }, { "id": "shared_02", "settings": { "student": "4M", "representation_dim": 512, "lr": 0.001, "target": "four_state", "strategy": "natural", "hidden_percent": 60 }, "runs": [ "shared_02_cub_MiniCPM", "shared_02_cub_Qwen3.8", "shared_02_glsim_MiniCPM", "shared_02_glsim_Qwen3.8", "shared_02_groundingdino_MiniCPM", "shared_02_groundingdino_Qwen3.8", "shared_02_instancevg_MiniCPM", "shared_02_instancevg_Qwen3.8", "shared_02_nlvr2_MiniCPM", "shared_02_nlvr2_Qwen3.8", "shared_02_vilt_MiniCPM", "shared_02_vilt_Qwen3.8", "shared_02_yolo26x_MiniCPM", "shared_02_yolo26x_Qwen3.8", "shared_02_rtdetr_x_fp32_MiniCPM", "shared_02_rtdetr_x_fp32_Qwen3.8" ], "status": "complete", "task_means": { "cub": 0.9472291666666667, "grefcoco": 0.708183990442055, "nlvr2": 0.8155900887997709, "construction": 0.1758169352446146 }, "validation_mean": 0.6617050452882768, "mean_active_parameters": 4816388.0, "mean_fit_seconds": 34.18548409075447 }, { "id": "shared_03", "settings": { "student": "1M", "representation_dim": 512, "lr": 0.001, "target": "four_state", "strategy": "natural", "hidden_percent": 90 }, "runs": [ "shared_03_cub_MiniCPM", "shared_03_cub_Qwen3.8", "shared_03_glsim_MiniCPM", "shared_03_glsim_Qwen3.8", "shared_03_groundingdino_MiniCPM", "shared_03_groundingdino_Qwen3.8", "shared_03_instancevg_MiniCPM", "shared_03_instancevg_Qwen3.8", "shared_03_nlvr2_MiniCPM", "shared_03_nlvr2_Qwen3.8", "shared_03_vilt_MiniCPM", "shared_03_vilt_Qwen3.8", "shared_03_yolo26x_MiniCPM", "shared_03_yolo26x_Qwen3.8", "shared_03_rtdetr_x_fp32_MiniCPM", "shared_03_rtdetr_x_fp32_Qwen3.8" ], "status": "complete", "task_means": { "cub": 0.9559375, "grefcoco": 0.7093348091924943, "nlvr2": 0.8166929246634202, "construction": 0.173092415345378 }, "validation_mean": 0.6637644123003231, "mean_active_parameters": 2615822.0, "mean_fit_seconds": 57.72181743498368 }, { "id": "shared_04", "settings": { "student": "2M", "representation_dim": 512, "lr": 0.001, "target": "four_state", "strategy": "natural", "hidden_percent": 90 }, "runs": [ "shared_04_cub_MiniCPM", "shared_04_cub_Qwen3.8", "shared_04_glsim_MiniCPM", "shared_04_glsim_Qwen3.8", "shared_04_groundingdino_MiniCPM", "shared_04_groundingdino_Qwen3.8", "shared_04_instancevg_MiniCPM", "shared_04_instancevg_Qwen3.8", "shared_04_nlvr2_MiniCPM", "shared_04_nlvr2_Qwen3.8", "shared_04_vilt_MiniCPM", "shared_04_vilt_Qwen3.8", "shared_04_yolo26x_MiniCPM", "shared_04_yolo26x_Qwen3.8", "shared_04_rtdetr_x_fp32_MiniCPM", "shared_04_rtdetr_x_fp32_Qwen3.8" ], "status": "complete", "task_means": { "cub": 0.9448958333333333, "grefcoco": 0.7087286527514232, "nlvr2": 0.8167144084789458, "construction": 0.1764152469711854 }, "validation_mean": 0.661688535383722, "mean_active_parameters": 3402222.0, "mean_fit_seconds": 57.64163886100141 }, { "id": "shared_05", "settings": { "student": "8M", "representation_dim": 512, "lr": 0.001, "target": "four_state", "strategy": "natural", "hidden_percent": 90 }, "runs": [ "shared_05_cub_MiniCPM", "shared_05_cub_Qwen3.8", "shared_05_glsim_MiniCPM", "shared_05_glsim_Qwen3.8", "shared_05_groundingdino_MiniCPM", "shared_05_groundingdino_Qwen3.8", "shared_05_instancevg_MiniCPM", "shared_05_instancevg_Qwen3.8", "shared_05_nlvr2_MiniCPM", "shared_05_nlvr2_Qwen3.8", "shared_05_vilt_MiniCPM", "shared_05_vilt_Qwen3.8", "shared_05_yolo26x_MiniCPM", "shared_05_yolo26x_Qwen3.8", "shared_05_rtdetr_x_fp32_MiniCPM", "shared_05_rtdetr_x_fp32_Qwen3.8" ], "status": "complete", "task_means": { "cub": 0.9542916666666666, "grefcoco": 0.7095351043643263, "nlvr2": 0.8168110856488112, "construction": 0.17955466204144832 }, "validation_mean": 0.6650481296803131, "mean_active_parameters": 7994758.0, "mean_fit_seconds": 46.836150376082514 }, { "id": "shared_06", "settings": { "student": "8M", "representation_dim": 32, "lr": 0.001, "target": "four_state", "strategy": "natural", "hidden_percent": 90 }, "runs": [ "shared_06_cub_MiniCPM", "shared_06_cub_Qwen3.8", "shared_06_glsim_MiniCPM", "shared_06_glsim_Qwen3.8", "shared_06_groundingdino_MiniCPM", "shared_06_groundingdino_Qwen3.8", "shared_06_instancevg_MiniCPM", "shared_06_instancevg_Qwen3.8", "shared_06_nlvr2_MiniCPM", "shared_06_nlvr2_Qwen3.8", "shared_06_vilt_MiniCPM", "shared_06_vilt_Qwen3.8", "shared_06_yolo26x_MiniCPM", "shared_06_yolo26x_Qwen3.8", "shared_06_rtdetr_x_fp32_MiniCPM", "shared_06_rtdetr_x_fp32_Qwen3.8" ], "status": "complete", "task_means": { "cub": 0.966125, "grefcoco": 0.7070665542202544, "nlvr2": 0.8169149240905185, "construction": 0.17258963439949287 }, "validation_mean": 0.6656740281775665, "mean_active_parameters": 6222718.0, "mean_fit_seconds": 63.611915712936025 }, { "id": "shared_07", "settings": { "student": "8M", "representation_dim": 64, "lr": 0.001, "target": "four_state", "strategy": "natural", "hidden_percent": 90 }, "runs": [ "shared_07_cub_MiniCPM", "shared_07_cub_Qwen3.8", "shared_07_glsim_MiniCPM", "shared_07_glsim_Qwen3.8", "shared_07_groundingdino_MiniCPM", "shared_07_groundingdino_Qwen3.8", "shared_07_instancevg_MiniCPM", "shared_07_instancevg_Qwen3.8", "shared_07_nlvr2_MiniCPM", "shared_07_nlvr2_Qwen3.8", "shared_07_vilt_MiniCPM", "shared_07_vilt_Qwen3.8", "shared_07_yolo26x_MiniCPM", "shared_07_yolo26x_Qwen3.8", "shared_07_rtdetr_x_fp32_MiniCPM", "shared_07_rtdetr_x_fp32_Qwen3.8" ], "status": "complete", "task_means": { "cub": 0.9693333333333334, "grefcoco": 0.7083755007379295, "nlvr2": 0.8167716986536809, "construction": 0.17603867039292925 }, "validation_mean": 0.6676298007794683, "mean_active_parameters": 6340854.0, "mean_fit_seconds": 62.082761554156605 }, { "id": "shared_08", "settings": { "student": "8M", "representation_dim": 128, "lr": 0.001, "target": "four_state", "strategy": "natural", "hidden_percent": 90 }, "runs": [ "shared_08_cub_MiniCPM", "shared_08_cub_Qwen3.8", "shared_08_glsim_MiniCPM", "shared_08_glsim_Qwen3.8", "shared_08_groundingdino_MiniCPM", "shared_08_groundingdino_Qwen3.8", "shared_08_instancevg_MiniCPM", "shared_08_instancevg_Qwen3.8", "shared_08_nlvr2_MiniCPM", "shared_08_nlvr2_Qwen3.8", "shared_08_vilt_MiniCPM", "shared_08_vilt_Qwen3.8", "shared_08_yolo26x_MiniCPM", "shared_08_yolo26x_Qwen3.8", "shared_08_rtdetr_x_fp32_MiniCPM", "shared_08_rtdetr_x_fp32_Qwen3.8" ], "status": "complete", "task_means": { "cub": 0.9704166666666667, "grefcoco": 0.7082156159955021, "nlvr2": 0.8169006015468347, "construction": 0.17553875298671762 }, "validation_mean": 0.6677679092989303, "mean_active_parameters": 6577126.0, "mean_fit_seconds": 58.37819891100662 }, { "id": "shared_09", "settings": { "student": "8M", "representation_dim": 256, "lr": 0.001, "target": "four_state", "strategy": "natural", "hidden_percent": 90 }, "runs": [ "shared_09_cub_MiniCPM", "shared_09_cub_Qwen3.8", "shared_09_glsim_MiniCPM", "shared_09_glsim_Qwen3.8", "shared_09_groundingdino_MiniCPM", "shared_09_groundingdino_Qwen3.8", "shared_09_instancevg_MiniCPM", "shared_09_instancevg_Qwen3.8", "shared_09_nlvr2_MiniCPM", "shared_09_nlvr2_Qwen3.8", "shared_09_vilt_MiniCPM", "shared_09_vilt_Qwen3.8", "shared_09_yolo26x_MiniCPM", "shared_09_yolo26x_Qwen3.8", "shared_09_rtdetr_x_fp32_MiniCPM", "shared_09_rtdetr_x_fp32_Qwen3.8" ], "status": "complete", "task_means": { "cub": 0.9678541666666667, "grefcoco": 0.7090659919881931, "nlvr2": 0.8167609567459181, "construction": 0.17265650809871438 }, "validation_mean": 0.6665844058748731, "mean_active_parameters": 7049670.0, "mean_fit_seconds": 50.47316628225235 }, { "id": "shared_10", "settings": { "student": "8M", "representation_dim": 128, "lr": 0.0001, "target": "four_state", "strategy": "natural", "hidden_percent": 90 }, "runs": [ "shared_10_cub_MiniCPM", "shared_10_cub_Qwen3.8", "shared_10_glsim_MiniCPM", "shared_10_glsim_Qwen3.8", "shared_10_groundingdino_MiniCPM", "shared_10_groundingdino_Qwen3.8", "shared_10_instancevg_MiniCPM", "shared_10_instancevg_Qwen3.8", "shared_10_nlvr2_MiniCPM", "shared_10_nlvr2_Qwen3.8", "shared_10_vilt_MiniCPM", "shared_10_vilt_Qwen3.8", "shared_10_yolo26x_MiniCPM", "shared_10_yolo26x_Qwen3.8", "shared_10_rtdetr_x_fp32_MiniCPM", "shared_10_rtdetr_x_fp32_Qwen3.8" ], "status": "complete", "task_means": { "cub": 0.9694166666666667, "grefcoco": 0.7047965422728231, "nlvr2": 0.8161844743626469, "construction": 0.17403212405686308 }, "validation_mean": 0.66610745183975, "mean_active_parameters": 6577126.0, "mean_fit_seconds": 91.61671701988234 }, { "id": "shared_11", "settings": { "student": "8M", "representation_dim": 128, "lr": 0.0003, "target": "four_state", "strategy": "natural", "hidden_percent": 90 }, "runs": [ "shared_11_cub_MiniCPM", "shared_11_cub_Qwen3.8", "shared_11_glsim_MiniCPM", "shared_11_glsim_Qwen3.8", "shared_11_groundingdino_MiniCPM", "shared_11_groundingdino_Qwen3.8", "shared_11_instancevg_MiniCPM", "shared_11_instancevg_Qwen3.8", "shared_11_nlvr2_MiniCPM", "shared_11_nlvr2_Qwen3.8", "shared_11_vilt_MiniCPM", "shared_11_vilt_Qwen3.8", "shared_11_yolo26x_MiniCPM", "shared_11_yolo26x_Qwen3.8", "shared_11_rtdetr_x_fp32_MiniCPM", "shared_11_rtdetr_x_fp32_Qwen3.8" ], "status": "complete", "task_means": { "cub": 0.9692083333333333, "grefcoco": 0.7071210204511913, "nlvr2": 0.8166034087653967, "construction": 0.17173346213113433 }, "validation_mean": 0.6661665561702639, "mean_active_parameters": 6577126.0, "mean_fit_seconds": 75.3759171601705 }, { "id": "shared_12", "settings": { "student": "8M", "representation_dim": 128, "lr": 0.003, "target": "four_state", "strategy": "natural", "hidden_percent": 90 }, "runs": [ "shared_12_cub_MiniCPM", "shared_12_cub_Qwen3.8", "shared_12_glsim_MiniCPM", "shared_12_glsim_Qwen3.8", "shared_12_groundingdino_MiniCPM", "shared_12_groundingdino_Qwen3.8", "shared_12_instancevg_MiniCPM", "shared_12_instancevg_Qwen3.8", "shared_12_nlvr2_MiniCPM", "shared_12_nlvr2_Qwen3.8", "shared_12_vilt_MiniCPM", "shared_12_vilt_Qwen3.8", "shared_12_yolo26x_MiniCPM", "shared_12_yolo26x_Qwen3.8", "shared_12_rtdetr_x_fp32_MiniCPM", "shared_12_rtdetr_x_fp32_Qwen3.8" ], "status": "complete", "task_means": { "cub": 0.9698125, "grefcoco": 0.7082964368543117, "nlvr2": 0.8164959896877686, "construction": 0.1768778191883302 }, "validation_mean": 0.6678706864326026, "mean_active_parameters": 6577126.0, "mean_fit_seconds": 67.41994623254868 }, { "id": "shared_13", "settings": { "student": "8M", "representation_dim": 128, "lr": 0.01, "target": "four_state", "strategy": "natural", "hidden_percent": 90 }, "runs": [ "shared_13_cub_MiniCPM", "shared_13_cub_Qwen3.8", "shared_13_glsim_MiniCPM", "shared_13_glsim_Qwen3.8", "shared_13_groundingdino_MiniCPM", "shared_13_groundingdino_Qwen3.8", "shared_13_instancevg_MiniCPM", "shared_13_instancevg_Qwen3.8", "shared_13_nlvr2_MiniCPM", "shared_13_nlvr2_Qwen3.8", "shared_13_vilt_MiniCPM", "shared_13_vilt_Qwen3.8", "shared_13_yolo26x_MiniCPM", "shared_13_yolo26x_Qwen3.8", "shared_13_rtdetr_x_fp32_MiniCPM", "shared_13_rtdetr_x_fp32_Qwen3.8" ], "status": "complete", "task_means": { "cub": 0.9509375, "grefcoco": 0.7100024597652681, "nlvr2": 0.8169936980807792, "construction": 0.17572600052962756 }, "validation_mean": 0.6634149145939187, "mean_active_parameters": 6577126.0, "mean_fit_seconds": 58.952753572441 }, { "id": "shared_14", "settings": { "student": "8M", "representation_dim": 128, "lr": 0.003, "target": "gain", "strategy": "natural", "hidden_percent": 90 }, "runs": [ "shared_14_cub_MiniCPM", "shared_14_cub_Qwen3.8", "shared_14_glsim_MiniCPM", "shared_14_glsim_Qwen3.8", "shared_14_groundingdino_MiniCPM", "shared_14_groundingdino_Qwen3.8", "shared_14_instancevg_MiniCPM", "shared_14_instancevg_Qwen3.8", "shared_14_nlvr2_MiniCPM", "shared_14_nlvr2_Qwen3.8", "shared_14_vilt_MiniCPM", "shared_14_vilt_Qwen3.8", "shared_14_yolo26x_MiniCPM", "shared_14_yolo26x_Qwen3.8", "shared_14_rtdetr_x_fp32_MiniCPM", "shared_14_rtdetr_x_fp32_Qwen3.8" ], "status": "complete", "task_means": { "cub": 0.97975, "grefcoco": 0.6943653805608265, "nlvr2": 0.815819249498711, "construction": 0.17119724948093312 }, "validation_mean": 0.6652829698851177, "mean_active_parameters": 6576739.0, "mean_fit_seconds": 46.42365771972982 }, { "id": "shared_15", "settings": { "student": "8M", "representation_dim": 128, "lr": 0.003, "target": "error", "strategy": "natural", "hidden_percent": 90 }, "runs": [ "shared_15_cub_MiniCPM", "shared_15_cub_Qwen3.8", "shared_15_glsim_MiniCPM", "shared_15_glsim_Qwen3.8", "shared_15_groundingdino_MiniCPM", "shared_15_groundingdino_Qwen3.8", "shared_15_instancevg_MiniCPM", "shared_15_instancevg_Qwen3.8", "shared_15_nlvr2_MiniCPM", "shared_15_nlvr2_Qwen3.8", "shared_15_vilt_MiniCPM", "shared_15_vilt_Qwen3.8", "shared_15_yolo26x_MiniCPM", "shared_15_yolo26x_Qwen3.8", "shared_15_rtdetr_x_fp32_MiniCPM", "shared_15_rtdetr_x_fp32_Qwen3.8" ], "status": "complete", "task_means": { "cub": 0.9172083333333333, "grefcoco": 0.707660411834985, "nlvr2": 0.8152570896591235, "construction": 0.17163397920287538 }, "validation_mean": 0.6529399535075793, "mean_active_parameters": 6576739.0, "mean_fit_seconds": 39.98559669695533 }, { "id": "shared_16", "settings": { "student": "8M", "representation_dim": 128, "lr": 0.003, "target": "four_state", "strategy": "weighted", "hidden_percent": 90 }, "runs": [ "shared_16_cub_MiniCPM", "shared_16_cub_Qwen3.8", "shared_16_glsim_MiniCPM", "shared_16_glsim_Qwen3.8", "shared_16_groundingdino_MiniCPM", "shared_16_groundingdino_Qwen3.8", "shared_16_instancevg_MiniCPM", "shared_16_instancevg_Qwen3.8", "shared_16_nlvr2_MiniCPM", "shared_16_nlvr2_Qwen3.8", "shared_16_vilt_MiniCPM", "shared_16_vilt_Qwen3.8", "shared_16_yolo26x_MiniCPM", "shared_16_yolo26x_Qwen3.8", "shared_16_rtdetr_x_fp32_MiniCPM", "shared_16_rtdetr_x_fp32_Qwen3.8" ], "status": "complete", "task_means": { "cub": 0.958625, "grefcoco": 0.7108879752617893, "nlvr2": 0.8163420223431682, "construction": 0.17381623998937223 }, "validation_mean": 0.6649178093985824, "mean_active_parameters": 6577126.0, "mean_fit_seconds": 39.95715373130224 }, { "id": "shared_17", "settings": { "student": "8M", "representation_dim": 128, "lr": 0.003, "target": "four_state", "strategy": "balanced", "hidden_percent": 90 }, "runs": [ "shared_17_cub_MiniCPM", "shared_17_cub_Qwen3.8", "shared_17_glsim_MiniCPM", "shared_17_glsim_Qwen3.8", "shared_17_groundingdino_MiniCPM", "shared_17_groundingdino_Qwen3.8", "shared_17_instancevg_MiniCPM", "shared_17_instancevg_Qwen3.8", "shared_17_nlvr2_MiniCPM", "shared_17_nlvr2_Qwen3.8", "shared_17_vilt_MiniCPM", "shared_17_vilt_Qwen3.8", "shared_17_yolo26x_MiniCPM", "shared_17_yolo26x_Qwen3.8", "shared_17_rtdetr_x_fp32_MiniCPM", "shared_17_rtdetr_x_fp32_Qwen3.8" ], "status": "complete", "task_means": { "cub": 0.9554583333333334, "grefcoco": 0.7062583456321596, "nlvr2": 0.8156903466055572, "construction": 0.17510649266382114 }, "validation_mean": 0.6631283795587178, "mean_active_parameters": 6577126.0, "mean_fit_seconds": 35.547329766683106 } ], "failures": [], "test_loaded": false, "finished_at": 1789043234.371715}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443{
"counts": {
"better_metric": 11,
"fewer_calls": 15,
"both": 10,
"above_endpoints": 5,
"better_ranked_area": 15
},
"rows": [
{
"key": [
"cub",
"cub",
"MiniCPM"
],
"validation": {
"spec": 98.58333333333333,
"vlm": 27.750000000000004,
"conf": 98.5,
"call_conf": 1.0,
"learned": 98.58333333333333,
"call_learned": 1.0,
"change_pp": 0.0,
"metric_change_pp": 0.08333333333333526
},
"test": {
"spec": 81.429064549534,
"vlm": 26.561960648947185,
"conf": 79.9275112185019,
"call_conf": 11.3565757680359,
"learned": 81.37728684846392,
"call_learned": 2.8822920262340355,
"change_pp": -8.474283741801864,
"metric_change_pp": 1.4497756299620246
}
},
{
"key": [
"cub",
"cub",
"Qwen3.8"
],
"validation": {
"spec": 98.58333333333333,
"vlm": 55.08333333333333,
"conf": 98.25,
"call_conf": 1.0,
"learned": 98.58333333333333,
"call_learned": 1.0,
"change_pp": 0.0,
"metric_change_pp": 0.33333333333332993
},
"test": {
"spec": 81.429064549534,
"vlm": 54.81532619951675,
"conf": 81.58439765274423,
"call_conf": 11.3565757680359,
"learned": 81.34276838108389,
"call_learned": 1.4325163962720056,
"change_pp": -9.924059371763894,
"metric_change_pp": -0.24162927166033743
}
},
{
"key": [
"cub",
"glsim",
"MiniCPM"
],
"validation": {
"spec": 98.91666666666666,
"vlm": 27.750000000000004,
"conf": 98.5,
"call_conf": 1.0,
"learned": 99.0,
"call_learned": 3.0,
"change_pp": 1.9999999999999998,
"metric_change_pp": 0.5000000000000004
},
"test": {
"spec": 90.16223679668623,
"vlm": 26.561960648947185,
"conf": 87.69416637901277,
"call_conf": 8.698653779772178,
"learned": 89.79979288919571,
"call_learned": 4.487400759406282,
"change_pp": -4.211253020365896,
"metric_change_pp": 2.105626510182945
}
},
{
"key": [
"cub",
"glsim",
"Qwen3.8"
],
"validation": {
"spec": 98.91666666666666,
"vlm": 55.08333333333333,
"conf": 98.58333333333333,
"call_conf": 1.0,
"learned": 98.83333333333333,
"call_learned": 1.0,
"change_pp": 0.0,
"metric_change_pp": 0.24999999999999467
},
"test": {
"spec": 90.16223679668623,
"vlm": 54.81532619951675,
"conf": 88.78149810148429,
"call_conf": 8.698653779772178,
"learned": 90.05868139454608,
"call_learned": 1.6568864342423197,
"change_pp": -7.041767345529859,
"metric_change_pp": 1.27718329306179
}
},
{
"key": [
"grefcoco",
"groundingdino",
"MiniCPM"
],
"validation": {
"spec": 56.05453650994448,
"vlm": 64.12256658935975,
"conf": 63.72197624569541,
"call_conf": 98.99501019045611,
"learned": 68.00899571298054,
"call_learned": 33.993956005341204,
"change_pp": -65.00105418511491,
"metric_change_pp": 4.287019467285125
},
"test": {
"spec": 26.688029946402747,
"vlm": 50.00708958398321,
"conf": 49.68380455434875,
"call_conf": 98.73805405098828,
"learned": 45.622890848764996,
"call_learned": 43.51870232254772,
"change_pp": -55.21935172844057,
"metric_change_pp": -4.060913705583752
}
},
{
"key": [
"grefcoco",
"groundingdino",
"Qwen3.8"
],
"validation": {
"spec": 56.05453650994448,
"vlm": 80.60299388572633,
"conf": 79.94237121371846,
"call_conf": 98.99501019045611,
"learned": 81.53067678684377,
"call_learned": 41.998734977862114,
"change_pp": -56.99627521259401,
"metric_change_pp": 1.5883055731253037
},
"test": {
"spec": 26.688029946402747,
"vlm": 74.47182599325072,
"conf": 73.87062927147436,
"call_conf": 98.73805405098828,
"learned": 66.10044522587415,
"call_learned": 57.456824433542245,
"change_pp": -41.281229617446044,
"metric_change_pp": -7.770184045600203
}
},
{
"key": [
"grefcoco",
"instancevg",
"MiniCPM"
],
"validation": {
"spec": 75.02986857825567,
"vlm": 64.12256658935975,
"conf": 77.16635041113219,
"call_conf": 64.99402628434886,
"learned": 77.29988052568699,
"call_learned": 22.995291306486752,
"change_pp": -41.99873497786211,
"metric_change_pp": 0.1335301145547918
},
"test": {
"spec": 66.95119530385956,
"vlm": 50.00708958398321,
"conf": 61.877889005473165,
"call_conf": 52.09426310864078,
"learned": 66.71865694921021,
"call_learned": 30.904914499617163,
"change_pp": -21.189348609023618,
"metric_change_pp": 4.840767943737056
}
},
{
"key": [
"grefcoco",
"instancevg",
"Qwen3.8"
],
"validation": {
"spec": 75.02986857825567,
"vlm": 80.60299388572633,
"conf": 82.01560193970062,
"call_conf": 70.99585353854803,
"learned": 80.81383090870757,
"call_learned": 55.99831330381615,
"change_pp": -14.997540234731888,
"metric_change_pp": -1.2017710309930374
},
"test": {
"spec": 66.95119530385956,
"vlm": 74.47182599325072,
"conf": 72.43286163967898,
"call_conf": 68.38612710206165,
"learned": 75.28287440093015,
"call_learned": 53.55755324277571,
"change_pp": -14.828573859285942,
"metric_change_pp": 2.850012761251175
}
},
{
"key": [
"nlvr2",
"nlvr2",
"MiniCPM"
],
"validation": {
"spec": 79.81953594958465,
"vlm": 89.90260670295045,
"conf": 90.04583213978803,
"call_conf": 85.87797192781437,
"learned": 89.94557433400172,
"call_learned": 84.98997421942137,
"change_pp": -0.8879977083930068,
"metric_change_pp": -0.10025780578630794
},
"test": {
"spec": 80.00287005811867,
"vlm": 90.7368874219703,
"conf": 90.77276314845376,
"call_conf": 85.80038745784601,
"learned": 90.64361053311329,
"call_learned": 84.65953935567195,
"change_pp": -1.1408481021740635,
"metric_change_pp": -0.12915261534046651
}
},
{
"key": [
"nlvr2",
"nlvr2",
"Qwen3.8"
],
"validation": {
"spec": 79.81953594958465,
"vlm": 90.50415353766829,
"conf": 90.57576625608708,
"call_conf": 85.87797192781437,
"learned": 90.9481523918648,
"call_learned": 76.99799484388427,
"change_pp": -8.879977083930102,
"metric_change_pp": 0.3723861357777247
},
"test": {
"spec": 80.00287005811867,
"vlm": 90.06242376408122,
"conf": 90.24180239649853,
"call_conf": 85.80038745784601,
"learned": 90.88039032790414,
"call_learned": 76.65925234986008,
"change_pp": -9.141135107985932,
"metric_change_pp": 0.6385879314056098
}
},
{
"key": [
"nlvr2",
"vilt",
"MiniCPM"
],
"validation": {
"spec": 75.56574047550845,
"vlm": 89.90260670295045,
"conf": 89.97421942136924,
"call_conf": 95.9896877685477,
"learned": 89.8166714408479,
"call_learned": 98.99742194213692,
"change_pp": 3.007734173589227,
"metric_change_pp": -0.15754798052134422
},
"test": {
"spec": 76.42247255506925,
"vlm": 90.7368874219703,
"conf": 90.64361053311329,
"call_conf": 95.93169261677549,
"learned": 90.70818684078353,
"call_learned": 98.96677907727631,
"change_pp": 3.0350864605008243,
"metric_change_pp": 0.0645763076702277
}
},
{
"key": [
"nlvr2",
"vilt",
"Qwen3.8"
],
"validation": {
"spec": 75.56574047550845,
"vlm": 90.50415353766829,
"conf": 90.59008879977084,
"call_conf": 95.9896877685477,
"learned": 90.41821827556575,
"call_learned": 94.98710971068462,
"change_pp": -1.0025780578630794,
"metric_change_pp": -0.17187052420509774
},
"test": {
"spec": 76.42247255506925,
"vlm": 90.06242376408122,
"conf": 89.96197172992753,
"call_conf": 95.93169261677549,
"learned": 89.997847456411,
"call_learned": 94.85542082227165,
"change_pp": -1.0762717945038358,
"metric_change_pp": 0.035875726483469705
}
},
{
"key": [
"construction",
"yolo26x",
"MiniCPM"
],
"validation": {
"spec": 18.254072168965788,
"vlm": 20.666016863629594,
"conf": 22.641590025257546,
"call_conf": 93.86590584878745,
"learned": 29.007041551798586,
"call_learned": 48.93009985734665,
"change_pp": -44.935805991440795,
"metric_change_pp": 6.3654515265410385
},
"test": {
"spec": 18.129624718318375,
"vlm": 22.361115727328066,
"conf": 25.23047077304935,
"call_conf": 92.54327563249002,
"learned": 25.82183145054675,
"call_learned": 47.20372836218375,
"change_pp": -45.33954727030626,
"metric_change_pp": 0.591360677497399
}
},
{
"key": [
"construction",
"yolo26x",
"Qwen3.8"
],
"validation": {
"spec": 18.254072168965788,
"vlm": 25.448626222520154,
"conf": 26.42878791936722,
"call_conf": 92.86733238231099,
"learned": 33.12666068966333,
"call_learned": 49.928673323823105,
"change_pp": -42.93865905848788,
"metric_change_pp": 6.697872770296115
},
"test": {
"spec": 18.129624718318375,
"vlm": 27.001009067886244,
"conf": 25.974900047621052,
"call_conf": 92.21038615179761,
"learned": 29.875800068449216,
"call_learned": 48.76830892143808,
"change_pp": -43.44207723035953,
"metric_change_pp": 3.9009000208281632
}
},
{
"key": [
"construction",
"rtdetr_x_fp32",
"MiniCPM"
],
"validation": {
"spec": 7.641657905799261,
"vlm": 20.666016863629594,
"conf": 20.572745422879233,
"call_conf": 97.8601997146933,
"learned": 21.744085592769803,
"call_learned": 77.88873038516405,
"change_pp": -19.971469329529246,
"metric_change_pp": 1.1713401698905694
},
"test": {
"spec": 7.8873978710439285,
"vlm": 22.361115727328066,
"conf": 21.609512872414097,
"call_conf": 97.90279627163781,
"learned": 22.996109134220227,
"call_learned": 78.82822902796272,
"change_pp": -19.0745672436751,
"metric_change_pp": 1.3865962618061305
}
},
{
"key": [
"construction",
"rtdetr_x_fp32",
"Qwen3.8"
],
"validation": {
"spec": 7.641657905799261,
"vlm": 25.448626222520154,
"conf": 24.862274646934207,
"call_conf": 98.85877318116975,
"learned": 27.197394026479483,
"call_learned": 82.88159771754636,
"change_pp": -15.977175463623395,
"metric_change_pp": 2.335119379545275
},
"test": {
"spec": 7.8873978710439285,
"vlm": 27.001009067886244,
"conf": 26.818431283513146,
"call_conf": 98.60186418109188,
"learned": 26.693203615113315,
"call_learned": 83.12250332889481,
"change_pp": -15.479360852197077,
"metric_change_pp": -0.1252276683998299
}
}
]
}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111"""Plot archived results without rerunning any model."""from pathlib import Pathimport jsonimport numpy as npimport matplotlibmatplotlib.use("Agg")import matplotlib.pyplot as pltfrom matplotlib.patches import Patch, Rectanglefrom matplotlib.ticker import MaxNLocatorroot=Path(__file__).resolve().parents[1]groups=json.loads((root/"data/results.json").read_text(encoding="utf-8"))["groups"]scaling=json.loads((root/"data/scaling_selected.json").read_text(encoding="utf-8"))names={"cub":"CUB-200-2011","grefcoco":"gRefCOCO","nlvr2":"NLVR2","construction":"ConstructionSite"}plt.rcParams.update({"font.family":"serif","font.serif":["Times New Roman"],"font.size":8, "axes.titlesize":8.5,"axes.labelsize":8,"xtick.labelsize":7,"ytick.labelsize":7,"legend.fontsize":7.5, "pdf.fonttype":42,"ps.fonttype":42,"axes.spines.top":False,"axes.spines.right":False,"axes.linewidth":.6,"mathtext.fontset":"stix"})colors=["#a7c8c0","#2c8c69","#d77960","#d5d9df"]curve_colors={"learned":"#176f91","confidence":"#c78324","small":"#536174","large":"#8a537b"}fig,axes=plt.subplots(2,4,figsize=(7.16,2.75),gridspec_kw={"height_ratios":[.66,1.15]})fig.subplots_adjust(left=.064,right=.978,bottom=.19,top=.85,wspace=.30,hspace=.67)for col,(task,expert) in enumerate(zip(names,["cub","instancevg","nlvr2","yolo26x"])): subset=[g for g in groups if g["key"][0]==task] chosen=next(g for g in subset if g["key"][1:]==[expert,"Qwen3.8"]) top,ax=axes[:,col] xs=np.array([0,1,3,4]) floor=np.zeros(4) for state,color in zip(["both_correct","rescuable","harmful","both_wrong"],colors): values=np.array([100*g["opportunity"]["test"][state]/g["opportunity"]["test"]["total"] for g in subset]) top.bar(xs,values,bottom=floor,width=.72,color=color,linewidth=0,zorder=3) floor+=values assert np.allclose(floor,100) selected_bar=next(i for i,g in enumerate(subset) if g["key"]==chosen["key"]) top.add_patch(Rectangle((xs[selected_bar]-.36,0),.72,100,fill=False,edgecolor="#263d46",lw=.8,zorder=5,clip_on=False)) top.set(ylim=(0,101),xlim=(-.65,4.65),yticks=[0,50,100],xticks=xs) top.set_xticklabels(["M","Q","M","Q"]) top.tick_params(axis="x",length=0,pad=1) for x,label in ((.5,subset[0]["expert_display"]),(3.5,subset[2]["expert_display"])): top.text(x,-.31,label,ha="center",va="top",transform=top.get_xaxis_transform(),fontsize=6.7) top.set_title(names[task],fontweight="bold",pad=3) top.grid(axis="y",color="#dce1e4",lw=.4,zorder=0) if col==0: top.set_ylabel("Outcome (%)",labelpad=2) else: top.tick_params(labelleft=False) for method,label in (("learned","Learned"),("confidence","conf.")): saved=chosen["methods"][method] curve=saved["test_curve"] calls=[100*p["actual_fraction"] for p in curve] assert np.all(np.diff(calls)>=-1e-10) ax.plot(calls,[100*p["metric"] for p in curve],lw=1.15,color=curve_colors[method],label=label) p=saved["test_point"] ax.scatter(100*p["actual_fraction"],100*p["metric"],s=16,color=curve_colors[method],edgecolor="white",linewidth=.4,zorder=5,clip_on=False) for model,label,ls in (("small","Specialist","--"),("large","VLM",":")): ax.axhline(100*chosen[model]["test"],ls=ls,lw=.9,color=curve_colors[model],label=label) ax.set(xlim=(0,100),xticks=[0,50,100]) ax.set_title(chosen["expert_display"]+" / Q",fontsize=8,pad=3) ax.yaxis.set_major_locator(MaxNLocator(nbins=3)) ax.grid(axis="y",color="#dce1e4",lw=.4) if col==0: ax.set_ylabel("Accuracy (%)",labelpad=2) elif col==3: ax.set_ylabel("Macro-F1 (%)",labelpad=1)fig.legend([Patch(facecolor=c) for c in colors],["Both correct","Rescue","Harm","Both wrong"],loc="upper center",bbox_to_anchor=(.51,1.01),ncol=4,frameon=False,handlelength=1.3,columnspacing=1.7)handles,labels=axes[1,0].get_legend_handles_labels()fig.legend(handles,labels,loc="lower center",bbox_to_anchor=(.52,-.01),ncol=4,frameon=False,handlelength=2,columnspacing=1.8)fig.text(.52,.083,"Actual test calls (%)",ha="center",fontsize=8)fig.savefig(root/"figures/gains_compact.pdf")fig.savefig(root/"figures/gains_compact.png",dpi=300)plt.close(fig)
fig,axes=plt.subplots(2,4,figsize=(7.16,4.3),sharex=True)fig.subplots_adjust(left=.075,right=.985,bottom=.12,top=.90,hspace=.42,wspace=.38)for row,endpoint in enumerate(("MiniCPM","Qwen3.8")): for col,task in enumerate(names): ax=axes[row,col] selected=[r for r in scaling if r["key"][0]==task and r["key"][2]==endpoint] for entry,color,marker in zip(selected,["#176f91","#c78324"],["o","s"]): name=next(g["expert_display"] for g in groups if g["key"]==entry["key"]) ax.plot([25,50,100],[100*r["rank25_metric"] for r in entry["rows"]],marker=marker,lw=1.2,ms=4,color=color,label=name) ax.set_title(names[task]+(" / M" if row==0 else " / Q"),fontweight="bold") ax.set_xticks([25,50,100]) ax.yaxis.set_major_locator(MaxNLocator(nbins=4)) ax.grid(axis="y",lw=.45,color="#dce1e4") ax.legend(loc="best",frameon=False,fontsize=6.9,handlelength=1) if col==0: ax.set_ylabel("Test metric (%)")fig.suptitle("Earlier configurations: exactly 25% test calls",fontsize=11,fontweight="bold")fig.text(.52,.035,"Router training data (%)",ha="center",fontsize=9)fig.savefig(root/"figures/scaling_ranked.pdf")fig.savefig(root/"figures/scaling_ranked.png",dpi=240)plt.close(fig)
fig,axes=plt.subplots(1,2,figsize=(7.16,3.0),sharey=True)fig.subplots_adjust(left=.16,right=.98,top=.84,bottom=.19,wspace=.32)for ax,endpoint in zip(axes,("MiniCPM","Qwen3.8")): records=json.loads((root/f"data/joint_{endpoint}_comparison_20260910.json").read_text(encoding="utf-8")) subset=[g for g in groups if g["key"][2]==endpoint] vals=[100*next(j["delta_multi_minus_single"] for j in records if j["expert"]==g["key"][1]) for g in subset] ax.barh(np.arange(8),vals,color=["#2c8c69" if v>=0 else "#d77960" for v in vals],height=.64) ax.axvline(0,color="#8c949b",lw=.65) ax.set_yticks(np.arange(8),[g["expert_display"] for g in subset]) ax.set_title(endpoint.replace("MiniCPM","MiniCPM-V-4.5"),fontweight="bold") ax.grid(axis="x",color="#dce1e4",lw=.4) ax.set_axisbelow(True) ax.set_xlim(-1.9,4.2)axes[0].invert_yaxis()fig.text(.55,.045,"Joint minus single-task test metric (percentage points)",ha="center",fontsize=9)fig.savefig(root/"figures/joint_delta.pdf")fig.savefig(root/"figures/joint_delta.png",dpi=240)plt.close(fig)print("Generated compact gains, matched-call data scaling, and joint-training figures.")123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384"""Restyle measured-component cost estimates; no model execution."""from pathlib import Pathimport csvimport jsonimport numpy as npimport matplotlibmatplotlib.use("Agg")import matplotlib.pyplot as pltfrom matplotlib.ticker import MaxNLocator, LogLocator, NullLocator
root = Path(__file__).resolve().parents[1]data = root / "data/cost_20260911"summary = json.loads((data / "cost_summary.json").read_text(encoding="utf-8"))with (data / "full_cost_performance_curves.csv").open(encoding="utf-8-sig", newline="") as f: rows = [r for r in csv.DictReader(f) if r["method"] in ("both", "confidence")]methods = [("both", "learned", "#176f91", "-"), ("confidence", "conf.", "#c78324", "--")]pairs = list(summary["components"])plt.rcParams.update({"font.family":"serif", "font.serif":["Times New Roman"], "font.size":8, "axes.labelsize":8, "xtick.labelsize":7, "ytick.labelsize":7, "legend.fontsize":7.5, "pdf.fonttype":42, "ps.fonttype":42, "axes.spines.top":False, "axes.spines.right":False, "axes.linewidth":.6, "mathtext.fontset":"stix"})
def panel(ax, pair, field, log): comp = summary["components"][pair] for method, label, color, ls in methods: rr = [r for r in rows if r["pair_key"] == pair and r["method"] == method] assert len(rr) == 101 x = np.array([float(r[field]) for r in rr]) # Confidence does not execute the learned head; correct the shared offset. offset = comp["router_gflops_per_input"] if "flops" in field else comp["router_latency_ms"] if method == "confidence": x -= offset y = 100 * np.array([float(r["test_metric"]) for r in rr]) sd = 100 * np.array([float(r["test_metric_std"]) for r in rr]) assert np.all(np.diff(x) >= -1e-8) ax.plot(x, y, color=color, lw=1.15, ls=ls, label=label) if method == "both": ax.fill_between(x, y - sd, y + sd, color=color, alpha=.12, lw=0) p = next(p for p in summary["selected_points"] if p["pair_key"] == pair and p["method"] == method) ax.scatter(p[field] - (offset if method == "confidence" else 0), 100 * p["test_metric"], s=19, color=color, edgecolor="white", linewidth=.45, zorder=5) if log: ax.set_xscale("log") ax.xaxis.set_major_locator(LogLocator(base=10, numticks=5)) ax.xaxis.set_minor_locator(NullLocator()) else: ax.xaxis.set_major_locator(MaxNLocator(nbins=3)) ax.yaxis.set_major_locator(MaxNLocator(nbins=4)) ax.grid(axis="y", color="#dce1e4", lw=.4) ax.set_ylabel("Accuracy (%)" if pair.startswith("grefcoco") else "Macro-F1 (%)", labelpad=2) ax.tick_params(pad=2)
for field, name, xlabel, log in (("flops_gflops_per_input", "flops_performance", "Estimated GFLOPs / input", True), ("latency_ms_per_input", "latency_performance", "Estimated time / input (ms)", False)): fig, axes = plt.subplots(1, 2, figsize=(7.16, 2.35)) fig.subplots_adjust(left=.075, right=.99, top=.87, bottom=.28, wspace=.30) for ax, pair, label in zip(axes, pairs, ("(a) gRefCOCO: InstanceVG / M", "(b) ConstructionSite: YOLO26x / Q")): panel(ax, pair, field, log) ax.set_xlabel(xlabel) ax.text(.5, 1.08, label, transform=ax.transAxes, ha="center", fontsize=8) handles, labels = axes[0].get_legend_handles_labels() fig.legend(handles, labels, loc="lower center", bbox_to_anchor=(.52, -.015), ncol=2, frameon=False, handlelength=2.3) fig.savefig(root / f"figures/{name}.pdf") fig.savefig(root / f"figures/{name}.png", dpi=300) plt.close(fig)
fig, axes = plt.subplots(2, 2, figsize=(3.44, 2.30))fig.subplots_adjust(left=.135, right=.99, top=.88, bottom=.23, wspace=.40, hspace=.62)for col, pair in enumerate(pairs): for row, field in enumerate(("flops_gflops_per_input", "latency_ms_per_input")): ax = axes[row, col] panel(ax, pair, field, row == 0) ax.tick_params(labelsize=6.5) ax.yaxis.set_major_locator(MaxNLocator(nbins=3)) ax.set_ylabel("Acc. (%)" if col == 0 else "F1 (%)", fontsize=7) ax.set_xlabel("Est. GFLOPs / input" if row == 0 else "Est. time / input (ms)", fontsize=7, labelpad=1) if row == 0: ax.text(.5, 1.17, "gRefCOCO / M" if col == 0 else "ConstructionSite / Q", transform=ax.transAxes, ha="center", fontsize=7.2)handles, labels = axes[0, 0].get_legend_handles_labels()fig.legend(handles, labels, loc="lower center", bbox_to_anchor=(.54, .0), ncol=2, frameon=False, handlelength=2)fig.savefig(root / "figures/cost_compact.pdf")fig.savefig(root / "figures/cost_compact.png", dpi=300)plt.close(fig)print("Created two matching standalone plots and a four-panel paper figure.")123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123"""Rebuild tables from saved results; no model execution."""
from pathlib import Path
import json
root = Path(__file__).resolve().parents[1]
groups = json.loads((root/"data/results.json").read_text(encoding="utf-8"))["groups"]
diagnostics = json.loads((root/"data/budget_diagnostics.json").read_text(encoding="utf-8"))
earlier = json.loads((root/"data/earlier_results.json").read_text(encoding="utf-8"))["rows"]
task_names = {"cub":"CUB-200-2011","grefcoco":"gRefCOCO","nlvr2":"NLVR2","construction":"ConstructionSite"}
joint = []
for endpoint in ("MiniCPM","Qwen3.8"):
joint.extend(json.loads((root/f"data/joint_{endpoint}_comparison_20260910.json").read_text(encoding="utf-8")))
rows = {name:[] for name in ("main_test","main_full","thresholds","outcomes_full","scaling_full","joint_full")}
scaling, audit = [], []
counts = dict(better_metric=0,fewer_calls=0,both=0,above_endpoints=0,better_ranked_area=0)
for index,g in enumerate(groups):
task,expert,endpoint = g["key"]
prefix = f"{task_names[task] if index%4==0 else ''} & {g['expert_display']} & {'M' if endpoint=='MiniCPM' else 'Q'}"
if index and index%4==0:
for table in rows.values():
table.append(r"\midrule")
blocks, raw = [], {}
for split in ("validation","test"):
conf = g["methods"]["confidence"][f"{split}_point"]
learned = g["methods"]["learned"][f"{split}_point"]
change = 100*(learned["actual_fraction"]-conf["actual_fraction"])
macro = "callup" if change>1e-10 else "calldown" if change < -1e-10 else "samechg"
delta = rf"\{macro}{{{abs(change):.2f}}}"
metric_change = 100*(learned["metric"]-conf["metric"])
metric_macro = "upchg" if metric_change>1e-10 else "downchg" if metric_change < -1e-10 else "samechg"
metric_delta = rf"\{metric_macro}{{{abs(metric_change):.2f}}}"
cv,lv = f"{100*conf['metric']:.2f}",f"{100*learned['metric']:.2f}"
if conf["metric"]>=learned["metric"]:
cv = rf"\textbf{{{cv}}}"
if learned["metric"]>=conf["metric"]:
lv = rf"\textbf{{{lv}}}"
if split=="test" and learned["metric"]>max(g["small"][split],g["large"][split]):
lv += r"$^\dagger$"
blocks.append(f"{100*g['small'][split]:.2f} & {100*g['large'][split]:.2f} & {cv} & {100*conf['actual_fraction']:.2f} & {lv}{metric_delta} & {100*learned['actual_fraction']:.2f}{delta}")
raw[split] = dict(spec=100*g["small"][split],vlm=100*g["large"][split],conf=100*conf["metric"],call_conf=100*conf["actual_fraction"],learned=100*learned["metric"],call_learned=100*learned["actual_fraction"],change_pp=change,metric_change_pp=metric_change)
for method in ("confidence","learned"):
p=g["methods"][method]
assert p[f"{split}_point"]["threshold"]==p["validation_point"]["threshold"]
assert p[f"{split}_point"]["operator"]==p["validation_point"]["operator"]
rows["main_test"].append(prefix+" & "+blocks[1]+r" \\")
rows["main_full"].append(prefix+" & "+" & ".join(blocks)+r" \\")
selected=g["methods"]["learned"]["test_point"]
reference=g["methods"]["confidence"]["test_point"]
better=selected["metric"]>reference["metric"]
fewer=selected["actual_fraction"]<reference["actual_fraction"]
counts["better_metric"]+=better
counts["fewer_calls"]+=fewer
counts["both"]+=better and fewer
counts["above_endpoints"]+=selected["metric"]>max(g["small"]["test"],g["large"]["test"])
d=next(d for d in diagnostics if d["key"]==g["key"])
counts["better_ranked_area"]+=d["areas"]["learned"]["test_ranked_A25_diagnostic"]>d["areas"]["confidence"]["test_ranked_A25_diagnostic"]
cutoffs=[]
for method in ("confidence","learned"):
p=g["methods"][method]["validation_point"]
op=r"\geq" if p["operator"]=="ge" else ">"
cutoffs.extend([f"{100*p['budget']:.0f}","$"+f"{op}{p['threshold']:.6g}"+"$"])
rows["thresholds"].append(prefix+" & "+" & ".join(cutoffs)+r" \\")
opp=g["opportunity"]["test"]
keys=("both_correct","rescuable","harmful","both_wrong")
assert sum(opp[k] for k in keys)==opp["total"]
gain=100*(selected["metric"]-g["small"]["test"])
if task!="construction":
assert abs(gain-100*(selected["rescued"]-selected["harmed"])/g["test_rows"])<1e-9
values=[opp[k] for k in keys]+[selected[k] for k in ("rescued","harmed","missed_rescue","avoided_harm")]
rows["outcomes_full"].append(prefix+" & "+" & ".join(f"{v:,}" for v in values)+f" & {gain:+.3f}"+r" \\")
scale=[]
for fraction,tag in ((.25,"baseline_25pct"),(.5,"baseline_50pct"),(1.,"baseline_100pct")):
matches=[r for r in earlier if (r["task"],r["expert"],r["endpoint"],r["tag"])==(task,expert,endpoint,tag)]
assert len(matches)==1,(g["key"],tag,len(matches))
assert matches[0]["fraction"]==fraction
scale.append(matches[0])
for field in ("student","branches","fusion","target","strategy","representation_dim","hidden_layer"):
assert all(r[field]==scale[0][field] for r in scale),(g["key"],field)
rows["scaling_full"].append(prefix+" & "+" & ".join(f"{100*r['fixed25_metric']:.2f} & {100*r['fixed25_actual_fraction']:.2f} & {100*r['rank25_metric']:.2f}" for r in scale)+r" \\")
scaling.append(dict(key=g["key"],rows=scale))
j=next(j for j in joint if (j["expert"],j["endpoint"])==(expert,endpoint))
rows["joint_full"].append(prefix+f" & {100*j['single_task_test_fixed25']:.3f} & {100*j['multi_task_test_fixed25']:.3f} & {100*j['delta_multi_minus_single']:+.3f}"+r" \\")
audit.append(dict(key=g["key"],**raw))
assert counts==dict(better_metric=11,fewer_calls=15,both=10,above_endpoints=5,better_ranked_area=15),counts
head=r"\textcolor{testink}{spec.} & \textcolor{testink}{vlm.} & \textcolor{confink}{conf.} & \textcolor{confink}{call$_{\rm conf}$} & \textcolor{learnink}{learned$\uparrow$} & \textcolor{learnink}{call$_{\rm learned}\downarrow$}"
cols=r">{\columncolor{basefill}}r>{\columncolor{basefill}}r>{\columncolor{conffill}}r>{\columncolor{conffill}}r>{\columncolor{learnfill}}r>{\columncolor{learnfill}}r"
specs=[
("main_test","table*","t","tab:main","lll"+cols, "Dataset & Specialist & VLM & "+head,
r"Test results at validation-selected thresholds. Scores and actual call rates are percentages; parentheses give learned-minus-conf. differences in percentage points. \textcolor{upgreen}{Green} marks improvement and \textcolor{downred}{red} degradation: higher scores and fewer calls are better. Bold compares routed scores; $\dagger$ exceeds both models. M: MiniCPM-V-4.5; Q: Qwen3.8-27B-FP8. ",8,10.0),
("main_full","table","H","tab:full","lll"+cols+cols,
r"\multirow{2}{*}{Task} & \multirow{2}{*}{Specialist} & \multirow{2}{*}{VLM} & \multicolumn{6}{c}{\cellcolor{valfill}\textcolor{valink}{Validation}} & \multicolumn{6}{c}{\cellcolor{testfill}\textcolor{testink}{Test}} \\ \cmidrule(lr){4-9}\cmidrule(l){10-15} & & & "+head+" & "+head,
r"Complete four-way comparison. Scores and actual call rates are percentages. Thresholds selected on the 1--99\% validation grid transfer unchanged to test. Parentheses give learned-minus-confidence differences in percentage points before rounding. Green marks improvement and red degradation: higher scores and fewer calls are better. Bold marks the higher routed score; $\dagger$ exceeds both test endpoints. M: MiniCPM-V-4.5; Q: Qwen3.8-27B-FP8.",8,1.8),
("thresholds","table","H","tab:thresholds","lllrrrr",
r"Task & Specialist & VLM & Conf. budget & Conf. cutoff & Learned budget & Learned cutoff",
"Selected nominal validation budgets and score cutoffs. The operator is part of each stored threshold. Displayed cutoffs are rounded; the archived JSON retains full precision. Budget is a percentage, not the numerical threshold.",9,4),
("outcomes_full","table","H","tab:outcomes_full","lllrrrrrrrrr",
r"Task & Specialist & VLM & BC & R & H & BW & Sel. R & Sel. H & Miss R & Avoid H & Gain (pp)",
"Test outcome counts at the learned operating point. BC/BW: both correct/wrong; R/H: rescue/harm. Selected rescues, selected harms, missed rescues and avoided harms are counted separately. Construction counts 12,016 events, with routing over 3,004 images. Metric gains are recomputed; macro-F1 is not an event-count ratio.",8.5,3),
("scaling_full","table","H","tab:scaling_full","lllrrrrrrrrr",
r"Task & Specialist & VLM & \multicolumn{3}{c}{25\% training} & \multicolumn{3}{c}{50\% training} & \multicolumn{3}{c}{100\% training}\\ \cmidrule(lr){4-6}\cmidrule(lr){7-9}\cmidrule(l){10-12} & & & Metric & Calls & Rank & Metric & Calls & Rank & Metric & Calls & Rank",
r"Earlier training-data comparisons. Each pair retains its exploratory reference configuration; only router-training fraction changes. Within each fraction: test metric, actual test calls, and test metric at exactly 25\% ranked calls. The first two use a validation-selected 25\% threshold. These are not final shared-recipe ablations. All entries are percentages.",8.5,3),
("joint_full","table","H","tab:joint_full","lllrrr",
r"Task & Specialist & VLM & Single & Joint & Difference (pp)",
r"Earlier single-task versus joint-training comparison. Both use 4M students, image/text inputs and specialist-error supervision. Metrics use validation-selected 25\% thresholds; actual call rates are not present in this comparison file. Differences are joint minus single in percentage points. All tasks were seen during training.",9,5)]
for name,env,place,label,spec,header,caption,size,pad in specs:
content=f"\\begin{{{env}}}[{place}]\n\\centering\n\\caption{{{caption}}}\n\\label{{{label}}}\n"
content+=f"\\fontsize{{{size}}}{{{size*1.2}}}\\selectfont\n\\setlength{{\\tabcolsep}}{{{pad}pt}}\n\\renewcommand{{\\arraystretch}}{{1.12}}\n"
content+="\\begin{tabular}{@{}"+spec+"@{}}\n\\toprule\n"+header+r" \\"+"\n\\midrule\n"
content+="\n".join(rows[name])+"\n\\bottomrule\n\\end{tabular}\n"+f"\\end{{{env}}}\n"
if name == "main_test":
content = content.replace(r"\begin{table*}[t]", r"\begin{minipage}{\textwidth}")
content = content.replace(r"\caption{", r"\captionof{table}{")
content = content.replace(r"\end{table*}", r"\end{minipage}")
content = content.replace(
r">{\columncolor{learnfill}}r@{}}",
r">{\columncolor{learnfill}[\tabcolsep][0pt]}r@{}}",
)
(root/f"tables/{name}.tex").write_text(content,encoding="utf-8")
(root/"data/table_audit.json").write_text(json.dumps(dict(counts=counts,rows=audit),indent=2),encoding="utf-8")
(root/"data/scaling_selected.json").write_text(json.dumps(scaling,indent=2),encoding="utf-8")
print(json.dumps(counts))
print("Rebuilt all 16-pair tables from saved results.")1234567891011121314% Standalone insertions for the updated three-seed router, not the revision-17 policy.\begin{figure*}[t]\centering\includegraphics[width=\textwidth]{figures/flops_performance.pdf}\caption{Test performance versus estimated computation for InstanceVG/MiniCPM and YOLO26x/Qwen. Learned uses the probability contrast $p_R-p_H$ and validation task-performance checkpoint selection; conf. uses specialist confidence. Curves average seeds 42--44; shading is one population standard deviation and dots average validation-selected policies. All thresholds are fixed before test evaluation. Costs combine measured components with actual test call fractions; VLM decoding is estimated from mean output length. Router feature encoders and unsupported operations are excluded. These are component-based estimates, not full-system counts.}\label{fig:new_cost_flops}\end{figure*}
\begin{figure*}[t]\centering\includegraphics[width=\textwidth]{figures/latency_performance.pdf}\caption{Test performance versus estimated amortized time per input under the same three-seed protocol. Time combines A800 specialist measurements, the routing head on cached features, and VLM batch wall time weighted by actual test calls. The VLM probe uses batch size four. Feature-encoder computation, loading, warmup and deployment queueing are excluded. This estimate is not a measurement of online per-request response latency. Learned and conf. have the same meaning as in Fig.~\ref{fig:new_cost_flops}.}\label{fig:new_cost_time}\end{figure*}.gitattributes+4
README.mdAdded+47
appendix.pdfAdded+3
experiment_data.tar.gzAdded+3
main.pdfAdded+3
paper_results/data/budget_diagnostics.jsonAdded+370
paper_results/data/comparisons.jsonAdded
paper_results/data/earlier_results.jsonAdded
paper_results/data/joint_MiniCPM_comparison_20260910.jsonAdded+58
paper_results/data/joint_Qwen3.8_comparison_20260910.jsonAdded+58
paper_results/data/layout_verification.jsonAdded+29
paper_results/data/main_table_cost_qwen_20260912/build_figures.pyAdded+101
paper_results/data/main_table_cost_qwen_20260912/components/instancevg_router.jsonAdded+239
paper_results/data/main_table_cost_qwen_20260912/components/instancevg_specialist.jsonAdded+254
paper_results/data/main_table_cost_qwen_20260912/components/qwen_flops.jsonAdded+341
paper_results/data/main_table_cost_qwen_20260912/components/qwen_gref_flops.jsonAdded+341
paper_results/data/main_table_cost_qwen_20260912/components/qwen_gref_latency.jsonAdded+2446
paper_results/data/main_table_cost_qwen_20260912/components/qwen_latency.jsonAdded
paper_results/data/main_table_cost_qwen_20260912/components/yolo26x_router.jsonAdded+238
paper_results/data/main_table_cost_qwen_20260912/components/yolo26x_specialist.jsonAdded+254
paper_results/data/main_table_cost_qwen_20260912/cost_summary.jsonAdded+75
paper_results/data/main_table_cost_qwen_20260912/fixed_budget_cost_performance.csvAdded+29
paper_results/data/main_table_cost_qwen_20260912/full_cost_performance_curves.csvAdded+405
paper_results/data/main_table_cost_qwen_20260912/main_table_results.jsonAdded
paper_results/data/main_table_cost_qwen_20260912/reproducible/measure_flops.pyAdded+152
paper_results/data/main_table_cost_qwen_20260912/reproducible/measure_large.pyAdded+209
paper_results/data/main_table_cost_qwen_20260912/reproducible/measure_router.pyAdded+104
paper_results/data/main_table_cost_qwen_20260912/reproducible/measure_specialist.pyAdded+258
paper_results/data/main_table_cost_qwen_20260912/reproducible/prepare_output.pyAdded+19
paper_results/data/main_table_cost_qwen_20260912/reproducible/read_main.pyAdded+10
paper_results/data/main_table_cost_qwen_20260912/reproducible/setup_local.pyAdded+6
paper_results/data/main_table_cost_qwen_20260912/reproducible/switch_qwen.pyAdded+23
paper_results/data/main_table_cost_qwen_20260912/selected_points.csvAdded+5
paper_results/data/main_table_cost_qwen_20260912/verify_and_report.pyAdded+57
paper_results/data/main_table_cost_qwen_20260912/成本性能报告.mdAdded+50
paper_results/data/method_improvement_spec.jsonAdded+114
paper_results/data/operation_measurements.jsonAdded+129
paper_results/data/results.jsonAdded
paper_results/data/scaling_selected.jsonAdded+1250
paper_results/data/shared_search.jsonAdded+720
paper_results/data/table_audit.jsonAdded+443
paper_results/figures/build_compact.pyAdded+111
paper_results/figures/build_cost.pyAdded+84
paper_results/figures/build_tables.pyAdded+123
paper_results/figures/cost_includes.texAdded+14
paper_results/figures/gains_compact.pdfAdded
paper_results/figures/gains_compact.pngAdded

Large File Pointer Details
- SHA256: cdedff2c5768301c64a47f429a77494f05a9c57b269a07ebb93c7708dcfe4b4b
- Pointer size: 131 Bytes
- Size of remote file: 181 kB
paper_results/figures/joint_delta.pdfAdded
paper_results/figures/joint_delta.pngAdded

paper_results/figures/scaling_ranked.pdfAdded