Welcome to Microsoft Q&A Forum, thank you for posting your query here!
To compare the results between the older 3.1 custom extraction model and the latest 4.0 version's output You can check the Changelog/ReleaseHistory section for 4.0 and 3.0 to see the key changes in these two releases. For result comparison__,__ you can use Python SDK to extract the results like Table, figures, text etc. and save them in folders with their relevant name 4_tables, 3_tabels to take a visual difference. For Text results, you can use cosine similarityapi to find similarity percentage
Thank You.