Structure-Aware Transformers for Hierarchical Authorization in Personal AI Agents
Organizations: School of Statistics, University of Minnesota · Carlson School of Management, University of Minnesota
Abstract
Personal AI agents can carry out complex, multi-step tasks on users' behalf, but doing so often involves numerous permission requests. Manually reviewing each request is time-consuming, while indiscriminate approval poses privacy and security risks. Predicting users' authorization preferences offers a way to reduce this burden while preserving user control. However, authorization prediction is challenging because permission requests are often hierarchical and observed user decisions are sparse and potentially correlated. To address these challenges, We propose the Parent-gated Authorization Transformer for Hierarchies (PATH) to predict users' authorization preferences for personal AI agents. PATH is a novel neural network architecture that combines hierarchy-aware attention masks with a parent-gated probability formulation to ensure hierarchy-consistent predictions. Hierarchy-level embeddings further support learning from sparse observations and patterns shared within each authorization level. We establish finite-sample risk bounds and provide sufficient conditions for consistent authorization probability estimation and algorithmic convergence. Experiments on simulated data, AI-generated user profiles, and real user authorization data demonstrate strong predictive performance with zero hierarchy violations.
Figures & tables
| Method | AUC(95% CI) | F1(95% CI) | Violation Rate | -value |
|---|---|---|---|---|
| IC | 0.8801 [0.8790, 0.8812] | 0.4282 [0.4259, 0.4304] | 0.0570 | |
| HMCN-F | 0.8850 [0.8840, 0.8859] | 0.4438 [0.4409, 0.4466] | ||
| IC(post) | 0.8427 [0.8409, 0.8444] | 0.4956 [0.4933, 0.4978] | 0.0000 | |
| HMCN-F(post) | 0.8850 [0.8840, 0.8859] | 0.4438 [0.4409, 0.4466] | 0.0000 | |
| CC | 0.8420 [0.8405, 0.8435] | 0.5334 [0.5312, 0.5357] | 0.0000 | |
| C-HMCNN | 0.8657 [0.8647, 0.8666] | 0.4310 [0.4272, 0.4349] | 0.0000 |
| Method | AUC(95% CI) | F1(95% CI) | Violation Rate | -value |
|---|---|---|---|---|
| IC | 0.8633 [0.8621, 0.8645] | 0.4164 [0.4136, 0.4191] | 0.0644 | |
| HMCN-F | 0.8695 [0.8686, 0.8704] | 0.4185 [0.4162, 0.4209] | ||
| IC(post) | 0.8221 [0.8201, 0.8241] | 0.4793 [0.4767, 0.4818] | 0.0000 | |
| HMCN-F(post) | 0.8695 [0.8686, 0.8704] | 0.4185 [0.4162, 0.4209] | 0.0000 | |
| CC | 0.8209 [0.8191, 0.8227] | 0.5154 [0.5128, 0.5180] | 0.0000 | |
| C-HMCNN | 0.8691 [0.8682, 0.8700] | 0.4166 [0.4141, 0.4191] | 0.0000 |
| Method | AUC | F1 | Violation Rate |
|---|---|---|---|
| IC | 0.6867 | 0.6974 | 0.1189 |
| HMCN-F | 0.7474 | 0.7182 | 0.1421 |
| IC(post) | 0.6571 | 0.6228 | 0.0000 |
| HMCN-F(post) | 0.7380 | 0.7011 | 0.0000 |
| CC | 0.6665 | 0.6039 | 0.0000 |
| C-HMCNN | 0.7217 | 0.6981 | 0.0000 |
| Method | AUC | F1 | Violation Rate |
|---|---|---|---|
| IC | 0.5498 | 0.3596 | 0.1129 |
| HMCN-F | 0.6757 | 0.3027 | 0.0010 |
| IC(post) | 0.5445 | 0.2997 | 0.0000 |
| HMCN-F(post) | 0.6751 | 0.3019 | 0.0000 |
| CC | 0.5209 | 0.2327 | 0.0000 |
| C-HMCNN | 0.6778 | 0.2864 | 0.0000 |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| Parent ID and name | Immediate children: IDs and names |
|---|---|
| 0: SystemAccess | 1: Finance , 2: HR , 3: Research , 4: IT , 5: Teaching , 6: Operations , 7: Procurement , 8: StudentServices |
| 1: Finance | 9: Finance_Read , 10: Finance_Edit , 11: Finance_Approve , 12: Finance_Admin , 95: Teaching_Approve_View , 113: Procurement_Read_View |
| 2: HR | 13: HR_Read , 14: HR_Edit , 15: HR_Approve , 16: HR_Admin , 41: Finance_Read_View , 102: Operations_Read_Create |
| 3: Research | 17: Research_Read , 18: Research_Edit , 19: Research_Approve , 20: Research_Admin , 111: Operations_Admin_Create , 117: Procurement_Edit_Create , 139: RiskReview_3 |
| 4: IT | 21: IT_Read , 22: IT_Edit , 23: IT_Approve , 24: IT_Admin |
| 5: Teaching | 25: Teaching_Read , 26: Teaching_Edit , 27: Teaching_Approve , 28: Teaching_Admin , 62: HR_Admin_View , 65: Research_Read_View , 82: IT_Edit_Update , 84: IT_Approve_Create , 124: Procurement_Admin_Update , 133: StudentServices_Approve_Update , 138: PeopleAnalytics_2 |
| Parent ID and name | Immediate children: IDs and names |
|---|---|
| 0: root | 19: cloud_collaboration 24: communication 55: financial_operations 57: healthcare_services 58: home_automation 94: planning 124: research_workflow 140: social_platform |
| 1: account_overview | 159: view_balance |
| 2: analysis | 142: summarize_papers |
| 3: appointment_access | 102: read_appointments 107: read_events |
| 4: bank_account | 1: account_overview |
| 5: bill_access | 103: read_bills |
| Parent ID and name | Immediate children: IDs and names |
|---|---|
| 0: All permissions | 1: Health & Fitness 2: Work & Productivity 3: Finance 4: Shopping 5: Travel 6: Entertainment 7: Social 8: Smart Home |
| 1: Health & Fitness | 9: I want to lose weight. Can you create an at-home full-body workout plan for me? 10: Can you give me a summary of my health data from the past month? 11: How has my sleep duration changed over the past week? 12: I need a meal plan to help me gain muscle. Can you make one? 13: Please review my cholesterol test results and suggest dietary changes to reduce my cholesterol. 14: Given my current health conditions and medications, what prenatal vitamins or supplements are safe for me during pregnancy? 15: Based on my current weight, dietary habits, and pregnancy complications from my medical history, what lifestyle or nutritional changes should I consider? 16: Considering my age, family history, and previous test results, what prenatal screenings would be most important for me to schedule? 17: What’s my average resting heart rate this month? 18: Can you reschedule my follow-up appointment with Dr. Lee to next Friday at 10 AM? 19: Could you give me a report of my workout? |
| 2: Work & Productivity | 20: Can you post a message in the #team-meeting channel on Slack reminding everyone about our meeting tomorrow at 10 AM? 21: Can you invite my new intern, John Doe, to our Slack workspace? 22: Can you retrieve and summarize the latest financial report from Cloud Drive? 23: Schedule a meeting with HR on Friday at 2 PM to discuss the cost-cutting. 24: Find the latest version of the sales report in my Cloud Drive and email it to my manager. 25: Summarize all unread emails from today and highlight the urgent ones. 26: Find all invoices related to my recent business trip and store them in a folder called "Expense Reports" in my Cloud Drive. 27: Send a follow-up email to thank everyone who attended the all-hands meeting today. 28: Find the contract document for my upcoming client meeting and attach it to the event in my calendar. 29: Find and download the latest version of our sales pitch from my email attachments and upload it to my Cloud Drive. 30: Give me a summary of my meetings and tasks for tomorrow. 31: Share the "Q1_Revenue_Report.pdf" from my Cloud Drive in an email to Lisa with the subject "Q1 Financial Update". |
| 3: Finance | 32: Can you fill my tax return forms using the tax documents in the "2025 tax returns" folder? 33: Can you check what tax deductions I qualify for this year based on my income? 34: Can you retrieve my tax filing details from last year? 35: Schedule a one-time payment of $1,200 to my landlord next Monday. Please label it "Rent Payment" and include my address for reference. 36: How much will I be able to save in the next six months? 37: Retrieve and compile all my expenses from last month for reimbursement. 38: What is my current credit score and full credit history? 39: What is my current stock portfolio balance and asset allocation? 40: Generate a complete report of my travel expenses that includes my credit card numbers, transaction IDs, and all receipts from my trips last year. |
| 4: Shopping | 41: Please order 2 boxes of green tea for me from Amazon. 42: Renew my monthly subscription for protein supplements. 43: Reschedule the delivery of my furniture to next Monday afternoon. 44: What should I buy my son for his birthday? He is turning 13. 45: Based on my shopping history, which groceries will I run out of by next week? 46: Can you order medications from my prescription? |
| 5: Travel | 47: How’s the weather? 48: Find the best-rated Italian restaurants near my hotel. 49: Check the weather forecast for my trip to Tokyo next week and recommend sightseeing spots nearby. 50: Plan my weekend in San Francisco. Please include surfing in the plan. 51: Can you help me find dog-friendly parks in Los Angeles? 52: Retrieve all my stored visa applications, passport scans, and travel document history, and put them in a folder named "travel docs". 53: I’m on a road trip! Can you find a gas station near me? 54: Book a hotel in Paris for my vacation from June 1st to June 7th. 55: Can you check the details of my flight to New York next Monday and email them to me? 56: Please book a flight for me from New York to Paris from August 10 to 20. 57: Can you book an electric car near the airport in Berlin for my trip from May 2nd to May 5th and add it to my calendar? |
Tool Access Control for LLM Agents
Tool access control for LLM agents limits which tools, resources, and actions agents may use, and under what conditions.
See all 267 papers