Papers › Interpret Your Decision: Logical Reasoning Regularization for Generalization in Visual...

Interpret Your Decision: Logical Reasoning Regularization for Generalization in Visual Classification

6 Oct 2024arXiv:2410.04492archive 2025-07-28

Zhaorui Tan, Xi Yang, Qiufeng Wang, Anh Nguyen, Kaizhu Huang

Vision models excel in image classification but struggle to generalize to unseen data, such as classifying images from unseen domains or discovering novel categories. In this paper, we explore the relationship between logical reasoning and deep learning generalization in visual classification. A logical regularization termed L-Reg is derived which bridges a logical analysis framework to image classification. Our work reveals that L-Reg reduces the complexity of the model in terms of the feature distribution and classifier weights. Specifically, we unveil the interpretability brought by L-Reg, as it enables the model to extract the salient features, such as faces to persons, for classification. Theoretical analysis and experiments demonstrate that L-Reg enhances generalization across various scenarios, including multi-domain generalization and generalized category discovery. In complex real-world scenarios where images span unknown classes and unseen domains, L-Reg consistently improves generalization, highlighting its practical efficacy.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2410.04492")

Code

Syntology Ran 16 of 16 code samples harvested from 1 repository linked to this paper; 0 have no recorded run. Of those that ran: 1 ran · honoured contract; 1 ran · our draft was wrong; 14 ran with no contract checked.

By repository: official repository: 16 samples from 1 repository, 16 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

zhaorui-tan/L-Reg_NeurIPS24 officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 16 ran; 1 honoured the contract we drafted; 0 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
1ran · our draft was wrong
14ran

Licence: 16 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from zhaorui-tan/L-Reg_NeurIPS24. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

cluster_acc zhaorui-tan/L-Reg_NeurIPS24/GCD_PIM_with_L-Reg/metrics/partitioning_metrics.py official repository ran no licence file found · pointer only · 8b95279f62a6de12 · report
cluster_acc_old_only zhaorui-tan/L-Reg_NeurIPS24/GCD_PIM_with_L-Reg/metrics/partitioning_metrics.py official repository ran fingerprinted no licence file found · pointer only · 718b40821d51b975 · report
cluster_acc_v1 zhaorui-tan/L-Reg_NeurIPS24/GCD_PIM_with_L-Reg/metrics/partitioning_metrics.py official repository ran no licence file found · pointer only · c5ffd1f80f4c6143 · report
eucl_KM_plspls_init zhaorui-tan/L-Reg_NeurIPS24/GCD_PIM_with_L-Reg/models/clustering_methods/torch_semi_supervised_kmeans.py official repository ran fingerprinted no licence file found · pointer only · 51bb4fe1538019ee · report
from_numpy_to_torch zhaorui-tan/L-Reg_NeurIPS24/GCD_PIM_with_L-Reg/models/clustering_methods/torch_semi_supervised_kmeans.py official repository ran no licence file found · pointer only · bb13df6d81184643 · report
from_torch_to_numpy zhaorui-tan/L-Reg_NeurIPS24/GCD_PIM_with_L-Reg/models/clustering_methods/torch_semi_supervised_kmeans.py official repository ran no licence file found · pointer only · 4589e8fefcf1cfd3 · report
get_assumed_nbr_of_classes zhaorui-tan/L-Reg_NeurIPS24/GCD_PIM_with_L-Reg/configs/config_K.py official repository ran no licence file found · pointer only · f96a1966a9ed5908 · report
get_cond_shift zhaorui-tan/L-Reg_NeurIPS24/GCD_PIM_with_L-Reg/pim_partitioning.py official repository ran no licence file found · pointer only · 264dc878cb97f3a4 · report
get_fm_preds_and_gt_labels zhaorui-tan/L-Reg_NeurIPS24/GCD_PIM_with_L-Reg/feature_maps_manip/feature_maps_manip.py official repository ran no licence file found · pointer only · 30bf8f7e6e3f3c84 · report
get_fm_preds_and_gt_labels zhaorui-tan/L-Reg_NeurIPS24/GCD_PIM_with_L-Reg/feature_maps_manip/feature_maps_manip_sampling.py official repository ran no licence file found · pointer only · 07c80893eff8faf0 · report
get_shapes zhaorui-tan/L-Reg_NeurIPS24/mDG_and_mDG+GCD_with_L-Reg/domainbed/algorithms/miro.py official repository ran no licence file found · pointer only · c5919b96db289dbd · report
get_valid_mask_and_filtered_seen_mask zhaorui-tan/L-Reg_NeurIPS24/GCD_PIM_with_L-Reg/feature_maps_manip/feature_maps_manip_sampling.py official repository ran no licence file found · pointer only · 215591efb9e0f55c · report
l2normalize zhaorui-tan/L-Reg_NeurIPS24/GCD_PIM_with_L-Reg/pim_partitioning.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · bedff51745d2cf84 · report
sample_covariance zhaorui-tan/L-Reg_NeurIPS24/GCD_PIM_with_L-Reg/pim_partitioning.py official repository ran fingerprinted no licence file found · pointer only · 67994beae3421efd · report
sample_mask_lab zhaorui-tan/L-Reg_NeurIPS24/GCD_PIM_with_L-Reg/feature_maps_manip/feature_maps_manip_sampling.py official repository ran no licence file found · pointer only · 1eb0a4ac3b56b8ab · report
to_minibatch zhaorui-tan/L-Reg_NeurIPS24/mDG_and_mDG+GCD_with_L-Reg/domainbed/algorithms/algorithms.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · 12c23ce22097acd0 · report

Tasks

ClassificationDomain GeneralizationImage ClassificationLogical Reasoningimage-classification

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections