SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2306.12703 · IJCAI · 2023

OptIForest: Optimal Isolation Forest for Anomaly Detection

Xuyun Zhang, Hongsheng Hu, Lianyong Qi, Xiaolong Xu, Amin Beheshti, Wanchun Dou, Mark Dras, Haolong Xiang

arXiv · PDF · Open in the Atlas

Code that ran

6 of 7 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (6 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 6 have no contract verdict; 0 failures of our instrument; 1 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2306.12703.json · badge: /api/ran/2306.12703.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
xiagll/OptIForest community
Papers with Code archive
6 ran · 1 no recorded run
FunctionStatusWhere it lives
AngleLSH Ran
ran on a synthesized input · constructed an object; no result was computed
xiagll/OptIForest/detectors/opt_iforest.py
pointer only (licence: NONE) · get_code("804b5e072d4bc1e0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xiagll/OptIForest when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

E2LSH Ran
ran on a synthesized input · constructed an object; no result was computed
xiagll/OptIForest/detectors/opt_iforest.py
pointer only (licence: NONE) · get_code("0a88abbde822c797")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xiagll/OptIForest when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

OPT Ran
ran on a synthesized input · constructed an object; no result was computed
xiagll/OptIForest/detectors/opt_iforest.py
pointer only (licence: NONE) · get_code("556516be59f8455d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xiagll/OptIForest when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

OptForest Ran
ran on a synthesized input · constructed an object; no result was computed
xiagll/OptIForest/detectors/opt_iforest.py
pointer only (licence: NONE) · get_code("3ff8f0f8477252f3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xiagll/OptIForest when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Sampling Ran
ran on a synthesized input · constructed an object; no result was computed
xiagll/OptIForest/detectors/opt_iforest.py
pointer only (licence: NONE) · get_code("ba8baca2233dae63")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xiagll/OptIForest when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

VSSampling Ran
ran on a synthesized input · constructed an object; no result was computed
xiagll/OptIForest/detectors/opt_iforest.py
pointer only (licence: NONE) · get_code("5aeea954b660a5e9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xiagll/OptIForest when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

OptIForest Not yet run
unverified (harvested, no recorded run)
xiagll/OptIForest/detectors/opt_iforest.py
pointer only (licence: NONE) · get_code("d3a8b6a94a058df8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xiagll/OptIForest when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 7 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Anomaly detection plays an increasingly important role in various fields for critical tasks such as intrusion detection in cybersecurity, financial risk detection, and human health monitoring. A variety of anomaly detection methods have been proposed, and a category based on the isolation forest mechanism stands out due to its simplicity, effectiveness, and efficiency, e.g., iForest is often employed as a state-of-the-art detector for real deployment. While the majority of isolation forests use the binary structure, a framework LSHiForest has demonstrated that the multi-fork isolation tree structure can lead to better detection performance. However, there is no theoretical work answering the fundamentally and practically important question on the optimal tree structure for an isolation forest with respect to the branching factor. In this paper, we establish a theory on isolation efficiency to answer the question and determine the optimal branching factor for an isolation tree. Based on the theoretical underpinning, we design a practical optimal isolation forest OptIForest incorporating clustering based learning to hash which enables more information to be learned from data for better isolation quality. The rationale of our approach relies on a better bias-variance trade-off achieved by bias reduction in OptIForest. Extensive experiments on a series of benchmarking datasets for comparative and ablation studies demonstrate that our approach can efficiently and robustly achieve better detection performance in general than the state-of-the-arts including the deep learning based methods.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2306.12703")
get_code_for_paper("2306.12703")
have("2306.12703")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2306.12703.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2306.12703.svg)](https://syntology.ai/paper/2306.12703)

Connect an agent — have() is free.