{"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/learning-interpretable-rules-for-scalable","title":"Learning Interpretable Rules for Scalable Data Representation and Classification","arxiv_id":"2310.14336","date":"2023-10-22","proceeding":null,"authors":["Zhuo Wang","Wei zhang","Ning Liu","Jianyong Wang"],"abstract":"Rule-based models, e.g., decision trees, are widely used in scenarios demanding high model interpretability for their transparent inner structures and good model expressivity. However, rule-based models are hard to optimize, especially on large data sets, due to their discrete parameters and structures. Ensemble methods and fuzzy/soft rules are commonly used to improve performance, but they sacrifice the model interpretability. To obtain both good scalability and interpretability, we propose a new classifier, named Rule-based Representation Learner (RRL), that automatically learns interpretable non-fuzzy rules for data representation and classification. To train the non-differentiable RRL effectively, we project it to a continuous space and propose a novel training method, called Gradient Grafting, that can directly optimize the discrete model using gradient descent. A novel design of logical activation functions is also devised to increase the scalability of RRL and enable it to discretize the continuous features end-to-end. Exhaustive experiments on ten small and four large data sets show that RRL outperforms the competitive interpretable approaches and can be easily adjusted to obtain a trade-off between classification accuracy and model complexity for different scenarios. Our code is available at: https://github.com/12wang3/rrl.","url_abs":"https://arxiv.org/abs/2310.14336v3","url_pdf":"https://arxiv.org/pdf/2310.14336v3.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"learning-interpretable-rules-for-scalable","repo_url":"https://github.com/12wang3/rrl","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"classification-1","task_name":"Classification"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2310.14336","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2310.14336"}},"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":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/12wang3/rrl","reach":null}],"summary":{"ran":10,"unverified":5},"by_repo_kind":{"official":{"samples":15,"ran":10,"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":"68267dd50278a7cc","entry":"Binarize","repo":"12wang3/rrl","repo_kind":"official","path":"rrl/models.py","file_url":"https://github.com/12wang3/rrl/blob/HEAD/rrl/models.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":"68267dd50278a7cc"}},{"code_sha256_prefix":"c09a6107207cd650","entry":"BinarizeLayer","repo":"12wang3/rrl","repo_kind":"official","path":"rrl/models.py","file_url":"https://github.com/12wang3/rrl/blob/HEAD/rrl/models.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":"c09a6107207cd650"}},{"code_sha256_prefix":"2d4f5ef0a5bc7aa9","entry":"ConjunctionLayer","repo":"12wang3/rrl","repo_kind":"official","path":"rrl/models.py","file_url":"https://github.com/12wang3/rrl/blob/HEAD/rrl/models.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":"2d4f5ef0a5bc7aa9"}},{"code_sha256_prefix":"ce761d8e4c68879b","entry":"DisjunctionLayer","repo":"12wang3/rrl","repo_kind":"official","path":"rrl/models.py","file_url":"https://github.com/12wang3/rrl/blob/HEAD/rrl/models.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":"ce761d8e4c68879b"}},{"code_sha256_prefix":"6a13ff9c6a99af14","entry":"EstimatedProduct","repo":"12wang3/rrl","repo_kind":"official","path":"rrl/models.py","file_url":"https://github.com/12wang3/rrl/blob/HEAD/rrl/models.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":"6a13ff9c6a99af14"}},{"code_sha256_prefix":"93609d76fab31875","entry":"GradGraft","repo":"12wang3/rrl","repo_kind":"official","path":"rrl/models.py","file_url":"https://github.com/12wang3/rrl/blob/HEAD/rrl/models.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":"93609d76fab31875"}},{"code_sha256_prefix":"b060a5edd6bfc4b8","entry":"LRLayer","repo":"12wang3/rrl","repo_kind":"official","path":"rrl/models.py","file_url":"https://github.com/12wang3/rrl/blob/HEAD/rrl/models.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":"b060a5edd6bfc4b8"}},{"code_sha256_prefix":"594fd0ac318dc6a8","entry":"OriginalConjunctionLayer","repo":"12wang3/rrl","repo_kind":"official","path":"rrl/models.py","file_url":"https://github.com/12wang3/rrl/blob/HEAD/rrl/models.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":"594fd0ac318dc6a8"}},{"code_sha256_prefix":"be2aa191b6026f5b","entry":"OriginalDisjunctionLayer","repo":"12wang3/rrl","repo_kind":"official","path":"rrl/models.py","file_url":"https://github.com/12wang3/rrl/blob/HEAD/rrl/models.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":"be2aa191b6026f5b"}},{"code_sha256_prefix":"5b87f65501cf10d7","entry":"Product","repo":"12wang3/rrl","repo_kind":"official","path":"rrl/models.py","file_url":"https://github.com/12wang3/rrl/blob/HEAD/rrl/models.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":"5b87f65501cf10d7"}},{"code_sha256_prefix":"e81cc7b8c239a9a0","entry":"MyDistributedDataParallel","repo":"12wang3/rrl","repo_kind":"official","path":"rrl/models.py","file_url":"https://github.com/12wang3/rrl/blob/HEAD/rrl/models.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":"e81cc7b8c239a9a0"}},{"code_sha256_prefix":"0bca4dc82b4fabd2","entry":"Net","repo":"12wang3/rrl","repo_kind":"official","path":"rrl/models.py","file_url":"https://github.com/12wang3/rrl/blob/HEAD/rrl/models.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":"0bca4dc82b4fabd2"}},{"code_sha256_prefix":"97c2a3e5f6fcc94b","entry":"RRL","repo":"12wang3/rrl","repo_kind":"official","path":"rrl/models.py","file_url":"https://github.com/12wang3/rrl/blob/HEAD/rrl/models.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":"97c2a3e5f6fcc94b"}},{"code_sha256_prefix":"913ac707af861532","entry":"UnionLayer","repo":"12wang3/rrl","repo_kind":"official","path":"rrl/models.py","file_url":"https://github.com/12wang3/rrl/blob/HEAD/rrl/models.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":"913ac707af861532"}},{"code_sha256_prefix":"f1e9d09179a189c0","entry":"extract_rules","repo":"12wang3/rrl","repo_kind":"official","path":"rrl/models.py","file_url":"https://github.com/12wang3/rrl/blob/HEAD/rrl/models.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":"f1e9d09179a189c0"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}