{"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/arxiv-2603-22754","title":"PRISM: A Dual View of LLM Reasoning through Semantic Flow and Latent Computation","arxiv_id":"2603.22754","date":"2026-03-24","proceeding":null,"authors":["Ruidi Chang","Jiawei Zhou","Hanjie Chen"],"abstract":"Large language models (LLMs) solve complex problems by generating multi-step reasoning traces. Yet these traces are typically analyzed from only one of two perspectives: the sequence of tokens across different reasoning steps in the generated text, or the hidden-state vectors across model layers within one step. We introduce PRISM (Probabilistic Reasoning Inspection through Semantic and Implicit Modeling), a framework and diagnostic tool for jointly analyzing both levels, providing a unified view of how reasoning evolves across steps and layers. Across multiple reasoning models and benchmarks, PRISM uncovers systematic patterns in the reasoning process, showing that failed trajectories are more likely to become trapped in unproductive verification loops and further diverge into distinct modes such as overthinking and premature commitment, which behave differently once a candidate answer is reached. It further reveals how prompting reshapes reasoning behavior beyond aggregate accuracy by altering both semantic transitions and internal computational patterns. By modeling reasoning trajectories as structured processes, PRISM makes these behaviors observable and analyzable rather than relying solely on final-task accuracy. Taken together, these insights position PRISM as a practical tool for analyzing and diagnosing reasoning processes in LLMs.","url_abs":"https://arxiv.org/abs/2603.22754","url_pdf":"https://arxiv.org/pdf/2603.22754","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":null,"mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2603.22754"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/chili-lab/PRISM","reach":null}],"summary":{"unverified":18},"by_repo_kind":{"found_in_text":{"samples":18,"ran":0,"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":18,"samples":[{"code_sha256_prefix":"521cdb0c455d1b35","entry":"aggregate","repo":"chili-lab/PRISM","repo_kind":"found_in_text","path":"prism_code/aggregate_lib.py","file_url":"https://github.com/chili-lab/PRISM/blob/HEAD/prism_code/aggregate_lib.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"521cdb0c455d1b35"}},{"code_sha256_prefix":"a0a697cd7557564c","entry":"aggregate_scalar","repo":"chili-lab/PRISM","repo_kind":"found_in_text","path":"prism_code/aggregate_prism_top.py","file_url":"https://github.com/chili-lab/PRISM/blob/HEAD/prism_code/aggregate_prism_top.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a0a697cd7557564c"}},{"code_sha256_prefix":"99d4d33457aa8ead","entry":"analyze_basic_stats","repo":"chili-lab/PRISM","repo_kind":"found_in_text","path":"prism_code/analyze_prism_top.py","file_url":"https://github.com/chili-lab/PRISM/blob/HEAD/prism_code/analyze_prism_top.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"99d4d33457aa8ead"}},{"code_sha256_prefix":"6a9d7dbe0ac8d9bf","entry":"build_prompt","repo":"chili-lab/PRISM","repo_kind":"found_in_text","path":"prism_code/classifier.py","file_url":"https://github.com/chili-lab/PRISM/blob/HEAD/prism_code/classifier.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6a9d7dbe0ac8d9bf"}},{"code_sha256_prefix":"7b5aaaa5ed13371f","entry":"build_top_sequences","repo":"chili-lab/PRISM","repo_kind":"found_in_text","path":"prism_code/prism_lib.py","file_url":"https://github.com/chili-lab/PRISM/blob/HEAD/prism_code/prism_lib.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7b5aaaa5ed13371f"}},{"code_sha256_prefix":"5208beff89a51bfc","entry":"classify_batch","repo":"chili-lab/PRISM","repo_kind":"found_in_text","path":"prism_code/classifier.py","file_url":"https://github.com/chili-lab/PRISM/blob/HEAD/prism_code/classifier.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5208beff89a51bfc"}},{"code_sha256_prefix":"855f251b1c2812f7","entry":"coerce_labels_to_ids","repo":"chili-lab/PRISM","repo_kind":"found_in_text","path":"prism_code/prism_lib.py","file_url":"https://github.com/chili-lab/PRISM/blob/HEAD/prism_code/prism_lib.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"855f251b1c2812f7"}},{"code_sha256_prefix":"cbf58b66da7d8de6","entry":"compute_gmm_metrics","repo":"chili-lab/PRISM","repo_kind":"found_in_text","path":"prism_code/train_prism.py","file_url":"https://github.com/chili-lab/PRISM/blob/HEAD/prism_code/train_prism.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cbf58b66da7d8de6"}},{"code_sha256_prefix":"c8d070284cd31551","entry":"compute_stationary_distribution","repo":"chili-lab/PRISM","repo_kind":"found_in_text","path":"prism_code/analyze_prism_top.py","file_url":"https://github.com/chili-lab/PRISM/blob/HEAD/prism_code/analyze_prism_top.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c8d070284cd31551"}},{"code_sha256_prefix":"f3691c83dabcee1b","entry":"decode_token_span","repo":"chili-lab/PRISM","repo_kind":"found_in_text","path":"prism_code/preprocessing_unified_resume.py","file_url":"https://github.com/chili-lab/PRISM/blob/HEAD/prism_code/preprocessing_unified_resume.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f3691c83dabcee1b"}},{"code_sha256_prefix":"f9dd9023576cd612","entry":"discover_jsons","repo":"chili-lab/PRISM","repo_kind":"found_in_text","path":"prism_code/aggregate_lib.py","file_url":"https://github.com/chili-lab/PRISM/blob/HEAD/prism_code/aggregate_lib.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f9dd9023576cd612"}},{"code_sha256_prefix":"8d99269d19deb7b8","entry":"extract_boxed","repo":"chili-lab/PRISM","repo_kind":"found_in_text","path":"prism_code/classifier.py","file_url":"https://github.com/chili-lab/PRISM/blob/HEAD/prism_code/classifier.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8d99269d19deb7b8"}},{"code_sha256_prefix":"ff87275e087db68c","entry":"generate_html","repo":"chili-lab/PRISM","repo_kind":"found_in_text","path":"prism_code/generate_website_prism.py","file_url":"https://github.com/chili-lab/PRISM/blob/HEAD/prism_code/generate_website_prism.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ff87275e087db68c"}},{"code_sha256_prefix":"e90b784033e597b2","entry":"load_json","repo":"chili-lab/PRISM","repo_kind":"found_in_text","path":"prism_code/aggregate_lib.py","file_url":"https://github.com/chili-lab/PRISM/blob/HEAD/prism_code/aggregate_lib.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e90b784033e597b2"}},{"code_sha256_prefix":"4f3c32f5060f7280","entry":"load_json","repo":"chili-lab/PRISM","repo_kind":"found_in_text","path":"prism_code/generate_website_prism.py","file_url":"https://github.com/chili-lab/PRISM/blob/HEAD/prism_code/generate_website_prism.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4f3c32f5060f7280"}},{"code_sha256_prefix":"eaa598ab9dd2df35","entry":"load_pt_records","repo":"chili-lab/PRISM","repo_kind":"found_in_text","path":"prism_code/prism_lib.py","file_url":"https://github.com/chili-lab/PRISM/blob/HEAD/prism_code/prism_lib.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"eaa598ab9dd2df35"}},{"code_sha256_prefix":"780db9e6a8c2e951","entry":"reseed_for_sample","repo":"chili-lab/PRISM","repo_kind":"found_in_text","path":"prism_code/preprocessing_unified_resume.py","file_url":"https://github.com/chili-lab/PRISM/blob/HEAD/prism_code/preprocessing_unified_resume.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"780db9e6a8c2e951"}},{"code_sha256_prefix":"4807893245a84a9d","entry":"segment_by_newlines_2plus","repo":"chili-lab/PRISM","repo_kind":"found_in_text","path":"prism_code/preprocessing_unified_resume.py","file_url":"https://github.com/chili-lab/PRISM/blob/HEAD/prism_code/preprocessing_unified_resume.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4807893245a84a9d"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CL","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}