Papers › Unsupervised Hashing with Contrastive Information Bottleneck

Unsupervised Hashing with Contrastive Information Bottleneck

13 May 2021arXiv:2105.06138archive 2025-07-28

Zexuan Qiu, Qinliang Su, Zijing Ou, Jianxing Yu, Changyou Chen

Many unsupervised hashing methods are implicitly established on the idea of reconstructing the input data, which basically encourages the hashing codes to retain as much information of original data as possible. However, this requirement may force the models spending lots of their effort on reconstructing the unuseful background information, while ignoring to preserve the discriminative semantic information that is more important for the hashing task. To tackle this problem, inspired by the recent success of contrastive learning in learning continuous representations, we propose to adapt this framework to learn binary hashing codes. Specifically, we first propose to modify the objective function to meet the specific requirement of hashing and then introduce a probabilistic binary representation layer into the model to facilitate end-to-end training of the entire model. We further prove the strong connection between the proposed contrastive-learning-based hashing method and the mutual information, and show that the proposed model can be considered under the broader framework of the information bottleneck (IB). Under this perspective, a more general hashing model is naturally obtained. Extensive experimental results on three benchmark image datasets demonstrate that the proposed hashing method significantly outperforms existing baselines.

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="2105.06138")

Code

Syntology Ran 11 of 15 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 1 ran · violated contract; 3 ran · our draft was wrong; 7 ran with no contract checked.

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

qiuzx2/CIBHash officialmentioned in paperpytorch 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

15 samples harvested; 11 ran; 0 honoured the contract we drafted; 4 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 · violated contract
3ran · our draft was wrong
7ran
4unverified

Licence: 0 of the 15 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 qiuzx2/CIBHash. “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.

GaussianBlur qiuzx2/CIBHash/model/CIBHash.py official repository ran MIT (permissive) · 545219e390d7b28b · report
Logger qiuzx2/CIBHash/model/CIBHash.py official repository ran MIT (permissive) · a5f55809f0ced9ca · report
MyTestDataset qiuzx2/CIBHash/model/CIBHash.py official repository ran MIT (permissive) · a28c9c0199cb6d53 · report
MyTrainDataset qiuzx2/CIBHash/model/CIBHash.py official repository ran MIT (permissive) · de641f731f9c0c61 · report
NtXentLoss qiuzx2/CIBHash/model/CIBHash.py official repository ran · metamorphic tier: deterministic MIT (permissive) · b2b75636ac168c2e · report
calculate_hamming qiuzx2/CIBHash/model/CIBHash.py official repository ran · violated contract fingerprinted MIT (permissive) · 60f0a788af0cca27 · report
calculate_top_map qiuzx2/CIBHash/model/CIBHash.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 2713054f03946cac · report
compress qiuzx2/CIBHash/model/CIBHash.py official repository ran · our draft was wrong MIT (permissive) · 9d8f8e1077379f49 · report
get_cifar qiuzx2/CIBHash/model/CIBHash.py official repository ran MIT (permissive) · dd5e14fd69dff667 · report
hash qiuzx2/CIBHash/model/CIBHash.py official repository ran MIT (permissive) · 446c9e1a244aca95 · report
hash_layer qiuzx2/CIBHash/model/CIBHash.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 6dfd48e834be71b6 · report
Base_Model qiuzx2/CIBHash/model/CIBHash.py official repository unverified MIT (permissive) · 7eebc68d4cc2574e · report
CIBHash qiuzx2/CIBHash/model/CIBHash.py official repository unverified MIT (permissive) · b95d18b296ff8c21 · report
Data qiuzx2/CIBHash/model/CIBHash.py official repository unverified MIT (permissive) · 6ae75be554ee6746 · report
LabeledData qiuzx2/CIBHash/model/CIBHash.py official repository unverified MIT (permissive) · 04adc0d5624cd788 · report

Tasks

Contrastive Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Contrastive Learning

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