{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2607-14249","title":"MIDiff: Tackling Sparsity and Imbalance in Mobile Usage Generation via Multivariate-Imaging Diffusion","arxiv_id":"2607.14249","date":"2026-07-15","proceeding":null,"authors":["Yilai Liu","Shiyuan Zhang","Hongyang Du"],"abstract":"Mobile usage traces are critical for tasks such as user behavior prediction and app recommendation, yet their use is constrained by privacy restrictions and costly large-scale data collection. Although generative models perform well on general time series, their application to mobile usage data remains challenging because (i) limited user activity causes severe sparsity, (ii) heterogeneous variable types complicate joint modeling, and (iii) functional differences across apps create pronounced usage imbalance. To address these challenges, we propose Multivariate-Imaging Diffusion (MIDiff), a diffusion-based framework operating in an imaging space defined by Cross-Gramian Angular Sum Field (C-GASF). C-GASF transforms sparse multivariate sequences into correlation images, while MIDiff employs Triple Attention in a U-Net to preserve temporal consistency and variable dependencies. Experiments show that MIDiff achieves state-of-the-art performance across fidelity metrics. In particular, it obtains a Discriminative Accuracy (DA) of 0.1526, compared with 0.3476 for the strongest baseline, ZITS-VAE, demonstrating its effectiveness in generating realistic and diverse mobile usage traces. Our code is available at https://github.com/YilaiLiu-HKU/MIDiff.","url_abs":"https://arxiv.org/abs/2607.14249","url_pdf":"https://arxiv.org/pdf/2607.14249","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":null,"mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2607.14249"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/YilaiLiu-HKU/MIDiff","reach":null}],"summary":{"ran":20},"by_repo_kind":{"found_in_text":{"samples":20,"ran":20,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"5d4859749b71e15c","entry":"choose_target_index","repo":"YilaiLiu-HKU/MIDiff","repo_kind":"found_in_text","path":"exp/run_downstream_cross_variable.py","file_url":"https://github.com/YilaiLiu-HKU/MIDiff/blob/HEAD/exp/run_downstream_cross_variable.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5d4859749b71e15c"}},{"code_sha256_prefix":"c2f2a847ff3d28c9","entry":"classify_cross_pixels","repo":"YilaiLiu-HKU/MIDiff","repo_kind":"found_in_text","path":"gasf_cross_visualization.py","file_url":"https://github.com/YilaiLiu-HKU/MIDiff/blob/HEAD/gasf_cross_visualization.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c2f2a847ff3d28c9"}},{"code_sha256_prefix":"5e0ccb6477a5f644","entry":"display_model_name","repo":"YilaiLiu-HKU/MIDiff","repo_kind":"found_in_text","path":"exp/analyze_max_distribution.py","file_url":"https://github.com/YilaiLiu-HKU/MIDiff/blob/HEAD/exp/analyze_max_distribution.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5e0ccb6477a5f644"}},{"code_sha256_prefix":"3fc3e204c5176b8d","entry":"inverse_transform_with_max_compensation","repo":"YilaiLiu-HKU/MIDiff","repo_kind":"found_in_text","path":"gasf_cross_conversion_inverse.py","file_url":"https://github.com/YilaiLiu-HKU/MIDiff/blob/HEAD/gasf_cross_conversion_inverse.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"3fc3e204c5176b8d"}},{"code_sha256_prefix":"cc498180eb272d19","entry":"is_strict_one_hot","repo":"YilaiLiu-HKU/MIDiff","repo_kind":"found_in_text","path":"gasf_cross_conversion.py","file_url":"https://github.com/YilaiLiu-HKU/MIDiff/blob/HEAD/gasf_cross_conversion.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"cc498180eb272d19"}},{"code_sha256_prefix":"c9107bca78e54362","entry":"load_and_preprocess_samples","repo":"YilaiLiu-HKU/MIDiff","repo_kind":"found_in_text","path":"reshape.py","file_url":"https://github.com/YilaiLiu-HKU/MIDiff/blob/HEAD/reshape.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c9107bca78e54362"}},{"code_sha256_prefix":"d0145d5462b48da3","entry":"load_csv_as_tensor","repo":"YilaiLiu-HKU/MIDiff","repo_kind":"found_in_text","path":"exp/run_downstream_cross_variable.py","file_url":"https://github.com/YilaiLiu-HKU/MIDiff/blob/HEAD/exp/run_downstream_cross_variable.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d0145d5462b48da3"}},{"code_sha256_prefix":"420feeb89f853bc9","entry":"load_reference_stats","repo":"YilaiLiu-HKU/MIDiff","repo_kind":"found_in_text","path":"gasf_cross_conversion_inverse.py","file_url":"https://github.com/YilaiLiu-HKU/MIDiff/blob/HEAD/gasf_cross_conversion_inverse.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"420feeb89f853bc9"}},{"code_sha256_prefix":"04ae23b2d96418d4","entry":"minmax_scale","repo":"YilaiLiu-HKU/MIDiff","repo_kind":"found_in_text","path":"gasf_cross_conversion.py","file_url":"https://github.com/YilaiLiu-HKU/MIDiff/blob/HEAD/gasf_cross_conversion.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"04ae23b2d96418d4"}},{"code_sha256_prefix":"866dc384b1fd642e","entry":"process_single_image","repo":"YilaiLiu-HKU/MIDiff","repo_kind":"found_in_text","path":"gasf_cross_conversion_inverse.py","file_url":"https://github.com/YilaiLiu-HKU/MIDiff/blob/HEAD/gasf_cross_conversion_inverse.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"866dc384b1fd642e"}},{"code_sha256_prefix":"3440370fb4371b96","entry":"read_dataset","repo":"YilaiLiu-HKU/MIDiff","repo_kind":"found_in_text","path":"reshape.py","file_url":"https://github.com/YilaiLiu-HKU/MIDiff/blob/HEAD/reshape.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"3440370fb4371b96"}},{"code_sha256_prefix":"6373168fbb9fc6d8","entry":"read_dataset","repo":"YilaiLiu-HKU/MIDiff","repo_kind":"found_in_text","path":"exp/analyze_max_distribution.py","file_url":"https://github.com/YilaiLiu-HKU/MIDiff/blob/HEAD/exp/analyze_max_distribution.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"6373168fbb9fc6d8"}},{"code_sha256_prefix":"377a7b4b41281640","entry":"read_dataset","repo":"YilaiLiu-HKU/MIDiff","repo_kind":"found_in_text","path":"exp/evaluate_generation_metrics.py","file_url":"https://github.com/YilaiLiu-HKU/MIDiff/blob/HEAD/exp/evaluate_generation_metrics.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"377a7b4b41281640"}},{"code_sha256_prefix":"17a265daf892dd60","entry":"split_indices","repo":"YilaiLiu-HKU/MIDiff","repo_kind":"found_in_text","path":"exp/run_downstream_cross_variable.py","file_url":"https://github.com/YilaiLiu-HKU/MIDiff/blob/HEAD/exp/run_downstream_cross_variable.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"17a265daf892dd60"}},{"code_sha256_prefix":"e0a8b68d317b6dbc","entry":"split_into_three_dimensions","repo":"YilaiLiu-HKU/MIDiff","repo_kind":"found_in_text","path":"exp/analyze_max_distribution.py","file_url":"https://github.com/YilaiLiu-HKU/MIDiff/blob/HEAD/exp/analyze_max_distribution.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e0a8b68d317b6dbc"}},{"code_sha256_prefix":"a6b4945b90543a90","entry":"split_into_three_realdimensions","repo":"YilaiLiu-HKU/MIDiff","repo_kind":"found_in_text","path":"reshape.py","file_url":"https://github.com/YilaiLiu-HKU/MIDiff/blob/HEAD/reshape.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"a6b4945b90543a90"}},{"code_sha256_prefix":"2723b67dee663cf6","entry":"split_into_three_realdimensions","repo":"YilaiLiu-HKU/MIDiff","repo_kind":"found_in_text","path":"exp/evaluate_generation_metrics.py","file_url":"https://github.com/YilaiLiu-HKU/MIDiff/blob/HEAD/exp/evaluate_generation_metrics.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"2723b67dee663cf6"}},{"code_sha256_prefix":"cafdf7448dcfa59d","entry":"to_gasf_cross","repo":"YilaiLiu-HKU/MIDiff","repo_kind":"found_in_text","path":"gasf_cross_conversion.py","file_url":"https://github.com/YilaiLiu-HKU/MIDiff/blob/HEAD/gasf_cross_conversion.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"cafdf7448dcfa59d"}},{"code_sha256_prefix":"0a61a46bcd4c66da","entry":"traces_to_eval_array","repo":"YilaiLiu-HKU/MIDiff","repo_kind":"found_in_text","path":"changetocsv.py","file_url":"https://github.com/YilaiLiu-HKU/MIDiff/blob/HEAD/changetocsv.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0a61a46bcd4c66da"}},{"code_sha256_prefix":"7f5c1523f822c29d","entry":"transform_non_zero_to_one","repo":"YilaiLiu-HKU/MIDiff","repo_kind":"found_in_text","path":"exp/evaluate_generation_metrics.py","file_url":"https://github.com/YilaiLiu-HKU/MIDiff/blob/HEAD/exp/evaluate_generation_metrics.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"7f5c1523f822c29d"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}