惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Project Zero
Project Zero
月光博客
月光博客
Y
Y Combinator Blog
T
The Blog of Author Tim Ferriss
O
OpenAI News
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Know Your Adversary
Know Your Adversary
Last Week in AI
Last Week in AI
S
Securelist
Engineering at Meta
Engineering at Meta
博客园 - 司徒正美
P
Privacy & Cybersecurity Law Blog
T
Tailwind CSS Blog
F
Fortinet All Blogs
博客园 - 三生石上(FineUI控件)
Scott Helme
Scott Helme
MyScale Blog
MyScale Blog
P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
C
Cisco Blogs
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
小众软件
小众软件
U
Unit 42
Microsoft Azure Blog
Microsoft Azure Blog
Hacker News: Ask HN
Hacker News: Ask HN
Hugging Face - Blog
Hugging Face - Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
SecWiki News
SecWiki News
宝玉的分享
宝玉的分享
P
Proofpoint News Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
H
Hackread – Cybersecurity News, Data Breaches, AI and More
L
Lohrmann on Cybersecurity
IT之家
IT之家
Security Archives - TechRepublic
Security Archives - TechRepublic
I
InfoQ
S
Security @ Cisco Blogs
Webroot Blog
Webroot Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
F
Full Disclosure
D
Darknet – Hacking Tools, Hacker News & Cyber Security
The GitHub Blog
The GitHub Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Jina AI
Jina AI
Cyberwarzone
Cyberwarzone
人人都是产品经理
人人都是产品经理
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
B
Blog RSS Feed
Apple Machine Learning Research
Apple Machine Learning Research

Snorkel AI

Building AI-Native Systems for Federal Infrastructure: A Conversation with Rezaur Rahman Code World Models and AutoHarness for LLM Agents Benchtalks #1: Alex Shaw (Terminal-Bench, Harbor) – Building the Benchmark Factory Building FinQA: An Open RL Environment for Financial Reasoning Agents How Tool Discipline Let a 4B Model Outsmart a 235B Giant on Financial Tasks Coding agents don’t need to be perfect, they need to recover Closing the Evaluation Gap in Agentic AI SlopCodeBench: Measuring Code Erosion as Agents Iterate Introducing the Snorkel Agentic Coding Benchmark 2026: The year of environments Part V: Future Direction and Emerging Trends in Rubric-Based AI Evaluation The self-critique paradox: Why AI verification fails where it’s needed most Chat With the Terminal-Bench Team | Snorkel AI Intelligence per watt: A new metric for AI’s future Terminal-Bench 2.0: Raising the bar for AI agent evaluation Snorkeling in RL environments Introducing SnorkelSpatial: A Benchmark for LLM Spatial Reasoning Scaling Trust: Rubrics in Snorkel's Quality Process Evaluating Multi-Agent Systems in Enterprise Tool Use Evaluating Coding Agents with Terminal-Bench 2.0 Parsing isn’t neutral: why evaluation choices matter The science of rubric design The right tool for the job: An A-Z of rubrics Data quality and rubrics: how to build trust in your models Building the benchmark: inside our agentic insurance underwriting dataset Evaluating AI agents for insurance underwriting LLM observability: key practices, tools, and challenges Anthropic Claude + AWS: revolutionizing pharma data analytics with Snorkel AI Data-centric development of an enterprise AI agent with Snorkel Building the data development platform for specialized AI LLM-as-a-judge for enterprises: evaluate model alignment at scale Why GenAI evaluation requires SME-in-the-loop for validation and trust Research spotlight: is long chain-of-thought structure all that matters when it comes to LLM reasoning distillation? Why enterprise GenAI evaluation requires fine-grained metrics to be insightful What is specialized GenAI evaluation, and why is it so critical to enterprise AI? LLM alignment techniques: 4 post-training approaches Research spotlight: Is intent analysis the key to unlocking more accurate LLM question answering? Why enterprises should embrace LLM distillation Retrieval-augmented generation (RAG) failure modes and how to fix them What is large language model (LLM) alignment? Databricks + Snorkel Flow: integrated, streamlined AI development How LLM evaluation drives better models in Snorkel Flow Unlock proprietary data with Snorkel Flow and Amazon SageMaker LLM evaluation in enterprise applications: a new era in ML Snorkel AI joins the AWS ISV Accelerate Program and launches Snorkel Flow Availability in AWS Marketplace AI data development: a guide for data science projects SnorkelCon 2024: Inaugural Snorkel AI user conference gathers leaders from 30+ Fortune 500 companies Snorkel Flow 2024.R3: Supercharge your AI development with enhanced data-centric workflows Explore the new GenAI Evaluation Suite: Snorkel 2024.R3 New NLP features in Snorkel Flow 2024.R3 Enterprise data compliance and security review: Snorkel Flow 2024.R3 How a global financial services company built a specialized AI copilot accurate enough for production Task Me Anything: innovating multimodal model benchmarks Alfred: Data labeling with foundation models and weak supervision RAG: LLM performance boost with retrieval-augmented generation Call center AI for customer experience management: a case study New GenAI features, data annotation: Snorkel Flow 2024.R2 How data slices transform enterprise LLM evaluation Meta’s Llama 3.1 405B is the new Mr. Miyagi, now what? Meta’s new Llama 3.1 models are here! Are you ready for it? Data-centric AI with Snorkel and MinIO Weak supervision for non-categorical applications + superalignment Snorkel AI signs strategic collaboration agreement with AWS to help enterprises cross the demo-to-production chasm AI alignment made simple: innovative solutions for businesses How does the Snorkel Flow label model work? Vision language models: how LLMs boost image classification Long context models in the enterprise: benchmarks and beyond How to build production-grade RAG retrieval with Snorkel Flow How Bonito helps fine-tune specialized LLMs faster than ever Walking safely before building flying saucer seatbelts: introducing Enterprise Alignment Role-based access controls in Snorkel Flow secure enterprise data Accelerating AI development in manufacturing with Snorkel Flow and AWS SageMaker How ROBOSHOT boosts zero-shot foundation model performance Discover what’s new in Snorkel Flow: Flexible data and LLM connectivity, secure data controls, and more! Faster than ever document intelligence with new Snorkel Flow FM-first workflow The art of data development for Enterprise LLMs Crossing the demo-to-production chasm with Snorkel Custom How Snorkel topped the AlpacaEval leaderboard (and why we're not there anymore) CRFM's HELM and enterprise LLM evaluation beyond accuracy Five sessions not to miss at Google Cloud Next 24 Content filtering breakthrough: Snorkel client reaches 96% recall in 3 days Here's how Snorkel Flow + Google AI built an enterprise-ready model in a day Snorkel teams with Microsoft to showcase new AI research at NVIDIA GTC How Skill-it! enables faster, better LLM training Fine-tuned representation models boost LLM systems. Here's how Enterprise GenAI to surge in 2024: survey results Large language model training: how three training phases shape LLMs LoRA: Low-Rank Adaptation for LLMs LLM distillation demystified: a complete guide Enterprises must shift their focus from models to data in AI development Insurance’s GenAI revolution: a business perspective Scaling human preferences in AI: Snorkel's programmatic approach Building better enterprise AI: incorporating expert feedback in system development “Fall in love with your data”—Snorkel AI’s Enterprise LLM Summit Why QBE Ventures invested in Snorkel AI New benchmark results demonstrate value of Snorkel AI approach to LLM alignment Retrieval augmented generation (RAG): a conversation with its creator Snorkel Flow 2023.R4: enhanced UI + PDF and Databricks tools How Snorkel Flow users can register custom models to Databricks Stanford professor discusses exciting advances in foundation model evaluation
How we achieved 89% accuracy on contract question answering
Minhajul Hoque · 2024-04-02 · via Snorkel AI

Imagine sifting through a 500-page legal document for several hours to answer a simple question. Now, imagine a machine learning system that could perform contract question answering for you in a fraction of the time.

That’s what we at Snorkel AI recently created for a top 10 US bank. Our goal was to automate the process of extracting complex information from extensive legal PDFs, freeing up the bank’s subject matter experts (SMEs) to concentrate on the more enjoyable—and more valuable—parts of their jobs.

We began with an out-of-the-box solution using the GPT-4 large language model (LLM) and OpenAI’s text data embeddings. With an initial accuracy rate of just 25%, it was clear we had our work cut out for us. I recently talked with Matt Casey, Snorkel AI’s data science content lead, about how we leveraged the power of Snorkel Flow to boost our system’s performance to production levels in just a few weeks.

You can watch the full interview (embedded below), but I’ve summed up the journey here.

Optimizing pre-retrieval + retrieval for contract question answering

To improve the performance of our system, we initially concentrated our efforts on optimizing two key aspects: pre-retrieval and retrieval.

Pre-retrieval: chunking and tagging

During pre-retrieval, we focused on smarter “chunking”—an approach that prioritizes keeping bullet points and other structural components of the PDF’s text together. This helped to better organize the chunks and enhance them with relevant metadata.

The metadata included:

  • Identification of the document section where a paragraph was located.
  • Recognition of whether a paragraph was discussing a date.
  • Detection of whether a paragraph was providing legal definitions.

Attaching this metadata required us to create helper models that we called “custom extractors.” These binary classifiers identified whether a document chunk was likely to contain their targeted type of content—dates for one, definitions for the other. Creating these custom extractors would typically take months. However, with the help of Snorkel Flow, we were able to develop them in just a few days. This significantly sped up the process and improved the system’s overall efficiency.

This metadata enhancement allowed us to create a more robust foundation for the subsequent retrieval process.

Retrieval: customizing our embedding model

The retrieval aspect was equally crucial and required careful fine-tuning. The generic embedding model performed some tasks well—like telling legal documents from news articles—but it struggled to differentiate between chunks of legal text.

We fine-tuned the embedding model to the task’s narrow, specialized domain. This significantly improved the application’s ability to differentiate relevant content from irrelevant content.

Additional tweaks

While most of our early work focused on pre-retrieval and retrieval optimization, we also made other adjustments—for example, injecting relevant non-document information into the prompt. This may sound obvious, but GPT-4 doesn’t know the current date. So, we had to include the current date in our prompt template.

Taken together, all of these tweaks were an iterative process that involved running multiple experiments.

How Snorkel Flow programmatic and synthetic data helped

We leveraged the power of our Snorkel Flow AI data development platform to accelerate the process of developing data and iterating on our application. The platform allowed us to encode the knowledge and intuition of the bank’s SMEs into labeling functions that combined to swiftly generate a large quantity of programmatic labels.

Some key steps in this process included:

  • SME tracking: We recorded the pages the SMEs visited and the definitions they looked for when answering particular questions to develop our labeling functions.
  • Synthetic data generation: To scale data development, we generated synthetic data guided by the metadata and filtered for quality according to models built using the original data. This synthetic data was important in allowing the embedding model to generalize well to many types of questions.
  • Rapid annotation: By combining programmatic labels from Snorkel Flow with a few manually labeled PDFs, we can quickly scale our training data to encompass 500 PDFs.
  • Custom extractors: Using Snorkel Flow, we created helper models that allowed us to tag document chunks as likely to include dates or likely to include legal definitions. We built them in a single day. Without Snorkel Flow, labeling the data to create these extractors could take months.
  • Iterative experiments: We conducted more than 40 experiments in three weeks during our first sprint. This rapid experimentation, augmented by Snorkel Flow, allowed us to understand what system components were holding us back at each point and efficiently improve upon them.

In the interview, Matt asked me how long this project would have taken without Snorkel Flow. The answer is that it probably wouldn’t have happened. When large companies find themselves staring down months of hand-labeling work, they often shelve the project and move on.

With Snorkel Flow, they don’t have to.

Minhajul Hoque discussed contract question answering with Matt Casey.

Results and ongoing work

Our first sprint, which lasted three weeks, saw the answer accuracy rate improve from 25% to 79%. In the second sprint, we further improved the accuracy to 89%.

However, the project is still ongoing. We’re currently in the third sprint where we aim to expand the number of questions the system can answer.

Snorkel Flow: freeing up SME time

By automating a tedious and time-consuming task, we not only improved efficiency but also allowed SMEs to focus on higher-value tasks. The success of this project exemplifies the potential of AI in turning complex ideas into practical solutions, and we’re excited about the future possibilities.

Ready to accelerate AI development?

Deploy production AI and ML applications 10-100x faster with Snorkel’s experts, using our proprietary technology.

Request a demo