Spaces:
Running
Running
Publish verified XRD demo results
Browse filesFiles changed (10)
123version https://git-lfs.github.com/spec/v1oid sha256:067e486002a91a59fcf34428c70e8b943cb5153668a39e2a0d841cd490c7aa75size 77465915 unmodified lines161718192021224 unmodified lines27282930313233343536373839404142434445464718 unmodified lines666768697071727374757677787980818283848586878889909132 unmodified lines1241251261271281295 unmodified lines13513613713813914015 unmodified lines"task_success_rate": 1.0,"valid_output_rate": 1.0,"mean_runtime_s": 0.046980510279536244,"shell_execution_success_rate": null,"mean_shell_commands": null,"error_recovery_rate": null,"error_recovery_opportunities": 0,4 unmodified lines"baseline_method": "pymatgen_scipy_cosine_fallback"},"agent": {"status": "partial","expected_queries": 10,"attempted_queries": 4,"top1_accuracy": 0.3,"top5_accuracy": 0.3,"space_group_accuracy": 0.3,"retrieved_space_group_accuracy": 0.3,"mean_pattern_similarity": 0.9722478308147872,"task_success_rate": 0.3,"valid_output_rate": 0.3,"mean_runtime_s": 151.31636703386903,"shell_execution_success_rate": 0.8764044943820225,"mean_shell_commands": 22.25,"error_recovery_rate": 0.75,"error_recovery_opportunities": 4,"scientific_function_calls": null,"api_cost": null,"model": "traex/DeepSeek-V4.1-Flash",18 unmodified lines"cache_write_input_tokens": 0,"output_tokens": 8826,"reasoning_output_tokens": 3014}],"baseline_method": null},"agent_with_docs": {"status": "partial","expected_queries": 10,"attempted_queries": 6,"top1_accuracy": 0.5,"top5_accuracy": 0.5,"space_group_accuracy": 0.5,"retrieved_space_group_accuracy": 0.5,"mean_pattern_similarity": 0.970057440450336,"task_success_rate": 0.5,"valid_output_rate": 0.5,"mean_runtime_s": 79.53466675740977,"shell_execution_success_rate": 0.9142857142857143,"mean_shell_commands": 11.666666666666666,"error_recovery_rate": 0.6666666666666666,"error_recovery_opportunities": 3,"scientific_function_calls": null,"api_cost": null,"model": "traex/DeepSeek-V4.1-Flash",32 unmodified lines"cache_write_input_tokens": 0,"output_tokens": 2530,"reasoning_output_tokens": 383}],"baseline_method": null5 unmodified lines"Mean pattern similarity is conditional on accepted outputs; coverage is reported separately.","Space group compares the submitted number to original SIMPOD metadata; CIF-inferred symmetry can differ.","Shell command metrics are observable Codex command events, not counts of internal scientific function calls.","Error recovery is observed successful delivery after an execution error, not a controlled fault-injection benchmark.","Reference duplicates were filtered using pymatgen StructureMatcher; exact opaque candidate identity is scored after deduplication."]15 unmodified lines161718192021222324254 unmodified lines30313233343536373839404142434445464748495051525318 unmodified lines7273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114232 unmodified lines1751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072085 unmodified lines21421521621721821922015 unmodified lines"task_success_rate": 1.0,"valid_output_rate": 1.0,"mean_runtime_s": 0.046980510279536244,"median_runtime_s": 0.045754168182611465,"shell_execution_success_rate": null,"observed_scientific_command_events": null,"scientific_command_success_rate": null,"mean_shell_commands": null,"error_recovery_rate": null,"error_recovery_opportunities": 0,4 unmodified lines"baseline_method": "pymatgen_scipy_cosine_fallback"},"agent": {"status": "complete","expected_queries": 10,"attempted_queries": 10,"top1_accuracy": 0.9,"top5_accuracy": 0.9,"space_group_accuracy": 0.9,"retrieved_space_group_accuracy": 0.9,"mean_pattern_similarity": 0.9521350366017689,"task_success_rate": 0.9,"valid_output_rate": 0.9,"mean_runtime_s": 94.76843995042145,"median_runtime_s": 71.08299199678004,"shell_execution_success_rate": 0.8979591836734694,"observed_scientific_command_events": 117,"scientific_command_success_rate": 0.8717948717948718,"mean_shell_commands": 14.7,"error_recovery_rate": 0.8571428571428571,"error_recovery_opportunities": 7,"scientific_function_calls": null,"api_cost": null,"model": "traex/DeepSeek-V4.1-Flash",18 unmodified lines"cache_write_input_tokens": 0,"output_tokens": 8826,"reasoning_output_tokens": 3014},{"input_tokens": 130045,"cached_input_tokens": 115840,"cache_write_input_tokens": 0,"output_tokens": 5730,"reasoning_output_tokens": 1184},{"input_tokens": 115128,"cached_input_tokens": 105088,"cache_write_input_tokens": 0,"output_tokens": 2975,"reasoning_output_tokens": 391},{"input_tokens": 112473,"cached_input_tokens": 101248,"cache_write_input_tokens": 0,"output_tokens": 4612,"reasoning_output_tokens": 1334},{"input_tokens": 247922,"cached_input_tokens": 224512,"cache_write_input_tokens": 0,"output_tokens": 11257,"reasoning_output_tokens": 3420},{"input_tokens": 116943,"cached_input_tokens": 105600,"cache_write_input_tokens": 0,"output_tokens": 4208,"reasoning_output_tokens": 1656},{"input_tokens": 109940,"cached_input_tokens": 96512,"cache_write_input_tokens": 0,"output_tokens": 3661,"reasoning_output_tokens": 801}],"baseline_method": null},"agent_with_docs": {"status": "complete","expected_queries": 10,"attempted_queries": 10,"top1_accuracy": 0.9,"top5_accuracy": 0.9,"space_group_accuracy": 0.9,"retrieved_space_group_accuracy": 0.9,"mean_pattern_similarity": 0.9521350366017689,"task_success_rate": 0.9,"valid_output_rate": 0.9,"mean_runtime_s": 80.6434403385967,"median_runtime_s": 72.76453224383295,"shell_execution_success_rate": 0.9206349206349206,"observed_scientific_command_events": 87,"scientific_command_success_rate": 0.8850574712643678,"mean_shell_commands": 12.6,"error_recovery_rate": 0.8,"error_recovery_opportunities": 5,"scientific_function_calls": null,"api_cost": null,"model": "traex/DeepSeek-V4.1-Flash",32 unmodified lines"cache_write_input_tokens": 0,"output_tokens": 2530,"reasoning_output_tokens": 383},{"input_tokens": 314017,"cached_input_tokens": 293760,"cache_write_input_tokens": 0,"output_tokens": 10463,"reasoning_output_tokens": 3792},{"input_tokens": 230297,"cached_input_tokens": 207232,"cache_write_input_tokens": 0,"output_tokens": 9016,"reasoning_output_tokens": 3009},{"input_tokens": 158714,"cached_input_tokens": 147584,"cache_write_input_tokens": 0,"output_tokens": 3836,"reasoning_output_tokens": 1402},{"input_tokens": 236426,"cached_input_tokens": 218496,"cache_write_input_tokens": 0,"output_tokens": 7474,"reasoning_output_tokens": 2747}],"baseline_method": null5 unmodified lines"Mean pattern similarity is conditional on accepted outputs; coverage is reported separately.","Space group compares the submitted number to original SIMPOD metadata; CIF-inferred symmetry can differ.","Shell command metrics are observable Codex command events, not counts of internal scientific function calls.","Scientific command events are a lower bound: executed Python commands with explicit scientific imports; calls within saved scripts may not be counted.","Error recovery is observed successful delivery after an execution error, not a controlled fault-injection benchmark.","Reference duplicates were filtered using pymatgen StructureMatcher; exact opaque candidate identity is scored after deduplication."]
12 unmodified lines1314151617181920212223242526272829303112 unmodified linesTrue,25,True,agent,True,traex/DeepSeek-V4.1-Flash,0.9703958036504916,sample_3c3513536a68.xy,True,True,168.41273418068886,True,completed,candidate_f8074df31701.cif,True,True,candidate_f8074df31701.cif,TrueTrue,20,True,agent,True,traex/DeepSeek-V4.1-Flash,0.9689725236292301,sample_5e6496ddf5cd.xy,True,True,116.5562844388187,True,completed,candidate_94546fb5dfce.cif,True,True,candidate_94546fb5dfce.cif,TrueTrue,13,True,agent,True,traex/DeepSeek-V4.1-Flash,0.9773751651646398,sample_882823f1bdec.xy,True,True,80.22311248630285,True,completed,candidate_257647fb33e8.cif,True,True,candidate_257647fb33e8.cif,TrueFalse,,False,agent,,,,sample_8b5c85bb7dae.xy,,False,,False,not_run,,False,False,,FalseFalse,,False,agent,,,,sample_b217224c6575.xy,,False,,False,not_run,,False,False,,FalseFalse,,False,agent,,,,sample_c9acdbaacb2b.xy,,False,,False,not_run,,False,False,,FalseFalse,,False,agent,,,,sample_dcb9c3b15e6a.xy,,False,,False,not_run,,False,False,,FalseFalse,,False,agent,,,,sample_e547a86fe2c4.xy,,False,,False,not_run,,False,False,,FalseFalse,,False,agent,,,,sample_f47a456346fe.xy,,False,,False,not_run,,False,False,,FalseFalse,28,False,agent_with_docs,True,traex/DeepSeek-V4.1-Flash,,sample_37a86a368f62.xy,False,False,240.0853243507445,False,failed,,False,False,candidate_36d12d8de9e8.cif,FalseTrue,13,True,agent_with_docs,True,traex/DeepSeek-V4.1-Flash,0.9703958036504916,sample_3c3513536a68.xy,True,True,80.24060228094459,True,completed,candidate_f8074df31701.cif,True,True,candidate_f8074df31701.cif,TrueTrue,8,True,agent_with_docs,True,traex/DeepSeek-V4.1-Flash,0.9689725236292301,sample_5e6496ddf5cd.xy,False,True,51.81770387664437,True,completed,candidate_94546fb5dfce.cif,True,True,candidate_94546fb5dfce.cif,TrueTrue,6,True,agent_with_docs,True,traex/DeepSeek-V4.1-Flash,0.9773751651646398,sample_882823f1bdec.xy,False,True,32.40845521911979,True,completed,candidate_257647fb33e8.cif,True,True,candidate_257647fb33e8.cif,TrueTrue,7,True,agent_with_docs,True,traex/DeepSeek-V4.1-Flash,0.9685711993508105,sample_8b5c85bb7dae.xy,False,True,35.47794613242149,True,completed,candidate_39b8c2d228a9.cif,True,True,candidate_39b8c2d228a9.cif,TrueTrue,8,True,agent_with_docs,True,traex/DeepSeek-V4.1-Flash,0.964972510456508,sample_b217224c6575.xy,True,True,37.1779686845839,True,completed,candidate_aa4e93479122.cif,True,True,candidate_aa4e93479122.cif,TrueFalse,,False,agent_with_docs,,,,sample_c9acdbaacb2b.xy,,False,,False,not_run,,False,False,,FalseFalse,,False,agent_with_docs,,,,sample_dcb9c3b15e6a.xy,,False,,False,not_run,,False,False,,FalseFalse,,False,agent_with_docs,,,,sample_e547a86fe2c4.xy,,False,,False,not_run,,False,False,,FalseFalse,,False,agent_with_docs,,,,sample_f47a456346fe.xy,,False,,False,not_run,,False,False,,False12 unmodified lines1314151617181920212223242526272829303112 unmodified linesTrue,25,True,agent,True,traex/DeepSeek-V4.1-Flash,0.9703958036504916,sample_3c3513536a68.xy,True,True,168.41273418068886,True,completed,candidate_f8074df31701.cif,True,True,candidate_f8074df31701.cif,TrueTrue,20,True,agent,True,traex/DeepSeek-V4.1-Flash,0.9689725236292301,sample_5e6496ddf5cd.xy,True,True,116.5562844388187,True,completed,candidate_94546fb5dfce.cif,True,True,candidate_94546fb5dfce.cif,TrueTrue,13,True,agent,True,traex/DeepSeek-V4.1-Flash,0.9773751651646398,sample_882823f1bdec.xy,True,True,80.22311248630285,True,completed,candidate_257647fb33e8.cif,True,True,candidate_257647fb33e8.cif,TrueTrue,10,True,agent,True,traex/DeepSeek-V4.1-Flash,0.9685711993508105,sample_8b5c85bb7dae.xy,True,True,51.73445951938629,True,completed,candidate_39b8c2d228a9.cif,True,True,candidate_39b8c2d228a9.cif,TrueTrue,9,True,agent,True,traex/DeepSeek-V4.1-Flash,0.964972510456508,sample_b217224c6575.xy,False,True,40.09539167955518,True,completed,candidate_aa4e93479122.cif,True,True,candidate_aa4e93479122.cif,TrueTrue,9,True,agent,True,traex/DeepSeek-V4.1-Flash,0.811828359260177,sample_c9acdbaacb2b.xy,True,True,47.26771870627999,True,completed,candidate_49a2dc2557f1.cif,True,True,candidate_49a2dc2557f1.cif,TrueTrue,14,True,agent,True,traex/DeepSeek-V4.1-Flash,0.9694219910143052,sample_dcb9c3b15e6a.xy,True,True,99.49354238063097,True,completed,candidate_b4e740feb51a.cif,True,True,candidate_b4e740feb51a.cif,TrueTrue,8,True,agent,True,traex/DeepSeek-V4.1-Flash,0.9660581939366291,sample_e547a86fe2c4.xy,False,True,61.94287150725722,True,completed,candidate_c889a719964e.cif,True,True,candidate_c889a719964e.cif,TrueTrue,8,True,agent,True,traex/DeepSeek-V4.1-Flash,0.9716195829531276,sample_f47a456346fe.xy,False,True,41.88494757562876,True,completed,candidate_8cacff9cd15f.cif,True,True,candidate_8cacff9cd15f.cif,TrueFalse,28,False,agent_with_docs,True,traex/DeepSeek-V4.1-Flash,,sample_37a86a368f62.xy,False,False,240.0853243507445,False,failed,,False,False,candidate_36d12d8de9e8.cif,FalseTrue,13,True,agent_with_docs,True,traex/DeepSeek-V4.1-Flash,0.9703958036504916,sample_3c3513536a68.xy,True,True,80.24060228094459,True,completed,candidate_f8074df31701.cif,True,True,candidate_f8074df31701.cif,TrueTrue,8,True,agent_with_docs,True,traex/DeepSeek-V4.1-Flash,0.9689725236292301,sample_5e6496ddf5cd.xy,False,True,51.81770387664437,True,completed,candidate_94546fb5dfce.cif,True,True,candidate_94546fb5dfce.cif,TrueTrue,6,True,agent_with_docs,True,traex/DeepSeek-V4.1-Flash,0.9773751651646398,sample_882823f1bdec.xy,False,True,32.40845521911979,True,completed,candidate_257647fb33e8.cif,True,True,candidate_257647fb33e8.cif,TrueTrue,7,True,agent_with_docs,True,traex/DeepSeek-V4.1-Flash,0.9685711993508105,sample_8b5c85bb7dae.xy,False,True,35.47794613242149,True,completed,candidate_39b8c2d228a9.cif,True,True,candidate_39b8c2d228a9.cif,TrueTrue,8,True,agent_with_docs,True,traex/DeepSeek-V4.1-Flash,0.964972510456508,sample_b217224c6575.xy,True,True,37.1779686845839,True,completed,candidate_aa4e93479122.cif,True,True,candidate_aa4e93479122.cif,TrueTrue,17,True,agent_with_docs,True,traex/DeepSeek-V4.1-Flash,0.811828359260177,sample_c9acdbaacb2b.xy,False,True,94.39563440158963,True,completed,candidate_49a2dc2557f1.cif,True,True,candidate_49a2dc2557f1.cif,TrueTrue,13,True,agent_with_docs,True,traex/DeepSeek-V4.1-Flash,0.9694219910143052,sample_dcb9c3b15e6a.xy,False,True,80.2084586173296,True,completed,candidate_b4e740feb51a.cif,True,True,candidate_b4e740feb51a.cif,TrueTrue,12,True,agent_with_docs,True,traex/DeepSeek-V4.1-Flash,0.9660581939366291,sample_e547a86fe2c4.xy,True,True,65.3206058703363,True,completed,candidate_c889a719964e.cif,True,True,candidate_c889a719964e.cif,TrueTrue,14,True,agent_with_docs,True,traex/DeepSeek-V4.1-Flash,0.9716195829531276,sample_f47a456346fe.xy,True,True,89.30170395225286,True,completed,candidate_8cacff9cd15f.cif,True,True,candidate_8cacff9cd15f.cif,True
6 unmodified lines78910111213141 unmodified line1617181920216 unmodified lines| Setting | Completed | Top-1 | Top-5 | SG | Mean runtime (s) ||---|---:|---:|---:|---:|---:|| baseline | 10/10 attempted | 100.0% | 100.0% | 100.0% | 0.05 || agent | 4/10 attempted | 30.0% | 30.0% | 30.0% | 151.32 || agent_with_docs | 6/10 attempted | 50.0% | 50.0% | 50.0% | 79.53 |## Interpretation and limits1 unmodified lineThe small pilot is a feasibility experiment. Similar accuracy between a tool script and an agent does not show an algorithmic improvement. The agent comparison measures reliable use of tools, valid delivery, and execution time.The angle grid is recovered from the pinned Dans_Diffraction 3.0.0 generator, which samples uniform Q then converts to nonuniform 2-theta. The official tutorial's linear plotting axis differs by up to 3.57 degrees. The recovered axis was checked against the actual generator to within 1e-10 degrees. Matching interpolates onto a common uniform angular grid before smoothing.SIMPOD is simulated data. Candidate CIFs and query patterns originate from the same structures; this is retrieval, not unknown-structure discovery. JSON only stores a space-group number and asymmetric sites, so symmetry settings/origins can be lost during reconstruction. Query eligibility is selected using an explicit consistency rule before agent execution; this selection favors reconstructable, consistent structures and limits generalization.6 unmodified lines78910111213141 unmodified line16171819202122236 unmodified lines| Setting | Completed | Top-1 | Top-5 | SG | Mean runtime (s) ||---|---:|---:|---:|---:|---:|| baseline | 10/10 attempted | 100.0% | 100.0% | 100.0% | 0.05 || agent | 10/10 attempted | 90.0% | 90.0% | 90.0% | 94.77 || agent_with_docs | 10/10 attempted | 90.0% | 90.0% | 90.0% | 80.64 |## Interpretation and limits1 unmodified lineThe small pilot is a feasibility experiment. Similar accuracy between a tool script and an agent does not show an algorithmic improvement. The agent comparison measures reliable use of tools, valid delivery, and execution time.There is one stochastic agent attempt per case and no significance test. Runtime reflects provider latency and the agent's chosen calculations; the aggregate JSON also includes median runtime to show sensitivity to long cases. Treat documentation comparisons as observations from this pilot rather than a causal or population-level result.The angle grid is recovered from the pinned Dans_Diffraction 3.0.0 generator, which samples uniform Q then converts to nonuniform 2-theta. The official tutorial's linear plotting axis differs by up to 3.57 degrees. The recovered axis was checked against the actual generator to within 1e-10 degrees. Matching interpolates onto a common uniform angular grid before smoothing.SIMPOD is simulated data. Candidate CIFs and query patterns originate from the same structures; this is retrieval, not unknown-structure discovery. JSON only stores a space-group number and asymmetric sites, so symmetry settings/origins can be lost during reconstruction. Query eligibility is selected using an explicit consistency rule before agent execution; this selection favors reconstructable, consistent structures and limits generalization.
agentic-xrd-course-demo.zipAdded+3
assets/accuracy.pdf
assets/accuracy.png


assets/execution.pdf
assets/execution.png


assets/pattern_example.pdf
index.html
metrics.json+108-28
predictions.csv+10-10
report.md+4-2