Published
Jul 2, 2024
Updated
Aug 1, 2024

Steering AI: Taking Control of Your Data Analysis

Improving Steering and Verification in AI-Assisted Data Analysis with Interactive Task Decomposition
By
Majeed Kazemitabaar|Jack Williams|Ian Drosos|Tovi Grossman|Austin Henley|Carina Negreanu|Advait Sarkar

Summary

Imagine effortlessly guiding an AI assistant through the complexities of data analysis, ensuring accuracy and uncovering hidden insights. This isn't science fiction, but the reality of recent research focusing on enhancing user control in AI-assisted data analysis. Traditionally, AI tools like ChatGPT Data Analysis operated like a black box, performing analysis with minimal user intervention. While powerful, this approach presented challenges in verifying the AI’s reasoning and steering its direction. This new research tackles these challenges head-on, introducing two innovative systems: Phasewise and Stepwise. Phasewise breaks down the analysis process into three editable phases: assumptions about the data, an execution plan, and the generated code. This offers broad control upfront, empowering users to shape the entire analysis strategy. Stepwise, on the other hand, provides finer control, decomposing the task into smaller subgoals with editable assumptions and corresponding code at each step. A user study comparing these systems to a conventional conversational AI revealed that users felt significantly more in control using both Phasewise and Stepwise. They found it easier to intervene, correct mistakes, and verify results, highlighting the importance of transparent, interactive systems. While both systems proved beneficial, trade-offs emerged. Phasewise, with its wealth of information, sometimes overwhelmed users, while Stepwise's granular approach occasionally left users wanting a broader view of the process. The study also underscored the power of 'side conversations'—allowing users to ask questions, generate code snippets, and run exploratory queries without disrupting the main analysis flow. This facilitated a more natural, iterative workflow, mirroring how data scientists explore and validate their assumptions. This research opens exciting possibilities for future AI-assisted data analysis tools. Imagine systems that dynamically adapt the level of control based on user expertise and task complexity, providing just the right amount of guidance and interaction at each step. Such advancements will not only enhance the efficiency of data analysis but also empower users to truly collaborate with AI, fostering trust and deeper insights.
🍰 Interesting in building your own agents?
PromptLayer provides the tools to manage and monitor prompts with your whole team. Get started for free.

Question & Answers

How do Phasewise and Stepwise systems technically differ in their approach to AI-assisted data analysis?
Phasewise and Stepwise represent two distinct architectural approaches to AI-assisted data analysis control. Phasewise employs a three-phase structure (assumptions, execution plan, and code generation) with broad, upfront control, while Stepwise uses a granular, step-by-step approach with editable assumptions and code at each subgoal. Phasewise offers comprehensive oversight through its hierarchical structure: users first define data assumptions, then review the execution strategy, and finally validate the generated code. In contrast, Stepwise breaks analysis into smaller, manageable chunks, allowing for immediate intervention and adjustment at each step. This technical difference makes Phasewise more suitable for experienced analysts who need broad control, while Stepwise better serves those who prefer incremental verification and adjustment.
What are the benefits of user-controlled AI in data analysis for businesses?
User-controlled AI in data analysis offers significant advantages for businesses by combining AI efficiency with human oversight. It allows teams to maintain quality control while leveraging AI's processing power, reducing errors and improving accuracy. The key benefits include increased transparency in decision-making, better alignment with business objectives, and reduced risk of AI mistakes. For example, a marketing team can guide AI analysis of customer data while ensuring business-specific context and requirements are met. This approach also builds trust in AI systems within organizations, as teams can verify and adjust analysis processes according to their specific needs.
How can AI-assisted data analysis improve decision-making in everyday work?
AI-assisted data analysis enhances decision-making by combining human expertise with AI processing power. It helps professionals quickly identify patterns and insights in complex data while maintaining control over the analysis process. In practical terms, this means faster, more accurate decisions based on data-driven insights. For instance, a sales manager can use AI to analyze customer behavior patterns while steering the analysis toward specific business goals. The technology also reduces human error while allowing professionals to focus on strategic thinking and creative problem-solving, making it an invaluable tool for modern workplaces.

PromptLayer Features

  1. Workflow Management
  2. The paper's Phasewise system's three-phase structure directly maps to PromptLayer's workflow orchestration capabilities, enabling structured, verifiable analysis paths
Implementation Details
Create templated workflows matching the three phases (assumptions, execution plan, code generation), with version tracking at each stage
Key Benefits
• Reproducible analysis pipelines • Clear audit trail of decisions • Simplified collaboration through structured phases
Potential Improvements
• Add phase-specific validation checks • Implement conditional branching between phases • Create phase templates for common analysis patterns
Business Value
Efficiency Gains
30-40% reduction in analysis setup time through structured templates
Cost Savings
Reduced rework costs through better version control and reproducibility
Quality Improvement
Enhanced analysis reliability through systematic phase validation
  1. Testing & Evaluation
  2. The paper's emphasis on verification and correction aligns with PromptLayer's testing capabilities for ensuring accuracy and reliability
Implementation Details
Set up automated testing pipelines for each analysis step with regression testing and result validation
Key Benefits
• Automated verification of analysis results • Early error detection • Consistent quality across analyses
Potential Improvements
• Implement automated assumption validation • Add result comparison across versions • Create custom metrics for analysis quality
Business Value
Efficiency Gains
50% reduction in manual verification time
Cost Savings
Decreased error-related costs through automated testing
Quality Improvement
Higher accuracy and reliability in analysis outputs

The first platform built for prompt engineering