Papers › Max-pooling Network Revisited: Analyzing the Role of Semantic Probability in Multiple...

Max-pooling Network Revisited: Analyzing the Role of Semantic Probability in Multiple Instance Learning for Hallucination Detection

9 May 2026arXiv:2605.08863added by Syntology

Shota Fujikawa, Issei Sato

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Hallucination detection has become increasingly important for improving the reliability of large language models (LLMs). Recently, hybrid approaches such as HaMI, which combine semantic consistency with internal model states via Multiple Instance Learning (MIL), have achieved state-of-the-art performance. However, these methods incur substantial computational overhead due to repeated sampling and costly semantic similarity computations. In this work, we first provide a theoretical analysis of HaMI in terms of decision margins, revealing that scaling internal states with semantic consistency leads to an enlarged decision margin. Motivated by this insight, we revisit classical sentence classification models from a margin enlargement perspective, aggregating token-level features via max pooling and directly estimating sentence scores using a lightweight MLP. Without requiring semantic consistency computations, our approach achieves substantial efficiency improvements while maintaining competitive performance with state-of-the-art baselines through adaptive aggregation of internal feature representations. Code is available at https://github.com/FUJI1229/Hallucination_Detection.

PaperPDFCode Syntology ran

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

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

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 18 code samples harvested from 1 repository linked to this paper: 16 ran (of which 0 constructed an object rather than computing a result; 4 with no instrument failure: 2 honoured, 0 violated, 2 with no contract checked; 12 where Syntology's instrument failed) · 2 unverified. Where Syntology's instrument failed: 9 where our contract draft was wrong; 3 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: found in paper text by Syntology: 18 samples from 1 repository, 16 ran (4 with no instrument failure; 12 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written on 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

FUJI1229/Hallucination_Detection found in paper text by SyntologySyntology: 18 samples, 16 ran (12 instrument-failed) · 2 unverified report

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

18 samples harvested: 16 ran (of which 0 constructed an object rather than computing a result; 4 with no instrument failure: 2 honoured, 0 violated, 2 with no contract checked; 12 where Syntology's instrument failed) · 2 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

2ran · honoured contract
9ran · our draft was wrong
3ran; the contract check could not run
2ran
2unverified

Licence: 0 of the 18 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 FUJI1229/Hallucination_Detection. “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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.

FUJI1229/Hallucination_Detection found in paper text by Syntology 18 samples, 16 ran (12 instrument-failed) · 2 unverified
accuracy_at_quantile gen/generation/uncertainty/utils/eval_utils.py ran; the contract check could not run (RAISES) fingerprinted MIT (permissive) · c425058e87c88adb · report fixture: signature accuracies:ndarray/1/float, uncertainties:ndarray/1/float, quantile:float/0/float · returned float64 · level recorded 2026-09-24
auroc in 16 papers gen/generation/uncertainty/utils/eval_utils.py ran; the contract check could not run (RAISES) fingerprinted MIT (permissive) · 7454cc265b181dec · report fixture: signature y_true:ndarray/1/int, y_score:ndarray/1/float · returned float · level recorded 2026-09-24
bootstrap in 11 papers gen/generation/uncertainty/utils/eval_utils.py ran · our draft was wrong MIT (permissive) · 4b00bf597ecfdaac · report fixture: signature function:callable/0/?, rng:Generator/0/?, n_resamples:int/0/int · returned function · level recorded 2026-09-24
detect_total_layers gen/generation/generate_answers.py ran · honoured contract MIT (permissive) · 480af14a6e2aa6e6 · report fixture: signature generations:dict/0/? · returned int · level recorded 2026-09-24
find_best_f1_threshold Detection/validate.py ran; the contract check could not run (RAISES) fingerprinted MIT (permissive) · fb2ed0cf7ace8b91 · report fixture: signature y_true:ndarray/1/int, y_score:ndarray/1/float · returned tuple · level recorded 2026-09-24
get_reference gen/generation/uncertainty/utils/utils.py ran · our draft was wrong MIT (permissive) · e62229838ce8acff · report fixture: signature example:dict/0/? · returned dict · level recorded 2026-09-24
get_semantic_ids gen/generation/compute_entailment.py ran · honoured contract MIT (permissive) · 9d183134ceb534dd · report fixture: signature strings_list:list/1/str, model:callable/0/?, question:str/0/str · returned list · level recorded 2026-09-24
idx2prob Detection/utils.py ran · our draft was wrong MIT (permissive) · e23804c483b0df16 · report fixture: signature semantic_ids_dict:dict/0/?, used_sample:int/0/int · returned dict · level recorded 2026-09-24
load_jsonl_data Detection/utils.py ran · our draft was wrong fingerprinted MIT (permissive) · b129f0c4ed366d02 · report fixture: signature path:str/0/str, key_name:str/0/str · returned dict · level recorded 2026-09-24
load_pickle_data Detection/utils.py ran · our draft was wrong fingerprinted MIT (permissive) · 800ef62e13fbc93b · report fixture: signature path:str/0/str · returned dict · level recorded 2026-09-24
load_pickle_data gen/generation/eval_correctness.py ran · our draft was wrong fingerprinted MIT (permissive) · 7ac24230b0f8b0d3 · report fixture: signature path:str/0/str · returned dict · level recorded 2026-09-24
load_pickle_data gen/generation/generate_answers.py ran · our draft was wrong fingerprinted MIT (permissive) · f4b9dfc997266ff2 · report fixture: signature path:str/0/str · returned dict · level recorded 2026-09-24
md5hash gen/generation/compute_entailment.py ran · our draft was wrong fingerprinted MIT (permissive) · a7132c6a5c4b94e4 · report fixture: signature string:str/0/str · returned int · level recorded 2026-09-24
split_dataset in 65 papers gen/generation/uncertainty/utils/utils.py ran · our draft was wrong MIT (permissive) · eb7cd0b37505f35f · report fixture: signature dataset:list/1/dict · returned tuple · level recorded 2026-09-24
test in 377 papers Detection/validate.py ran MIT (permissive) · 9d031ee05ad849e1 · report fixture: signature args:Args/0/?, model:callable/0/?, hidden_list:list/1/list, label_list:list/1/list, idx_layer:int/0/int, th:float/0/float, device:str/0/str, show_progress:bool/0/bool · returned tuple · level recorded 2026-09-24
validate in 313 papers Detection/validate.py ran MIT (permissive) · 03eccb939862ffca · report fixture: signature args:NoneType/0/?, model:callable/0/?, hidden_list:list/1/list, label_list:list/1/list, idx_layer:int/0/int, device:str/0/str, show_progress:bool/0/bool · returned tuple · level recorded 2026-09-24
build_layer_entries gen/generation/generate_answers.py unverified MIT (permissive) · 8c1b641c05d76e54 · report
get_parser in 22 papers gen/generation/uncertainty/utils/utils.py unverified MIT (permissive) · a1c8064070046722 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2605.08863, was issued in May 2026, after that date, so the archive has no leaderboard rows for it.

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