{"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-2605-31175","title":"Towards Efficient LLMs Annealing with Principled Sample Selection","arxiv_id":"2605.31175","date":"2026-05-29","proceeding":"ICML","authors":["Yuanjian Xu","Jianing Hao","Wanbo Zhang","Zhong Li","Guang Zhang"],"abstract":"The annealing phase is a pivotal convergence stage in LLM pre-training that ultimately determines final model quality. However, effectively selecting training data during this phase remains a key challenge. Current strategies rely on empirical heuristics, such as domain filtering or context extension, which lack a principled grounding in optimization theory. In this work, we characterize the annealing phase through the lens of the loss landscape's spectral geometry. We argue that optimal convergence requires gradient updates to satisfy heterogeneous constraints across different eigen-directions. Building on this insight, we formulate data selection as a problem of satisfying these directional constraints. To this end, we propose DiReCT (Directionally-Restrained Constrained Training), a novel framework that reformulates sample selection in the annealing stage as a constrained optimization problem. By imposing explicit directional constraints on per-sample gradients based on the spectral properties of the Hessian, DiReCT identifies samples that align with the optimal curvature-aware descent path. Extensive experiments across various model scales demonstrate that DiReCT consistently achieves state-of-the-art performance. For future research, code is available at https://github.com/xuyj233/Direct.","url_abs":"https://arxiv.org/abs/2605.31175","url_pdf":"https://arxiv.org/pdf/2605.31175","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":"https://app.syntology.ai/?focus=2605.31175","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2605.31175"}},"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/xuyj233/Direct","reach":null}],"summary":{"ran_honours":2,"ran_draft_wrong":3,"ran_violates":1,"ran":1,"ran_fixture":1,"unverified":3},"by_repo_kind":{"found_in_text":{"samples":11,"ran":8,"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":"685a862255e8133f","entry":"_proj_box","repo":"xuyj233/Direct","repo_kind":"found_in_text","path":"direct/selector.py","file_url":"https://github.com/xuyj233/Direct/blob/HEAD/direct/selector.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"685a862255e8133f"}},{"code_sha256_prefix":"a05a992c2d2b389c","entry":"_proj_halfspace","repo":"xuyj233/Direct","repo_kind":"found_in_text","path":"direct/selector.py","file_url":"https://github.com/xuyj233/Direct/blob/HEAD/direct/selector.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a05a992c2d2b389c"}},{"code_sha256_prefix":"7bc6cbb8284d8b31","entry":"_proj_sum","repo":"xuyj233/Direct","repo_kind":"found_in_text","path":"direct/selector.py","file_url":"https://github.com/xuyj233/Direct/blob/HEAD/direct/selector.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7bc6cbb8284d8b31"}},{"code_sha256_prefix":"300a71c314db2a5f","entry":"dykstra_projection","repo":"xuyj233/Direct","repo_kind":"found_in_text","path":"direct/selector.py","file_url":"https://github.com/xuyj233/Direct/blob/HEAD/direct/selector.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"300a71c314db2a5f"}},{"code_sha256_prefix":"fa5be0d1f9a7483c","entry":"flat_grad","repo":"xuyj233/Direct","repo_kind":"found_in_text","path":"direct/selector.py","file_url":"https://github.com/xuyj233/Direct/blob/HEAD/direct/selector.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fa5be0d1f9a7483c"}},{"code_sha256_prefix":"f30c597d52dd40b2","entry":"sca_solver","repo":"xuyj233/Direct","repo_kind":"found_in_text","path":"direct/selector.py","file_url":"https://github.com/xuyj233/Direct/blob/HEAD/direct/selector.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f30c597d52dd40b2"}},{"code_sha256_prefix":"2fdec40eae72d4ed","entry":"select_trainable_params","repo":"xuyj233/Direct","repo_kind":"found_in_text","path":"direct/selector.py","file_url":"https://github.com/xuyj233/Direct/blob/HEAD/direct/selector.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2fdec40eae72d4ed"}},{"code_sha256_prefix":"0e6870174ea49905","entry":"spectral_elbow","repo":"xuyj233/Direct","repo_kind":"found_in_text","path":"direct/selector.py","file_url":"https://github.com/xuyj233/Direct/blob/HEAD/direct/selector.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0e6870174ea49905"}},{"code_sha256_prefix":"64e5414f48575498","entry":"DiReCTConfig","repo":"xuyj233/Direct","repo_kind":"found_in_text","path":"direct/selector.py","file_url":"https://github.com/xuyj233/Direct/blob/HEAD/direct/selector.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"64e5414f48575498"}},{"code_sha256_prefix":"7d9cb3b2976d4978","entry":"GaussianSketcher","repo":"xuyj233/Direct","repo_kind":"found_in_text","path":"direct/selector.py","file_url":"https://github.com/xuyj233/Direct/blob/HEAD/direct/selector.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7d9cb3b2976d4978"}},{"code_sha256_prefix":"efe3657c483ec21e","entry":"select_samples","repo":"xuyj233/Direct","repo_kind":"found_in_text","path":"direct/selector.py","file_url":"https://github.com/xuyj233/Direct/blob/HEAD/direct/selector.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"efe3657c483ec21e"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CL","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}